/* ============================================================
   styles.css — PEMSOTEC  (estilos globales + navbar unificada)
   ============================================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Inter', sans-serif;
  background: #f4f4f4;
  color: #222;
  line-height: 1.6;
}
body a { color: inherit; }

/* ============================================================
   NAVBAR — idéntica en todas las páginas
   ============================================================ */
header { position: sticky; top: 0; z-index: 1000; }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0 2rem;
  height: 70px;
  background: #0a1f44;
}

.logo {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links > a,
.dropbtn {
  color: #d0d8e8;
  text-decoration: none;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.nav-links > a:hover,
.dropbtn:hover {
  background: #133b7a;
  color: #fff;
}

.btn-contacto {
  background: #ff7a00;
  color: #fff !important;
  border-radius: 10px;
  font-weight: 700;
  padding: 10px 22px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  font-family: inherit;
}

.btn-contacto:hover { background: #e56b00; transform: translateY(-1px); }

/* ---- DROPDOWN ---- */
.dropdown { position: relative; }

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  background: #f4f4f4;
  min-width: 270px;
  border-radius: 14px;
  padding: 10px 0;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  z-index: 9999;
}

.dropdown.dropdown-open .dropdown-content { display: block; }

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.15s;
}

.dropdown-content a:hover { background: rgba(10,31,68,0.07); }

.dropdown-content .titulo {
  font-size: 10px;
  font-weight: 700;
  color: #6b7c93;
  padding: 12px 20px 4px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   BOTÓN GENERAL
   ============================================================ */
.btn {
  background: #ff7a00;
  color: #fff;
  border-radius: 10px;
  font-weight: 700;
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover { background: #e56b00; transform: translateY(-1px); }

/* ============================================================
   INDEX — BANNER PRINCIPAL
   ============================================================ */
.banner-principal {
  position: relative;
  min-height: 420px;
  background: url('img/banner.jpg') center/cover no-repeat;
  border-radius: 18px;
  margin: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-principal .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,31,68,0.72);
}

.contenido {
  position: relative;
  z-index: 2;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  color: #fff;
}

.contenido h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.contenido p {
  max-width: 700px;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* ============================================================
   INDEX — SERVICIOS / CARRUSEL
   ============================================================ */
.servicios {
  padding: 40px 20px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.servicios h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 24px;
  color: #0a1f44;
}

.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel {
  display: grid;
  grid-template-columns: repeat(4, minmax(240px, 1fr));
  gap: 18px;
  transition: transform 0.35s ease;
}

.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.card img { width: 100%; height: 200px; object-fit: cover; display: block; }
.card h3 { margin: 16px 18px 8px; font-size: 1.1rem; color: #0a1f44; }
.card p  { margin: 0 18px 16px; line-height: 1.7; color: #4c5666; flex: 1; font-size: 0.9rem; }
.card .btn { margin: 0 18px 18px; width: calc(100% - 36px); padding: 10px 0; }

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(10,31,68,0.85);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  transition: background 0.2s;
}

.arrow.left  { left: 6px; }
.arrow.right { right: 6px; }
.arrow:hover { background: #133b7a; }

/* ============================================================
   INDEX — CTA INFERIOR
   ============================================================ */
.cta {
  margin: 40px 20px 60px;
  padding: 40px 24px;
  background: #0a1f44;
  border-radius: 18px;
  color: #fff;
  text-align: center;
}

.cta-content { max-width: 840px; margin: 0 auto; }
.cta h2 { font-size: 2rem; margin-bottom: 1.5rem; }

/* ============================================================
   SUBPÁGINAS — BANNER SUPERIOR
   ============================================================ */
.page-banner {
  background-color: #0a192f;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.page-banner h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.page-banner p { font-size: 1.1rem; opacity: 0.85; }

/* ============================================================
   SUBPÁGINAS — CONTENIDO
   ============================================================ */
.container {
  padding: 60px 8%;
  max-width: 1300px;
  margin: 0 auto;
}

.back-nav { margin-bottom: 28px; }

.back-nav a {
  text-decoration: none;
  color: #4a5568;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.back-nav a:hover { color: #0a1f44; }

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.image-box img {
  width: 100%;
  max-height: 420px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.text-box h2 { font-size: 2rem; color: #0a1f44; margin-bottom: 16px; }
.text-box p  { color: #4a5568; margin-bottom: 24px; font-size: 1rem; }

.feature-list { list-style: none; margin: 0 0 32px; padding: 0; }

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #1a202c;
  font-weight: 500;
  font-size: 0.95rem;
}

.feature-list i { color: #ff7a00; font-size: 1rem; }

/* ============================================================
   PÁGINA NOSOTROS (contacto.html)
   ============================================================ */
.about-section {
  padding: 80px 8%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.about-section h2 { font-size: 2.2rem; margin-bottom: 20px; color: #0a1f44; }

.about-text {
  max-width: 800px;
  margin: 0 auto 50px;
  color: #718096;
  font-size: 1.05rem;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.about-card {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 20px;
  padding: 40px 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.about-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,0.07); transform: translateY(-5px); }

.icon-circle {
  width: 64px;
  height: 64px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  color: #0a1f44;
  font-size: 1.5rem;
}

.about-card h3 { margin-bottom: 12px; color: #0a1f44; font-size: 1.1rem; }
.about-card p  { color: #718096; font-size: 0.92rem; }

/* ============================================================
   PÁGINA CONTACTO (Nosotros.html)
   ============================================================ */
.contact-container {
  padding: 80px 8%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.info-header h2 { font-size: 2rem; color: #1a202c; margin-bottom: 10px; }
.info-header p  { color: #718096; margin-bottom: 40px; }

.contact-item { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }

.icon-box {
  width: 50px;
  height: 50px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a1f44;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.item-text h4 { color: #1a202c; font-size: 0.95rem; margin-bottom: 2px; }
.item-text p  { color: #718096; font-size: 0.9rem; }

.form-card {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a202c;
  font-size: 0.88rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus { border-color: #ff7a00; }

.btn-submit {
  width: 100%;
  background: #ff7a00;
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
}

.btn-submit:hover { background: #e56b00; transform: translateY(-1px); }

/* ============================================================
   PÁGINAS SIMPLES (clientes, bombas, tanque, instalacion)
   ============================================================ */
.simple-section {
  padding: 50px 8%;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.simple-section img {
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .content-grid       { grid-template-columns: 1fr; }
  .contact-container  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar {
    height: auto;
    padding: 0.75rem 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-links { justify-content: center; flex-wrap: wrap; }
  .btn-contacto { text-align: center; justify-content: center; }
  .dropdown-content {
    position: static;
    box-shadow: none;
    min-width: auto;
    width: 100%;
    margin-top: 6px;
    border-radius: 10px;
  }
  .banner-principal { min-height: 340px; margin: 12px; }
  .contenido h1 { font-size: 2rem; }
  .arrow { display: none; }
  .carousel { grid-template-columns: 1fr; }
  .cta { margin: 24px 12px 40px; }
  .container { padding: 40px 5%; }
  .about-section { padding: 50px 5%; }
  .contact-container { padding: 50px 5%; gap: 36px; }
}

@media (max-width: 480px) {
  .page-banner { padding: 60px 16px; }
  .servicios { padding: 24px 12px; }
  .form-card { padding: 28px 20px; }
}
