:root {
  --navy: #14164a;
  --navy-2: #1d2a7a;
  --azul: #1463d8;
  --celeste: #2bb6f2;
  --verde: #5cb550;
  --verde-2: #4aa33f;
  --texto: #18203a;
  --suave: #5d6782;
  --fondo: #ffffff;
  --fondo-alt: #f1f6fd;
  --borde: #e2e9f5;
  --vidrio: rgba(255, 255, 255, 0.14);
  --vidrio-borde: rgba(255, 255, 255, 0.32);
  --sombra: 0 20px 50px -20px rgba(20, 40, 110, 0.35);
  --radio: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--texto);
  background: var(--fondo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--azul); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

.contenedor { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy); color: #c9d2ff; font-size: 0.86rem; }
.topbar .contenedor { display: flex; gap: 28px; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg { width: 15px; height: 15px; color: var(--verde); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid rgba(20, 40, 110, 0.08);
}
.header .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.marca { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marca img { width: 50px; height: 50px; }
.marca b { font-size: 1.35rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.marca b i { font-style: normal; color: var(--verde); }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a { color: var(--navy); text-decoration: none; font-weight: 500; position: relative; }
.menu a:not(.boton)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--verde); transition: width .25s ease;
}
.menu a:not(.boton):hover::after { width: 100%; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.boton svg { width: 20px; height: 20px; }
.boton:hover { transform: translateY(-2px); }
.boton-verde { background: var(--verde); color: #fff; box-shadow: 0 12px 30px -10px rgba(92, 181, 80, 0.8); }
.boton-verde:hover { background: var(--verde-2); }
.boton-vidrio {
  color: #fff; background: var(--vidrio); border: 1px solid var(--vidrio-borde);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.boton-vidrio:hover { background: rgba(255, 255, 255, 0.24); }
.boton-azul { background: var(--azul); color: #fff; box-shadow: 0 12px 30px -12px rgba(20, 99, 216, 0.8); }
.menu .boton { padding: 11px 20px; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 30, 110, 0.92) 0%, rgba(16, 70, 190, 0.72) 42%, rgba(16, 90, 210, 0) 72%),
    url("img/repartidor.jpg") 72% 18% / cover no-repeat,
    var(--azul);
  padding: 110px 0 170px;
}
.hero-contenido { position: relative; z-index: 2; max-width: 600px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.hero .eyebrow {
  padding: 8px 16px; border-radius: 999px;
  background: var(--vidrio); border: 1px solid var(--vidrio-borde);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.eyebrow .punto { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px rgba(92, 181, 80, 0.3); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; margin: 22px 0 18px; }
.hero h1 em { font-style: normal; color: #8ee6ff; }
.hero p.bajada { font-size: 1.2rem; color: #dce6ff; margin: 0 0 34px; max-width: 500px; }
.hero-botones { display: flex; flex-wrap: wrap; gap: 14px; }

.chip-flotante {
  position: absolute; z-index: 2; right: 8%; top: 22%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.16); border: 1px solid var(--vidrio-borde);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.4);
  animation: flotar 6s ease-in-out infinite;
}
.chip-flotante .icono { width: 42px; height: 42px; border-radius: 12px; background: var(--verde); display: grid; place-items: center; }
.chip-flotante .icono svg { width: 22px; height: 22px; color: #fff; }
.chip-flotante b { display: block; font-size: 1rem; }
.chip-flotante small { color: #dce6ff; font-size: 0.82rem; }

.burbujas span {
  position: absolute; bottom: -40px; border-radius: 50%; z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.05) 60%);
  animation: subir linear infinite;
}
.burbujas span:nth-child(1) { left: 8%;  width: 18px; height: 18px; animation-duration: 11s; }
.burbujas span:nth-child(2) { left: 22%; width: 10px; height: 10px; animation-duration: 8s; animation-delay: 2s; }
.burbujas span:nth-child(3) { left: 38%; width: 26px; height: 26px; animation-duration: 14s; animation-delay: 1s; }
.burbujas span:nth-child(4) { left: 52%; width: 12px; height: 12px; animation-duration: 9s; animation-delay: 4s; }
.burbujas span:nth-child(5) { left: 30%; width: 8px;  height: 8px;  animation-duration: 7s; animation-delay: 5s; }

.ola { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; line-height: 0; }
.ola svg { width: 100%; height: 90px; }

@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes subir {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(-720px); opacity: 0; }
}

/* ---------- Franja de beneficios (vidrio sobre el hero) ---------- */
.beneficios { position: relative; z-index: 5; margin-top: -110px; }
.beneficios-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 26px; box-shadow: var(--sombra);
}
.beneficio { padding: 32px 28px; display: flex; gap: 16px; align-items: flex-start; }
.beneficio + .beneficio { border-left: 1px solid var(--borde); }
.beneficio .icono {
  flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, #e3f3ff, #d6f0d2); color: var(--azul);
}
.beneficio .icono svg { width: 26px; height: 26px; }
.beneficio h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: 4px; }
.beneficio p { margin: 0; font-size: 0.93rem; color: var(--suave); line-height: 1.45; }

/* ---------- Secciones ---------- */
section { padding: 110px 0; }
.titulo-seccion { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.etiqueta { display: inline-flex; align-items: center; gap: 10px; color: var(--azul); font-weight: 600; font-size: 0.92rem; }
.etiqueta::before, .titulo-seccion .etiqueta::after { content: ""; width: 26px; height: 2px; background: var(--verde); border-radius: 2px; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--navy); font-weight: 700; margin: 12px 0 16px; }
h2 em { font-style: normal; color: var(--azul); }
.lead { color: var(--suave); font-size: 1.08rem; margin: 0; }

/* ---------- Quiénes somos ---------- */
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.foto { position: relative; }
.foto > img { border-radius: 28px; box-shadow: var(--sombra); aspect-ratio: 4 / 4.3; object-fit: cover; width: 100%; }
.sello {
  position: absolute; left: -28px; bottom: 36px;
  display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 16px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--sombra);
}
.sello img { width: 54px; height: 54px; }
.sello b { display: block; color: var(--navy); font-size: 1.02rem; }
.sello small { color: var(--suave); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 32px 0 36px; }
.mini .icono { width: 44px; height: 44px; border-radius: 14px; background: var(--fondo-alt); color: var(--verde-2); display: grid; place-items: center; margin-bottom: 12px; }
.mini .icono svg { width: 22px; height: 22px; }
.mini h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 6px; }
.mini p { margin: 0; color: var(--suave); font-size: 0.95rem; }

