/* =========================================================
   ALTOQUE — styles.css
   Índice: tokens → reset → utilidades → tipografía → componentes
           → secciones → efectos → responsive → reduced-motion
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
@property --grad-angle {
  syntax: "<angle>";
  initial-value: 120deg;
  inherits: false;
}

:root {
  --ink: #0b1e3c;
  --ink-soft: #15305c;
  --paper: #f3f7fc;
  --paper-alt: #e6eefa;
  --blue: #061d42;
  --blue-light: #0f3a7a;
  --blue-pale: #e3eefc;
  --blue-deep: #020a1f;
  --red: #e31e24;
  --red-dark: #b3151a;
  --orange: #f0791f;
  --orange-light: #f9a341;
  --white: #ffffff;
  --cream: #f3ecda;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-soft: 0 20px 45px -25px rgba(11, 30, 60, 0.45);
  --shadow-card: 0 14px 34px -18px rgba(11, 30, 60, 0.35);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }
svg { display: block; }

/* skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 0.8em 1.4em;
  border-radius: 0 0 10px 0;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- 3. UTILIDADES ---------- */
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}
.section { padding-block: clamp(64px, 10vw, 128px); }
.section-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--orange);
  display: inline-block;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.7em;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 14px 28px -12px rgba(227, 30, 36, 0.55);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 34px -14px rgba(227, 30, 36, 0.6); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(11, 30, 60, 0.25);
}
.btn-outline:hover { border-color: var(--blue); background: var(--blue-pale); }
.btn-light {
  background: var(--white);
  color: var(--blue);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.btn-whatsapp {
  background: #21b25b;
  color: var(--white);
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -14px rgba(33, 178, 91, 0.55); }
.pill-tag {
  display: inline-flex;
  padding: 0.35em 0.9em;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--blue-pale);
  color: var(--blue);
}

/* ---------- 4. TIPOGRAFÍA ---------- */
h1, h2, h3, .font-display { font-family: var(--font-display); }
.h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.h2 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  opacity: 0.85;
}
.accent { color: var(--orange); font-style: italic; }

/* ---------- 5. COMPONENTES ---------- */

/* nav */
.nav-utility {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  padding-block: 7px;
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 101;
}
.nav-utility .wrap { display: flex; justify-content: space-between; align-items: center; }
.nav-utility a { opacity: 0.9; }
.nav-utility a:hover { opacity: 1; text-decoration: underline; }
.nav-utility__links { display: flex; gap: 18px; }

.nav {
  position: fixed;
  inset-inline: 0;
  top: 34px;
  z-index: 100;
  padding-block: 14px;
  background: var(--blue);
  box-shadow: 0 2px 0 rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.is-scrolled {
  box-shadow: 0 10px 30px -18px rgba(8, 20, 40, 0.6);
  padding-block: 10px;
}
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 6px 16px 6px 8px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
}
.nav__logo img { height: 34px; width: auto; }
.nav__logo span { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
}
.nav__links a { position: relative; padding-block: 4px; color: var(--white); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--orange-light);
  transition: right 0.3s var(--ease-out);
}
.nav__links a:hover::after { right: 0; }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__cta .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.4); }
.nav__cta .btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.14);
  align-items: center; justify-content: center;
}
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--white); position: relative; transition: 0.3s;
}
.nav__burger span::before { position: absolute; top: -6px; }
.nav__burger span::after { position: absolute; top: 6px; }

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--blue);
  color: var(--white);
  padding: 100px 32px 32px;
  flex-direction: column;
  gap: 24px;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a { font-family: var(--font-display); font-size: 1.6rem; }

/* cards genéricas */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* tilt wrapper */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform 0.4s var(--ease-out); }

