/* ==========================================================
   Speedy Aqua — Landing page
   Colores principales: cámbialos aquí y se aplican a todo el sitio
   ========================================================== */
:root {
  --blue: #0a7cc4;
  --blue-dark: #075d94;
  --aqua: #2bb3f3;
  --navy: #0b2a4a;
  --ink: #12202f;
  --muted: #5b6b7c;
  --line: #e4ebf2;
  --tint: #f3f8fc;
  --white: #ffffff;
  --wa: #25d366;
  --wa-dark: #1ebe5b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 42, 74, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Tipografía ---------- */
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 20px 0 28px; max-width: 34rem; }
.muted { color: var(--muted); }
.accent { color: var(--blue); }
.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 12px;
}
.eyebrow--light { color: var(--aqua); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(10, 124, 196, .25); }
.btn--primary:hover { background: var(--blue-dark); }
.btn--wa { background: var(--wa); color: var(--white); box-shadow: 0 8px 20px rgba(37, 211, 102, .25); }
.btn--wa:hover { background: var(--wa-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.wa-icon { width: 20px; height: 20px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; color: var(--navy); font-weight: 500; }
.logo strong { color: var(--blue); font-weight: 800; }
.logo__icon { width: 30px; height: 30px; color: var(--blue); }
.logo--light { color: var(--white); }
.logo--light strong, .logo--light .logo__icon { color: var(--aqua); }
.logo__img { display: block; height: 44px; width: auto; }
.logo--footer { background: var(--white); padding: 8px 14px; border-radius: 10px; }
.logo--footer .logo__img { height: 40px; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-weight: 500; color: var(--muted); transition: color .15s; white-space: nowrap; }
@media (max-width: 1000px) { .nav { gap: 18px; font-size: .95rem; } }
.nav a:hover { color: var(--blue); }

.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 88px; background: linear-gradient(180deg, var(--tint) 0%, var(--white) 100%); }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; color: var(--muted); font-weight: 500; font-size: .95rem; }
.hero__media { position: relative; }

