/* ══════════════════════════════════════════════
   AguaFix Pro — Estilos principales
   Paleta: azul oscuro + aqua + rust/naranja
   Tipografía: Syne (display) + DM Sans (body)
══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --bg:        #0a0f1e;
  --bg2:       #0f1628;
  --bg3:       #131c33;
  --surface:   #19233d;
  --border:    #1e2d4a;

  --aqua:      #00c8e0;
  --aqua-dim:  #007f8f;
  --rust:      #e85d26;
  --rust-dim:  #a33e18;
  --yellow:    #f5c842;

  --text:      #e8edf8;
  --muted:     #7a8aaa;
  --light:     #b0bdd4;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 8px 40px rgba(0,0,0,.45);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── Utilidades ── */
.accent  { color: var(--aqua); }
.rust-t  { color: var(--rust); }


/* ══════════════════════════════
   NAV
══════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.5rem;
  background: rgba(10,15,30,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
}
.logo span { color: var(--aqua); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--rust);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem 1.1rem;
  border-radius: 50px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--rust-dim); }
.nav-cta.secondary { background: var(--surface); border: 1px solid var(--border); }


/* ══════════════════════════════
   BOTONES GLOBALES
══════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--rust);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.8rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--rust-dim); transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: transparent;
  color: var(--aqua);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: .85rem 1.8rem;
  border-radius: 50px;
  border: 2px solid var(--aqua);
  cursor: pointer;
  transition: background .2s, color .2s, transform .15s;
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--aqua);
  color: var(--bg);
  transform: translateY(-2px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  padding: .85rem 1.8rem;
  border-radius: 50px;
  transition: opacity .2s;
}


/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  gap: 1.5rem;
}

/* Blobs decorativos */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  pointer-events: none;
}
.blob-1 {
  width: 500px; height: 500px;
  background: var(--aqua);
  top: -120px; left: -100px;
}

.blob-2 {
  width: 400px; height: 400px;
  background: var(--rust);
  bottom: -80px; right: -80px;
}
.blob-3 {
  width: 300px; height: 300px;
  background: var(--aqua-dim);
  top: 40%; left: 50%;
  transform: translate(-50%,-50%);
}

.blob {
  will-change: transform, opacity;
}


/* Badge "disponibles ahora" */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0,200,224,.1);
  border: 1px solid rgba(0,200,224,.3);
  color: var(--aqua);
  font-size: .85rem;
  font-weight: 500;
  padding: .4rem 1rem;
  border-radius: 50px;
}

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4cff91;
  animation: pulse 1.6s infinite;
  will-change: transform, opacity;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

/* Heading hero */
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 800px;
}

.hero-sub {
  max-width: 600px;
  color: var(--light);
  font-size: clamp(.95rem, 2.2vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: .5rem;
}


/* ══════════════════════════════
   TRUST STRIP
══════════════════════════════ */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  color: var(--light);
}
.trust-icon { font-size: 1.1rem; }


/* ══════════════════════════════
   SECCIONES GENÉRICAS
══════════════════════════════ */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.section-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: .6rem;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  max-width: 700px;
}

.section-subtitle {
  color: var(--muted);
  margin-top: 1rem;
}


/* ══════════════════════════════
   SERVICIOS GRID
══════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color .2s, transform .2s;
}
.service-card:hover {
  border-color: var(--aqua-dim);
  transform: translateY(-3px);
}

.service-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: .8rem;
}

.service-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.service-card p {
  color: var(--light);
  font-size: .93rem;
  line-height: 1.6;
}


/* ══════════════════════════════
   BANDA 24/7
══════════════════════════════ */
.band {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 4rem 2rem;
  max-width: 100%;
}

/* Usar un wrapper interior para centrar */
.band > * { flex: 1 1 300px; }

.band-left h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: 500px;
}
.band-left h2 em {
  color: var(--aqua);
  font-style: normal;
}
.band-left p {
  color: var(--light);
  margin-top: .8rem;
  max-width: 460px;
  font-size: .97rem;
}

.band-cta {
  margin-top: 2rem;
}

/* Wrapper centrado de la banda */
@media (min-width: 768px) {
  .band {
    padding: 4rem 8%;
  }
}

.band-right {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--aqua);
  line-height: 1;
  min-width: 90px;
}
.stat-num span {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--aqua-dim);
}

.stat-label {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
  contain-intrinsic-size: auto 100px;
}


/* ══════════════════════════════
   COBERTURA
══════════════════════════════ */
.coverage-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.8rem;
}

