/* Agua Estrada - catálogo web
   Identidad tomada del catálogo 2025: Open Sauce One, navy #000d3e, azul #1672b5, verde del logo #6ba52c. */

@font-face { font-family: "Open Sauce One"; src: url("/assets/fonts/OpenSauceOne-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Sauce One"; src: url("/assets/fonts/OpenSauceOne-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Open Sauce One"; src: url("/assets/fonts/OpenSauceOne-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Sauce One"; src: url("/assets/fonts/OpenSauceOne-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Open Sauce One"; src: url("/assets/fonts/OpenSauceOne-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --navy: #000d3e;
  --navy-2: #0a1a5c;
  --blue: #1672b5;
  --blue-deep: #0f5a92;
  --sky: #cfe6f6;
  --sky-2: #e9f4fb;
  --green: #6ba52c;
  --green-deep: #558a1f;
  --ink: #0f1626;
  --muted: #4d5a6e;
  --line: #d9e3ee;
  --bg: #f6f9fc;
  --white: #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px rgba(0, 13, 62, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 13, 62, 0.14);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Open Sauce One", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; color: var(--navy); text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.25; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2rem, 1200px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 4rem, 1200px); } }

.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.9em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--sm { padding: 0.7em 1.15em; font-size: 0.925rem; }
.btn--lg { padding: 1.05em 1.9em; font-size: 1.08rem; }
.btn--wa { background: var(--green); color: var(--white); box-shadow: 0 8px 22px rgba(107, 165, 44, 0.28); }
.btn--wa:hover { background: var(--green-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(107, 165, 44, 0.34); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(0, 13, 62, 0.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 1.5rem; }
.nav__logo img { width: 112px; height: auto; }
.nav__links { display: none; align-items: center; gap: 2rem; font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.nav__links a:not(.btn) { position: relative; padding: 0.25rem 0; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { display: none; }
.nav__cta-mobile { display: inline-flex; }
.nav__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy); cursor: pointer; border-radius: 10px; }
.nav__toggle .icon { width: 28px; height: 28px; }
.nav__toggle .icon--close { display: none; }
.nav__toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 899px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 1.25rem;
    padding: 1.5rem 1rem 2rem; background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 13, 62, 0.12);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
    font-size: 1.15rem;
  }
  .nav.is-open .nav__links { display: flex; transform: none; opacity: 1; pointer-events: auto; }
  .nav__links { display: flex; }
}
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__cta-mobile, .nav__toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--white) 0%, var(--sky-2) 100%);
}
.hero__grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding: 2.5rem 0 0; min-height: calc(100dvh - var(--nav-h));
  align-items: center;
}
.hero__copy { max-width: 620px; }
.hero__title { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.7rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.04; }
.hero__title .line { display: inline-block; }
.hero__sub { margin-top: 1.5rem; font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem); color: var(--muted); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.hero__visual {
  position: relative; width: 100%; max-width: 520px; margin-inline: auto;
  aspect-ratio: 4 / 4.7; border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-lg); isolation: isolate;
}
.hero__splash { position: absolute; inset: 0; }
.hero__splash img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.hero__bottle {
  position: absolute; left: 37%; bottom: 8%;
  width: 26%;
  filter: drop-shadow(0 30px 40px rgba(0, 40, 90, 0.35));
  will-change: transform;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; padding: 0; }
  .hero__visual { margin-right: 0; margin-block: 3rem; }
}

/* Estado inicial de la intro (se anima con GSAP; sin JS queda visible por el fallback en .no-js) */
.js .hero .line, .js .hero__visual { opacity: 0; }

/* ---------- Secciones ---------- */
.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-head p { margin-top: 0.85rem; color: var(--muted); font-size: 1.1rem; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; }
.section-head--row > div { max-width: 62ch; }
.footer__pdf { display: inline-flex; align-items: center; gap: 0.45em; font-weight: 600; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); border-bottom: 1px solid rgba(255, 255, 255, 0.25); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s; }
.footer__pdf:hover { color: var(--white); border-color: var(--white); }