/* Contenedor de foto: al poner una foto real usa <img> dentro de .photo */
.photo {
  border-radius: 24px; overflow: hidden;
  background: linear-gradient(135deg, #dff2fd 0%, #bfe6fb 100%);
  display: grid; place-items: center;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--hero { aspect-ratio: 5 / 4; box-shadow: var(--shadow); }
.photo--hero img { object-position: 38% center; }
.truck { width: 100%; }

.hero__badge {
  position: absolute; left: -20px; bottom: -20px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 20px; font-size: .95rem; color: var(--navy);
}
.hero__badge strong { color: var(--blue); }
.hero__badge span { display: block; color: var(--muted); font-size: .85rem; }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: var(--white); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section__head p { margin-top: 12px; }

.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.prose p { color: var(--muted); margin-bottom: 16px; font-size: 1.05rem; }
.prose strong { color: var(--ink); }

.sectors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 48px; }
.sector {
  display: flex; align-items: center; gap: 10px; line-height: 1.3;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 600; font-size: .98rem;
}
.sector__icon { font-size: 1.5rem; }
.sector__svg { width: 30px; height: 30px; flex: none; }

.water-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.water-type {
  padding: 28px; border-radius: var(--radius);
  background: var(--tint); border-left: 4px solid var(--blue);
}
.water-type--treated { border-left-color: #1aa260; }
.water-type__icon { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.water-type p { color: var(--muted); margin-top: 6px; }

/* ---------- Tarjetas de capacidad ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 24px;
  padding: 36px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card--featured { border: 2px solid var(--blue); }
.card__tag { font-size: .85rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .06em; }
.card__liters { font-size: 3.2rem; font-weight: 800; color: var(--navy); line-height: 1; margin: 16px 0 24px; letter-spacing: -.02em; }
.card__liters span { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.card__list { list-style: none; margin-bottom: 28px; flex: 1; }
.card__list li { padding: 10px 0 10px 28px; border-top: 1px solid var(--line); position: relative; color: var(--muted); }
.card__list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }

/* ---------- Pasos ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 32px; border-radius: var(--radius); background: var(--tint); }
.step__num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: var(--white); font-weight: 800; margin-bottom: 18px;
}
.step p { color: var(--muted); margin-top: 6px; }

/* ---------- Formulario ---------- */
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.form-intro p { color: #b8c7d8; margin: 16px 0 28px; font-size: 1.05rem; }
.contact-list { list-style: none; margin-top: 36px; border-top: 1px solid rgba(255,255,255,.12); }
.contact-list li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); display: flex; gap: 16px; }
.contact-list span { color: #8aa0b8; min-width: 90px; font-size: .92rem; }
.contact-list a:hover { color: var(--aqua); }
.contact-list li:has(.pay) { align-items: center; }
.pay { display: flex; flex-wrap: wrap; gap: 10px; }
.pay__item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-weight: 600; font-size: .95rem;
}
.pay__icon { width: 26px; height: 26px; flex: none; }

.form { background: var(--white); color: var(--ink); border-radius: 24px; padding: 36px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.optional { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 124, 196, .12);
}
.field .invalid { border-color: #e5484d; }
.form__note { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 12px; }
.form__note.error { color: #e5484d; }

/* ---------- Footer ---------- */
.footer { background: #071d33; color: #8aa0b8; padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer__copy { margin-left: auto; font-size: .88rem; }

/* ---------- Galería ---------- */
.gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; border: 0; padding: 0; cursor: zoom-in;
  background: var(--line); box-shadow: var(--shadow);
}
.gallery__item--big { grid-column: span 2; aspect-ratio: auto; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.gallery__item--pair {
  display: grid; grid-template-columns: 1.7fr 1fr; grid-template-rows: minmax(0, 1fr);
  gap: 4px; aspect-ratio: 8 / 3;
}
.gallery__item:hover img,.gallery__item:focus-visible img { transform: scale(1.04); }
.gallery__item:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 16px 12px; text-align: left;
  font: 600 .95rem/1.3 "Inter", sans-serif; color: var(--white);
  background: linear-gradient(transparent, rgba(7, 29, 51, .8));
}

.lightbox {
  border: 0; padding: 0; background: transparent;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
}
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox::backdrop { background: rgba(4, 16, 30, .92); }
.lightbox__fig { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 16px; min-width: 0; }
.lightbox__imgs { display: flex; gap: 12px; justify-content: center; align-items: center; min-width: 0; max-width: 100%; }
.lightbox__imgs img { min-width: 0; max-width: 100%; max-height: 80vh; border-radius: 12px; object-fit: contain; }
.lightbox__imgs--pair img:first-child { max-width: calc(64% - 6px); }
.lightbox__imgs--pair img:last-child { max-width: calc(36% - 6px); }
.lightbox__fig figcaption { color: var(--white); font-weight: 600; text-align: center; }
.lightbox__nav, .lightbox__close {
  border: 0; cursor: pointer; color: var(--white);
  background: rgba(255, 255, 255, .12); border-radius: 50%;
  width: 52px; height: 52px; font-size: 2rem; line-height: 1;
  display: grid; place-items: center; margin: 0 16px;
  transition: background .15s;
}
.lightbox__nav:hover, .lightbox__close:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { position: absolute; top: 16px; right: 0; width: 44px; height: 44px; }

/* ---------- Preguntas frecuentes ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: box-shadow .2s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px;
  font-weight: 700; font-size: 1.05rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--blue); font-weight: 800; font-size: 1.2rem;
}
.faq details[open] summary::after { content: "−"; }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: var(--radius); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Botón flotante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: var(--white); display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .4); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 960px) {
  .hero__inner, .two-col, .form-wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 520px; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .sector:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .header .btn--wa { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white);
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 16px 20px; border-top: 1px solid var(--line); }
  .cards, .steps { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 72px; }
  .hero__badge { left: 12px; bottom: -16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 24px; }
  .lightbox__nav--prev { left: 0; }
  .lightbox__nav--next { right: 0; }
  .card, .form { padding: 28px 22px; }
  .footer__copy { margin-left: 0; }
}

@media (max-width: 480px) {
  .sectors, .field-row, .water-types { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item--big { grid-column: auto; aspect-ratio: 4 / 3; }
  .lightbox__imgs--pair { flex-direction: column; }
  .lightbox__imgs--pair img { max-height: 38vh; }
  .lightbox__imgs--pair img:first-child, .lightbox__imgs--pair img:last-child { max-width: 100%; }
}
