/* ═══════════════════════════════════════════════════════════════════
   Biomarketum · estilos (un solo fichero, sin dependencias)
   Tokens → base → componentes → secciones → páginas → utilidades
   ═══════════════════════════════════════════════════════════════════ */
@font-face { font-family: "Bricolage"; src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/instrument-serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --ink: #0A0E1F; --ink-2: #111733; --ink-3: #1B2247;
  --paper: #F7F5F0; --paper-2: #EEEBE3; --white: #fff;
  --text: #0E1226; --muted: #555B73; --muted-d: #A7ADC6; --line: rgba(14,18,38,.1); --line-d: rgba(255,255,255,.12);
  --blue: #1E8BFF; --cyan: #22D3EE; --violet: #7B5CFF; --pink: #FF3D7F; --lime: #D7FF45; --gold: #FFB547;
  --grad: linear-gradient(115deg, var(--blue) 0%, var(--violet) 48%, var(--pink) 100%);
  --grad-soft: linear-gradient(115deg, rgba(30,139,255,.16), rgba(123,92,255,.14), rgba(255,61,127,.16));
  --f-display: "Bricolage", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;
  --r-sm: 12px; --r: 20px; --r-lg: 32px; --r-xl: 44px;
  --shadow: 0 1px 2px rgba(10,14,31,.06), 0 12px 40px -12px rgba(10,14,31,.18);
  --shadow-lg: 0 30px 80px -20px rgba(10,14,31,.35);
  --wrap: 1240px; --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2,.7,.2,1); --ease-out: cubic-bezier(.16,1,.3,1);
  --header-h: 76px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { overflow-x: clip; margin: 0; font: 400 17px/1.65 var(--f-body); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--white); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Tipografía de sección */
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font: 600 13px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow-light { color: var(--lime); }
.h1 { font-size: clamp(42px, 5.3vw, 82px); font-weight: 750; letter-spacing: -.045em; line-height: .95; }
.h2 { font-size: clamp(34px, 5vw, 66px); font-weight: 720; letter-spacing: -.04em; line-height: 1; }
.h3 { font-size: clamp(22px, 2.2vw, 28px); }
.h2 em, .h1 em { font-size: 1.08em; line-height: .8; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dark .lead, .section-dark .lead { color: var(--muted-d); }

/* ── Botones ──────────────────────────────────────────────────────── */
.btn { --bg: var(--ink); position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: 15px 24px; border-radius: 999px; border: 0; font: 600 16px/1.1 var(--f-body); text-decoration: none; cursor: pointer; background: var(--bg); color: #fff; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), background-color .3s; isolation: isolate; overflow: hidden; white-space: nowrap; }
.btn .ico { transition: transform .35s var(--ease-out); }
.btn:hover .ico:last-child { transform: translateX(4px); }
.btn-sm { padding: 11px 18px; font-size: 14.5px; }
.btn-lg { padding: 19px 30px; font-size: 17.5px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); background-size: 160% 100%; background-position: 0 0; box-shadow: 0 10px 30px -10px rgba(123,92,255,.75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 18px 44px -12px rgba(255,61,127,.75), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%); transform: translateX(-120%); animation: shine 4.5s var(--ease) infinite 1.5s; }
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.dark .btn-ghost, .section-dark .btn-ghost, .drawer .btn-ghost, .cookies .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px var(--line-d); }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.16); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { box-shadow: 0 16px 40px -14px rgba(255,255,255,.6); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ── Cabecera ─────────────────────────────────────────────────────── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--header-h); display: flex; align-items: center; color: #fff; transition: background-color .4s, box-shadow .4s, transform .45s var(--ease-out); }
.site-header.scrolled { background: rgba(10,14,31,.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: 0 1px 0 var(--line-d); }
.site-header.hide { transform: translateY(-100%); }
.header-in { display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; }
.logo img { width: 34px; height: 34px; transition: transform .6s var(--ease-out); }
.logo:hover img { transform: rotate(-12deg) scale(1.08); }
.logo-word { font: 650 23px/1 var(--f-display); letter-spacing: -.04em; }
.logo-word b { font-weight: 800; background: linear-gradient(110deg, #4FB0FF, #8F7BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.82); transition: color .2s, background-color .2s; }
.main-nav a:hover, .main-nav a[aria-current] { color: #fff; background: rgba(255,255,255,.08); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.has-mega { position: relative; }
.mega { position: absolute; top: calc(100% + 12px); left: 50%; width: min(820px, 92vw); transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .35s var(--ease-out), visibility .25s; background: rgba(17,23,51,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line-d); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow-lg); }
.mega::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.main-nav .mega-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; }
.mega-item .ico { width: 22px; height: 22px; margin-top: 2px; color: var(--cyan); }
.mega-item b { display: block; color: #fff; font-weight: 600; font-size: 15px; }
.mega-item small { display: block; color: var(--muted-d); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.main-nav .mega-cta { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; padding: 12px; border-radius: 14px; background: var(--grad-soft); color: #fff; font-weight: 600; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: #fff; transition: transform .35s var(--ease-out), top .35s var(--ease-out); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.drawer { position: fixed; inset: 0; z-index: 55; background: radial-gradient(120% 80% at 100% 0%, rgba(123,92,255,.35), transparent 60%), var(--ink); color: #fff; padding: calc(var(--header-h) + 24px) var(--gutter) 40px; display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.drawer[hidden] { display: none; }
.drawer ul { list-style: none; margin: 0 0 18px; padding: 0; }
.drawer li a { display: block; padding: 12px 0; font: 700 clamp(32px, 9vw, 44px)/1.05 var(--f-display); letter-spacing: -.04em; text-decoration: none; border-bottom: 1px solid var(--line-d); animation: drawerIn .6s var(--ease-out) both; }
.drawer li:nth-child(2) a { animation-delay: .04s; } .drawer li:nth-child(3) a { animation-delay: .08s; } .drawer li:nth-child(4) a { animation-delay: .12s; } .drawer li:nth-child(5) a { animation-delay: .16s; } .drawer li:nth-child(6) a { animation-delay: .2s; }
@keyframes drawerIn { from { opacity: 0; transform: translateY(18px); } }
body.menu-open { overflow: hidden; }

/* ── Héroe de portada ─────────────────────────────────────────────── */
.dark { background: var(--ink); color: #fff; }
.hero { position: relative; min-height: 100svh; padding: calc(var(--header-h) + clamp(30px, 6vh, 70px)) 0 clamp(40px, 8vh, 90px); overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.hero::after, .page-hero::after, .section-dark::after, .audit::after, .site-footer::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .07; pointer-events: none; z-index: -1; mix-blend-mode: overlay; }
.mesh { position: absolute; inset: -20%; z-index: -2; filter: blur(70px) saturate(1.3); }
.mesh i { position: absolute; border-radius: 50%; opacity: .75; will-change: transform; }
.mesh i:nth-child(1) { width: 46vw; height: 46vw; left: 50%; top: 8%; background: radial-gradient(circle, var(--violet), transparent 65%); animation: drift1 18s ease-in-out infinite alternate; }
.mesh i:nth-child(2) { width: 40vw; height: 40vw; left: 70%; top: 40%; background: radial-gradient(circle, var(--pink), transparent 65%); animation: drift2 22s ease-in-out infinite alternate; }
.mesh i:nth-child(3) { width: 38vw; height: 38vw; left: 12%; top: 50%; background: radial-gradient(circle, var(--blue), transparent 65%); animation: drift3 20s ease-in-out infinite alternate; opacity: .55; }
@keyframes drift1 { to { transform: translate(-18vw, 12vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-22vw, -16vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(20vw, -10vh) scale(1.2); } }
.grid-lines { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 75%); }
.hero-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero-in > *, .page-hero-in > *, .split > *, .local > *, .audit-in > * { min-width: 0; }
.hero h1 { margin-bottom: 26px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; animation: rise 1.1s var(--ease-out) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; } .hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { from { transform: translateY(105%); } }
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; white-space: nowrap; font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; opacity: 0; transform: translateY(40%) rotateX(-60deg); transition: opacity .6s var(--ease), transform .8s var(--ease-out); }
.rotator > span.on { opacity: 1; transform: none; }
.rotator > span.off { opacity: 0; transform: translateY(-40%) rotateX(60deg); }
.hero .lead { color: rgba(255,255,255,.74); margin-bottom: 34px; animation: fadeUp 1s .45s var(--ease-out) both; }
.hero .cta-row { animation: fadeUp 1s .6s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; padding: 0; list-style: none; font-size: 14.5px; color: rgba(255,255,255,.7); animation: fadeUp 1s .75s var(--ease-out) both; }
.hero-trust li { display: flex; align-items: center; gap: 8px; }
.hero-trust .ico { color: var(--lime); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); font-size: 14px; color: rgba(255,255,255,.86); margin-bottom: 26px; animation: fadeUp .9s var(--ease-out) both; text-decoration: none; }
.pill b { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 4px 10px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }

/* Visual del héroe: foto + tarjetas flotantes */
.hero-visual { position: relative; aspect-ratio: 4 / 4.6; perspective: 1200px; animation: fadeUp 1.2s .3s var(--ease-out) both; }
.hero-photo { position: absolute; inset: 4% 6% 8% 10%; border-radius: 240px 240px var(--r-xl) var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.14); transform: translate3d(var(--px, 0), var(--py, 0), 0); transition: transform .8s var(--ease-out); }
.hero-photo picture, .frame picture, .svc-img picture, .post-img picture { height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.06); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,14,31,.55)); }
.ring { position: absolute; inset: -2% 0 2% 4%; border-radius: 260px 260px 56px 56px; border: 1.5px dashed rgba(255,255,255,.18); animation: spinSlow 60s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.float-card { position: absolute; z-index: 2; color: var(--ink); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 18px; box-shadow: 0 24px 60px -18px rgba(0,0,0,.55); padding: 14px 16px; font-size: 13.5px; line-height: 1.35; transform: translate3d(calc(var(--px, 0) * -1.6), calc(var(--py, 0) * -1.6), 0); transition: transform .9s var(--ease-out); }
.float-card > div { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.fc-gbp { left: -6%; top: 14%; width: 262px; }
.fc-gbp .fc-top { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.fc-gbp .fc-av { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; }
.fc-gbp b { display: block; font-size: 14.5px; }
.fc-stars { display: flex; align-items: center; gap: 2px; color: var(--gold); font-weight: 700; }
.fc-stars .ico { width: 14px; height: 14px; fill: currentColor; }
.fc-stars span { color: var(--ink); margin-right: 4px; }
.fc-btns { display: flex; gap: 6px; margin-top: 10px; }
.fc-btns span { flex: 1; white-space: nowrap; text-align: center; padding: 7px 4px; border-radius: 999px; background: #E9F2FF; color: #1361D6; font-weight: 600; font-size: 12px; }
.fc-btns span:first-child { background: #1A73E8; color: #fff; }
.fc-ai { right: -4%; top: 4%; width: 250px; background: rgba(17,23,51,.92); color: #fff; box-shadow: 0 24px 60px -18px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.12); }
.fc-ai > div { animation-delay: -2s; }
.fc-ai .q { display: block; background: rgba(255,255,255,.1); border-radius: 12px 12px 12px 4px; padding: 8px 10px; margin-bottom: 8px; color: rgba(255,255,255,.85); }
.fc-ai .a { display: block; }
.fc-ai mark { background: none; color: var(--lime); font-weight: 600; }
.fc-ai .typing::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--cyan); }
@keyframes blink { 50% { opacity: 0; } }
.fc-call { right: 2%; bottom: 14%; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; }
.fc-call > div { display: flex; align-items: center; gap: 12px; animation-delay: -4s; }
.fc-call .ring-ico { width: 40px; height: 40px; border-radius: 50%; background: #16A34A; color: #fff; display: grid; place-items: center; position: relative; }
.fc-call .ring-ico::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #16A34A; animation: ping 1.8s var(--ease-out) infinite; }
@keyframes ping { to { transform: scale(1.9); opacity: 0; } }
.fc-call small { display: block; color: var(--muted); }
.fc-pin { left: 6%; bottom: 6%; width: 64px; height: 64px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.fc-pin .ico { width: 30px; height: 30px; }
.fc-pin::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,61,127,.6); animation: ping 2.4s var(--ease-out) infinite; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid rgba(255,255,255,.3); }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { to { transform: translateY(14px); opacity: 0; } }

/* ── Carrusel infinito de palabras ────────────────────────────────── */
.marquee { position: relative; overflow: hidden; padding: 26px 0; background: var(--ink); color: #fff; border-block: 1px solid var(--line-d); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font: 600 clamp(26px, 3.4vw, 44px)/1 var(--f-display); letter-spacing: -.03em; white-space: nowrap; }
.marquee span:nth-child(even) { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.6); }
.marquee span::after { content: "✦"; font-size: .55em; color: var(--pink); -webkit-text-stroke: 0; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-tilt { transform: rotate(-2deg) scale(1.04); margin: -24px 0; z-index: 3; background: var(--grad); border: 0; }
.marquee-tilt span::after { color: var(--lime); }

/* ── Secciones ────────────────────────────────────────────────────── */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section-tight { padding: clamp(60px, 8vw, 100px) 0; }
.section-dark { background: var(--ink); color: #fff; isolation: isolate; overflow: hidden; }
.section-paper2 { background: var(--paper-2); }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 60px; align-items: end; margin-bottom: clamp(40px, 6vw, 70px); }
.section-head .h2 { margin: 0; }
.section-head .lead { margin: 0; }
.center { text-align: center; }
.section-head.center { grid-template-columns: 1fr; justify-items: center; }

/* Ser · Hacer · Tener */
.sht { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: sht; }
.sht-card { position: relative; padding: clamp(26px, 3vw, 40px); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); overflow: hidden; transition: transform .5s var(--ease-out), box-shadow .5s; }
.sht-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.sht-word { display: block; font: 800 clamp(52px, 6.2vw, 96px)/.9 var(--f-display); letter-spacing: -.06em; background: var(--grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; }
.sht-card:nth-child(2) .sht-word { background-position: 50% 0; } .sht-card:nth-child(3) .sht-word { background-position: 100% 0; }
.sht-card h3 { font-size: 23px; margin-bottom: 10px; }
.sht-card p { color: var(--muted); margin: 0 0 14px; }
.sht-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sht-card li a, .tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--paper); font-size: 13.5px; font-weight: 500; text-decoration: none; transition: background-color .2s, color .2s; }
.sht-card li a:hover { background: var(--ink); color: #fff; }
.sht-n { position: absolute; top: 22px; right: 26px; font: 600 13px/1 var(--f-body); color: var(--muted); letter-spacing: .1em; }

/* Rejilla de servicios */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card { --mx: 50%; --my: 50%; position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--white); text-decoration: none; overflow: hidden; box-shadow: var(--shadow); transition: transform .6s var(--ease-out), box-shadow .5s; transform-style: preserve-3d; }
.svc-card::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(123,92,255,.16), transparent 45%); opacity: 0; transition: opacity .4s; }
.svc-card:hover { box-shadow: var(--shadow-lg); }
.svc-card:hover::before { opacity: 1; }
.svc-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .6s; filter: saturate(.92); }
.svc-card:hover .svc-img img { transform: scale(1.07); filter: saturate(1.1); }
.svc-body { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 26px 24px; flex: 1; }
.svc-ico { position: absolute; top: -28px; right: 22px; width: 56px; height: 56px; border-radius: 18px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(123,92,255,.8); transition: transform .6s var(--ease-out); }
.svc-card:hover .svc-ico { transform: rotate(-10deg) scale(1.08); }
.svc-ico .ico { width: 26px; height: 26px; }
.svc-group { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); }
.svc-name { font: 700 25px/1.1 var(--f-display); letter-spacing: -.03em; }
.svc-short { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.svc-go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.svc-go .ico { transition: transform .4s var(--ease-out); }
.svc-card:hover .svc-go .ico, .post-card:hover .svc-go .ico { transform: translateX(6px); }
.svc-grid > .svc-card:first-child { grid-column: span 2; flex-direction: row; }
.svc-grid > .svc-card:first-child .svc-img { aspect-ratio: auto; flex: 1.2; }
.svc-grid > .svc-card:first-child .svc-body { flex: 1; justify-content: center; padding: 40px; }
.svc-grid > .svc-card:first-child .svc-name { font-size: clamp(30px, 3vw, 40px); }
.svc-grid > .svc-card:first-child .svc-ico { top: 34px; right: 34px; }
.svc-grid.no-feature > .svc-card:first-child { grid-column: auto; flex-direction: column; }
.svc-grid.no-feature > .svc-card:first-child .svc-img { aspect-ratio: 16 / 10; flex: none; }
.svc-grid.no-feature > .svc-card:first-child .svc-body { padding: 26px 26px 24px; justify-content: flex-start; }
.svc-grid.no-feature > .svc-card:first-child .svc-name { font-size: 25px; }
.svc-grid.no-feature > .svc-card:first-child .svc-ico { top: -28px; right: 22px; }

.svc-more { justify-content: center; padding: 34px; background: var(--ink); color: #fff; background-image: radial-gradient(90% 90% at 100% 0%, rgba(255,61,127,.45), transparent 60%), radial-gradient(90% 90% at 0% 100%, rgba(30,139,255,.45), transparent 60%); }
.svc-more .svc-name { font-size: 30px; }
.svc-more .svc-short { color: rgba(255,255,255,.75); }
.svc-more .btn { margin-top: 20px; align-self: flex-start; }

/* Bloque SEO local (oscuro, radar) */
.local { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.local-glow { position: absolute; width: 70vw; height: 70vw; right: -25vw; top: -20vw; background: radial-gradient(circle, rgba(123,92,255,.35), transparent 60%); z-index: -1; filter: blur(40px); }
.radar { position: relative; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.06) 0 20%, transparent 20.3% 40%, rgba(34,211,238,.05) 40.3% 60%, transparent 60.3% 80%, rgba(34,211,238,.04) 80.3%); box-shadow: inset 0 0 0 1px rgba(34,211,238,.25); overflow: hidden; }
.radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(34,211,238,.45), rgba(34,211,238,0) 22%); animation: spinSlow 5s linear infinite; }
.radar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(34,211,238,.18), rgba(34,211,238,.18)) center / 1px 100% no-repeat, linear-gradient(90deg, rgba(34,211,238,.18), rgba(34,211,238,.18)) center / 100% 1px no-repeat; }
.radar-wrap { position: relative; max-width: 560px; width: 100%; margin-inline: auto; }
.r-pin { position: absolute; z-index: 2; width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,.35); transform: translate(-50%, -50%); }
.r-pin.you { width: 22px; height: 22px; background: var(--pink); box-shadow: 0 0 0 6px rgba(255,61,127,.25), 0 0 30px var(--pink); }
.r-pin.you::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--pink); animation: ping 2s var(--ease-out) infinite; }
.r-label { position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 22px)); background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-lg); }
.r-label::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.r-label .fc-stars { font-size: 12px; }
.local-list { list-style: none; padding: 0; margin: 30px 0 36px; display: grid; gap: 12px; }
.local-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-d); transition: background-color .3s, transform .4s var(--ease-out); }
.local-list li:hover { background: rgba(255,255,255,.08); transform: translateX(6px); }
.local-list .ico { width: 24px; height: 24px; color: var(--cyan); margin-top: 2px; }
.local-list b { display: block; font-size: 16.5px; }
.local-list span { color: var(--muted-d); font-size: 15px; }