/* marquee */
.marquee {
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
  padding-block: 16px;
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 28s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  white-space: nowrap;
  opacity: 0.92;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.marquee__track span::after { content: "✦"; color: var(--orange); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* stat chip */
.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stat b { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--blue); }
.stat span { font-size: 0.82rem; opacity: 0.7; }

/* ---------- 6. SECCIONES ---------- */

/* HERO */
.hero {
  position: relative;
  padding-top: clamp(140px, 17vw, 190px);
  padding-bottom: clamp(60px, 8vw, 96px);
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(255, 255, 255, 0.1), transparent 60%),
    linear-gradient(155deg, var(--blue-deep), var(--blue) 55%, var(--blue-light));
}
.hero__grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero .h1, .hero__lede { color: var(--cream); }
.hero__lede { opacity: 0.88; }
.hero .stat b { color: var(--cream); }
.hero .stat span { opacity: 0.75; }
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.45); }
.hero .btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 8px 16px 8px 8px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 22px;
}
.hero__badge img { height: 24px; width: auto; }
.hero__title { margin-bottom: 22px; }
.hero__lede { max-width: 46ch; margin-bottom: 34px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero__stats {
  display: flex;
  gap: clamp(24px, 4vw, 44px);
  flex-wrap: wrap;
}

.hero__visual { position: relative; aspect-ratio: 1/1.05; }
.hero__blob {
  position: absolute;
  inset: 4% 6%;
  border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%;
  background: linear-gradient(var(--grad-angle), var(--orange) 0%, var(--red) 55%, var(--orange-light) 100%);
  animation: morph 14s ease-in-out infinite, spin-angle 14s linear infinite;
  box-shadow: var(--shadow-soft);
}
@keyframes morph {
  0%, 100% { border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%; }
  33% { border-radius: 62% 38% 45% 55% / 40% 58% 42% 60%; }
  66% { border-radius: 50% 50% 38% 62% / 62% 44% 56% 38%; }
}
@keyframes spin-angle {
  from { --grad-angle: 120deg; }
  to { --grad-angle: 480deg; }
}
.hero__product {
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%) rotate(-4deg);
  width: 58%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -25px rgba(11, 30, 60, 0.5);
  background: var(--white);
  padding: 14px;
}
.hero__product img { border-radius: calc(var(--radius-lg) - 10px); }
.hero__float {
  position: absolute;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
}
.hero__float--a { top: 6%; left: -4%; }
.hero__float--b { bottom: 10%; right: -6%; }
.hero__float svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--blue); }

/* WHY US */
.why {
  background: var(--blue-pale);
  border-radius: var(--radius-lg);
  margin-inline: clamp(16px, 4vw, 48px);
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why__card {
  padding: 28px 24px;
  background: var(--white);
}
.why__icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.why__icon svg { width: 26px; height: 26px; }
.why__card h3 { margin-bottom: 10px; }
.why__card p { font-size: 0.92rem; opacity: 0.75; line-height: 1.55; }

/* PRODUCTOS */
.products__tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.tab-btn {
  padding: 0.75em 1.4em;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1.5px solid rgba(11, 30, 60, 0.14);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-out);
}
.tab-btn:hover { border-color: var(--blue); }
.tab-btn.is-active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.product-card__media {
  aspect-ratio: 4/3.2;
  background: linear-gradient(160deg, var(--paper-alt), var(--white));
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
}
.product-card__media img { max-height: 100%; object-fit: contain; }
.product-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.product-card__title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.product-card__desc { font-size: 0.88rem; opacity: 0.72; line-height: 1.5; flex: 1; }
.product-card__actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.product-card__actions .btn { padding: 0.6em 1.1em; font-size: 0.82rem; }
.product-card[hidden] { display: none; }
.product-card.is-placeholder .product-card__media {
  background: var(--blue-pale);
  color: var(--blue);
}
.product-card.is-placeholder .product-card__media svg { width: 42px; height: 42px; opacity: 0.6; }
.product-card.is-placeholder .product-card__desc { opacity: 0.6; }

