/* =====================================================================
   Modula · Porfolio Microbioma — estilos
   Estética del home original (Sora, degradé azul→verde, ondas, bacterias)
   con movimiento: GSAP (site.js) + animaciones CSS.
   ===================================================================== */

@font-face {
  font-family: "Sora";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/assets/fonts/sora-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/assets/fonts/sora-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy-950: #0b1f48;
  --navy-900: #12306a;
  --navy: #224b8d;
  --blue: #2c6db3;
  --sky: #4fb7d9;
  --teal: #3bb28f;
  --teal-700: #1c8370;
  --ink: #13284a;
  --text: #3b4c63;
  --muted: #5a6b7d;
  --bg: #f2f8fa;
  --bg-2: #e6f2f3;
  --surface: #ffffff;
  --line: #dbe7ee;
  --promo: #f28a2e;
  --promo-ink: #9c450a;
  --promo-bg: #fff0e2;

  --grad: linear-gradient(100deg, #224b8d 0%, #2b78b0 48%, #3bb28f 100%);
  --grad-v: linear-gradient(160deg, #224b8d 0%, #2475a6 55%, #2f9f89 100%);
  --grad-soft: linear-gradient(135deg, #eaf3fb 0%, #e8f6f1 100%);

  --r-xl: 32px;
  --r-lg: 26px;
  --r: 20px;
  --r-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(17, 40, 80, 0.05), 0 4px 14px rgba(17, 40, 80, 0.06);
  --shadow: 0 2px 6px rgba(17, 40, 80, 0.05), 0 18px 40px -12px rgba(17, 40, 80, 0.16);
  --shadow-lg: 0 30px 70px -24px rgba(17, 40, 80, 0.32);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 180ms;
  --t: 320ms;

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --accent: #3bb28f;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
sup { line-height: 0; }
b, strong { font-weight: 700; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(59, 178, 143, 0.28); color: var(--ink); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 300; padding: 12px 18px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 600; transition: top var(--t-fast); }
.skip:focus { top: 16px; }
main:focus { outline: none; }

.ico { width: 1.25em; height: 1.25em; flex: none; }

.shell { width: 100%; max-width: calc(var(--shell) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.shell--bleed { max-width: none; padding-inline: 0; }

/* ---------------------------------------------------------------- tipografía */
.h1 { font-size: clamp(2.2rem, 4.8vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.06; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); font-weight: 700; }
.h1 b, .h2 b { font-weight: 800; color: var(--teal-700); }
.lead, .lead p { font-size: clamp(1.02rem, 1.25vw, 1.2rem); color: var(--muted); line-height: 1.6; max-width: 58ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--teal-700);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow--center::after { content: ""; width: 34px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow--light { color: #bfeee0; }
.eyebrow--light::before { background: #bfeee0; }
.eyebrow__icon { width: 28px; height: 28px; object-fit: contain; }

.prose { color: var(--text); }
.prose p + p { margin-top: 0.8em; }
.prose b { color: var(--ink); }
.prose--lg { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 60ch; }

sup.refs { font-size: 0.68em; font-weight: 600; vertical-align: super; margin-left: 1px; }
a.ref { color: var(--teal-700); border-radius: 4px; padding: 0 1px; transition: background var(--t-fast), color var(--t-fast); }
a.ref:hover { background: var(--teal); color: #fff; }

/* ---------------------------------------------------------------- botones, etiquetas */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 10px 12px 10px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; line-height: 1.2; text-align: left;
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), background-color var(--t), color var(--t);
}
.btn .ico { width: 34px; height: 34px; padding: 8px; border-radius: 50%; transition: transform var(--t) var(--ease-spring), background-color var(--t); }
.btn--grad { color: #fff; background: linear-gradient(100deg, #224b8d 0%, #2b78b0 35%, #3bb28f 70%, #2b78b0 100%); background-size: 200% 100%; background-position: 0% 0; box-shadow: 0 10px 26px -10px rgba(34, 75, 141, 0.55); transition: background-position 600ms var(--ease-out), transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out); }
.btn--grad .ico { background: rgba(255, 255, 255, 0.18); }
.btn--grad::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn--line { color: var(--navy); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm); }
.btn--line .ico { background: var(--bg-2); color: var(--navy); }
.btn--white { color: var(--navy); background: #fff; }
.btn--white .ico { background: var(--bg-2); }
.btn--glass { color: #fff; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); }
.btn--glass .ico { background: rgba(255, 255, 255, 0.16); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--grad:hover { background-position: 100% 0; box-shadow: 0 16px 34px -12px rgba(34, 75, 141, 0.6); }
  .btn--grad:hover::after { transform: translateX(120%); transition: transform 800ms var(--ease-out); }
  .btn:hover .ico { transform: rotate(45deg); }
  .btn:hover .ico:first-child { transform: none; }
  .btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--teal), var(--shadow); }
}
.btn:active { transform: scale(0.97); }

.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  color: var(--navy); background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform var(--t) var(--ease-out), background-color var(--t), color var(--t), opacity var(--t);
}
.icon-btn--line { box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) { .icon-btn:not(:disabled):hover { background: var(--navy); color: #fff; transform: scale(1.06); } }

.tag {
  display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
}
.tag--cat { color: #fff; background: var(--navy); }
.tag--line { color: var(--navy); background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1.5px var(--line); letter-spacing: 0.04em; text-transform: none; font-weight: 600; font-size: 0.82rem; }
.tag--light { color: var(--navy); background: #fff; box-shadow: var(--shadow-sm); letter-spacing: 0.04em; text-transform: none; font-size: 0.82rem; }

.focus-dot { position: relative; display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--promo); }
.focus-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--promo); opacity: 0; animation: pulse 2.4s var(--ease-out) infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }
.badge-promo {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--promo-bg); color: var(--promo-ink); font-weight: 700; font-size: 0.82rem; box-shadow: inset 0 0 0 1px rgba(242, 138, 46, 0.25);
}
.badge-promo--sm { padding: 3px 10px 3px 8px; font-size: 0.7rem; gap: 7px; }
.badge-promo--sm .focus-dot { width: 8px; height: 8px; }
.legend { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; font-size: 0.85rem; font-weight: 600; color: var(--promo-ink); white-space: nowrap; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.link-arrow .ico { transition: transform var(--t) var(--ease-out); }
@media (hover: hover) { .link-arrow:hover .ico { transform: translateX(4px); } }

/* ---------------------------------------------------------------- cabecera */
.site-header {
  position: fixed; z-index: 100; top: 12px; left: 0; right: 0;
  padding-inline: var(--gutter);
  transition: transform 500ms var(--ease-out);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 20px)); }
.site-header__bar {
  position: relative;
  max-width: var(--shell); margin-inline: auto; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 12px 0 26px; border-radius: 999px;
}
/* el vidrio va en un pseudoelemento: backdrop-filter en la barra encerraría al menú móvil (position: fixed) */
.site-header__bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 30px -14px rgba(17, 40, 80, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.brand img { width: auto; height: 40px; }
.site-nav__list { display: flex; align-items: center; gap: 4px; }
.site-nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; color: var(--ink); transition: background-color var(--t-fast), color var(--t-fast);
}
.site-nav__link .ico--chev { width: 16px; height: 16px; transition: transform var(--t) var(--ease-out); }
.site-nav__refs { color: #fff; background: var(--grad); margin-left: 8px; padding: 0 18px 0 14px; }
.site-nav__refs .ico { width: 18px; height: 18px; }
@media (hover: hover) {
  .site-nav__link:hover { background: var(--bg-2); }
  .site-nav__refs:hover { background: var(--grad); filter: brightness(1.08); }
}
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0;
  width: min(940px, calc(100vw - var(--gutter) * 2)); padding: 18px; border-radius: 28px;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top center;
  transition: opacity 240ms var(--ease-out), transform 360ms var(--ease-out), visibility 0s linear 240ms;
}
.mega--specs { width: min(620px, calc(100vw - var(--gutter) * 2)); }
.has-menu.is-open .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.has-menu.is-open .ico--chev { transform: rotate(180deg); }
.mega--products ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mega--products a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 18px; text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--ink); line-height: 1.25; transition: background-color var(--t-fast); }
.mega--products img { width: 74px; height: 58px; object-fit: contain; transition: transform var(--t) var(--ease-spring); }
.mega--specs ul { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mega--specs a { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 16px 18px; border-radius: 18px; color: var(--ink); transition: background-color var(--t-fast); }
.mega--specs a span { font-weight: 700; }
.mega--specs a small { grid-column: 1; color: var(--muted); font-size: 0.82rem; }
.mega--specs a .ico { grid-row: 1 / 3; grid-column: 2; color: var(--teal-700); transition: transform var(--t) var(--ease-out); }
@media (hover: hover) {
  .mega a:hover { background: var(--bg); }
  .mega--products a:hover img { transform: translateY(-4px) rotate(-4deg) scale(1.06); }
  .mega--specs a:hover .ico { transform: rotate(45deg); }
}
.nav-toggle { display: none; width: 50px; height: 50px; border-radius: 50%; background: var(--grad); color: #fff; }
.nav-toggle__bars { position: relative; display: block; width: 20px; height: 14px; margin: auto; }
.nav-toggle__bars i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: #fff; transition: transform var(--t) var(--ease-out), opacity var(--t-fast), top var(--t) var(--ease-out); }
.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 6px; }
.nav-toggle__bars i:nth-child(3) { top: 12px; width: 65%; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { top: 6px; width: 100%; transform: rotate(-45deg); }

@media (max-width: 1040px) {
  :root { --header-h: 66px; }
  .site-header__bar { padding-left: 20px; padding-right: 8px; }
  .brand img { height: 34px; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1; overflow-y: auto; overscroll-behavior: contain;
    padding: calc(var(--header-h) + 36px) var(--gutter) 40px;
    background: rgba(242, 248, 250, 0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transition: opacity 300ms var(--ease-out), visibility 0s linear 300ms;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; transition-delay: 0s; }
  .nav-open { overflow: hidden; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 6px; max-width: 640px; margin-inline: auto; }
  .site-nav__link { height: auto; padding: 14px 4px; font-size: 1.35rem; font-weight: 700; border-radius: 0; border-bottom: 1px solid var(--line); width: 100%; }
  .site-nav__link .ico--chev { display: none; }
  .site-nav__refs { margin: 18px 0 0; justify-content: center; border-radius: 999px; padding: 16px; font-size: 1rem; border: 0; }
  .mega { position: static; translate: none; width: auto; opacity: 1; visibility: visible; transform: none; padding: 10px 0 6px; background: none; box-shadow: none; border: 0; backdrop-filter: none; }
  .mega--products ul { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .mega--products img { width: 60px; height: 46px; }
  .mega--products a { padding: 8px 4px; font-size: 0.74rem; }
  .mega--specs ul { grid-template-columns: 1fr; }
  .mega--specs a { background: var(--surface); }
}

/* ---------------------------------------------------------------- telón de transición */
.curtain { position: fixed; inset: 0; z-index: 400; pointer-events: none; }
.curtain__panel { position: absolute; inset: 0; background: var(--grad-v); transform: scaleY(0); transform-origin: 50% 100%; }
.is-entering .curtain__panel { transform: scaleY(1); transform-origin: 50% 0; }

/* ---------------------------------------------------------------- decoración: ondas y partículas */
.waves { position: absolute; left: -5%; width: 110%; pointer-events: none; z-index: 0; }
.waves path { stroke-dasharray: 2600; stroke-dashoffset: 0; }
.waves__a { animation: wave-sway 14s ease-in-out infinite alternate; }
.waves__b { animation: wave-sway 18s ease-in-out -4s infinite alternate-reverse; }
.waves__c { animation: wave-sway 22s ease-in-out -8s infinite alternate; }
.waves__d { animation: wave-sway 16s ease-in-out -2s infinite alternate-reverse; }
@keyframes wave-sway {
  0% { transform: translate3d(-3%, 0, 0) scaleY(1); }
  100% { transform: translate3d(3%, 6px, 0) scaleY(1.25); }
}
.waves--hero { bottom: -40px; height: 260px; opacity: 0.85; }
.waves--specs { top: 40px; height: 300px; opacity: 0.6; }
.waves--study { bottom: -60px; height: 240px; opacity: 0.55; }
.waves--study path { stroke: rgba(255, 255, 255, 0.6); }

.particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.particles i {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(30px * var(--s)); height: calc(11px * var(--s)); border-radius: 99px;
  background: linear-gradient(90deg, rgba(79, 183, 217, 0.55), rgba(59, 178, 143, 0.45));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transform: rotate(var(--r));
  animation: drift var(--d) ease-in-out var(--dl) infinite alternate;
  opacity: 0.55;
}
.particles--soft i { opacity: 0.32; }
.particles--accent i { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 60%, transparent), rgba(79, 183, 217, 0.4)); opacity: 0.45; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(var(--r)); }
  50% { transform: translate3d(18px, -26px, 0) rotate(calc(var(--r) + 40deg)); }
  100% { transform: translate3d(-14px, 12px, 0) rotate(calc(var(--r) - 25deg)); }
}

/* órbitas alrededor de los envases */
.orbit { position: absolute; inset: 6%; border-radius: 50%; pointer-events: none; }
.orbit::before, .orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.orbit::before { inset: 0; animation: spin 46s linear infinite; }
.orbit::after { inset: 12%; border-style: solid; border-color: rgba(255, 255, 255, 0.7); animation: spin 30s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit i { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.orbit i:nth-child(2) { animation-duration: 22s; animation-delay: -7s; }
.orbit i:nth-child(3) { inset: 12%; animation-duration: 28s; animation-delay: -13s; animation-direction: reverse; }
.orbit i:nth-child(4) { animation-duration: 19s; animation-delay: -3s; }
.orbit i::before { content: ""; position: absolute; left: 50%; top: -6px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 20%, transparent); }
.orbit i:nth-child(2)::before { width: 9px; height: 9px; top: -4px; background: var(--sky); box-shadow: 0 0 0 5px rgba(79, 183, 217, 0.2); }
.orbit i:nth-child(3)::before { width: 10px; height: 10px; top: 7%; left: 82%; background: var(--teal); }
.orbit i:nth-child(4)::before { width: 7px; height: 7px; top: auto; bottom: 10%; left: 12%; background: var(--navy); box-shadow: none; }

/* ---------------------------------------------------------------- secciones */
.section { position: relative; padding-block: clamp(72px, 9vw, 130px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section-head { position: relative; z-index: 1; display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.section-head--center { text-align: center; justify-items: center; margin-inline: auto; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: end; gap: 24px 48px; }
.section-head--split > :last-child:not(:first-child) { justify-self: end; text-align: right; }
.section-head--split .section-head__lead { max-width: 46ch; }
.section-head__lead { color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.12rem); max-width: 56ch; }
@media (max-width: 760px) {
  .section-head--split { grid-template-columns: 1fr; }
  .section-head--split > :last-child:not(:first-child) { justify-self: start; text-align: left; }
}

/* ---------------------------------------------------------------- HOME · hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(640px, 100svh); display: grid; align-items: center;
  padding-block: calc(var(--header-h) + 60px) 120px;
  background: linear-gradient(180deg, #f6fbfd 0%, #eef6f9 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__banner { position: absolute; inset: -6% 0 0; width: 100%; height: 112%; object-fit: cover; object-position: 78% 40%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 48%, rgba(246, 251, 253, 0.92), rgba(246, 251, 253, 0.35) 70%, transparent); }
.hero__waves { position: absolute; left: -20%; bottom: 4%; width: 140%; max-width: none; height: auto; opacity: 0.9; z-index: 1; animation: waves-drift 22s ease-in-out infinite alternate; mix-blend-mode: multiply; }
.hero__waves--2 { bottom: 12%; opacity: 0.45; transform: scaleX(-1); animation-duration: 30s; animation-direction: alternate-reverse; }
@keyframes waves-drift { from { translate: -4% 0; } to { translate: 6% -14px; } }
.particles--hero { z-index: 2; }
.particles--hero i { opacity: 0.4; }
.hero__inner { position: relative; z-index: 3; display: grid; justify-items: center; text-align: center; gap: clamp(18px, 2.4vw, 28px); }
.hero__title {
  font-size: clamp(3rem, 9vw, 7.6rem); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; padding-bottom: 0.06em;
  background: linear-gradient(100deg, #224b8d 0%, #2b78b0 22%, #3bb28f 48%, #2b78b0 74%, #224b8d 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s ease-in-out infinite alternate;
}
.hero__title.is-split { background: none; animation: none; }
.hero__title .line {
  background: linear-gradient(100deg, #224b8d 0%, #2b78b0 22%, #3bb28f 48%, #2b78b0 74%, #224b8d 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 9s ease-in-out infinite alternate; padding-bottom: 0.06em;
}
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.hero__lead { max-width: 58ch; font-size: clamp(1.02rem, 1.4vw, 1.22rem); color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 104px; translate: -50% 0; width: 30px; height: 48px; border-radius: 20px; border: 2px solid rgba(34, 75, 141, 0.35); }
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 4px; background: var(--navy); animation: scroll-dot 1.8s var(--ease-out) infinite; }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 640px) {
  .hero { min-height: 0; padding-bottom: 150px; }
  .hero__scroll { display: none; }
  .hero__banner { object-position: 84% 30%; opacity: 0.75; }
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; max-width: 380px; }
  .hero__ctas .btn { width: 100%; justify-content: space-between; }
}

/* ---------------------------------------------------------------- marquesinas */
.marquee { display: flex; overflow: hidden; user-select: none; }
.marquee__track { flex: none; display: flex; align-items: center; min-width: 100%; animation: marquee 48s linear infinite; }
.is-reverse .marquee__track { animation-direction: reverse; }
.js-marquee .marquee__track { animation: none; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------------------------------------------------------------- HOME · definiciones */
.defs { overflow: hidden; }
.defs__panels { position: relative; z-index: 1; display: flex; gap: 18px; min-height: 430px; }
.defs__panel {
  position: relative; overflow: hidden; isolation: isolate;
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column;
  padding: 30px; border-radius: var(--r-xl);
  background: var(--surface); box-shadow: var(--shadow);
  transition: flex-grow 800ms var(--ease-out), background-color 500ms, box-shadow 500ms;
}
.defs__panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad-v); opacity: 0;
  transition: opacity 600ms var(--ease-out);
}
.defs__panel.is-open { flex-grow: 2.3; }
.defs__panel.is-open::before { opacity: 1; }
.defs__toggle { position: static; display: grid; justify-items: start; gap: 18px; width: 100%; text-align: left; border-radius: 18px; }
.defs__mark { position: absolute; z-index: -1; right: -40px; bottom: -40px; width: 260px; height: 260px; color: #fff; opacity: 0; transform: rotate(-20deg) scale(0.7); transition: opacity 700ms var(--ease-out), transform 1000ms var(--ease-out); pointer-events: none; }
.defs__mark .ico { width: 100%; height: 100%; stroke-width: 0.9; }
.defs__panel.is-open .defs__mark { opacity: 0.1; transform: rotate(-12deg) scale(1); }
.defs__num { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.2em; color: var(--teal-700); transition: color 500ms; }
.defs__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--grad-soft); color: var(--navy); transition: background-color 500ms, color 500ms, transform 600ms var(--ease-spring); }
.defs__icon .ico { width: 34px; height: 34px; }
.defs__title { font-size: clamp(1.4rem, 1.9vw, 1.9rem); font-weight: 800; transition: color 500ms; }
.defs__plus { position: absolute; top: 26px; right: 26px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--navy); transition: transform 500ms var(--ease-out), color 500ms, box-shadow 500ms; }
.defs__plus .ico { width: 18px; height: 18px; }
.defs__body { margin-top: auto; padding-top: 28px; font-size: clamp(1rem, 1.15vw, 1.1rem); line-height: 1.7; color: rgba(255, 255, 255, 0.86); opacity: 0; transform: translateY(18px); transition: opacity 400ms var(--ease-out), transform 600ms var(--ease-out); }
.defs__body p { max-width: 60ch; }
.defs__body b { color: #fff; }
.defs__panel.is-open .defs__body { opacity: 1; transform: none; transition-delay: 220ms; }
.defs__panel.is-open .defs__num { color: #bfeee0; }
.defs__panel.is-open .defs__title { color: #fff; }
.defs__panel.is-open .defs__icon { background: rgba(255, 255, 255, 0.14); color: #fff; transform: rotate(-8deg) scale(1.06); }
.defs__panel.is-open .defs__plus { transform: rotate(45deg); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.defs__panel:not(.is-open) .defs__body { visibility: hidden; position: absolute; }
@media (hover: hover) { .defs__panel:not(.is-open):hover { box-shadow: var(--shadow-lg); } }
@media (max-width: 900px) {
  .defs__panels { flex-direction: column; min-height: 0; }
  .defs__panel, .defs__panel.is-open { flex: none; }
  .defs__panel:not(.is-open) .defs__body { visibility: visible; position: static; }
  .defs__panel .defs__body { opacity: 1; transform: none; color: var(--text); padding-top: 18px; }
  .defs__panel .defs__body b { color: var(--ink); }
  .defs__panel::before { opacity: 0 !important; }
  .defs__panel.is-open .defs__title { color: var(--ink); }
  .defs__panel.is-open .defs__num { color: var(--teal-700); }
  .defs__panel.is-open .defs__icon { background: var(--grad-soft); color: var(--navy); transform: none; }
  .defs__plus { display: none; }
  .defs__toggle { cursor: default; }
}

/* ---------------------------------------------------------------- HOME · especialidades */
.specs { background: linear-gradient(180deg, var(--bg) 0%, #e9f4f3 100%); overflow: hidden; }
.specs__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.spec {
  position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 3 / 4; border-radius: var(--r-xl);
  background: var(--navy); box-shadow: var(--shadow); transform: translateZ(0);
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
}
.spec__media, .spec__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.spec__media img { object-fit: cover; object-position: 50% 20%; transition: transform 1100ms var(--ease-out); }
.spec__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 31, 72, 0) 30%, rgba(11, 31, 72, 0.55) 60%, rgba(11, 31, 72, 0.92) 100%); transition: opacity 600ms; }
.spec__body { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: clamp(18px, 2vw, 26px); color: #fff; }
.spec__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); }
.spec__icon img { width: 32px; height: 32px; object-fit: contain; }
.spec__count { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #a9ecd9; }
.spec__name { font-size: clamp(1.3rem, 1.9vw, 1.8rem); font-weight: 800; color: #fff; }
.spec__list { display: grid; gap: 4px; max-height: 0; overflow: hidden; opacity: 0; font-size: 0.88rem; line-height: 1.35; color: rgba(255, 255, 255, 0.86); transition: max-height 700ms var(--ease-out), opacity 400ms, margin 600ms var(--ease-out); }
.spec__list span { display: block; padding-left: 14px; position: relative; }
.spec__list span::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.spec__go { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); transition: transform 500ms var(--ease-spring), background-color 300ms, color 300ms; }
@media (hover: hover) {
  .spec:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
  .spec:hover .spec__media img { transform: scale(1.08); }
  .spec:hover .spec__list { max-height: 160px; opacity: 1; margin-top: 8px; }
  .spec:hover .spec__go { transform: rotate(45deg); background: #fff; color: var(--navy); }
}
.spec:focus-visible .spec__list { max-height: 160px; opacity: 1; margin-top: 8px; }
@media (max-width: 1040px) { .specs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .specs__grid { grid-template-columns: 1fr; }
  .spec { aspect-ratio: 4 / 3.4; }
}

/* ---------------------------------------------------------------- carrusel */
.carousel { --pad: max(var(--gutter), calc((100vw - var(--shell)) / 2)); position: relative; }
.carousel__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-inline: var(--pad); margin-bottom: 22px; }
.carousel__nav { display: flex; gap: 10px; margin-left: auto; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(272px, 24vw, 322px); gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 14px var(--pad) 40px; scrollbar-width: none; cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__track.is-dragging a { pointer-events: none; }
.carousel__track > li { scroll-snap-align: start; display: flex; }
.carousel__track > li[hidden] { display: none; }
.carousel__progress { position: relative; height: 3px; margin: 0 var(--pad); border-radius: 3px; background: var(--line); overflow: hidden; }
.carousel__progress span { position: absolute; inset: 0; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0.1); transition: transform 200ms linear; }
.carousel--pats .carousel__track { grid-auto-columns: clamp(240px, 22vw, 290px); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 0.92rem; color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color var(--t), color var(--t), box-shadow var(--t), transform var(--t) var(--ease-out); }
.chip__n { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 99px; font-size: 0.75rem; background: var(--bg-2); color: var(--navy); transition: inherit; }
.chip[aria-pressed="true"] { color: #fff; background: var(--navy); box-shadow: none; }
.chip[aria-pressed="true"] .chip__n { background: rgba(255, 255, 255, 0.2); color: #fff; }
@media (hover: hover) { .chip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--teal); } .chip[aria-pressed="true"]:hover { box-shadow: none; } }

/* ---------------------------------------------------------------- tarjeta de producto */
.prods { overflow: hidden; }
.prods--compact { padding-block: clamp(56px, 7vw, 96px); background: linear-gradient(180deg, transparent, var(--bg-2)); }
.pcard-item { width: 100%; }
.pcard {
  position: relative; isolation: isolate; display: flex; flex-direction: column; width: 100%; border-radius: var(--r-xl);
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
}
.pcard__stage {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 0.84; overflow: hidden;
  background: radial-gradient(75% 70% at 50% 58%, color-mix(in srgb, var(--accent) 20%, #fff) 0%, #f6fafc 70%);
}
.pcard__glow { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 68%); filter: blur(14px); opacity: 0.55; transition: transform 800ms var(--ease-out), opacity 600ms; }
.pcard__ring { position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); animation: spin 40s linear infinite; transition: transform 800ms var(--ease-out), opacity 600ms; opacity: 0.6; }
.pcard__pack {
  position: relative; z-index: 2; width: var(--pw, 70%); height: auto; max-height: none; object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(17, 40, 80, 0.2));
  animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--n, 0) * -0.9s);
  transition: scale 700ms var(--ease-spring), rotate 700ms var(--ease-spring), filter 600ms;
}
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
.pcard .tag--cat { position: absolute; z-index: 3; top: 16px; left: 16px; background: rgba(255, 255, 255, 0.86); color: var(--navy); box-shadow: var(--shadow-sm); backdrop-filter: blur(6px); }
.bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bubbles i {
  position: absolute; left: 50%; top: 54%; width: 18px; height: 18px; margin: -9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 14%, color-mix(in srgb, var(--accent) 75%, #fff) 60%);
  opacity: 0; transform: rotate(calc(var(--i) * 40deg)) translateX(10px) scale(0.2);
  transition: transform 700ms var(--ease-spring), opacity 300ms;
  transition-delay: calc(var(--i) * 25ms);
}
.bubbles i:nth-child(3n) { width: 10px; height: 10px; margin: -5px; }
.bubbles i:nth-child(3n + 1) { width: 26px; height: 11px; margin: -5.5px -13px; border-radius: 99px; }
.pcard__body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px 22px 22px; }
.pcard__name { display: flex; align-items: center; height: 64px; margin: 0; }
.pcard__logo { height: auto; max-width: 100%; }
.pcard__label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.pcard__list { display: grid; gap: 6px; font-size: 0.88rem; line-height: 1.38; color: var(--text); }
.pcard__list li { position: relative; display: flex; gap: 8px; align-items: baseline; padding-left: 14px; }
.pcard__list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pcard__list li .focus-dot { order: 2; align-self: center; margin-left: auto; }
.pcard__more { color: var(--muted); font-style: italic; }
.pcard__more::before { opacity: 0.4; }
.pcard__cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 12px 8px 12px 18px; border-radius: 999px; font-weight: 600; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color var(--t), color var(--t), box-shadow var(--t); }
.pcard__cta .ico { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--bg-2); transition: transform var(--t) var(--ease-out), background-color var(--t); }
@media (hover: hover) {
  .pcard:hover { transform: translateY(-10px); box-shadow: 0 34px 60px -26px color-mix(in srgb, var(--accent) 70%, rgba(17, 40, 80, 0.6)); }
  .pcard:hover .pcard__pack { scale: 1.06; rotate: -4deg; filter: drop-shadow(0 30px 24px rgba(17, 40, 80, 0.28)); }
  .pcard:hover .pcard__glow { transform: scale(1.35); opacity: 0.9; }
  .pcard:hover .pcard__ring { transform: scale(1.12); opacity: 1; }
  .pcard:hover .bubbles i { opacity: 0.95; transform: rotate(calc(var(--i) * 40deg)) translateX(clamp(100px, 10vw, 135px)) scale(1); }
  .pcard:hover .pcard__cta { background: var(--navy); color: #fff; box-shadow: none; }
  .pcard:hover .pcard__cta .ico { transform: translateX(3px); background: rgba(255, 255, 255, 0.18); }
}
.pcard:focus-visible { outline-offset: 4px; }

/* ---------------------------------------------------------------- héroes interiores */
.spec-hero, .pat-hero, .prod-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + 52px) 0 clamp(56px, 7vw, 100px);
  background: radial-gradient(90% 80% at 85% 20%, rgba(79, 183, 217, 0.18), transparent 60%), radial-gradient(70% 70% at 10% 90%, rgba(59, 178, 143, 0.14), transparent 60%), linear-gradient(180deg, #f7fbfd, var(--bg));
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 22px; font-size: 0.85rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.crumbs li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.crumbs a { font-weight: 500; color: var(--navy); border-radius: 6px; }
@media (hover: hover) { .crumbs a:hover { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; } }
.crumbs [aria-current] { color: var(--muted); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* especialidad */
.spec-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.spec-hero__copy { display: grid; gap: 18px; align-content: start; }
.spec-hero__copy .h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.spec-hero__meta { display: flex; gap: 6px; align-items: baseline; font-size: 1rem; color: var(--muted); }
.spec-hero__meta strong { font-size: 2.2rem; font-weight: 800; color: var(--navy); line-height: 1; margin-right: 4px; }
.spec-hero__meta strong:nth-of-type(2) { margin-left: 14px; }
.spec-hero__photo { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 4.6; max-height: 640px; border-radius: 40px; box-shadow: var(--shadow-lg); }
.spec-hero__photo img { width: 100%; height: 118%; object-fit: cover; object-position: 50% 10%; }
.spec-hero__photo--art { background: var(--grad-v); }
.spec-hero__photo--art .particles i { opacity: 0.8; background: rgba(255, 255, 255, 0.45); }
@media (max-width: 860px) {
  .spec-hero__grid { grid-template-columns: 1fr; }
  .spec-hero__photo { aspect-ratio: 16 / 11; border-radius: 28px; }
}

/* tarjetas de patología */
.patgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.patcard-item { display: flex; }
.patcard {
  position: relative; display: flex; flex-direction: column; gap: 16px; width: 100%; min-height: 220px; padding: 24px;
  border-radius: var(--r-lg); border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(var(--line), var(--line)) border-box;
  box-shadow: var(--shadow-sm); transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out), background 500ms;
}
.patcard__icon { display: grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; background: var(--grad-soft); transition: transform 600ms var(--ease-spring); }
.patcard__icon img { width: 46px; height: 46px; object-fit: contain; }
.patcard__title { font-size: 1.08rem; font-weight: 700; line-height: 1.3; color: var(--ink); padding-right: 36px; }
.patcard__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.patcard__logos img { height: auto; max-width: 100%; }
.patcard__go { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--navy); background: var(--bg); transition: transform 500ms var(--ease-spring), background-color var(--t), color var(--t); }
.patcard__go .ico { width: 18px; height: 18px; }
@media (hover: hover) {
  .patcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
  .patcard:hover .patcard__icon { transform: rotate(-8deg) scale(1.08); }
  .patcard:hover .patcard__go { transform: rotate(45deg); background: var(--navy); color: #fff; }
}

.other-specs { background: var(--bg-2); }
.other-specs .h3 { margin-bottom: 24px; }
.spec-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.spec-mini { position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 18px 10px 10px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 700; color: var(--ink); transition: transform 500ms var(--ease-out), box-shadow 500ms; }
.spec-mini img { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; object-position: 50% 20%; transition: transform 600ms var(--ease-out); }
.spec-mini .ico { margin-left: auto; color: var(--teal-700); transition: transform 500ms var(--ease-spring); }
@media (hover: hover) { .spec-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow); } .spec-mini:hover img { transform: scale(1.06); } .spec-mini:hover .ico { transform: rotate(45deg); } }
@media (max-width: 760px) { .spec-minis { grid-template-columns: 1fr; } }

/* patología */
.pat-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.pat-hero__copy { display: grid; gap: 18px; justify-items: start; }
.pat-hero__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.pat-hero__logos img { height: auto; max-width: 70vw; }
.pat-hero__title { font-size: clamp(2.1rem, 4.4vw, 3.9rem); }
.pat-hero__art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.pat-hero__glow, .prod-hero__glow, .pbox__glow { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 50%, transparent), transparent 68%); filter: blur(22px); animation: breathe 7s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(0.92); opacity: 0.7; } to { transform: scale(1.08); opacity: 1; } }
.pat-hero__pack { position: relative; z-index: 2; grid-area: 1 / 1; width: var(--pw, 80%); height: auto; object-fit: contain; filter: drop-shadow(0 30px 28px rgba(17, 40, 80, 0.24)); }
.pat-hero__art.is-multi .pat-hero__pack:nth-of-type(1) { translate: -22% 6%; z-index: 3; }
.pat-hero__art.is-multi .pat-hero__pack:nth-of-type(2) { translate: 24% -8%; }
.pat-hero__art.is-multi .pat-hero__pack:nth-of-type(3) { translate: 0 -34%; z-index: 1; }
.pat-hero__art .orbit { inset: 4%; }
@media (max-width: 860px) {
  .pat-hero__grid { grid-template-columns: 1fr; }
  .pat-hero__art { max-width: 380px; grid-row: 2; }
}

