/* =============================================================
   OSSEO — estilos
   1. Tokens · 2. Base · 3. Utilidades · 4. Tipografía · 5. Componentes
   6. Secciones · 7. Efectos · 8. Responsive · 9. Movimiento reducido
   ============================================================= */

/* 1. Tokens ---------------------------------------------------- */
:root {
  --navy: #0b2a5b;
  --navy-2: #12397a;
  --blue: #0a5bb0;
  --sky: #1f9be6;
  --green: #3fae49;
  --ink: #12203a;
  --text: #33415a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --soft: #f3f6fb;
  --card: #f6f8fb;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(11, 42, 91, .06), 0 8px 28px rgba(11, 42, 91, .07);
  --shadow-lg: 0 20px 60px rgba(11, 42, 91, .16);
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --header-h: 76px;
}

/* 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; font-weight: 600; }
::selection { background: var(--sky); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
svg { width: 1.1em; height: 1.1em; flex: none; }
code { font-family: var(--mono); font-size: .86em; }

/* 3. Utilidades ------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 900px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--navy); color: #fff; z-index: 9999; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
[hidden] { display: none !important; }

/* 4. Tipografía ------------------------------------------------ */
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.01em; }
.kicker { font-family: var(--display); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: .7rem; }
.kicker-light { color: #8fd0ff; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--text); max-width: 60ch; margin-top: 1rem; }
.lead-sm { color: var(--muted); max-width: 62ch; margin-top: .6rem; }
.grad { background: linear-gradient(90deg, var(--blue), var(--sky) 55%, var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fine-print { font-size: .82rem; color: var(--muted); margin-top: .9rem; }

/* 5. Componentes ----------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.25rem; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: .96rem; line-height: 1;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, box-shadow .35s var(--ease-out), border-color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: .55rem 1rem; font-size: .9rem; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(11, 42, 91, .22); }
.btn-primary:hover { background: var(--blue); box-shadow: 0 10px 26px rgba(10, 91, 176, .3); }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.btn-outline-light:hover { border-color: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--display); font-weight: 600; color: var(--blue); }
.link-arrow svg { transition: transform .35s var(--ease-out); }
.link-arrow:hover svg, a:hover > .link-arrow svg, .pcard-link:hover .pcard-more svg { transform: translateX(4px); }

.tag { display: inline-flex; align-items: center; padding: .22rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; background: #e8f1fd; color: var(--blue); }
.tag-soft { background: #eef2f7; color: var(--muted); }
.tag-rodilla, .tag-tobillo { background: #e9f7ea; color: #23803a; }
.tag-instrumental { background: #f1eefb; color: #5b45b0; }
.card-line { display: inline-flex; padding: .22rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--navy); color: #fff; }
.chip { display: inline-flex; align-items: center; min-height: 38px; padding: .45rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .88rem; font-weight: 500; color: var(--text); transition: all .25s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-static { min-height: 32px; font-size: .82rem; background: var(--soft); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(11, 42, 91, .06); }
.header-inner { max-width: 1400px; margin-inline: auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 1rem; }
.brand img { width: 150px; height: auto; }
.nav-pill { display: none; margin-inline: auto; align-items: center; gap: .1rem; background: var(--navy); border-radius: 999px; padding: .3rem; box-shadow: 0 8px 26px rgba(11, 42, 91, .18); }
.nav-link { display: inline-flex; align-items: center; white-space: nowrap; padding: .55rem .72rem; border-radius: 999px; color: rgba(255, 255, 255, .86); font-size: .9rem; font-weight: 500; transition: background-color .25s, color .25s; }
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-link[aria-current="page"] { background: #fff; color: var(--navy); }
.nav-drop { position: static; display: flex; align-items: center; }
.nav-drop .nav-link { padding-right: .3rem; }
.nav-caret { color: rgba(255, 255, 255, .8); padding: .5rem .55rem .5rem .1rem; border-radius: 999px; }
.nav-caret svg { transition: transform .3s; }
.nav-drop.is-open .nav-caret svg { transform: rotate(180deg); }
.mega { position: absolute; top: calc(var(--header-h) - 8px); left: 50%; translate: -50% 0; width: min(760px, 92vw); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 1.4rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .35s var(--ease-out), visibility .25s; }
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav-drop:hover .mega, .nav-drop.is-open .mega, .nav-drop:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem 1.6rem; }
.mega-title { font-family: var(--display); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: .45rem; }
.mega-col a { display: block; padding: .3rem 0; font-size: .88rem; color: var(--ink); line-height: 1.35; }
.mega-col a:hover { color: var(--blue); }
.mega-all { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); width: 100%; font-family: var(--display); font-weight: 600; color: var(--blue); font-size: .92rem; }
.header-cta { display: none; }
.menu-btn { margin-left: auto; width: 46px; height: 46px; border-radius: 50%; background: var(--navy); display: grid; place-content: center; gap: 6px; }
.menu-btn span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease-out); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: #fff; padding: 1rem var(--gutter) 1.4rem; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-menu nav { display: grid; margin-bottom: 1rem; }
.mobile-menu nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.mobile-menu .btn { width: 100%; }

/* Tarjetas de producto */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard-link { display: flex; flex-direction: column; height: 100%; }
.pcard-media { aspect-ratio: 4 / 3; background: var(--card); display: grid; place-items: center; padding: 1.2rem; overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease-out); }
.pcard:hover .pcard-media img { transform: scale(1.05); }
.pcard-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.pcard-body h3 { font-size: 1.08rem; }
.pcard-body p { font-size: .9rem; color: var(--muted); line-height: 1.5; }
.pcard-more { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 600; font-size: .9rem; color: var(--blue); }
.pcard-more svg { transition: transform .35s var(--ease-out); }

/* Características */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.feature-grid.three { margin-top: 1rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.3rem 1.3rem 1.4rem; position: relative; }
.feature::before { content: ""; position: absolute; left: 0; top: 1.3rem; bottom: 1.3rem; width: 3px; border-radius: 3px; background: linear-gradient(var(--blue), var(--green)); }
.feature h3 { font-size: 1.02rem; margin-bottom: .45rem; color: var(--navy); }
.feature p { font-size: .93rem; color: var(--text); }

/* Leyenda */
.legend { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem; }
.legend-title { font-family: var(--display); font-weight: 600; color: var(--ink); margin-bottom: .6rem; }
.legend ul { display: grid; gap: .45rem; }
.legend li { display: grid; grid-template-columns: 64px 1fr; gap: .6rem; font-size: .88rem; align-items: baseline; }
.legend code { font-weight: 600; color: var(--blue); background: #e8f1fd; border-radius: 6px; padding: .1rem .4rem; text-align: center; }

/* Tablas */
.spec-block { margin-top: 1.4rem; }
.spec-block h3 { margin-bottom: .7rem; }
.table-wrap { position: relative; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table td:first-child { white-space: nowrap; }
.spec-table th { text-align: left; white-space: nowrap; font-family: var(--display); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--navy); padding: .75rem 1rem; }
.spec-table td { padding: .7rem .8rem; border-top: 1px solid var(--line); vertical-align: top; }
.spec-table tbody tr { transition: background-color .2s; cursor: pointer; }
.spec-table tbody tr:hover { background: #f4f8fe; }
.spec-table tbody tr.is-selected { background: #e8f1fd; }
.spec-table code { color: var(--navy); font-weight: 600; }
.td-act { width: 1%; white-space: nowrap; text-align: right; }
.row-btn { font-size: .8rem; font-weight: 600; color: var(--blue); padding: .3rem .7rem; border-radius: 999px; border: 1px solid #cfe0f6; }
.row-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Estudios */
.study-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.study { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .7rem; }
.study-top { display: flex; gap: .4rem; flex-wrap: wrap; }
.study h3 { font-size: 1.1rem; }
.study-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .82rem; color: var(--muted); }
.study-meta span::before { content: "●"; color: var(--sky); margin-right: .4rem; font-size: .6rem; vertical-align: 2px; }
.study-find { display: grid; gap: .45rem; }
.study-find li { position: relative; padding-left: 1.1rem; font-size: .92rem; }
.study-find li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--green); }
.study-cite { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: .7rem; line-height: 1.5; }
.study-foot { margin-top: auto; display: flex; flex-direction: column; gap: .5rem; }
.study-rel { font-size: .84rem; color: var(--text); text-decoration: underline; text-decoration-color: #c9d8ec; text-underline-offset: 3px; }

/* Filtros y pestañas */
.filter-bar { display: flex; flex-wrap: wrap; gap: .45rem; }
.tabs { display: inline-flex; background: var(--soft); border-radius: 999px; padding: .3rem; border: 1px solid var(--line); }
.tabs button { padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--muted); font-family: var(--display); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.js [data-tabpanel].is-shown { display: grid; }
.js [data-tabpanel]:not(.is-shown) { display: none; }

/* Migas */
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .84rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a:hover { color: var(--blue); }

/* Listas */
.check-list { display: grid; gap: .75rem; margin: 1.2rem 0 1.4rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list svg { color: var(--green); margin-top: .2rem; }

/* 6. Secciones ------------------------------------------------- */
.section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section.soft { background: var(--soft); }
.section-head { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.section-head.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; }

/* Hero portada */
.hero { position: relative; overflow: hidden; padding: clamp(1.2rem, 3vw, 2rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(60% 70% at 78% 40%, rgba(31, 155, 230, .16), transparent 60%),
  radial-gradient(40% 50% at 90% 85%, rgba(63, 174, 73, .12), transparent 60%),
  linear-gradient(180deg, #fff, #f4f8fd);
  z-index: -1; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(11, 42, 91, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 42, 91, .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 80% at 70% 45%, #000, transparent 75%); -webkit-mask-image: radial-gradient(70% 80% at 70% 45%, #000, transparent 75%); }
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero-stats li { display: grid; }
.hero-stats strong { font-family: var(--display); font-size: 2rem; color: var(--navy); line-height: 1; }
.hero-stats span { font-size: .84rem; color: var(--muted); margin-top: .3rem; max-width: 16ch; }
.hero-visual { position: relative; order: -1; height: clamp(330px, 92vw, 620px); border-radius: 28px; margin-top: -.5rem; }
.hero-visual canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: pan-y; cursor: grab; }
.hero-visual canvas:active { cursor: grabbing; }
.hero-fallback { position: absolute; inset: 8% 4%; display: grid; place-items: center; }
.hero-fallback img { mix-blend-mode: multiply; max-height: 100%; object-fit: contain; }
.hero-visual.is-3d .hero-fallback { display: none; }
.hero-badge { position: absolute; left: 4%; bottom: 8%; display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--navy); box-shadow: var(--shadow); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(63, 174, 73, .5); animation: pulse 2s infinite; }
.hero-hint, .fib-hint { position: absolute; right: 4%; top: 6%; font-size: .74rem; color: var(--muted); background: rgba(255, 255, 255, .8); padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--line); opacity: 0; transition: opacity .4s; }
.is-3d .hero-hint, .is-3d .fib-hint { opacity: 1; }

/* Líneas */
.line-grid { display: grid; gap: 1.2rem; }
.line-card { position: relative; display: grid; border-radius: 24px; overflow: hidden; min-height: 320px; color: #fff; isolation: isolate; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.line-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.line-dep { background: linear-gradient(135deg, #0b2a5b 0%, #0e4b8f 60%, #1b8fd6 130%); }
.line-ost { background: linear-gradient(135deg, #0b2a5b 0%, #164a74 55%, #2f9a63 140%); }
.line-copy { padding: clamp(1.4rem, 3vw, 2.2rem); position: relative; z-index: 1; display: flex; flex-direction: column; gap: .7rem; }
.line-num { font-family: var(--display); font-size: .85rem; letter-spacing: .1em; color: #8fd0ff; }
.line-card h3 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.line-card p { color: rgba(255, 255, 255, .82); max-width: 44ch; }
.line-card .link-arrow { color: #fff; margin-top: .4rem; }
.line-media { background: #fff; margin: 0 1rem 1rem; border-radius: 16px; display: grid; place-items: center; padding: 1rem; height: 220px; }
.line-media img { max-height: 100%; width: auto; object-fit: contain; transition: transform .7s var(--ease-out); }
.line-card:hover .line-media img { transform: scale(1.05); }

/* Mapa anatómico */
.anatomy-grid { display: grid; gap: 2rem; align-items: center; }
.anatomy-visual { position: relative; max-width: 560px; margin-inline: auto; width: 100%; }
.anatomy-visual > img { width: 100%; border-radius: 24px; }
.hotspot { position: absolute; translate: -8px -50%; display: flex; align-items: center; gap: .4rem; z-index: 2; }
.hotspot-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--sky); border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(31, 155, 230, .6); animation: pulse 2.4s infinite; flex: none; }
.hotspot-label { font-size: .74rem; font-weight: 600; color: #fff; background: var(--navy); padding: .25rem .55rem; border-radius: 999px; white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .3s var(--ease-out); pointer-events: none; }
.hotspot:hover .hotspot-label, .hotspot:focus-visible .hotspot-label, .hotspot.is-hot .hotspot-label { opacity: 1; transform: none; }
.zone-list { display: grid; gap: .5rem; margin-top: 1.5rem; }
.zone-list a { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .25s, transform .35s var(--ease-out), box-shadow .35s; }
.zone-list a:hover, .zone-list a.is-hot { border-color: var(--blue); transform: translateX(4px); box-shadow: var(--shadow); }
.zone-list span { font-family: var(--display); font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.zone-list small { color: var(--muted); font-size: .82rem; }
.zone-list svg { color: var(--blue); }

/* Video teaser */
.video-teaser { background: radial-gradient(70% 90% at 80% 50%, #123e7d, #0b2a5b 70%); color: #fff; }
.video-teaser h2 { color: #fff; }
.video-teaser .kicker { color: #8fd0ff; }
.video-teaser .lead-sm { color: rgba(255, 255, 255, .78); margin-bottom: 1.6rem; }
.video-teaser .btn-primary { background: #fff; color: var(--navy); }
.teaser-grid { display: grid; gap: 2rem; align-items: center; }
.teaser-media { position: relative; background: #fff; border-radius: 24px; padding: 1.4rem; display: grid; place-items: center; max-height: 420px; overflow: hidden; }
.teaser-media img { max-height: 360px; width: auto; }
.teaser-play { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(11, 42, 91, .14); transition: transform .4s var(--ease-out); }
.teaser-play svg { width: 28px; height: 28px; margin-left: 4px; }
.teaser-media:hover .teaser-play { transform: scale(1.08); }

/* Servicio y beneficios */
.serv-grid { display: grid; gap: 2rem; }
.benefits { display: grid; gap: 1rem; }
.benefit { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.section.soft .benefit { background: #fff; }
.benefit h3 { color: var(--navy); margin-bottom: .45rem; }
.benefit p { font-size: .93rem; }
.why-card { background: linear-gradient(140deg, var(--navy), #14528f); color: rgba(255, 255, 255, .88); border-radius: 24px; padding: clamp(1.6rem, 3vw, 2.4rem); align-self: start; font-size: 1.05rem; }

/* Páginas de línea */
.line-hero { padding: clamp(1.8rem, 4vw, 3rem) 0 clamp(2.4rem, 5vw, 4rem); background: linear-gradient(180deg, #fff, var(--soft)); border-bottom: 1px solid var(--line); }
.line-hero-grid { display: grid; gap: 2rem; align-items: center; }
.line-hero-media { background: #fff; border-radius: 28px; border: 1px solid var(--line); padding: clamp(1rem, 3vw, 2rem); display: grid; place-items: center; box-shadow: var(--shadow); min-height: 260px; }
.line-hero-media img { max-height: 380px; width: auto; mix-blend-mode: multiply; }
.overview-grid { display: grid; gap: 1.6rem; align-items: start; }
.overview-text { font-family: var(--display); font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.4; color: var(--ink); font-weight: 400; }
.zone-block { padding-top: 1.6rem; }
.zone-block + .zone-block { margin-top: 1.6rem; border-top: 1px solid var(--line); padding-top: 2.4rem; }
.zone-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin-bottom: 1.2rem; }
.zone-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.zone-head p { color: var(--muted); }
.empty-msg { color: var(--muted); padding: 2rem 0; }
.anim-section { background: var(--soft); }
.anim-link { margin-top: 1.4rem; }

/* Reproductor de la animación */
.fib-player { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(.8rem, 2vw, 1.2rem); box-shadow: var(--shadow); }
.fib-stage { position: relative; height: clamp(360px, 60vw, 560px); border-radius: 18px; overflow: hidden; background: radial-gradient(70% 70% at 50% 40%, #ffffff, #e9f0f8); }
.fib-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: pan-y; cursor: grab; }
.fib-fallback { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: 1.2rem; align-items: center; justify-items: center; }
.fib-fallback img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.is-3d .fib-fallback { display: none; }
.fib-caption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; background: rgba(11, 42, 91, .88); color: #fff; padding: .8rem 1rem; border-radius: 14px; font-size: .93rem; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.fib-player:not(.is-3d) .fib-caption { display: none; }
.fib-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .9rem; }
.fib-progress { flex: 1 1 160px; height: 6px; background: var(--soft); border-radius: 6px; overflow: hidden; }
.fib-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); transform-origin: left; transform: scaleX(0); }
.fib-player:not(.is-3d) .fib-controls { display: none; }
.fib-steps { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .9rem; counter-reset: s; }
.fib-steps button { width: 100%; display: flex; align-items: center; gap: .6rem; text-align: left; padding: .65rem .8rem; border-radius: 12px; border: 1px solid var(--line); font-size: .86rem; color: var(--text); transition: all .25s; }
.fib-steps button:hover { border-color: var(--blue); }
.step-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); font-weight: 700; font-size: .78rem; color: var(--navy); flex: none; transition: all .25s; }
.fib-steps button.is-done .step-n { background: #dff3e1; color: #23803a; }
.fib-steps button.is-active { border-color: var(--navy); background: #f4f8fe; color: var(--ink); }
.fib-steps button.is-active .step-n { background: var(--navy); color: #fff; }
.fib-player:not(.is-3d) .fib-steps button { pointer-events: none; }

/* Ficha de producto */
.product-hero { padding: clamp(1.4rem, 3vw, 2.4rem) 0 clamp(2.4rem, 5vw, 4rem); background: linear-gradient(180deg, #fff, var(--soft)); }
.product-grid { display: grid; gap: 2rem; align-items: start; }
.product-grid > *, .hero-grid > *, .line-hero-grid > *, .contact-grid > *, .serv-grid > * { min-width: 0; }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: 24px; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow); overflow: hidden; }
.gallery-main { position: relative; }
.gallery-main img { position: absolute; inset: clamp(1rem, 3vw, 2rem); width: calc(100% - 2 * clamp(1rem, 3vw, 2rem)); height: calc(100% - 2 * clamp(1rem, 3vw, 2rem)); object-fit: contain; transition: opacity .3s; }
.gallery-thumbs { display: flex; gap: .55rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .3rem; }
.thumb { flex: none; width: 82px; height: 66px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; padding: .35rem; transition: border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb.is-active, .thumb:hover { border-color: var(--navy); }
.product-info h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-top: .9rem; }
.badges { display: grid; gap: .45rem; margin-top: 1.1rem; }
.badges li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--ink); }
.badges svg { color: var(--green); }
.facts { display: grid; gap: 0; margin-top: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.facts div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 1rem; padding: .65rem 1rem; }
.facts div + div { border-top: 1px solid var(--line); }
.facts dt { font-size: .82rem; font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; font-size: .9rem; color: var(--ink); }
.screws-note { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.1rem; padding: .85rem 1rem; background: #e8f1fd; border-radius: var(--radius-sm); font-size: .9rem; color: var(--navy); }
.screws-note svg { margin-top: .15rem; }
.consult { margin-top: 1.5rem; padding: 1.2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.consult-title { font-family: var(--display); font-weight: 600; color: var(--ink); }
.consult-ref { margin-top: .4rem; font-size: .88rem; color: var(--blue); font-weight: 600; }
.consult-btns { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .8rem; }
.note-card { margin-top: 1.6rem; padding: 1.3rem; background: #fff; border-radius: var(--radius); border: 1px dashed #bcd2ee; display: grid; gap: .5rem; }
.disclaimer { margin-top: 2rem; }
.card-grid.three { grid-template-columns: 1fr; }

/* Quiénes somos */
.story-grid { display: grid; gap: 1.5rem; }
.story-text { display: grid; gap: 1rem; font-size: 1.06rem; max-width: 70ch; }
.mv-grid { display: grid; gap: 1rem; }
.mv-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.mv-text { font-family: var(--display); font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--ink); line-height: 1.45; }
.mv-card .check-list { margin-bottom: 0; }

/* Estudios */
.notice { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.4rem; padding: 1rem 1.1rem; background: #fff8e8; border: 1px solid #f4dfa6; color: #6a4f0b; border-radius: var(--radius-sm); font-size: .92rem; }
.notice svg { margin-top: .15rem; }
.how-grid { display: grid; gap: 1rem; }
.how-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; transition: transform .4s var(--ease-out), box-shadow .4s; }
.how-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.how-card h3 { color: var(--navy); }
.how-card p { font-size: .92rem; flex: 1; }

/* Contacto */
.contact-grid { display: grid; gap: 2rem; align-items: start; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); }
.field { grid-column: 1 / -1; display: grid; gap: .4rem; }
.field.half { grid-column: span 2; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; width: 100%; padding: .8rem .95rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 91, 176, .12); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #d6453d; }
.form-error { grid-column: 1 / -1; color: #b3261e; font-size: .88rem; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .6rem; }
.contact-form .fine-print { grid-column: 1 / -1; margin-top: 0; }
.contact-cards { display: grid; gap: .8rem; }
.contact-card { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: border-color .25s, transform .35s var(--ease-out); }
a.contact-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.contact-card > svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: #e8f1fd; color: var(--blue); }
.contact-card p { font-size: .8rem; color: var(--muted); }
.contact-card strong { font-family: var(--display); color: var(--ink); font-size: 1.02rem; word-break: break-word; }
.contact-note { padding: 1.2rem; border-radius: var(--radius); background: var(--soft); font-size: .92rem; }

/* CTA y pie */
.cta-band { background: linear-gradient(120deg, var(--navy), #0f4a8c 60%, #157ac2); color: #fff; }
.cta-inner { display: grid; gap: 1.4rem; padding-block: clamp(2.4rem, 5vw, 3.6rem); align-items: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 26ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.site-footer { background: #f7f9fc; border-top: 1px solid var(--line); padding-top: clamp(2.4rem, 5vw, 3.6rem); font-size: .9rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand img { width: 170px; margin-bottom: .8rem; }
.footer-brand > p { color: var(--muted); }
.footer-contact { display: grid; gap: .4rem; margin-top: 1rem; }
.footer-contact a { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 500; }
.footer-contact a:hover { color: var(--blue); }
.footer-addr { display: inline-flex; align-items: flex-start; gap: .5rem; color: var(--ink); font-weight: 500; }
.footer-addr svg { margin-top: .2rem; }
.footer-title { font-family: var(--display); font-weight: 600; color: var(--ink); margin-bottom: .7rem; }
.site-footer ul li { padding: .22rem 0; }
.site-footer ul a { color: var(--text); }
.site-footer ul a:hover { color: var(--blue); }
.footer-legal { margin-top: 2.4rem; padding-block: 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .6rem; font-size: .8rem; color: var(--muted); }

/* Portada: cuerpo humano interactivo (puntos, recorrido, tarjeta de zona) */
.hero-anatomy { height: auto !important; display: grid; justify-items: center; gap: .7rem; }
.anatomy-stage { position: relative; width: 100%; max-width: 430px; perspective: 1100px; }
.hero-anatomy .anatomy-visual { max-width: none; transition: transform .5s var(--ease-out); transform-style: preserve-3d; will-change: transform; }
.hero-anatomy .anatomy-visual > img { mix-blend-mode: multiply; border-radius: 28px; }
.hero-anatomy .hotspot { translate: -12px -50%; }
.hero-anatomy .hotspot-dot { width: 24px; height: 24px; border: 3px solid #fff; background: linear-gradient(135deg, var(--sky), var(--green)); box-shadow: 0 4px 14px rgba(11, 42, 91, .35); position: relative; transition: transform .35s var(--ease-out); animation: none; }
.hero-anatomy .hotspot-dot::before, .hero-anatomy .hotspot-dot::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 2px; translate: -50% -50%; }
.hero-anatomy .hotspot-dot::before { width: 10px; height: 2.5px; }
.hero-anatomy .hotspot-dot::after { width: 2.5px; height: 10px; }
.hero-anatomy .hotspot::before { content: ""; position: absolute; left: 0; top: 50%; width: 24px; height: 24px; translate: 0 -50%; border-radius: 50%; border: 2px solid rgba(31, 155, 230, .7); animation: anatomyRing 2.2s infinite; pointer-events: none; }
.hero-anatomy .hotspot:hover .hotspot-dot, .hero-anatomy .hotspot.is-active .hotspot-dot { transform: scale(1.22); background: linear-gradient(135deg, var(--green), var(--sky)); }
.hero-anatomy .hotspot.is-active::before { border-color: rgba(63, 174, 73, .8); animation-duration: 1.4s; }
.hotspot.is-active .hotspot-label { opacity: 1; transform: none; }
.hero-anatomy .hotspot-label { font-size: .8rem; padding: .3rem .65rem; box-shadow: 0 6px 18px rgba(11, 42, 91, .25); }
.hero-anatomy .hotspot { display: block; width: 24px; height: 24px; }
.hero-anatomy .hotspot-dot { display: block; }
.hero-anatomy .hotspot-label { position: absolute; left: 32px; top: 50%; translate: 0 -50%; }
.hero-anatomy .hotspot--izq .hotspot-label { left: auto; right: 32px; }
.hero-anatomy .hotspot--izq .hotspot-label { transform: translateX(4px); }
.hero-anatomy .hotspot--izq:hover .hotspot-label, .hero-anatomy .hotspot--izq.is-active .hotspot-label { transform: none; }
.anatomy-hint { position: absolute; left: 4%; bottom: 5%; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .82rem; font-weight: 600; color: var(--navy); transition: opacity .5s, transform .5s var(--ease-out); z-index: 3; }
.anatomy-hint.is-gone { opacity: 0; transform: translateY(8px); pointer-events: none; }
.anatomy-hint .hand { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--green)); color: #fff; animation: handTap 1.6s infinite var(--ease-out); }
.anatomy-hint .hand svg { width: 16px; height: 16px; }
.zone-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; max-width: 560px; }
.zone-chip { padding: .4rem .7rem; border-radius: 999px; border: 1.5px solid #cfe0f6; background: #fff; color: var(--navy); font-size: .8rem; font-weight: 600; font-family: var(--display); transition: all .25s; }
.zone-chip:hover { border-color: var(--blue); }
.zone-chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 6px 16px rgba(11, 42, 91, .25); }
.zone-cards { width: 100%; max-width: 500px; min-height: 168px; }
.zone-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: .85rem 1rem .95rem; box-shadow: var(--shadow); animation: cardIn .45s var(--ease-out); }
.zc-head { display: flex; align-items: center; gap: .7rem; }
.zc-pin { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #e8f1fd; color: var(--blue); flex: none; }
.zc-pin svg { width: 20px; height: 20px; }
.zc-head > div { flex: 1; min-width: 0; }
.zc-kicker { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.zc-head h3 { font-size: 1.15rem; }
.zc-count { flex: none; font-size: .78rem; font-weight: 700; color: #23803a; background: #e9f7ea; padding: .25rem .6rem; border-radius: 999px; }
.zc-list { display: grid; gap: .2rem; margin: .55rem 0 .7rem; padding-left: 3.1rem; }
.zc-list li { font-size: .84rem; position: relative; line-height: 1.4; }
.zc-list li::before { content: ""; position: absolute; left: -.85rem; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--sky); }
.zc-list a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.zc-more { color: var(--muted); }
.zc-more::before { display: none; }
.zc-cta { margin-left: 3.1rem; }
@keyframes anatomyRing { 0% { transform: scale(1); opacity: .9; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
@keyframes handTap { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-3px) scale(1.08); } 60% { transform: translateY(1px) scale(.96); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.zone-grid { grid-template-columns: 1fr; margin-top: 0; }
@media (min-width: 720px) { .zone-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .zone-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 539px) {
  .zc-cta { margin-left: 0; }
  .zc-list li::before { left: -.75rem; }
  .zc-list { padding-left: .8rem; }
  .anatomy-hint { font-size: .76rem; }
}

/* 7. Efectos --------------------------------------------------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 155, 230, .5); } 70% { box-shadow: 0 0 0 12px rgba(31, 155, 230, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 155, 230, 0); } }
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
@view-transition { navigation: auto; }

/* 8. Responsive ------------------------------------------------ */
@media (max-width: 539px) {
  .hero-badge { display: none; }
}
@media (min-width: 540px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .fib-steps { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .study-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 3; }
  .mv-grid { grid-template-columns: 1fr 1fr; }
  .mv-wide { grid-column: 1 / -1; }
  .cta-inner { grid-template-columns: 1fr auto; }
  .field.half { grid-column: span 1; }
  .line-card { grid-template-columns: 1.1fr 1fr; }
  .line-media { margin: 1rem; height: auto; }
}
@media (min-width: 960px) {
  :root { --header-h: 84px; }
  .nav-pill { display: flex; }
  .nav-link { font-size: .86rem; }
  .menu-btn, .mobile-menu { display: none !important; }
  .brand img { width: 168px; }
  .hero-grid { grid-template-columns: 1.02fr 1fr; }
  .hero-visual { order: 0; height: clamp(420px, 52vw, 620px); margin-top: 0; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .line-grid { grid-template-columns: 1fr 1fr; }
  .line-card { grid-template-columns: 1fr; }
  .line-media { margin: 0 1rem 1rem; height: 240px; }
  .anatomy-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .teaser-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; }
  .serv-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; }
  .line-hero-grid { grid-template-columns: 1.1fr 1fr; gap: 3rem; }
  .overview-grid { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
  .product-grid { grid-template-columns: 1.05fr 1fr; gap: 3rem; }
  .story-grid { grid-template-columns: 1fr 2fr; gap: 3rem; }
  .mv-grid { grid-template-columns: 1fr 1fr 1.2fr; }
  .mv-wide { grid-column: auto; }
  .how-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: 1.5fr 1fr; gap: 3rem; }
  .benefits.five { grid-template-columns: repeat(3, 1fr); }
  .fib-steps { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr .8fr; }
  .footer-grid > div:last-child { grid-column: auto; }
}
@media (min-width: 1280px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
  .study-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-link { padding: .6rem 1rem; font-size: .9rem; }
  .header-cta { display: inline-flex; }
}

/* 9. Movimiento reducido (solo efectos intrusivos) ---------- */
@media (prefers-reduced-motion: reduce) {
  .pulse, .hotspot-dot { animation: none; }
  .hero-anatomy .hotspot::before, .anatomy-hint .hand { animation-duration: 3.5s; }
}

/* =============================================================
   10. Asistente virtual (chat)
   ============================================================= */
.osc { position: fixed; right: 18px; bottom: 18px; z-index: 80; font-family: var(--sans); }
.osc-fab { display: flex; align-items: center; gap: .6rem; height: 60px; padding: 0 1.2rem 0 .45rem; border-radius: 999px; background: var(--navy); color: #fff; box-shadow: 0 12px 30px rgba(11, 42, 91, .32); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-color .25s; }
.osc-fab:hover { transform: translateY(-2px); background: var(--blue); }
.osc-fab-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--sky), var(--green)); position: relative; }
.osc-fab-icon::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(31, 155, 230, .55); animation: oscRing 2.6s infinite; }
.osc-fab-icon svg { width: 24px; height: 24px; }
.osc-fab-label { font-family: var(--display); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.osc.is-open .osc-fab { padding: 0; width: 60px; justify-content: center; }
.osc.is-open .osc-fab-label { display: none; }
.osc.is-open .osc-fab-icon::after { display: none; }
.osc-panel { position: fixed; right: 18px; bottom: 92px; width: min(400px, calc(100vw - 36px)); height: min(640px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border-radius: 22px; box-shadow: 0 24px 70px rgba(11, 42, 91, .28); border: 1px solid var(--line); overflow: hidden; animation: oscIn .35s var(--ease-out); }
.osc-head { display: flex; align-items: center; gap: .7rem; padding: .9rem .9rem .9rem 1rem; background: linear-gradient(120deg, var(--navy), #124a8c); color: #fff; }
.osc-avatar { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 1.2rem; background: #fff; color: var(--blue); box-shadow: inset 0 -3px 0 var(--green); }
.osc-titles { flex: 1; min-width: 0; }
.osc-title { font-family: var(--display); font-weight: 600; font-size: 1.02rem; line-height: 1.2; }
.osc-sub { font-size: .76rem; color: rgba(255, 255, 255, .78); display: flex; align-items: center; gap: .35rem; margin-top: .1rem; }
.osc-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ee07a; box-shadow: 0 0 0 3px rgba(94, 224, 122, .25); flex: none; }
.osc-icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; opacity: .85; transition: background-color .2s, opacity .2s; }
.osc-icon-btn:hover { background: rgba(255, 255, 255, .14); opacity: 1; }
.osc-icon-btn svg { width: 18px; height: 18px; }
.osc-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; background: var(--soft); overscroll-behavior: contain; }
.osc-msg { max-width: 88%; padding: .7rem .9rem; border-radius: 16px; font-size: .92rem; line-height: 1.5; word-wrap: break-word; }
.osc-msg p + p, .osc-msg p + ul, .osc-msg ul + p { margin-top: .45rem; }
.osc-msg ul { padding-left: 1.05rem; list-style: disc; display: grid; gap: .25rem; margin-top: .3rem; }
.osc-msg a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.osc-bot { align-self: flex-start; background: #fff; color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.osc-user { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 6px; }
.osc-cta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.osc-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .8rem; border-radius: 999px; font-size: .84rem; font-weight: 600; text-decoration: none !important; }
.osc-btn svg { width: 16px; height: 16px; }
.osc-btn-wa { background: #1f9e55; color: #fff !important; }
.osc-btn-wa:hover { background: #17864a; }
.osc-btn-form { background: #e8f1fd; color: var(--navy) !important; }
.osc-btn-form:hover { background: #d7e7fb; }
.osc-typing { display: flex; gap: 5px; padding: .85rem 1rem; }
.osc-typing span { width: 7px; height: 7px; border-radius: 50%; background: #9fb3cc; animation: oscDot 1.2s infinite ease-in-out; }
.osc-typing span:nth-child(2) { animation-delay: .15s; }
.osc-typing span:nth-child(3) { animation-delay: .3s; }
.osc-sugs { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem 1rem 0; background: #fff; border-top: 1px solid var(--line); }
.osc-chip { padding: .45rem .75rem; border-radius: 999px; border: 1.5px solid #cfe0f6; color: var(--navy); font-size: .82rem; font-weight: 500; background: #fff; text-align: left; transition: background-color .2s, border-color .2s; }
.osc-chip:hover { background: #f1f7ff; border-color: var(--blue); }
.osc-form { display: flex; align-items: flex-end; gap: .5rem; padding: .75rem 1rem .4rem; background: #fff; }
.osc-sugs[hidden] + .osc-form { border-top: 1px solid var(--line); }
.osc-form textarea { flex: 1; resize: none; font: inherit; font-size: .95rem; line-height: 1.4; max-height: 120px; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 14px; color: var(--ink); background: #fff; }
.osc-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 91, 176, .12); }
.osc-send { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; transition: background-color .2s, opacity .2s; }
.osc-send:hover:not(:disabled) { background: var(--blue); }
.osc-send:disabled { opacity: .35; cursor: default; }
.osc-send svg { width: 18px; height: 18px; }
.osc-foot { display: flex; justify-content: space-between; gap: .6rem; padding: 0 1rem .7rem; font-size: .7rem; color: var(--muted); background: #fff; }
.osc-foot .is-warn { color: #b3261e; font-weight: 600; }
.osc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@keyframes oscIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes oscRing { 0% { transform: scale(1); opacity: .9; } 70% { transform: scale(1.35); opacity: 0; } 100% { opacity: 0; } }
@keyframes oscDot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
@media (max-width: 539px) {
  .osc { right: 14px; bottom: 14px; }
  .osc-fab { height: 56px; }
  .osc-fab-label { display: none; }
  .osc-fab { padding: 0; width: 56px; justify-content: center; }
  .osc.is-open .osc-fab { display: none; }
  .osc-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; bottom: 0; right: 0; }
  .osc-head { padding-top: max(.9rem, env(safe-area-inset-top)); }
  .osc-foot { padding-bottom: max(.7rem, env(safe-area-inset-bottom)); }
  html.osc-lock, html.osc-lock body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .osc-fab-icon::after { animation: none; }
}