.city-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--light);
  font-size: .85rem;
  padding: .4rem .9rem;
  border-radius: 50px;
  transition: border-color .2s, color .2s;
}
.city-tag:hover { border-color: var(--aqua-dim); color: var(--aqua); }

.city-tag.highlight {
  background: rgba(0,200,224,.08);
  border-color: rgba(0,200,224,.35);
  color: var(--aqua);
  font-weight: 600;
}


/* ══════════════════════════════
   PASOS
══════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.5rem;
}

.step-num {
  position: absolute;
  top: -16px;
  left: 1.5rem;
  width: 32px; height: 32px;
  background: var(--rust);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: .85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.step p { color: var(--light); font-size: .9rem; }


/* ══════════════════════════════
   TESTIMONIOS
══════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.stars { color: var(--yellow); font-size: 1rem; letter-spacing: .1em; }

.testimonial blockquote {
  color: var(--light);
  font-size: .93rem;
  line-height: 1.65;
  font-style: normal;
  flex: 1;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .4rem;
}

.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--aqua-dim);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reviewer-info strong { font-size: .9rem; display: block; }
.reviewer-info small  { color: var(--muted); font-size: .8rem; }


/* ══════════════════════════════
   FAQ
══════════════════════════════ */
.faq {
  max-width: 720px;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  content-visibility: auto;
  contain-intrinsic-size: 1px 400px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: .97rem;
  font-weight: 500;
  text-align: left;
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color .2s;
}
.faq-q:hover { color: var(--aqua); }

.faq-icon {
  font-size: 1.3rem;
  line-height: 1;
  transition: transform .3s;
  flex-shrink: 0;
  color: var(--aqua);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 1.3rem;
}
.faq-a.open {
  max-height: 300px;
  padding: 0 1.3rem 1.2rem;
}
.faq-a p { color: var(--light); font-size: .93rem; line-height: 1.65; }


/* ══════════════════════════════
   BANNER EMERGENCIA
══════════════════════════════ */
.emergency {
  background: linear-gradient(135deg, #1a0d05 0%, #2a1208 50%, #0a0f1e 100%);
  border-top: 1px solid rgba(232,93,38,.3);
  border-bottom: 1px solid rgba(232,93,38,.3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3.5rem 2rem;
}
@media (min-width: 768px) { .emergency { padding: 3.5rem 8%; } }

.emergency h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
}
.emergency p {
  color: var(--light);
  margin-top: .6rem;
  max-width: 520px;
  font-size: .95rem;
}

.emergency-phones {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.phone-big {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--rust);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  padding: 1rem 2rem;
  border-radius: 50px;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.phone-big:hover { background: var(--rust-dim); transform: scale(1.03); }
.phone-big.secondary { background: var(--surface); border: 1px solid var(--border); }


/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}

footer .logo span {
  color: var(--aqua);
}

footer p { color: var(--muted); font-size: .85rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--aqua);
  font-size: .88rem;
  font-weight: 500;
  transition: opacity .2s;
}
.footer-links a:hover { opacity: .7; }


/* ══════════════════════════════
   BOTÓN FLOTANTE (solo móvil)
══════════════════════════════ */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: var(--rust);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(232,93,38,.5);
  white-space: nowrap;
  transition: background .2s;
}
.floating-cta:hover { background: var(--rust-dim); }

@media (max-width: 640px) {
  .floating-cta { display: inline-flex; align-items: center; gap: .4rem; }
}


/* ══════════════════════════════
   RESPONSIVE GENERAL
══════════════════════════════ */
@media (max-width: 640px) {
  nav {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .nav-cta {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem;
    padding: 0.5rem;
  }
  .hero { min-height: auto; padding: 3.5rem 1.2rem 4.5rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
  }
  .hero-actions a {
    width: 100%;
    justify-content: center;
  }
  .band { padding: 3rem 1.2rem; text-align: center; }
  .emergency { padding: 2.5rem 1.2rem; text-align: center; }
  .section { padding: 3.5rem 1.2rem; }
  .services-grid,
  .testimonials-grid,
  .steps { grid-template-columns: 1fr; }
  .phone-big { font-size: 1.1rem; padding: 1rem; width: 100%; justify-content: center; }
  .stat-row { justify-content: center; }
}

/* ── Scroll Reveal Optimizado ── */
.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal-item.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Retrasos escalonados para rendimiento */
.reveal-item:nth-child(2) { transition-delay: 0.1s; }
.reveal-item:nth-child(3) { transition-delay: 0.2s; }