.pat-intro { margin: 0 auto 36px; text-align: center; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.benefits--1 { grid-template-columns: minmax(0, 720px); justify-content: center; }
.benefits--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.benefit {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2.4vw, 32px);
  border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); transition: transform 500ms var(--ease-out), box-shadow 500ms;
}
.benefit::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform 700ms var(--ease-out); }
.benefit__num { position: absolute; top: 18px; right: 22px; font-size: 3.4rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--line); letter-spacing: -0.04em; }
.benefit__icon { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 24px; background: var(--grad-soft); transition: transform 700ms var(--ease-spring); }
.benefit__icon img { width: 52px; height: 52px; object-fit: contain; }
.benefit .prose { font-size: 1rem; line-height: 1.62; }
@media (hover: hover) {
  .benefit:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .benefit:hover::after { transform: scaleX(1); }
  .benefit:hover .benefit__icon { transform: rotate(-10deg) scale(1.08); }
}
@media (max-width: 900px) { .benefits, .benefits--2 { grid-template-columns: 1fr; } }

.ticks { display: grid; gap: 8px; margin-top: 4px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.ticks .ico { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--teal); color: #fff; flex: none; margin-top: 1px; }

/* evidencia */
.evidence { background: linear-gradient(180deg, var(--bg) 0%, #eaf4f4 100%); }
.evidence__block + .evidence__block { margin-top: clamp(28px, 4vw, 56px); }
.evi { display: grid; gap: 18px; }
.evi__h { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 800; color: var(--ink); }
.evi--intro .evi__h, .evi[data-depth="0"] > .evi__h { font-size: clamp(1.8rem, 3.2vw, 2.8rem); letter-spacing: -0.03em; }
.evi--intro .prose { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 70ch; }
.evi__grid { display: grid; gap: clamp(18px, 2.4vw, 36px); align-items: center; }
.evi__grid--2 { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.evi__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.evi__cell { min-width: 0; }
@media (max-width: 900px) { .evi__grid--2, .evi__grid--3 { grid-template-columns: 1fr; } }
.evi__fig { margin: 0; overflow: hidden; border-radius: var(--r); }
.evi__fig img { width: 100%; }
.evi--media { grid-template-columns: 110px minmax(0, 1fr); align-items: start; gap: 22px; padding: 26px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.evi--media .evi__fig { width: 110px; padding: 14px; border-radius: 26px; background: var(--grad-soft); }
.evi--card { padding: clamp(22px, 2.6vw, 34px); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.evi--callout { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--grad-v); }
.evi--callout .evi__h, .evi--callout .prose, .evi--callout b { color: #fff; font-weight: 500; }
.evi--callout .evi__h { font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.45; }
.evi--callout .evi__h b, .evi--callout .evi__h i { font-weight: 800; }
.evi--callout a.ref { color: #bfeee0; }
.evi--callout .prose a:not(.ref) { display: inline-block; margin-top: 6px; color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.chart { margin: 0; padding: clamp(18px, 2vw, 26px); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 14px; }
.chart__title { font-size: clamp(1.1rem, 1.5vw, 1.35rem); font-weight: 700; }
.chart__img { overflow: hidden; border-radius: 14px; }
.chart__img img { width: 100%; }
.chart figcaption { display: grid; gap: 8px; }
.chart__caption { font-size: 0.92rem; color: var(--text); }
.chart__source { font-size: 0.76rem; line-height: 1.5; color: var(--muted); }

.statement { margin: 0; font-size: clamp(1.4rem, 2.5vw, 2.25rem); line-height: 1.32; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.statement p + p { margin-top: 0.6em; }
.statement b { font-weight: 800; color: var(--teal-700); }
.statement .w { transition: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.stat { position: relative; overflow: hidden; display: grid; gap: 4px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); color: #fff; background: var(--grad-v); box-shadow: var(--shadow); }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, 0.3); animation: spin 40s linear infinite; }
.stat__pre, .stat__post { font-size: 1.05rem; color: rgba(255, 255, 255, 0.88); }
.stat__value { display: flex; align-items: baseline; gap: 6px; font-size: clamp(3.4rem, 6vw, 5.2rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.stat__unit { font-size: 0.5em; letter-spacing: -0.02em; }
.stat a.ref { color: #bfeee0; }

.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.point { display: flex; align-items: center; gap: 16px; padding: 16px 20px 16px 16px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.point__icon { display: grid; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 18px; background: var(--grad-soft); }
.point__icon img { width: 40px; height: 40px; object-fit: contain; }
.point .prose { font-size: 1.02rem; line-height: 1.4; }

.iconrow { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px; border-radius: 20px; background: var(--grad-soft); }
.iconrow__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--teal-700); }
.iconrow__icon svg { width: 30px; height: 30px; }
.iconrow strong { display: block; color: var(--ink); }

/* cuadro de producto */
.pbox { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); overflow: hidden; border-radius: 36px; background: var(--surface); box-shadow: var(--shadow-lg); }
.pbox__visual {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  min-height: 460px; padding: 56px 32px 86px;
  background: radial-gradient(80% 70% at 50% 42%, color-mix(in srgb, var(--accent) 24%, #fff), #f4f9fb 75%);
}
.pbox__visual .tag { position: absolute; top: 22px; left: 22px; z-index: 3; }
.pbox__glow { inset: 10% 14% 30%; z-index: -1; }
.pbox__packs { position: relative; display: grid; place-items: center; width: 100%; }
.pbox__packs img { grid-area: 1 / 1; width: var(--pw, 70%); height: auto; filter: drop-shadow(0 26px 24px rgba(17, 40, 80, 0.24)); }
.pbox__packs.is-multi img:nth-child(1) { translate: -20% 6%; z-index: 2; }
.pbox__packs.is-multi img:nth-child(2) { translate: 22% -6%; }
.pbox__packs.is-multi img:nth-child(3) { translate: 0 -30%; z-index: 0; }
.pbox__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; }
.pbox__logos img { height: auto; max-width: 100%; }
.pbox__cat { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; text-align: center; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.6em; text-indent: 0.6em; color: #fff; background: var(--grad); }
@media (max-width: 560px) { .pbox__cat { letter-spacing: 0.3em; text-indent: 0.3em; font-size: 0.78rem; } }
.pbox__info { display: grid; align-content: center; gap: 20px; padding: clamp(28px, 4vw, 60px); }
.pbox__name { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.pbox__sub { font-size: clamp(1.05rem, 1.4vw, 1.22rem); font-weight: 600; color: var(--teal-700); }
.pbox__block h3 { font-size: 1.1rem; margin-bottom: 4px; }
.checks { display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; }
.checks__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--grad); box-shadow: 0 6px 14px -6px rgba(34, 75, 141, 0.6); }
.checks__icon .ico { width: 18px; height: 18px; stroke-width: 2.4; }
.checks .prose { font-size: 0.98rem; line-height: 1.6; }
.pbox__note { font-size: 0.85rem; font-style: italic; color: var(--muted); }
.pbox__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 960px) {
  .pbox { grid-template-columns: 1fr; border-radius: 28px; }
  .pbox__visual { min-height: 380px; }
}

/* banda de estudios */
.study {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px;
  padding: clamp(28px, 4vw, 56px); border-radius: 36px; color: #fff; background: var(--grad-v); box-shadow: var(--shadow-lg);
}
.study .waves { z-index: -1; }
.study__copy { display: grid; gap: 14px; }
.study__title { font-size: clamp(1.15rem, 1.9vw, 1.6rem); font-weight: 500; line-height: 1.4; color: #fff; max-width: 60ch; }
.study__title i { font-style: italic; }
.study .btn + .btn { grid-column: 2; }
@media (max-width: 760px) { .study { grid-template-columns: 1fr; } .study .btn + .btn { grid-column: auto; } }

.more-pats { overflow: hidden; }

/* producto */
.prod-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 70px); align-items: center; }
.prod-hero__copy { display: grid; gap: 20px; justify-items: start; }
.prod-hero__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.prod-hero__logo { margin: 0; }
.prod-hero__logo img { height: auto; max-width: 86vw; }
.prod-hero__label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.ind-list { display: grid; gap: 10px; width: 100%; max-width: 560px; }
.ind-list__item {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px 14px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.82); box-shadow: var(--shadow-sm); font-weight: 600; color: var(--ink); line-height: 1.35;
  transition: transform var(--t) var(--ease-out), box-shadow var(--t), background-color var(--t);
}
.ind-list__item > .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; color: #fff; background: var(--teal); stroke-width: 2.4; }
.ind-list__text { flex: 1 1 200px; }
.ind-list__go { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-2); color: var(--navy); transition: transform var(--t) var(--ease-out), background-color var(--t), color var(--t); }
.ind-list__go .ico { width: 18px; height: 18px; }
a.ind-list__item:hover { background: #fff; box-shadow: var(--shadow); transform: translateX(4px); }
a.ind-list__item:hover .ind-list__go { background: var(--navy); color: #fff; transform: translateX(3px); }
.prod-hero__art { position: relative; display: grid; place-items: center; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: center; }
.prod-hero__pack { position: relative; z-index: 2; grid-area: 1 / 1; width: var(--pw, 84%); height: auto; object-fit: contain; filter: drop-shadow(0 40px 36px rgba(17, 40, 80, 0.26)); }
.prod-hero__shadow { position: absolute; bottom: 6%; left: 25%; width: 50%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(17, 40, 80, 0.22), transparent); animation: shadow-pulse 6s ease-in-out infinite; }
@keyframes shadow-pulse { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.82); opacity: 0.6; } }
@media (max-width: 860px) {
  .prod-hero__grid { grid-template-columns: 1fr; }
  .prod-hero__art { max-width: 420px; grid-row: 1; }
}

.comps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); }
.comps--1 { grid-template-columns: minmax(0, 1fr); }
.comps--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comp { position: relative; overflow: hidden; display: grid; align-content: start; gap: 14px; padding: clamp(24px, 2.6vw, 34px); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.comp::before { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
.comp__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: var(--grad-soft); }
.comp__icon img { width: 48px; height: 48px; object-fit: contain; }
.comp__logo { display: flex; align-items: center; height: 72px; }
.comp__title { font-size: 1.35rem; }
.comp__list { font-size: 0.95rem; line-height: 1.85; color: var(--text); }
.comp__list i { color: var(--ink); }
@media (max-width: 900px) { .comps, .comps--2 { grid-template-columns: 1fr; } }

.pats-sec { background: var(--bg-2); }
.pat-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.pat-links > li { display: flex; }
.pat-link {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; min-height: 150px; padding: 24px 70px 24px 24px;
  border-radius: var(--r-lg); border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(var(--line), var(--line)) border-box;
  box-shadow: var(--shadow-sm); transition: transform 500ms var(--ease-out), box-shadow 500ms, background 500ms;
}
.pat-link.is-static { opacity: 0.85; }
.pat-link__spec { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-700); }
.pat-link__title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.pat-link .badge-promo { margin-top: auto; }
.pat-link__go { position: absolute; right: 20px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); color: var(--navy); transition: transform 500ms var(--ease-spring), background-color var(--t), color var(--t); }
@media (hover: hover) {
  .pat-link:not(.is-static):hover { transform: translateY(-5px); box-shadow: var(--shadow); background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; }
  .pat-link:hover .pat-link__go { transform: rotate(45deg); background: var(--navy); color: #fff; }
}

/* flotación de envases (CSS por defecto; GSAP la reemplaza si hay movimiento) */
[data-float] { animation: bob 6s ease-in-out infinite; }
[data-float]:nth-of-type(2) { animation-delay: -2s; animation-duration: 7s; }
[data-float]:nth-of-type(3) { animation-delay: -4s; animation-duration: 8s; }

/* ---------------------------------------------------------------- 404 */
.notfound { min-height: 80vh; display: grid; align-items: center; text-align: center; padding-top: calc(var(--header-h) + 40px); }
.notfound .shell { display: grid; gap: 22px; justify-items: center; }

/* ---------------------------------------------------------------- pie */
.site-footer { position: relative; isolation: isolate; overflow: hidden; color: rgba(255, 255, 255, 0.82); background: linear-gradient(180deg, #1f4387 0%, #142e61 100%); padding: 0 0 48px; }
.site-footer__waves { position: absolute; z-index: -1; left: -10%; top: -60px; width: 120%; max-width: none; opacity: 0.25; mix-blend-mode: screen; animation: waves-drift 26s ease-in-out infinite alternate; }
.marquee--logos { padding-block: 38px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee--logos .marquee__track { gap: 0; }
.marquee--logos li { padding-inline: clamp(24px, 3.4vw, 48px); }
.marquee--logos img { height: auto; max-width: none; opacity: 0.9; }
.marquee--logos li { display: flex; align-items: center; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 36px; padding-top: 48px; }
.site-footer__brand { display: grid; gap: 18px; align-content: start; justify-items: start; }
.site-footer__brand img { height: 52px; width: auto; }
.site-footer h2 { margin-bottom: 14px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: #a9ecd9; }
.site-footer__col ul { display: grid; gap: 8px; }
.site-footer__col--wide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.site-footer__col a { font-size: 0.95rem; transition: color var(--t-fast); }
@media (hover: hover) { .site-footer__col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; } }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- referencias */
.refs-dialog {
  width: min(900px, calc(100vw - 24px)); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: 30px;
  color: var(--text); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden;
}
.refs-dialog[open] { display: flex; flex-direction: column; animation: dialog-in 420ms var(--ease-out); }
.refs-dialog::backdrop { background: rgba(11, 31, 72, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in 300ms ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
.refs-dialog__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px 20px 16px 28px; border-bottom: 1px solid var(--line); }
.refs-dialog__head h2 { font-size: 1.5rem; }
.refs-dialog__search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px; background: var(--bg); color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.refs-dialog__search:focus-within { box-shadow: inset 0 0 0 2px var(--teal); }
.refs-dialog__search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: inherit; font-size: 0.95rem; color: var(--ink); }
.refs-dialog__hint { margin: 14px 28px 0; padding: 10px 14px; border-radius: 14px; background: var(--promo-bg); color: var(--promo-ink); font-size: 0.9rem; font-weight: 600; }
.refs-list { overflow-y: auto; overscroll-behavior: contain; padding: 12px 20px 24px; counter-reset: none; }
.refs-list li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 12px 10px; border-radius: 16px; font-size: 0.9rem; line-height: 1.55; transition: background-color 400ms; scroll-margin: 16px; }
.refs-list li[hidden] { display: none; }
.refs-list li.is-hit { background: rgba(59, 178, 143, 0.12); }
.refs-list__n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; font-weight: 700; font-size: 0.85rem; color: var(--navy); background: var(--bg-2); }
.is-hit .refs-list__n { color: #fff; background: var(--teal-700); }
.refs-list p { word-break: break-word; }
.refs-dialog__empty { padding: 30px; text-align: center; color: var(--muted); }
@media (max-width: 640px) {
  .refs-dialog { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto auto 0; border-radius: 26px 26px 0 0; }
  .refs-dialog__head { grid-template-columns: minmax(0, 1fr) auto; padding: 18px 16px 14px 20px; }
  .refs-dialog__search { grid-column: 1 / -1; grid-row: 2; }
  .refs-list { padding-inline: 8px; }
}

/* ---------------------------------------------------------------- estados iniciales de animación
   Solo se ocultan si site.js confirmó que GSAP está disponible (clase .motion). */
.motion [data-anim], .motion [data-stagger] > *, .motion .specs__grid > *, .motion .benefits > * { visibility: hidden; }
.motion [data-split] { visibility: hidden; }
.motion .is-ready { visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none !important; }
  .marquee { flex-wrap: wrap; }
}

/* listas de íconos (cepas, ingredientes, puntos clave) en grilla cuando hay varias */
.evi:has(> .iconrow:nth-child(2)) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.iconrow strong i { font-style: italic; }
