@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("fonts/instrument-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #0a1838;
  --ink-2: #13265e;
  --blue: #1f56d6;
  --cyan: #2fa8e0;
  --sky: #8fadcb;
  --sky-2: #dbe6f2;
  --paper: #f4f7fb;
  --white: #fff;
  --red: #d9434e;
  --text: #0f1a33;
  --muted: #56637d;
  --line: rgba(15, 26, 51, .12);
  --r: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --display: "Bricolage", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(16px, 4vw, 56px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--body); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 5.2vw, 72px); }
h3 { font-size: clamp(21px, 2vw, 26px); letter-spacing: -.015em; line-height: 1.12; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
em { font-family: "Instrument", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.wrap { width: min(1280px, 100% - 2 * var(--gut)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.kicker { font: 600 13px/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 46ch; }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 900px; }
.sec-head h2 + .lead { margin-top: 22px; }
.sec-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; max-width: none; flex-wrap: wrap; }

/* Botones */
.btn { --bg: var(--ink); --fg: var(--white); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; background: var(--bg); color: var(--fg); font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .35s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cyan); transform: translateY(101%); border-radius: inherit; transition: transform .45s var(--ease); }
.btn:hover::after, .btn:focus-visible::after { transform: none; }
.btn:active { transform: scale(.97); }
.btn-primary { --bg: var(--blue); box-shadow: 0 14px 34px -14px rgba(31, 86, 214, .8); }
.btn-light { --bg: var(--white); --fg: var(--ink); }
.btn-light:hover { --fg: var(--white); color: var(--white); }
.btn-ghost { --bg: transparent; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-ghost-dark { --bg: transparent; --fg: var(--ink); border-color: var(--line); }
.btn-ghost-dark:hover { color: var(--white); border-color: var(--cyan); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.btn-block { width: 100%; }

/* Barra de progreso y cabecera */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--cyan), var(--blue)); transform: scaleX(0); transform-origin: 0 50%; }
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .35s, box-shadow .35s, transform .45s var(--ease); }
.top-in { width: min(1360px, 100% - 2 * var(--gut)); margin-inline: auto; display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: block; width: 150px; flex: none; position: relative; }
.brand img { width: 100%; }
.brand-dark { position: absolute; inset: 0; opacity: 0; transition: opacity .3s; }
.brand-light { transition: opacity .3s; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { position: relative; padding: 10px 12px; color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 999px; transition: color .25s, background-color .25s; }
.nav a:hover, .nav a.is-on { color: var(--white); background: rgba(255, 255, 255, .1); }
.top.is-scrolled { background: rgba(244, 247, 251, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.top.is-scrolled .brand-dark { opacity: 1; }
.top.is-scrolled .brand-light { opacity: 0; }
.top.is-scrolled .nav a { color: var(--text); }
.top.is-scrolled .nav a:hover, .top.is-scrolled .nav a.is-on { background: rgba(31, 86, 214, .08); color: var(--blue); }
.top.is-scrolled .top-cta { --bg: var(--ink); --fg: var(--white); }
.top.is-hidden { transform: translateY(-100%); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-content: center; gap: 6px; cursor: pointer; background: rgba(255, 255, 255, .12); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease); }
.top.is-scrolled .menu summary { background: rgba(15, 26, 51, .07); }
.top.is-scrolled .menu summary span { background: var(--ink); }
.menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: 56px; width: min(320px, calc(100vw - 32px)); background: var(--white); border-radius: 20px; padding: 10px; box-shadow: 0 30px 60px -20px rgba(10, 24, 56, .45); display: grid; }
.menu-panel a { padding: 14px 16px; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 600; }
.menu-panel a:hover { background: var(--paper); }
.menu-tel { color: var(--blue) !important; }

/* Portada */
.hero { position: relative; background: var(--ink); color: var(--white); }
.hero-stage { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
#fly-line path { stroke-width: 1.4; opacity: .9; }
.hero-veil { position: absolute; inset: 0; background: radial-gradient(90% 70% at 15% 50%, rgba(10, 24, 56, .7), transparent 70%); pointer-events: none; }
.hero-copy { position: absolute; left: var(--gut); top: 50%; transform: translateY(-46%); width: min(760px, 56vw); z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; letter-spacing: .04em; color: rgba(255, 255, 255, .78); margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(47, 168, 224, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(47, 168, 224, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 168, 224, 0); } }
.hero-title { font-size: clamp(48px, 7vw, 112px); line-height: .92; letter-spacing: -.045em; }
.hero-title .ht-line { display: block; white-space: nowrap; }
.hero-title em { color: var(--cyan); letter-spacing: -.02em; font-size: 1.08em; position: relative; }
.hero-title em::after { content: ""; position: absolute; left: 4%; right: -2%; bottom: .02em; height: .07em; background: var(--red); border-radius: 99px; transform: rotate(-2deg); transform-origin: 0 50%; }
.hero-sub { margin-top: 28px; font-size: clamp(17px, 1.45vw, 21px); color: rgba(255, 255, 255, .8); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { list-style: none; padding: 0; margin: 46px 0 0; display: flex; gap: clamp(20px, 3vw, 44px); }
.hero-facts li { display: grid; gap: 2px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .22); }
.hero-facts b { font: 800 clamp(19px, 1.6vw, 24px)/1 var(--display); letter-spacing: -.02em; }
.hero-facts span { font-size: 13px; color: rgba(255, 255, 255, .62); }
.hero-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: linear-gradient(180deg, rgba(10, 24, 56, .55), transparent 160px), linear-gradient(90deg, rgba(10, 24, 56, .82), rgba(10, 24, 56, .35) 55%, transparent 80%); }
.hero-statement { position: absolute; inset: auto var(--gut) 12vh; z-index: 3; display: none; }
.hero-statement p { font: 800 clamp(32px, 5vw, 76px)/1 var(--display); letter-spacing: -.035em; max-width: 16ch; text-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.hero-statement em { color: var(--white); }
.hero-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 20px; z-index: 3; }
.hero-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--white); animation: hint 1.8s infinite var(--ease); }
@keyframes hint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
.motion .hero-statement { display: block; opacity: 0; }