/* ---------- Productos ---------- */
.products { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter {
  padding: 0.6em 1.1em; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--navy); font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.filter:hover { border-color: var(--blue); transform: translateY(-1px); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card.is-hidden { display: none; }
.card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem 1.35rem 1.4rem; flex: 1; }
.card__body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.card__cta {
  display: inline-flex; align-items: center; gap: 0.45em; margin-top: 0.35rem;
  font-weight: 700; color: var(--green-deep); font-size: 0.95rem;
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.card__cta:hover { color: var(--green); gap: 0.65em; }

.card--featured { background: linear-gradient(160deg, #0e4f88 0%, var(--blue) 55%, #4ea2de 100%); border: 0; color: var(--white); }
.card--featured h3, .card--featured .card__body p { color: var(--white); }
.card--featured .card__body p { color: rgba(255, 255, 255, 0.86); }
.card--featured .card__cta { color: var(--white); }
.card__media--bottle { position: relative; background: transparent; min-height: 260px; }
.card__media--bottle img { position: absolute; left: 50%; bottom: -10%; width: auto; height: 112%; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 20px 30px rgba(0, 20, 60, 0.35)); }
.card--featured:hover .card__media--bottle img { transform: translateX(-50%) translateY(-2%) scale(1.03); }
@media (min-width: 640px) {
  .card--featured { grid-column: span 2; flex-direction: row; }
  .card--featured .card__media { aspect-ratio: auto; width: 46%; min-height: 300px; }
  .card--featured .card__body { justify-content: center; padding: 2rem; }
  .card--featured h3 { font-size: 1.6rem; }
}

/* ---------- Por qué elegirnos ---------- */
.why { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--sky-2); }
.stats { display: grid; grid-template-columns: 1fr; gap: 1.5rem; padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid rgba(0, 13, 62, 0.12); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.stat { display: flex; flex-direction: column; gap: 0.35rem; }
.stat__num { font-size: clamp(2.6rem, 2rem + 2.5vw, 4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; color: var(--blue); }
.stat__label { color: var(--muted); font-size: 0.98rem; max-width: 30ch; }

.why__grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 900px) { .why__grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; } .why__copy { position: sticky; top: calc(var(--nav-h) + 2rem); } }
.why__copy p { margin-top: 1.25rem; color: var(--muted); font-size: 1.05rem; max-width: 48ch; }
.why__copy h2 { max-width: 16ch; }
.why__photo { margin: 2rem 0 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.why__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.facts { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.fact {
  display: flex; flex-direction: column; gap: 0.9rem; padding: 1.5rem;
  background: var(--white); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(0, 13, 62, 0.04);
}
.fact__icon { width: 34px; height: 34px; color: var(--blue); }
.fact h3 { font-size: 1.05rem; }
.fact p { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; }

/* ---------- Clientes ---------- */
.clients { padding: clamp(4rem, 8vw, 6rem) 0; background: var(--white); overflow: hidden; }
.marquee {
  display: grid; gap: 1.75rem; margin-top: 1rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee__track--reverse { animation-direction: reverse; animation-duration: 62s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__row { display: flex; align-items: center; gap: 3.5rem; padding-right: 3.5rem; }
.marquee__row img { height: 46px; width: auto; max-width: 170px; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .marquee__row { gap: 2.25rem; padding-right: 2.25rem; } .marquee__row img { height: 36px; } }

/* ---------- Contacto + footer ---------- */
.contact { background: var(--navy); color: var(--white); padding-top: clamp(4rem, 8vw, 7rem); }
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1.1fr 0.9fr; gap: 5rem; align-items: center; } }
.contact__copy h2 { color: var(--white); max-width: 14ch; }
.contact__copy p { margin: 1.25rem 0 2rem; color: rgba(255, 255, 255, 0.78); font-size: 1.1rem; max-width: 46ch; }
.contact__list { display: grid; gap: 0.5rem; }
.contact__list a, .contact__static {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.contact__list a:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(4px); }
.contact__list .icon { width: 26px; height: 26px; color: #8fd0ff; }
.contact__list a > span, .contact__static > span { display: flex; flex-direction: column; font-weight: 600; font-size: 1.05rem; }
.contact__list small { font-weight: 500; font-size: 0.78rem; color: rgba(255, 255, 255, 0.6); letter-spacing: 0.01em; }

.footer { margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 1.5rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer img { width: 104px; }
.footer p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- WhatsApp flotante ---------- */
.fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green); color: var(--white);
  box-shadow: 0 14px 30px rgba(107, 165, 44, 0.4);
  transform: scale(0); opacity: 0;
  transition: background-color 0.25s var(--ease);
}
.fab .icon { width: 32px; height: 32px; }
.fab:hover { background: var(--green-deep); }
.fab.is-visible { transform: scale(1); opacity: 1; }
.no-js .fab { transform: scale(1); opacity: 1; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .js .hero .line, .js .hero__visual { opacity: 1; }
  .fab { transition: none; }
}