/* Plataforma (tarjeta tipo panel) */
.panel-mock { position: relative; border-radius: var(--r-lg); background: linear-gradient(180deg, #151C3D, #0E1330); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line-d); padding: 18px; color: #fff; overflow: hidden; }
.panel-bar { display: flex; gap: 6px; margin-bottom: 16px; }
.panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.panel-bar i:first-child { background: #FF5F57; } .panel-bar i:nth-child(2) { background: #FEBC2E; } .panel-bar i:nth-child(3) { background: #28C840; }
.panel-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.05); margin-bottom: 8px; font-size: 14px; }
.panel-row .ico { color: var(--cyan); }
.panel-row em { margin-left: auto; font-family: var(--f-body); font-style: normal; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(215,255,69,.14); color: var(--lime); }
.panel-row em.w { background: rgba(255,181,71,.14); color: var(--gold); }
.panel-bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.05); margin-top: 8px; }
.panel-bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: rgba(255,255,255,.16); height: var(--h); transform-origin: bottom; animation: grow 1.4s var(--ease-out) both; }
.panel-bars i:last-child { background: var(--grad); }
@keyframes grow { from { transform: scaleY(0); } }
.panel-note { font-size: 12px; color: var(--muted-d); margin: 10px 2px 0; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 800 54px/1 var(--f-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--violet); margin-bottom: 18px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }
.steps-line { position: relative; }
.steps-line::before { content: ""; position: absolute; left: 6%; right: 6%; top: 58px; height: 2px; background: var(--grad); opacity: .35; }
.section-dark .step { background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-d); }
.section-dark .step p { color: var(--muted-d); }