/* TESTIMONIOS */
.testi {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  margin-inline: clamp(16px, 4vw, 48px);
  position: relative;
  overflow: hidden;
}
.testi::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 100% 0%, rgba(240, 121, 31, 0.18), transparent 60%);
}
.testi .section-head .lede { color: rgba(255,255,255,0.7); }
.testi .eyebrow { color: var(--orange-light); }
.testi__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.testi__track::-webkit-scrollbar { display: none; }
.testi__card {
  scroll-snap-align: start;
  flex: 0 0 min(380px, 82vw);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(6px);
}
.testi__quote { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; line-height: 1.55; }
.testi__who { display: flex; align-items: center; gap: 12px; }
.testi__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
  flex-shrink: 0;
}
.testi__who b { display: block; font-size: 0.92rem; }
.testi__who span { font-size: 0.78rem; opacity: 0.65; }
.testi__nav { display: flex; gap: 10px; margin-top: 24px; }
.testi__nav button {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s;
}
.testi__nav button:hover { background: rgba(255,255,255,0.22); }
.testi__note {
  font-size: 0.72rem;
  opacity: 0.5;
  margin-top: 18px;
}

/* JAVIER */
.javier {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.javier__art {
  position: relative;
  background: linear-gradient(155deg, var(--blue), var(--ink));
  border-radius: var(--radius-lg);
  aspect-ratio: 1/0.85;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
}
.javier__avatar {
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 14px rgba(255,255,255,0.08);
}
.javier__avatar svg { width: 55%; height: 55%; color: var(--blue); }
.javier__pulse {
  position: absolute;
  width: 46%; aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}
.javier__list { display: grid; gap: 14px; margin-block: 26px; }
.javier__list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.95rem;
}
.javier__list svg { width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }

/* Chat widget flotante */
.chat-launcher {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 200;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 34px -14px rgba(11,30,60,0.55);
  transition: transform 0.3s var(--ease-out);
}
.chat-launcher:hover { transform: scale(1.06); }
.chat-launcher svg { width: 28px; height: 28px; }
.chat-launcher__dot {
  position: absolute; top: 4px; right: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange);
  border: 2px solid var(--paper);
}

.chat-panel {
  position: fixed;
  right: clamp(12px, 3vw, 32px);
  bottom: clamp(90px, 12vw, 112px);
  z-index: 200;
  width: min(380px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 140px));
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.chat-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-panel__head {
  background: var(--blue);
  color: var(--white);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.chat-panel__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--white); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.chat-panel__avatar svg { width: 20px; height: 20px; }
.chat-panel__head h4 { font-size: 0.95rem; }
.chat-panel__head span { font-size: 0.74rem; opacity: 0.75; display: flex; align-items: center; gap: 6px; }
.chat-panel__head span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; }
.chat-panel__close { margin-left: auto; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.chat-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--paper-alt);
}
.chat-msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.5; }
.chat-msg.bot { background: var(--white); border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: var(--shadow-card); }
.chat-msg.user { background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg.typing { display: flex; gap: 4px; align-items: center; }
.chat-msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: 0.4; animation: blink 1.2s infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 0.9; } }
.chat-panel__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: var(--white);
  border-top: 1px solid rgba(11,30,60,0.08);
}
.chat-panel__form input {
  flex: 1;
  border: 1.5px solid rgba(11,30,60,0.15);
  border-radius: var(--radius-pill);
  padding: 0.7em 1.1em;
  font-size: 0.88rem;
}
.chat-panel__form input:focus { border-color: var(--blue); outline: none; }
.chat-panel__form button {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-panel__form button svg { width: 18px; height: 18px; }
.chat-panel__hint { font-size: 0.68rem; opacity: 0.55; text-align: center; padding: 6px 12px 10px; }

/* CALCULADORA */
.calc {
  background: var(--blue-pale);
  border-radius: var(--radius-lg);
  margin-inline: clamp(16px, 4vw, 48px);
  overflow: hidden;
}
.calc__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; }
.calc__side {
  background: linear-gradient(165deg, var(--blue), var(--ink));
  color: var(--cream);
  padding: clamp(32px, 4vw, 52px);
}
.calc__side .eyebrow { color: var(--orange-light); }
.calc__side p { opacity: 0.78; margin-top: 14px; line-height: 1.6; font-size: 0.94rem; }
.calc__steps { margin-top: 34px; display: grid; gap: 18px; }
.calc__step-mini {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 0.86rem; opacity: 0.85;
}
.calc__step-mini b {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; flex-shrink: 0;
}
.calc__main { padding: clamp(28px, 4vw, 52px); }
.calc__main h3 { margin-bottom: 6px; }
.calc__main .hint { font-size: 0.86rem; opacity: 0.7; margin-bottom: 18px; }

