/* ════════════════════════════════════════════════════════════════
   Bio Aguas Caudal — Stylesheet V5
   Paleta extraída de los posters oficiales de la marca
   ════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  --navy:       #0b2045;   /* fondo oscuro hero/footer */
  --navy-mid:   #0d3066;   /* secciones intermedias oscuras */
  --blue:       #1565c0;   /* azul primario de marca */
  --blue-light: #1976d2;   /* hover states */
  --sky:        #29b6f6;   /* azul agua brillante */
  --sky-pale:   #e3f2fd;   /* fondos muy claros */
  --sky-soft:   #f0f7ff;   /* alternancia de secciones */
  --green:      #43a047;   /* verde natural — hoja */
  --green-dark: #2e7d32;   /* verde oscuro — "BIO" */
  --green-ring: #a5d6a7;   /* borde círculo verde */
  --white:      #ffffff;
  --text:       #1a2744;   /* texto sobre fondo blanco */
  --text-muted: #4a6080;
  --text-light: #c8daf0;   /* texto sobre fondo oscuro */
  --border:     #dce8f5;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(13,32,69,.10);
  --shadow-md:  0 8px 40px rgba(13,32,69,.15);
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Tipografía base ─────────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.1rem; }
p  { color: var(--text-muted); line-height: 1.7; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Eyebrow labels ──────────────────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.section-eyebrow.white { color: var(--sky); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { max-width: 540px; margin: 12px auto 0; }
.section-header.light h2 { color: var(--white); }

/* ── NAVBAR ──────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.nav-logo { display: flex; align-items: center; gap: 10px; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 1px;
}
.logo-bio    { font-size: .6rem; font-weight: 700; color: var(--green); letter-spacing: 3px; text-transform: uppercase; }
.logo-aguas  { font-size: .65rem; font-weight: 500; color: var(--sky); letter-spacing: 2px; text-transform: uppercase; }
.logo-caudal { font-size: 1.15rem; font-weight: 800; color: var(--white); letter-spacing: .5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color .2s;
}
.nav-link:hover { color: var(--sky); }
.nav-link.nav-cta {
  background: var(--green);
  color: var(--white);
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 600;
  transition: background .2s, transform .15s;
}
.nav-link.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 60%, #1a3a6e 0%, var(--navy) 60%),
              radial-gradient(ellipse at 80% 20%, #0d47a1 0%, transparent 60%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 80%, rgba(41,182,246,.18) 0%, transparent 50%),
    radial-gradient(circle at 20% 30%, rgba(67,160,71,.10) 0%, transparent 40%);
}

/* Burbujas animadas */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(41,182,246,.08);
  border: 1px solid rgba(41,182,246,.15);
  animation: floatUp linear infinite;
}
.b1 { width:180px; height:180px; left:8%;  bottom:-100px; animation-duration:14s; animation-delay:0s; }
.b2 { width:120px; height:120px; left:55%; bottom:-80px;  animation-duration:18s; animation-delay:4s; }
.b3 { width:80px;  height:80px;  left:80%; bottom:-60px;  animation-duration:12s; animation-delay:2s; }
.b4 { width:220px; height:220px; left:35%; bottom:-120px; animation-duration:20s; animation-delay:7s; }
@keyframes floatUp {
  0%   { transform: translateY(0) scale(1);    opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: .5; }
  100% { transform: translateY(-110vh) scale(.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .bubble { animation: none; } }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 120px 32px 100px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 10px;
}
.hero-script {
  display: block;
  font-family: 'Dancing Script', cursive;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--sky);
  line-height: 1.3;
}
.hero-desc {
  color: var(--text-light);
  font-size: 1rem;
  max-width: 480px;
  margin: 20px 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Botones globales */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(21,101,192,.4);
}
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(21,101,192,.5); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  color: var(--white);
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  border: 1.5px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s, transform .15s;
}
.btn-whatsapp:hover { background: #25d366; border-color: #25d366; transform: translateY(-2px); }

.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 80px; }