/* Sectores (carril con desplazamiento) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 24px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.sector { position: relative; scroll-snap-align: start; aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; }
.sector picture, .sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease-out); }
.sector::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,14,31,0) 35%, rgba(10,14,31,.88)); transition: opacity .5s; }
.sector:hover img { transform: scale(1.08); }
.sector-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; }
.sector-body b { display: block; font: 700 26px/1.05 var(--f-display); letter-spacing: -.03em; margin-bottom: 6px; }
.sector-body span { display: block; font-size: 14.5px; color: rgba(255,255,255,.8); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-out), opacity .4s; }
.sector:hover .sector-body span, .sector:focus-visible .sector-body span { max-height: 120px; opacity: 1; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--white); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; transition: transform .3s var(--ease-out); }
.rail-nav button:hover { transform: scale(1.08); }
.rail-nav button:first-child .ico { transform: rotate(180deg); }

/* Garantías / prueba */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.proof > div { padding: 30px 26px; border-right: 1px solid var(--line); }
.proof > div:last-child { border: 0; }
.proof .ico { width: 30px; height: 30px; color: var(--violet); margin-bottom: 16px; }
.proof b { display: block; font: 700 20px/1.15 var(--f-display); letter-spacing: -.02em; margin-bottom: 6px; }
.proof span { color: var(--muted); font-size: 15px; }