.delivery-map {
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--paper-alt);
}
.leaflet-container { font-family: var(--font-body); }
.leaflet-container img { max-width: none !important; }
.leaflet-popup-content { font-size: 0.86rem; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.82rem; font-weight: 600; }
.field input, .field select {
  border: 1.5px solid rgba(11,30,60,0.16);
  border-radius: var(--radius-sm);
  padding: 0.75em 0.9em;
  background: var(--white);
  font-size: 0.92rem;
}
.field input:focus, .field select:focus { border-color: var(--blue); outline: none; }
.field--full { grid-column: 1 / -1; }

.chip-select { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chip-select input { position: absolute; opacity: 0; pointer-events: none; }
.chip-select label {
  padding: 0.65em 1.2em;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1.5px solid rgba(11,30,60,0.16);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.chip-select input:checked + label { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* CONTACTO / FOOTER */
.contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.contact-strip__item {
  padding: 22px;
  display: flex; gap: 14px; align-items: flex-start;
}
.contact-strip__item svg { width: 24px; height: 24px; color: var(--blue); flex-shrink: 0; }
.contact-strip__item b { display: block; margin-bottom: 4px; }
.contact-strip__item span { font-size: 0.86rem; opacity: 0.68; }

/* UBICACIÓN / CÓMO LLEGAR */
.location { margin-top: 40px; }
.location__inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
  gap: 28px;
  align-items: stretch;
}
.location__side { display: flex; flex-direction: column; gap: 20px; }
.contact-strip--stack {
  grid-template-columns: 1fr;
  margin-top: 0;
  gap: 14px;
}
.location__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.location__actions .btn svg { margin-right: 2px; vertical-align: -3px; }
.location__map {
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--paper-alt);
}
.location__map iframe { display: block; width: 100%; height: 100%; min-height: 360px; }
@media (max-width: 860px) {
  .location__inner { grid-template-columns: 1fr; }
  .location__map { min-height: 280px; }
}

footer {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  padding-block: 64px 28px;
  margin-top: clamp(60px, 8vw, 100px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer__brand img { height: 32px; background: var(--white); border-radius: 8px; padding: 2px 6px; }
.footer__brand span { font-family: var(--font-display); font-weight: 600; color: var(--cream); font-size: 1.1rem; }
.footer__col h5 { color: var(--cream); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col ul { display: grid; gap: 10px; font-size: 0.88rem; }
.footer__col a:hover { color: var(--orange-light); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.78rem; opacity: 0.6; flex-wrap: wrap; gap: 10px;
}
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.footer__social a:hover { background: var(--blue-light); }
.footer__social svg { width: 16px; height: 16px; }

/* reveal-on-scroll */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal].is-visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* ---------- 6.5 MEGA-MENÚ DE CATEGORÍAS ---------- */
.nav__item { position: relative; }
.nav__links a.has-mega { display: inline-flex; align-items: center; gap: 6px; }
.nav__links a.has-mega svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.nav__item.is-open a.has-mega svg { transform: rotate(180deg); }
.nav__mega {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(720px, 86vw);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  z-index: 120;
}
.nav__item.is-open .nav__mega { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav__mega a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  transition: background 0.2s;
}
.nav__mega a { --accent: var(--blue); }
.nav__mega a:hover { background: color-mix(in srgb, var(--accent) 12%, white); }
.nav__mega a .mega-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.nav__mega a:hover .mega-icon { background: var(--accent); color: var(--white); }
.nav__mega a .mega-icon svg { width: 19px; height: 19px; }
.nav__mega a span.mega-sub { display: block; font-weight: 400; font-size: 0.74rem; opacity: 0.6; margin-top: 1px; }

.nav__mobile-cats { display: grid; gap: 10px; margin-top: 4px; }
.nav__mobile-cats a { font-family: var(--font-body); font-size: 1rem; font-weight: 600; opacity: 0.9; }

/* ---------- 6.6 ICONOS DE ANIMALES ANIMADOS ---------- */
.animal-strip {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 34px);
  flex-wrap: wrap;
}
.animal-strip .animal-icon {
  width: clamp(40px, 6vw, 58px);
  height: clamp(40px, 6vw, 58px);
  color: var(--blue);
  animation: animal-bob 3.4s ease-in-out infinite;
}
.animal-strip .animal-icon:nth-child(2) { animation-delay: 0.3s; color: var(--orange); }
.animal-strip .animal-icon:nth-child(3) { animation-delay: 0.6s; }
.animal-strip .animal-icon:nth-child(4) { animation-delay: 0.9s; color: var(--red); }
.animal-strip .animal-icon:nth-child(5) { animation-delay: 1.2s; }
.animal-strip .animal-icon:nth-child(6) { animation-delay: 1.5s; color: var(--orange); }
@keyframes animal-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-4deg); }
}