/* ---------- Datos ---------- */
.datos { padding: 0 0 110px; }
.datos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dato { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 20px; border: 1px solid var(--borde); }
.dato .icono { color: var(--azul); }
.dato .icono svg { width: 34px; height: 34px; }
.dato b { display: block; font-size: 1.7rem; font-weight: 700; color: var(--azul); line-height: 1.1; }
.dato small { color: var(--suave); font-size: 0.9rem; }

/* ---------- Productos ---------- */
.productos { background: var(--fondo-alt); }
.productos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.producto { position: relative; padding-bottom: 40px; }
.producto-visual {
  position: relative; overflow: hidden; height: 300px; border-radius: 26px;
  display: grid; place-items: end center; padding-bottom: 54px;
  background: radial-gradient(circle at 50% 30%, #6fd3ff 0%, #1f86e8 55%, #1546b8 100%);
}
.producto-visual::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 70%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.35), transparent 65%);
}
.producto-visual svg { position: relative; filter: drop-shadow(0 18px 24px rgba(5, 20, 80, 0.45)); transition: transform .35s ease; }
.producto:hover .producto-visual svg { transform: translateY(-8px) rotate(-2deg); }
.producto-vidrio {
  position: absolute; left: 22px; right: 22px; bottom: 0;
  padding: 22px 24px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 40px -24px rgba(20, 40, 110, 0.45);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.producto-vidrio h3 { font-size: 1.25rem; color: var(--navy); }
.producto-vidrio p { margin: 2px 0 0; color: var(--suave); font-size: 0.92rem; }
.flecha {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--fondo-alt); color: var(--azul); transition: background .2s, color .2s;
}
.flecha svg { width: 18px; height: 18px; }
.producto:hover .flecha { background: var(--verde); color: #fff; }
.destacado { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 6px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: #fff; background: rgba(255, 255, 255, 0.2); border: 1px solid var(--vidrio-borde); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* ---------- Cómo pedir ---------- */
.pedir {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #10175a 0%, #1846b8 60%, #1c7fe0 100%);
}
.pedir::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43, 182, 242, 0.45), transparent 70%);
}
.pedir .titulo-seccion h2, .zona h2 { color: #fff; }
.pedir .lead, .zona .lead { color: #c8d5ff; }
.pedir .etiqueta, .zona .etiqueta { color: #8ee6ff; }
.pasos { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.paso {
  padding: 34px 30px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform .25s ease, background .25s ease;
}
.paso:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.13); }
.paso .num { font-size: 0.85rem; font-weight: 600; color: #8ee6ff; letter-spacing: 0.1em; }
.paso .icono { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin: 18px 0 20px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); }
.paso .icono svg { width: 28px; height: 28px; }
.paso h3 { font-size: 1.3rem; margin-bottom: 8px; }
.paso p { margin: 0; color: #c8d5ff; }

/* ---------- Zona ---------- */
.zona {
  position: relative; color: #fff;
  background: linear-gradient(90deg, rgba(8, 40, 70, 0.15), rgba(8, 40, 70, 0.55)), url("img/bidon-agua.jpg") 100% 40% / 135% auto no-repeat, #0b3a5c;
}
.zona-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.zona-panel {
  grid-column: 2; padding: 44px; border-radius: 28px;
  background: rgba(10, 30, 70, 0.38); border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.zona-panel h2 { margin-top: 10px; }
.localidades { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; }
.localidades span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); font-weight: 500;
}
.localidades span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); }
.localidades span.base { background: var(--verde); border-color: var(--verde); }
.localidades span.base::before { background: #fff; }

/* ---------- CTA ---------- */
.cta { padding: 90px 0; }
.cta-caja {
  position: relative; overflow: hidden; border-radius: 32px; padding: 60px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center;
  background: linear-gradient(120deg, #1238a8, #1c7fe0);
  color: #fff; box-shadow: var(--sombra);
}
.cta-caja::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 88% 20%, rgba(43, 182, 242, 0.55), transparent 40%),
    radial-gradient(circle at 70% 110%, rgba(92, 181, 80, 0.45), transparent 45%);
}
.cta-caja > * { position: relative; }
.cta-caja h2 { color: #fff; margin-top: 0; }
.cta-caja p { color: #dce6ff; margin: 0; font-size: 1.08rem; }
.cta-caja .boton { justify-self: end; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #b8c0ea; padding: 70px 0 30px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
footer .marca b { color: #fff; }
footer h4 { color: #fff; margin: 0 0 16px; font-size: 1rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer a { color: #b8c0ea; text-decoration: none; }
footer a:hover { color: #fff; }
footer .legal-linea { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; font-size: 0.86rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.7);
  transition: transform .2s ease;
}
.wa-flotante:hover { transform: scale(1.08); }
.wa-flotante svg { width: 30px; height: 30px; }

/* ---------- Animación de entrada ---------- */
.js .revelar { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .revelar.visible { opacity: 1; transform: none; }

/* ---------- Páginas legales ---------- */
.legal-hero { background: linear-gradient(135deg, #10175a, #1846b8 70%, #1c7fe0); color: #fff; padding: 70px 0 60px; }
.legal-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal-hero p { color: #c8d5ff; margin: 10px 0 0; }
.legal { max-width: 800px; padding: 56px 20px 90px; }
.legal h2 { font-size: 1.35rem; margin-top: 38px; margin-bottom: 10px; }
.legal p, .legal li { color: #3a4560; }
.legal li { margin-bottom: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .beneficios-grid { grid-template-columns: 1fr 1fr; }
  .beneficio:nth-child(3) { border-left: 0; }
  .beneficio:nth-child(n+3) { border-top: 1px solid var(--borde); }
  .nosotros-grid, .zona-grid, .cta-caja { grid-template-columns: 1fr; }
  .zona-panel { grid-column: 1; }
  .datos-grid { grid-template-columns: 1fr 1fr; }
  .productos-grid, .pasos { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .cta-caja .boton { justify-self: start; }
  .chip-flotante { display: none; }
  .sello { left: 16px; }
}

@media (max-width: 980px) {
  .zona { background: linear-gradient(180deg, rgba(8, 40, 70, 0.2), rgba(8, 40, 70, 0.6)), url("img/bidon-agua.jpg") center / cover no-repeat, #0b3a5c; }
}

@media (max-width: 720px) {
  .topbar .ocultar-movil, .menu a:not(.boton) { display: none; }
  .header .contenedor { height: 66px; }
  .marca img { width: 42px; height: 42px; }
  .hero {
    padding: 70px 0 150px;
    background:
      linear-gradient(180deg, rgba(12, 30, 110, 0.92) 0%, rgba(16, 70, 190, 0.78) 60%, rgba(16, 70, 190, 0.5) 100%),
      url("img/repartidor.jpg") 62% center / cover no-repeat,
      var(--azul);
  }
  section { padding: 80px 0; }
  .beneficios-grid { grid-template-columns: 1fr; }
  .beneficio + .beneficio { border-left: 0; border-top: 1px solid var(--borde); }
  .mini-grid { grid-template-columns: 1fr; }
  .datos-grid { grid-template-columns: 1fr; }
  .zona-panel, .cta-caja { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .revelar { opacity: 1; transform: none; }
}