/* Foto + texto */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split-rev > :first-child { order: 2; }
.frame { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.4; }
.frame-badge { position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 14.5px; }
.frame-badge .ico { width: 34px; height: 34px; padding: 7px; border-radius: 12px; background: var(--grad); color: #fff; }
.ticks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { width: 24px; height: 24px; flex: none; padding: 4px; border-radius: 50%; background: var(--grad); color: #fff; margin-top: 1px; }

/* Auditoría gratuita */
.audit { position: relative; padding: clamp(80px, 10vw, 140px) 0; background: radial-gradient(80% 90% at 0% 0%, rgba(30,139,255,.35), transparent 60%), radial-gradient(70% 80% at 100% 100%, rgba(255,61,127,.35), transparent 60%), var(--ink); color: #fff; isolation: isolate; overflow: hidden; }
.audit-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.audit .lead { color: rgba(255,255,255,.75); margin-bottom: 28px; }
.audit .ticks .ico { background: var(--lime); color: var(--ink); }
.audit-form { border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); background: rgba(255,255,255,.96); color: var(--text); box-shadow: 0 40px 100px -30px rgba(0,0,0,.7); }

/* Formulario */
.lead-form { display: grid; gap: 14px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f { display: grid; gap: 6px; }
.f span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.f input, .f select, .f textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); font-size: 16px; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(123,92,255,.14); }
.f textarea { resize: vertical; min-height: 110px; }
.f-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.f-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--violet); flex: none; }
.f-legal { font-size: 12px; line-height: 1.5; color: var(--muted); margin: -4px 0 0; }
.f-legal a { color: inherit; }
.f-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin: 0; }
.f-error { margin: 0; padding: 12px 14px; border-radius: 12px; background: #FFE8EF; color: #A1123F; font-size: 14.5px; }
.f-error a { color: inherit; font-weight: 700; }
.f-bad input, .f-bad select, .f-bad textarea { border-color: #D81B55; background: #FFF5F8; }
.f-bad input:focus, .f-bad select:focus, .f-bad textarea:focus { border-color: #D81B55; box-shadow: 0 0 0 4px rgba(216,27,85,.16); }
.f-msg { display: block; margin-top: 0; color: #B0124A; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.f-check.f-bad { flex-wrap: wrap; }
.f-check .f-msg { flex-basis: 100%; margin-top: 0; }
.f-check.f-bad input { outline: 2px solid #D81B55; outline-offset: 2px; }

/* Preguntas frecuentes */
.faq { display: grid; gap: 10px; max-width: 880px; margin-inline: auto; }
.faq-item { border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; cursor: pointer; list-style: none; font: 650 19px/1.3 var(--f-display); letter-spacing: -.015em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ico { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--paper); transition: transform .4s var(--ease-out), background-color .3s, color .3s; flex: none; }
.faq-item[open] summary .ico { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq-a { padding: 0 26px 22px; color: var(--muted); }
.faq-a p:last-child { margin: 0; }

/* Banda CTA */
.cta-band { padding: clamp(30px, 5vw, 60px) 0; }
.cta-band-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding: clamp(30px, 5vw, 60px); border-radius: var(--r-xl); background: radial-gradient(90% 140% at 100% 0%, rgba(255,61,127,.55), transparent 55%), radial-gradient(90% 140% at 0% 100%, rgba(30,139,255,.55), transparent 55%), var(--ink); color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; isolation: isolate; }
.cta-band-in::after { content: ""; position: absolute; inset: 0; background: var(--grain); opacity: .08; z-index: -1; }
.cta-band-t { font: 720 clamp(28px, 3.6vw, 46px)/1.05 var(--f-display); letter-spacing: -.035em; margin: 0 0 10px; max-width: 20ch; }
.cta-band-in p:last-child { margin: 0; color: rgba(255,255,255,.75); }

/* ── Páginas interiores ───────────────────────────────────────────── */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 7vw, 90px)) 0 clamp(60px, 8vw, 110px); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero .mesh { opacity: .75; }
.page-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.page-hero-in.solo { grid-template-columns: 1fr; max-width: 900px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 82px); font-weight: 750; letter-spacing: -.045em; line-height: .98; }
.page-hero .lead { color: rgba(255,255,255,.75); margin-bottom: 30px; }
.page-hero .frame { box-shadow: 0 40px 100px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12); }
.page-hero .frame img { aspect-ratio: 4 / 3.6; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 26px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: #fff; }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs [aria-current] { color: #fff; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px var(--line-d); font-size: 14px; color: rgba(255,255,255,.85); }
.facts .ico { color: var(--lime); width: 18px; height: 18px; }

/* Rejilla de beneficios / entregables */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card { position: relative; padding: 30px 28px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); transition: transform .5s var(--ease-out), box-shadow .5s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card > .ico { width: 48px; height: 48px; padding: 11px; border-radius: 15px; background: var(--grad-soft); color: var(--violet); margin-bottom: 18px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.card p + p { margin-top: 10px; }
.section-dark .card { background: rgba(255,255,255,.045); box-shadow: inset 0 0 0 1px var(--line-d); }
.section-dark .card p { color: var(--muted-d); }
.section-dark .card > .ico { background: rgba(255,255,255,.08); color: var(--cyan); }

/* Texto largo (legales, blog, plataforma) */
.prose { max-width: 760px; margin-inline: auto; font-size: 18px; line-height: 1.75; }
.prose h2 { font-size: clamp(28px, 3vw, 38px); margin: 2em 0 .6em; }
.prose h3 { font-size: 23px; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose a { color: #4A33D6; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--paper-2); font-weight: 600; }
.prose blockquote { margin: 1.6em 0; padding: 20px 24px; border-radius: var(--r); background: var(--grad-soft); border-left: 4px solid var(--violet); }
.prose img { border-radius: var(--r); margin: 1.6em 0; }
.prose .note { padding: 18px 22px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); font-size: 16px; }
.toc { margin: 0 0 2em; padding: 22px 26px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); font-size: 16px; }
.toc-t { font-weight: 700; margin: 0 0 8px; }
.legal-nav { margin: 0 0 1.2em; padding: 18px 22px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); font-size: 15px; }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.legal-nav a { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line, rgba(10,14,31,.12)); text-decoration: none; color: var(--text); }
.legal-nav a:hover { color: var(--violet); }
.legal-nav a[aria-current] { background: var(--ink, #0A0E1F); color: #fff; border-color: transparent; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { text-decoration: none; color: var(--text); } .toc a:hover { color: var(--violet); }
.updated { color: var(--muted); font-size: 15px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); overflow: hidden; text-decoration: none; transition: transform .5s var(--ease-out), box-shadow .5s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-img img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post-body { display: flex; flex-direction: column; gap: 8px; padding: 24px; flex: 1; }
.post-date { font-size: 13px; color: var(--muted); }
.post-t { font: 700 22px/1.15 var(--f-display); letter-spacing: -.025em; }
.post-d { color: var(--muted); font-size: 15px; }

/* NAP / contacto */
.nap { font-style: normal; line-height: 1.7; }
.nap a { text-decoration: none; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); text-decoration: none; transition: transform .4s var(--ease-out), box-shadow .4s; }
.contact-card:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.contact-card .ico { width: 48px; height: 48px; padding: 12px; border-radius: 16px; background: var(--grad); color: #fff; }
.contact-card b { display: block; font: 700 19px/1.2 var(--f-display); }
.contact-card span { color: var(--muted); font-size: 14.5px; }
.map-embed { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 9; background: var(--paper-2); display: grid; place-items: center; text-align: center; padding: 24px; }

/* ── Pie ──────────────────────────────────────────────────────────── */
.site-footer { position: relative; background: var(--ink); color: rgba(255,255,255,.75); padding: clamp(80px, 10vw, 130px) 0 calc(30px + env(safe-area-inset-bottom)); overflow: hidden; isolation: isolate; }
.footer-glow { position: absolute; left: 50%; top: -30%; width: 90vw; height: 60vw; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(123,92,255,.35), transparent); z-index: -1; filter: blur(30px); }
.footer-cta { text-align: center; padding-bottom: clamp(60px, 8vw, 100px); border-bottom: 1px solid var(--line-d); margin-bottom: 60px; }
.footer-cta .eyebrow { justify-content: center; color: var(--lime); }
.footer-big { font: 760 clamp(44px, 8vw, 120px)/.92 var(--f-display); letter-spacing: -.055em; color: #fff; margin: 0 0 40px; }
.footer-big em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em; }
.footer-cta .cta-row { justify-content: center; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer-grid a { text-decoration: none; transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-h { color: #fff; font-weight: 600; margin-bottom: 14px; }
.logo-footer { color: #fff; margin-bottom: 18px; }
.footer-claim { font-size: 15px; max-width: 36ch; }
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a { padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-d); font-size: 14px; }
.footer-social a:hover { background: rgba(255,255,255,.08); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line-d); font-size: 13.5px; }
.footer-legal p { margin: 0; }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { text-decoration: none; } .footer-legal a:hover { color: #fff; }

/* Barra fija móvil y cookies */
.mobile-bar { display: none; }
.cookies { position: fixed; z-index: 80; left: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); padding: 22px; border-radius: var(--r); background: rgba(17,23,51,.97); color: rgba(255,255,255,.8); box-shadow: var(--shadow-lg), inset 0 0 0 1px var(--line-d); font-size: 14.5px; animation: fadeUp .6s var(--ease-out) both; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.cookies[hidden] { display: none; }
.cookies-t { font: 700 18px/1.2 var(--f-display); color: #fff; margin-bottom: 8px; }
.cookies a { color: #fff; }
.cookies-opts { display: grid; gap: 8px; margin: 0 0 14px; }
.cookies-opts[hidden] { display: none; }
.cookies-opts label { display: flex; gap: 10px; align-items: center; }
.cookies-opts input { width: 18px; height: 18px; accent-color: var(--violet); }
.cookies-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cookies-btns .btn { flex: 1; }

/* ── Apariciones al hacer scroll ──────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s var(--ease-out); }
.js .reveal-clip.in { clip-path: inset(0 0 0 0); }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 70; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .burger { display: block; }
  .header-actions { margin-left: auto; }
  .steps, .proof, .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .proof > div:nth-child(2) { border-right: 0; }
  .proof > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps-line::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  body { font-size: 16.5px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .hero { min-height: auto; }
  .hero-in, .page-hero-in, .local, .split, .audit-in, .section-head { grid-template-columns: 1fr; }
  .split-rev > :first-child { order: 0; }
  .hero-visual { max-width: 520px; width: 100%; margin: 10px auto 0; }
  .fc-gbp { left: 0; top: 10%; width: 230px; }
  .fc-ai { right: 0; top: 0; width: 210px; }
  .scroll-hint { display: none; }
  .sht, .svc-grid, .cards, .cards-2, .post-grid { grid-template-columns: 1fr; }
  .svc-grid > .svc-card:first-child { grid-column: auto; flex-direction: column; }
  .svc-grid > .svc-card:first-child .svc-img { aspect-ratio: 16 / 10; flex: none; }
  .svc-grid > .svc-card:first-child .svc-body { padding: 26px; }
  .svc-grid > .svc-card:first-child .svc-ico { top: -28px; right: 22px; }
  .header-actions .btn { display: none; }
  .mobile-bar { position: fixed; z-index: 65; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1.15fr 1.7fr; gap: 4px; padding: 6px; border-radius: 22px; background: rgba(10,14,31,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 50px -10px rgba(0,0,0,.5), inset 0 0 0 1px var(--line-d); transition: transform .45s var(--ease-out); }
  .mobile-bar.hide { transform: translateY(140%); }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 13px 6px; border-radius: 16px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
  .mobile-bar .mb-main { background: var(--grad); }
  .cookies { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
@media (max-width: 620px) {
  .steps, .proof, .cards-4, .f-row, .footer-grid { grid-template-columns: 1fr; }
  .proof > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .btn-lg { padding: 17px 24px; font-size: 16.5px; }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-visual { aspect-ratio: 4 / 4.8; }
  .fc-gbp { width: 200px; font-size: 12.5px; padding: 12px; top: 54%; }
  .fc-ai { width: 190px; font-size: 12.5px; padding: 12px; }
  .fc-call { bottom: 4%; right: 0; }
  .fc-pin { display: none; }
  .r-label { font-size: 12px; padding: 6px 10px; }
  .footer-legal { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
@media print {
  .site-header, .mobile-bar, .cookies, .site-footer .footer-cta, .mesh { display: none !important; }
  .page-hero, .hero, .dark { background: #fff; color: #000; }
}