/* ciclo de caminata: patas alternadas + leve rebote del cuerpo */
.walk-icon .leg-a {
  transform-origin: 9px 14px;
  animation: walk-leg-a 0.7s ease-in-out infinite;
}
.walk-icon .leg-b {
  transform-origin: 15px 14px;
  animation: walk-leg-b 0.7s ease-in-out infinite;
}
.walk-icon .walk-body { animation: walk-bob 0.7s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes walk-leg-a {
  0%, 100% { transform: rotate(20deg); }
  50% { transform: rotate(-20deg); }
}
@keyframes walk-leg-b {
  0%, 100% { transform: rotate(-20deg); }
  50% { transform: rotate(20deg); }
}
@keyframes walk-bob {
  0%, 50%, 100% { transform: translateY(0); }
  25%, 75% { transform: translateY(-1px); }
}

/* ---------- 6.7 HERO DE CATEGORÍA ---------- */
.cat-hero {
  position: relative;
  padding-top: clamp(118px, 15vw, 160px);
  padding-bottom: clamp(50px, 7vw, 80px);
  background: linear-gradient(155deg, var(--blue-deep), var(--blue) 60%, var(--blue-light));
  color: var(--cream);
  overflow: hidden;
}
.cat-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.4;
}
.cat-hero__row { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cat-hero__crumb { font-size: 0.82rem; opacity: 0.75; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.cat-hero__crumb a:hover { text-decoration: underline; }
.cat-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.cat-hero p { max-width: 54ch; opacity: 0.85; margin-top: 14px; font-size: 1.02rem; }
.cat-hero__icon {
  width: clamp(110px, 13vw, 160px);
  height: clamp(110px, 13vw, 160px);
  color: var(--white);
  opacity: 0.95;
  flex-shrink: 0;
}

/* ---------- 6.8 CARRUSEL DE CATEGORÍAS (home, estilo Montana) ---------- */
.cat-carousel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.cat-carousel__head h2 { color: var(--blue); }
.cat-carousel { position: relative; }
.cat-carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px 4px 18px;
}
.cat-carousel__track::-webkit-scrollbar { display: none; }
.cat-chip {
  --accent: var(--blue);
  flex: 0 0 190px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 30px 18px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.cat-chip:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.cat-chip__icon { width: 64px; height: 64px; color: var(--accent); }
.cat-chip__icon svg { width: 100%; height: 100%; }
.cat-chip__label { font-weight: 700; color: var(--accent); font-size: 0.95rem; line-height: 1.3; }
.cat-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow-card);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  transition: background 0.25s, color 0.25s;
}
.cat-carousel__arrow:hover { background: var(--blue); color: var(--white); }
.cat-carousel__arrow.prev { left: -10px; }
.cat-carousel__arrow.next { right: -10px; }
.cat-carousel__arrow svg { width: 18px; height: 18px; }
.cat-carousel__dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.cat-carousel__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-pale);
  transition: background 0.3s, transform 0.3s;
}
.cat-carousel__dots button.is-active { background: var(--blue); transform: scale(1.3); }