/* Capas de la piel */
.layers { padding: clamp(90px, 12vw, 160px) 0; background: var(--paper); }
.layers-head { max-width: 860px; margin-bottom: clamp(40px, 6vw, 80px); }
.layers-head h2 + .lead { margin-top: 22px; }
.layers-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.skin { position: relative; border-radius: 28px; overflow: hidden; height: min(78vh, 640px); display: grid; grid-template-rows: 22% 43% 35%; box-shadow: 0 40px 80px -40px rgba(10, 24, 56, .45); }
.skin-band { position: relative; overflow: hidden; }
.skin-band span { position: absolute; left: 22px; top: 18px; z-index: 2; font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .78); color: var(--ink); }
.b1 { background: linear-gradient(180deg, #f6dccd, #efc3ae); }
.b1::before { content: ""; position: absolute; inset: 0 0 auto; height: 14px; background: repeating-linear-gradient(90deg, #e8b29a 0 18px, #f3cdb9 18px 36px); opacity: .7; }
.b2 { background: linear-gradient(180deg, #f0b9b0, #e49a93); }
.b3 { background: linear-gradient(180deg, #f7e2b8, #f1d39c); }
.hair { position: absolute; bottom: -10px; width: 6px; border-radius: 3px; background: #5b3a2c; }
.hair::after { content: ""; position: absolute; left: -9px; bottom: 0; width: 24px; height: 30px; border-radius: 50%; background: #c27c6e; z-index: -1; }
.h1 { left: 26%; height: 92%; transform: rotate(-8deg); }
.h2 { left: 58%; height: 104%; transform: rotate(6deg); }
.h3 { left: 82%; height: 86%; transform: rotate(-4deg); }
.vessel { position: absolute; left: -5%; right: -5%; bottom: 18%; height: 10px; border-radius: 6px; background: #c2414e; transform: rotate(-3deg); box-shadow: 0 22px 0 -2px #4569b8; }
.fat { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .55); border: 2px solid rgba(214, 170, 96, .55); }
.f1 { width: 26%; height: 52%; left: 6%; top: 30%; } .f2 { width: 22%; height: 46%; left: 34%; top: 22%; } .f3 { width: 28%; height: 56%; left: 58%; top: 34%; } .f4 { width: 16%; height: 36%; left: 84%; top: 18%; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 22%; border: 3px solid var(--blue); border-radius: 20px; box-shadow: 0 0 0 999px rgba(10, 24, 56, .28); pointer-events: none; transition: none; }
.scan i { position: absolute; right: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(31, 86, 214, .25); }
.layer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.layer-item { padding: 28px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); transition: transform .5s var(--ease), box-shadow .5s, border-color .5s, opacity .5s; }
.layer-item h3 { margin-bottom: 12px; }
.layer-item p:not(.layer-n) { color: var(--muted); }
.layer-n { font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.motion .layer-item { opacity: .45; }
.motion .layer-item.is-on { opacity: 1; border-color: rgba(31, 86, 214, .4); box-shadow: 0 30px 60px -36px rgba(31, 86, 214, .6); transform: translateX(-8px); }
.motion .scan { display: block; }
html:not(.motion) .scan { display: none; }

/* Servicios */
.services { padding: clamp(90px, 12vw, 160px) 0; background: var(--white); }
.serv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s, border-color .4s; transform-style: preserve-3d; }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .8s var(--ease); }
.card-wide { grid-column: span 2; flex-direction: row; }
.card-wide > img { width: 46%; aspect-ratio: auto; object-fit: cover; object-position: 50% 22%; }
.card-wide .card-body { padding: 30px; }
.card-brand { background: linear-gradient(140deg, var(--blue), #163c9e); color: var(--white); border-color: transparent; }
.card-brand .card-n, .card-brand .card-link { color: #bfe6f8; }
.card-brand .card-sum { color: rgba(255, 255, 255, .8); }
.card-brand-list { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; padding: 0; list-style: none; font: 800 clamp(18px, 1.8vw, 24px)/1.2 var(--display); letter-spacing: -.02em; color: rgba(255, 255, 255, .92); }
.card-body { display: flex; flex-direction: column; gap: 12px; padding: 26px; flex: 1; }
.card-n { font: 800 15px/1 var(--display); color: var(--blue); margin: 0; }
.card-sum { color: var(--muted); margin: 0; }
.card-full { display: grid; gap: 12px; color: var(--muted); }
.card-full p { margin: 0; }
.js .card-full { display: none; }
.full-label { font-weight: 600; color: var(--text) !important; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--text); font-size: 14.5px; line-height: 1.25; }
.card-link { margin-top: auto; align-self: flex-start; display: inline-flex; gap: 10px; align-items: center; padding: 10px 0 0; border: 0; background: none; font: 600 15.5px/1 var(--body); color: var(--blue); cursor: pointer; }
.card-link::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-link span { transition: transform .4s var(--ease); }
.no-js-card .card-link { display: none; }
html:not(.js) .card-link { display: none; }
.card:hover { border-color: rgba(31, 86, 214, .35); box-shadow: 0 30px 60px -34px rgba(10, 24, 56, .45); }
.card:hover img { transform: scale(1.05); }
.card:hover .card-link span { transform: translateX(6px); }
.card:focus-within { border-color: var(--blue); }

/* Tecnología */
.tech { background: var(--ink); color: var(--white); overflow: hidden; }
.tech-pin { padding: clamp(90px, 11vw, 140px) 0; }
.tech-head { margin-bottom: clamp(36px, 5vw, 60px); }
.tech-head .kicker { color: var(--cyan); }
.tech-head h2 { max-width: 15ch; }
.tech-track { display: grid; gap: 22px; width: min(1280px, 100% - 2 * var(--gut)); margin-inline: auto; }
.tech-panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(22px, 3vw, 44px); align-items: center; padding: clamp(22px, 3vw, 40px); border-radius: 28px; background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08); }
.tech-media { border-radius: 20px; background: linear-gradient(160deg, #2a4fae, #1a3784); display: grid; place-items: center; overflow: hidden; height: min(58vh, 480px); }
.tech-media img { height: 92%; width: auto; max-width: 92%; object-fit: contain; }
.tech-media-light { background: linear-gradient(160deg, #eef4fb, #cfdcec); }
.tech-media-light img { width: 86%; height: auto; max-width: 86%; }
.tech-tag { display: inline-block; font: 600 12.5px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
.tech-copy h3 { font-size: clamp(30px, 3.6vw, 52px); margin-bottom: 18px; letter-spacing: -.03em; line-height: 1; }
.tech-copy > p:not(.tech-tag):not(.tech-note) { color: rgba(255, 255, 255, .76); max-width: 48ch; }
.tech-note { margin-top: 22px; padding: 12px 16px; border-radius: 12px; background: rgba(47, 168, 224, .14); color: #bfe6f8; font-weight: 500; display: inline-block; }
.geneo-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.geneo-steps li { display: grid; gap: 6px; font-size: 14.5px; color: rgba(255, 255, 255, .72); }
.geneo-steps img { border-radius: 12px; aspect-ratio: 400 / 210; object-fit: cover; }
.geneo-steps b { color: var(--white); font: 700 17px/1.1 var(--display); }
.tech-panel-end { grid-template-columns: 1fr; background: linear-gradient(140deg, var(--blue), #163c9e); }
.tech-panel-end .tech-tag { color: #bfe6f8; }
.tech-panel-end h3 { max-width: 16ch; }
.tech-panel-end .btn { margin-top: 28px; --bg: var(--white); --fg: var(--ink); }
.tech-panel-end .btn:hover { color: var(--white); }
@media (min-width: 981px) {
  .motion .tech-pin { height: 100vh; height: 100svh; padding: 0; display: flex; flex-direction: column; justify-content: center; }
  .motion .tech-head { margin-bottom: 4vh; }
  .motion .tech-track { display: flex; width: max-content; gap: 28px; padding-inline: var(--gut); margin: 0; }
  .motion .tech-panel { width: min(1040px, 78vw); flex: none; }
  .motion .tech-media { height: min(56vh, 520px); }
}

/* Equipo */
.team { padding: clamp(90px, 12vw, 160px) 0; background: var(--paper); }
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.doc { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; padding: 22px; border-radius: 26px; background: var(--white); border: 1px solid var(--line); }
.doc-photo { border-radius: 18px; overflow: hidden; background: var(--sky-2); aspect-ratio: 4 / 5; }
.doc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .9s var(--ease); }
.doc:hover .doc-photo img { transform: scale(1.04); }
.doc h3 { margin-bottom: 14px; }
.doc-tags { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.doc-tags li { font-size: 13.5px; padding: 6px 11px; border-radius: 999px; background: var(--sky-2); color: var(--ink); }
.doc-ced { font-size: 14px; color: var(--muted); }
.team-photo { margin: 22px 0 0; position: relative; border-radius: 28px; overflow: hidden; background: var(--sky); }
.team-photo img { width: 100%; aspect-ratio: 1279 / 600; object-fit: cover; object-position: 50% 20%; }
.team-photo figcaption { position: absolute; left: 22px; bottom: 20px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-weight: 600; font-size: 15px; color: var(--ink); }

/* Instagram */
.ig { padding: clamp(80px, 10vw, 140px) 0; background: var(--white); }
.ig-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.ig-card { position: relative; display: block; border-radius: 18px; overflow: hidden; text-decoration: none; aspect-ratio: 4 / 5; background: var(--sky-2); }
.ig-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ig-card span { position: absolute; inset: auto 0 0; padding: 40px 14px 14px; background: linear-gradient(transparent, rgba(10, 24, 56, .88)); color: var(--white); font-weight: 600; font-size: 15px; line-height: 1.25; transform: translateY(8px); opacity: .95; transition: transform .5s var(--ease); }
.ig-card:hover img { transform: scale(1.06); }
.ig-card:hover span { transform: none; }

/* Farmacia */
.pharma { background: linear-gradient(160deg, var(--blue), #10307f); color: var(--white); padding: clamp(90px, 11vw, 150px) 0 0; overflow: hidden; }
.pharma .kicker { color: #bfe6f8; }
.pharma .lead { color: rgba(255, 255, 255, .8); margin: 22px 0 32px; }
.pharma-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.refer { padding: 30px; border-radius: 26px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.refer-t { font: 800 22px/1 var(--display); margin-bottom: 20px; }
.refer ol { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.refer li { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: baseline; }
.refer li b { font: 800 26px/1 var(--display); color: #bfe6f8; }
.refer li span { color: rgba(255, 255, 255, .85); }
.refer-note { font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.marquee { margin-top: clamp(60px, 8vw, 110px); padding: 28px 0; border-top: 1px solid rgba(255, 255, 255, .18); overflow: hidden; }
.marquee-track { display: flex; width: max-content; gap: 64px; animation: marquee 38s linear infinite; }
.marquee-track span { font: 800 clamp(30px, 4vw, 56px)/1 var(--display); letter-spacing: -.03em; color: rgba(255, 255, 255, .9); white-space: nowrap; }
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .7); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Agenda */
.book { padding: clamp(90px, 12vw, 160px) 0; background: var(--paper); }
.book-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
.book-copy .lead { margin: 22px 0 28px; }
.book-alt { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.book-alt a { display: inline-flex; gap: 10px; align-items: center; color: var(--blue); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid rgba(31, 86, 214, .25); padding-bottom: 2px; transition: border-color .3s; }
.book-alt a:hover { border-color: var(--blue); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding: clamp(22px, 3vw, 38px); border-radius: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(10, 24, 56, .4); }
.types { grid-column: 1 / -1; border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.types legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.types label { position: relative; cursor: pointer; }
.types input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.types span { display: inline-block; padding: 10px 15px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 15px; font-weight: 500; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.types label:hover span { border-color: var(--blue); }
.types input:checked + span { background: var(--ink); color: var(--white); border-color: var(--ink); }
.types input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); font: 400 16px/1.4 var(--body); color: var(--text); transition: border-color .3s, background-color .3s; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); }
.field.has-error input { border-color: var(--red); }
.error { color: #b3261e; font-size: 14px; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.check a { color: var(--blue); }
.form-status { margin: 0; font-size: 14.5px; color: var(--muted); min-height: 1.2em; }

/* Contacto */
.contact { padding: clamp(90px, 11vw, 150px) 0; background: var(--ink); color: var(--white); }
.contact .kicker { color: var(--cyan); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
address { font-style: normal; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: rgba(255, 255, 255, .82); margin: 26px 0 30px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; }
.contact-list li { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.contact-list span { color: rgba(255, 255, 255, .6); }
.contact-list a { text-decoration: none; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--cyan); }
.map { grid-column: 1 / -1; position: relative; height: 280px; border-radius: 28px; overflow: hidden; background: #13265e; }
.map-grid { position: absolute; inset: -40%; background-image: linear-gradient(rgba(255, 255, 255, .07) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, .07) 2px, transparent 2px); background-size: 80px 80px; transform: rotate(-18deg); }
.map::before { content: ""; position: absolute; left: -10%; right: -10%; top: 52%; height: 16px; background: rgba(255, 255, 255, .16); transform: rotate(-12deg); }
.map::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: 30%; width: 26px; background: rgba(255, 255, 255, .2); transform: rotate(14deg); }
.map-street { position: absolute; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); z-index: 1; }
.s1 { left: 60%; top: 40%; transform: rotate(-12deg); } .s2 { left: 31%; top: 12%; transform: rotate(74deg); transform-origin: 0 0; } .s3 { left: 12%; top: 72%; transform: rotate(-12deg); }
.map-pin { position: absolute; left: 52%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--white); display: grid; place-items: center; z-index: 2; box-shadow: 0 0 0 12px rgba(47, 168, 224, .25), 0 0 0 28px rgba(47, 168, 224, .1); }
.map-pin img { width: 38px; }

/* Pie */
.foot { background: #060f26; color: rgba(255, 255, 255, .7); padding: 56px 0 90px; }
.foot-in { display: grid; gap: 10px; justify-items: start; }
.foot-logo { width: 170px; margin-bottom: 8px; }
.foot-tag { font-family: "Instrument", serif; font-style: italic; font-size: 22px; color: var(--white); }
.foot-legal { font-size: 14px; margin: 0; }
.foot-legal a { color: rgba(255, 255, 255, .85); }

/* Botón flotante */
.fab.is-off { opacity: 0; transform: scale(.6); pointer-events: none; }
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; transition: opacity .4s, transform .4s var(--ease); width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: var(--white); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .45); transition: transform .4s var(--ease); }
.fab:not(.is-off):hover { transform: scale(1.08) rotate(-6deg); }

/* Ficha */
.ficha { padding: 0; border: 0; border-radius: 28px; width: min(720px, calc(100vw - 32px)); max-height: min(86vh, 860px); background: var(--white); color: var(--text); box-shadow: 0 50px 100px -30px rgba(10, 24, 56, .6); overflow: hidden; }
.ficha[open] { display: flex; }
.ficha::backdrop { background: rgba(6, 15, 38, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ficha-in { display: flex; flex-direction: column; width: 100%; max-height: inherit; min-height: 0; }
.ficha-head { position: relative; flex: none; padding: 30px 72px 18px 30px; border-bottom: 1px solid var(--line); }
.ficha-n { font: 800 14px/1 var(--display); color: var(--blue); margin-bottom: 10px; }
.ficha-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.ficha-close { position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); transition: transform .4s var(--ease), background-color .3s; }
.ficha-close:hover { transform: rotate(90deg); background: var(--paper); }
.ficha-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 24px 30px; display: grid; gap: 14px; align-content: start; color: var(--muted); }
.ficha-body p { margin: 0; }
.ficha-actions { flex: none; display: flex; gap: 10px; padding: 16px 30px 22px; border-top: 1px solid var(--line); background: var(--white); }
.ficha-actions .btn-primary { flex: 1; }
html.has-dialog, html.has-dialog body { overflow: hidden; }
html.has-dialog .fab { display: none; }

/* Animaciones iniciales: solo con movimiento */
.motion .reveal { opacity: 0; transform: translateY(36px); }

/* Responsivo */
@media (max-width: 1100px) {
  .serv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ig-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .doc { grid-template-columns: 160px 1fr; }
}
@media (max-width: 980px) {
  .nav, .top-cta { display: none; }
  .menu { display: block; margin-left: auto; }
  .hero-copy { width: auto; right: var(--gut); top: auto; bottom: 9vh; transform: none; }
  .hero-veil { background: linear-gradient(180deg, rgba(10, 24, 56, .1) 0%, rgba(10, 24, 56, .85) 58%, var(--ink) 100%); }
  .layers-stage { grid-template-columns: 1fr; }
  .skin { height: 300px; position: sticky; top: 80px; z-index: 2; }
  .tech-panel { grid-template-columns: 1fr; }
  .tech-media { height: 320px; }
  .docs { grid-template-columns: 1fr; }
  .pharma-in, .book-in, .contact-in { grid-template-columns: 1fr; }
  .hero-hint { display: none; }
  .hero-shade { background: linear-gradient(0deg, rgba(10, 24, 56, .9) 0%, rgba(10, 24, 56, .55) 45%, rgba(10, 24, 56, .25) 75%, rgba(10, 24, 56, .55) 100%); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand { width: 124px; }
  .top-in { height: 64px; }
  .hero-stage { min-height: 640px; }
  .hero-copy { bottom: 6vh; }
  .hero-title { font-size: clamp(38px, 11.4vw, 60px); }
  .hero-sub { margin-top: 18px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { margin-top: 26px; gap: 14px; }
  .hero-facts li { padding-left: 10px; }
  .serv-grid { grid-template-columns: 1fr; }
  .card-wide { flex-direction: column; grid-column: auto; }
  .card-wide > img { width: 100%; aspect-ratio: 16 / 11; }
  .ig-row { grid-template-columns: repeat(6, 64%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
  .ig-card { scroll-snap-align: start; }
  .doc { grid-template-columns: 1fr; }
  .doc-photo { aspect-ratio: 1 / 1; }
  .geneo-steps { grid-template-columns: 1fr; }
  .geneo-steps li { grid-template-columns: 96px 1fr; column-gap: 12px; align-items: center; }
  .geneo-steps img { grid-row: span 2; }
  .form { grid-template-columns: 1fr; }
  .team-photo img { aspect-ratio: 4 / 3; }
  .team-photo figcaption { left: 12px; right: 12px; bottom: 12px; font-size: 14px; border-radius: 14px; }
  .refer li { grid-template-columns: 70px 1fr; }
  .contact-list li { flex-direction: column; gap: 4px; }
  .contact-list a { text-align: left; }
  .ficha { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .ficha-head { padding: 24px 64px 16px 20px; }
  .ficha-body { padding: 20px; }
  .ficha-actions { padding: 14px 20px 20px; }
  .fab { right: 14px; bottom: 14px; width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
html.has-dialog #banda-arquia { display: none; }