/* ── VALORES ─────────────────────────────────────────────────────── */
.section-valores {
  padding: 64px 0;
  background: var(--white);
}
.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.valor-card {
  background: var(--sky-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.valor-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.valor-icon {
  width: 60px; height: 60px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: var(--shadow);
  color: var(--blue);
}
.valor-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.valor-card p  { font-size: .875rem; }

/* ── NOSOTROS ────────────────────────────────────────────────────── */
.section-nosotros {
  padding: 80px 0;
  background: var(--sky-soft);
}
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.nosotros-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.water-circle {
  width: 300px; height: 300px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.water-circle svg { width: 100%; height: 100%; }
.nosotros-badge {
  position: absolute;
  bottom: 20px; right: 20px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.badge-num { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.badge-text { display: block; font-size: .72rem; font-weight: 600; line-height: 1.3; }

.nosotros-text h2 em { font-style: normal; font-family: 'Dancing Script', cursive; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--blue); }
.nosotros-text h2 { margin-bottom: 20px; color: var(--navy); }
.nosotros-text p  { margin-bottom: 16px; }
.nosotros-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1.5px solid var(--border);
}
.stat strong { display: block; font-size: 1.2rem; font-weight: 800; color: var(--blue); }
.stat span   { font-size: .78rem; color: var(--text-muted); }
.stat-sep    { width: 1px; height: 40px; background: var(--border); }

/* ── PRODUCTOS ───────────────────────────────────────────────────── */
.section-productos { padding: 80px 0; background: var(--white); }
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.producto-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.producto-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--sky); }
.producto-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.producto-icon.blue  { background: rgba(21,101,192,.1); color: var(--blue); }
.producto-icon.sky   { background: rgba(41,182,246,.12); color: #0288d1; }
.producto-icon.green { background: rgba(67,160,71,.12); color: var(--green); }
.producto-card h3 { color: var(--navy); margin-bottom: 10px; }
.producto-tag {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  margin-top: 16px;
}

/* ── POR QUÉ ─────────────────────────────────────────────────────── */
.section-porque {
  padding: 80px 0 0;
  background: var(--navy-mid);
  position: relative;
}
.section-porque h2 { color: var(--white); }
.porque-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 72px;
}
.porque-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.porque-icon-wrap { flex-shrink: 0; }
.porq-circle {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.06);
}
.blue-ring  { border: 2px solid rgba(21,101,192,.5); }
.green-ring { border: 2px solid rgba(67,160,71,.5); }
.sky-ring   { border: 2px solid rgba(2,136,209,.5); }
.porque-item h3 { color: var(--white); font-size: 1rem; margin-bottom: 6px; }
.porque-item p  { color: var(--text-light); font-size: .9rem; }

.porque-wave-bottom { line-height: 0; }
.porque-wave-bottom svg { width: 100%; height: 60px; }

/* ── CONTACTO ────────────────────────────────────────────────────── */
.section-contacto { padding: 80px 0; background: var(--sky-soft); }
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
.contacto-info h2 { color: var(--navy); margin-bottom: 16px; }
.contacto-datos { display: flex; flex-direction: column; gap: 14px; margin: 28px 0; }
.contacto-dato {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.btn-whatsapp-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 20px rgba(37,211,102,.3);
}
.btn-whatsapp-big:hover { background: #128c7e; transform: translateY(-2px); }

/* Form */
.contacto-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; flex-direction: column; gap: 20px; }
.form-row.two-col { flex-direction: row; gap: 16px; }
.form-row.two-col .form-group { flex: 1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--navy); letter-spacing: .3px; text-transform: uppercase; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  color: var(--text);
  background: var(--sky-soft);
  outline: none;
  transition: border-color .2s, background .2s;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); background: var(--white); }
.btn-submit {
  background: var(--blue);
  color: var(--white);
  padding: 14px;
  border: none;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-submit:hover { background: var(--navy-mid); transform: translateY(-1px); }

.form-success {
  text-align: center;
  padding: 32px 16px;
  border: 1.5px solid #c8e6c9;
  background: #f1f8e9;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.form-success h3 { color: var(--green-dark); margin: 12px 0 8px; }
.form-success p  { color: #4a7c59; font-size: .9rem; }
.form-error {
  padding: 12px 16px;
  background: #ffebee;
  border: 1.5px solid #ffcdd2;
  color: #c62828;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  margin-bottom: 16px;
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
.footer { background: var(--navy); color: var(--white); }
.footer-wave { line-height: 0; }
.footer-wave svg { width: 100%; height: 60px; }
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
  margin-bottom: 12px;
}
.footer-logo .logo-caudal { font-size: 1.4rem; }
.footer-slogan { font-size: .82rem; color: var(--sky); font-family: 'Dancing Script', cursive; font-size: 1rem; }
.footer-brand p { font-size: .85rem; color: var(--text-light); margin-top: 8px; }
.footer-links h4,
.footer-contact h4 { font-size: .78rem; letter-spacing: 2px; text-transform: uppercase; color: var(--sky); margin-bottom: 16px; }
.footer-links a,
.footer-contact a,
.footer-contact p { display: block; font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 8px; transition: color .2s; }
.footer-links a:hover,
.footer-contact a:hover { color: var(--white); }
.footer-wa { color: #25d366 !important; font-weight: 600; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ── WhatsApp float ──────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: background .2s, transform .2s;
}
.wa-float:hover { background: #128c7e; transform: scale(1.1); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nosotros-grid   { grid-template-columns: 1fr; }
  .nosotros-visual { order: -1; }
  .contacto-grid   { grid-template-columns: 1fr; }
  .footer-inner    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-link.nav-cta { margin-top: 8px; text-align: center; border: none; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .form-row.two-col { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .nosotros-stats { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stat-sep { width: 40px; height: 1px; }
}