/* ---------- 6.9 FRANJA INSTITUCIONAL (Pecuaria Salkantay) ---------- */
.legal-strip {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  font-size: 0.76rem;
  text-align: center;
  padding: 16px 20px;
}
.legal-strip strong { color: rgba(255,255,255,0.8); font-weight: 600; }

/* ---------- 7. RESPONSIVE (mobile-first breakpoints) ---------- */
@media (max-width: 1280px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav-utility__tagline { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; margin-inline: auto; }
  .javier { grid-template-columns: 1fr; }
  .javier__art { max-width: 360px; margin-inline: auto; }
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .calc__inner { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .contact-strip { grid-template-columns: 1fr; }
  .cat-hero__icon { display: none; }
}
@media (max-width: 720px) {
  .why__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__float { display: none; }
  .chat-panel { width: calc(100vw - 20px); right: 10px; }
  .cat-grid { grid-template-columns: 1fr; }
  .nav__mega { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
}

/* ---------- 8. REDUCED MOTION (solo apaga lo intrusivo) ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .hero__blob { animation: none; }
  .javier__pulse { animation: none; opacity: 0; }
  .animal-icon, .cat-hero__icon { animation: none; }
  .walk-icon .leg-a, .walk-icon .leg-b, .walk-icon .walk-body { animation: none; }
  [data-reveal] { transition-duration: 0.25s; }
}

/* ---------- 9. VIDEO DE FONDO CON SCROLL ---------- */
.video-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--blue-deep);
  overflow: hidden;
}
.video-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.video-stage video.is-active { opacity: 1; }
.video-stage__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 10, 31, 0.5), rgba(2, 10, 31, 0.72));
}

body.has-video { background: var(--blue-deep); }
body.has-video .section { background: transparent; }
body.has-video .section-head .eyebrow,
body.has-video .javier .eyebrow { color: var(--orange-light); }
body.has-video .section-head h2,
body.has-video .section-head .lede,
body.has-video .javier .h2,
body.has-video .javier .lede,
body.has-video .javier__list li { color: var(--cream); }
body.has-video .javier__list svg { color: var(--orange-light); }

body.has-video .hero {
  background: linear-gradient(155deg, rgba(2, 10, 31, 0.2), rgba(6, 29, 66, 0.1));
}
body.has-video .cat-hero {
  background: linear-gradient(180deg, rgba(2, 10, 31, 0.25), rgba(2, 10, 31, 0.1));
}
body.has-video .why {
  background: rgba(4, 18, 46, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.has-video .why .stat b { color: var(--cream); }
body.has-video .why .stat span { color: var(--cream); }
body.has-video .testi {
  background: rgba(4, 18, 46, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body.has-video .cat-carousel__dots button { background: rgba(255, 255, 255, 0.35); }
body.has-video .cat-carousel__dots button.is-active { background: var(--orange-light); }
body.has-video .contact-strip__item span { opacity: 0.75; }
