/* Fuentes servidas desde el propio sitio (sin conexión a terceros).
   IBM Plex y Newsreader: SIL Open Font License 1.1 */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-normal-latin-ext-0.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-normal-latin-1.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-normal-latin-ext-2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-mono-normal-latin-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-normal-latin-ext-4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-normal-latin-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-normal-latin-ext-4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-normal-latin-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-normal-latin-ext-4.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(../assets/fonts/ibm-plex-sans-normal-latin-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/newsreader-italic-latin-ext-6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/newsreader-italic-latin-7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/newsreader-normal-latin-ext-8.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/newsreader-normal-latin-9.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/newsreader-normal-latin-ext-8.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../assets/fonts/newsreader-normal-latin-9.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   SITE.CSS — Gabriela L. González Vázquez
   Paleta original: negro · blanco · azul business.
   Tipografía: Newsreader (títulos y citas) · IBM Plex Sans (texto) · IBM Plex Mono (etiquetas).
   ========================================================================== */

:root {
    --white: #FFFFFF;
    --black: #0A0A0A;
    --black-2: #151619;
    --blue: #1A4FD6;
    --blue-deep: #0F3A9E;
    --blue-light: #6E9BFF;
    --paper: #F4F6FA;
    --ink: #0A0A0A;
    --ink-2: #3D424D;
    --muted: #5F6573;
    --line: rgba(10, 10, 10, .1);
    --line-dark: rgba(255, 255, 255, .14);
    --on-dark-2: rgba(255, 255, 255, .74);

    --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

    --wrap: 1200px;
    --gutter: clamp(20px, 5vw, 56px);
    --radius: 22px;
    --radius-sm: 14px;

    --ease-out: cubic-bezier(.23, 1, .32, 1);
    --ease-apple: cubic-bezier(.16, 1, .3, 1);

    --shadow-1: 0 1px 2px rgba(10, 10, 10, .04), 0 8px 24px rgba(10, 10, 10, .06);
    --shadow-2: 0 2px 4px rgba(10, 10, 10, .05), 0 24px 60px rgba(10, 10, 10, .12);

    --z-header: 20;
    --z-float: 30;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
    background: var(--white); color: var(--ink);
    font: 400 1rem/1.65 var(--sans);
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
[id] { scroll-margin-top: 96px; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible, .band-blue :focus-visible, .hero :focus-visible, .split-panel :focus-visible { outline-color: #fff; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
[hidden] { display: none !important; }
.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; }

.eyebrow { font: 500 .74rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.dark .eyebrow, .band-blue .eyebrow, .split-panel .eyebrow { color: var(--on-dark-2); }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 999px;
    font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
    background: var(--blue); color: #fff;
}
.pill-white { background: #fff; color: var(--blue); }
.num { font: 500 .78rem/1 var(--mono); letter-spacing: .08em; color: var(--blue); display: block; margin-bottom: 12px; }

/* ---------- botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 26px; border-radius: 999px;
    font: 500 .95rem/1 var(--sans); text-decoration: none;
    border: 1.5px solid transparent;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .2s var(--ease-out), box-shadow .25s ease;
    touch-action: manipulation; position: relative; overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); }
.btn-line { border-color: currentColor; color: var(--ink); }
.btn-black { background: var(--black); color: #fff; }
.dark .btn-line, .band-blue .btn-line, .hero .btn-line { color: #fff; border-color: rgba(255, 255, 255, .7); }
@media (hover: hover) {
    .btn:hover { transform: translateY(-2px); }
    .btn-solid:hover { background: var(--blue-deep); box-shadow: 0 12px 28px rgba(26, 79, 214, .35); }
    .btn-white:hover { background: var(--black); color: #fff; }
    .btn-black:hover { background: #fff; color: var(--blue); }
    .btn-line:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
    .dark .btn-line:hover, .band-blue .btn-line:hover, .hero .btn-line:hover { background: #fff; color: var(--blue); border-color: #fff; }
    .btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%); transform: translateX(-120%); transition: transform .9s var(--ease-apple); }
    .btn:hover::after { transform: translateX(120%); }
}
.link { color: var(--blue); font-weight: 500; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.link .arr { transition: transform .3s var(--ease-out); }
@media (hover: hover) { .link:hover .arr { transform: translateX(4px); } }
.dark .link, .band-blue .link { color: #fff; }

/* ---------- encabezado (píldora flotante) ---------- */
.top { position: fixed; inset-inline: 0; top: 14px; z-index: var(--z-header); padding-inline: 12px; transition: transform .5s var(--ease-apple); pointer-events: none; }
.top.hide { transform: translateY(calc(-100% - 20px)); }
.top .wrap {
    pointer-events: auto;
    max-width: 1120px; height: 60px; padding: 0 8px 0 22px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    background: rgba(255, 255, 255, .84);
    -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(10, 10, 10, .06), 0 10px 30px rgba(10, 10, 10, .08);
    position: relative;
}
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; white-space: nowrap; min-height: 44px; padding-top: 14px; }
.brand b { font: 500 1.15rem/1 var(--serif); letter-spacing: -.01em; }
.brand span { font: 500 .64rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; font: 500 .88rem/1 var(--sans); color: var(--ink-2); padding: 12px 12px; border-radius: 999px; transition: color .2s ease, background-color .2s ease; }
@media (hover: hover) { .nav a:hover { color: var(--blue); background: rgba(26, 79, 214, .07); } }
.nav a[aria-current="page"] { color: var(--blue); }
.lang-btn {
    min-width: 46px; min-height: 44px; padding: 0 14px; margin-left: 6px;
    font: 500 .76rem/1 var(--mono); letter-spacing: .08em;
    border-radius: 999px; background: var(--black); color: #fff;
    transition: background-color .2s ease, transform .2s var(--ease-out);
}
@media (hover: hover) { .lang-btn:hover { background: var(--blue); } }
.lang-btn:active { transform: scale(.95); }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .3s var(--ease-out), background-color .2s ease; }
.menu-btn span::before, .menu-btn span::after { content: ''; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.top-actions { display: none; }
@media (max-width: 1000px) {
    .top-actions { display: flex; align-items: center; gap: 2px; }
    .menu-btn { display: inline-flex; }
    .nav {
        position: absolute; left: 0; right: 0; top: calc(100% + 10px);
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-radius: var(--radius); padding: 10px;
        box-shadow: var(--shadow-2);
        opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top center; visibility: hidden;
        transition: opacity .25s ease, transform .35s var(--ease-apple), visibility 0s linear .35s;
    }
    .nav.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
    .nav a { padding: 16px 16px; font-size: 1.02rem; border-radius: var(--radius-sm); }
    .nav .lang-btn { display: none; }
}
@media (max-width: 400px) { .brand span { display: none; } }

/* ---------- pie ---------- */
.foot { background: var(--black); color: rgba(255, 255, 255, .62); font-size: .88rem; }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding-block: 28px calc(28px + env(safe-area-inset-bottom)); }
.foot nav { display: flex; gap: 4px 22px; flex-wrap: wrap; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: rgba(255, 255, 255, .62); transition: color .2s ease; }
@media (hover: hover) { .foot a:hover { color: #fff; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: var(--z-float);
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    background: var(--blue); color: #fff;
    box-shadow: 0 10px 28px rgba(26, 79, 214, .45);
    transition: transform .3s var(--ease-out), background-color .2s ease, opacity .4s ease;
}
.wa-float svg { width: 27px; height: 27px; fill: currentColor; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; }
@media (hover: hover) { .wa-float:hover { transform: scale(1.06); background: var(--blue-deep); } }
.wa-float:active { transform: scale(.95); }

/* ==========================================================================
   INICIO
   ========================================================================== */

/* ---------- portada con video ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; padding: 110px var(--gutter) 90px; color: #fff; overflow: hidden; background: var(--black); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 55% at 50% 50%, rgba(10, 10, 10, .5), rgba(10, 10, 10, .14) 72%), linear-gradient(180deg, rgba(10, 10, 10, .4), transparent 28%, transparent 72%, rgba(10, 10, 10, .55)); }
.hero-card h1, .hero-card .rotativo, .hero-card .hero-lede { text-shadow: 0 2px 28px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .35); }
.hero-card {
    position: relative; max-width: 820px; width: 100%; text-align: center;
    padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 64px);
    background: none;
    border-radius: 32px;
    box-shadow: none;
}
.hero h1 { font-size: clamp(2.6rem, 6.8vw, 5.2rem); font-weight: 500; letter-spacing: -.035em; line-height: 1; margin: 22px 0 16px; }
.hero h1 em { font-style: italic; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .line > span { display: inline-block; }
.rotativo { display: block; height: 1.5em; font: 400 italic clamp(1.25rem, 2.4vw, 1.7rem)/1.5 var(--serif); overflow: hidden; }
.rotativo span { display: inline-block; transition: transform .6s var(--ease-apple), opacity .45s ease, filter .45s ease; }
.rotativo span.out { transform: translateY(-70%); opacity: 0; filter: blur(4px); }
.rotativo span.pre { transform: translateY(70%); opacity: 0; filter: blur(4px); transition: none; }
.hero-lede { font-size: clamp(1rem, 1.4vw, 1.12rem); color: rgba(255, 255, 255, .86); max-width: 600px; margin: 18px auto 34px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.video-toggle {
    position: absolute; left: var(--gutter); bottom: 28px; z-index: 2;
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .14); color: #fff;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
    transition: background-color .2s ease, transform .2s var(--ease-out);
}
.video-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }
@media (hover: hover) { .video-toggle:hover { background: rgba(255, 255, 255, .28); } }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 600px) { .scroll-cue { display: none; } .hero-card { border-radius: 24px; } }

/* ---------- carrusel de logotipos ---------- */
.logos { padding-block: clamp(36px, 5vw, 56px); background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.logos .eyebrow { text-align: center; color: var(--muted); margin-bottom: 26px; }
.logos-viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos-track { display: flex; align-items: center; width: max-content; }
.logos-track li { flex: none; padding-inline: clamp(28px, 4vw, 56px); }
.logos-track img { height: 54px; width: auto; max-width: 200px; object-fit: contain; filter: grayscale(1); opacity: .78; transition: filter .35s ease, opacity .35s ease, transform .35s var(--ease-out); }
.logos-track .tall img { height: 74px; }
@media (hover: hover) { .logos-track li:hover img { filter: none; opacity: 1; transform: scale(1.05); } }
.js .logos-track { animation: marquee 38s linear infinite; }
@media (hover: hover) { .logos:hover .logos-track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- bloques divididos (foto | panel) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: var(--black); }
.split-media { position: relative; overflow: hidden; min-height: 60vh; background: var(--black-2); }
.split-media > img, .split-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-panel { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(56px, 8vw, 110px) clamp(24px, 6vw, 80px); color: #fff; }
.panel-blue { background: var(--blue); }
.panel-black { background: var(--black); }
.split-panel > * { max-width: 100%; }
.split-panel .stats, .split-panel .services, .split-panel .degrees, .split-panel > .reveal:not(.pill) { align-self: stretch; }
.split-panel h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); margin: 18px 0 10px; }
.split-panel .sub { font: 400 italic 1.25rem/1.4 var(--serif); color: rgba(255, 255, 255, .82); margin-bottom: 22px; }
.split-panel p { color: rgba(255, 255, 255, .88); line-height: 1.8; max-width: 58ch; }
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; min-height: 0; }
    .split-media { min-height: 0; aspect-ratio: 4 / 3; }
}

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .22); }
.stats dt { font: 500 clamp(2.4rem, 4vw, 3.2rem)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: lining-nums tabular-nums; }
.stats dd { margin-top: 8px; font: 500 .68rem/1.45 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- declaración "Áreas de práctica" ---------- */
.statement { background: var(--blue); color: #fff; min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 96px var(--gutter); overflow: hidden; }
.statement h2 { font-size: clamp(3rem, 10vw, 8.4rem); letter-spacing: -.045em; line-height: .95; }
.statement h2 em { font-style: italic; }
.statement p { margin-top: 22px; font: 400 italic clamp(1.15rem, 1.8vw, 1.45rem)/1.4 var(--serif); color: rgba(255, 255, 255, .82); }

/* lista de servicios */
.services { margin-top: 30px; counter-reset: s; }
.services li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 20px 0; border-top: 1px solid var(--line-dark); align-items: start; }
.services li:last-child { border-bottom: 1px solid var(--line-dark); }
.services li::before {
    counter-increment: s; content: counter(s, decimal-leading-zero);
    width: 48px; height: 48px; border-radius: var(--radius-sm); display: grid; place-items: center;
    background: #fff; color: var(--blue); font: 500 .82rem/1 var(--mono);
    transition: transform .4s var(--ease-out), background-color .3s ease, color .3s ease;
}
.services strong { display: block; font: 500 1.3rem/1.25 var(--serif); color: #fff; }
.services span { display: block; margin-top: 4px; font-size: .9rem; line-height: 1.6; color: rgba(255, 255, 255, .72); }
@media (hover: hover) { .services li:hover::before { transform: rotate(-6deg) scale(1.06); background: var(--blue); color: #fff; } }

/* ---------- secciones estándar ---------- */
.section { padding-block: clamp(80px, 11vw, 140px); }
.section.light { background: var(--paper); }
.section.dark { background: var(--black); color: #fff; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(44px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-top: 14px; }
.section-head p { margin-top: 14px; font: 400 1.2rem/1.5 var(--serif); color: var(--muted); }
.dark .section-head p { color: var(--on-dark-2); }

/* ---------- cómo trabajo ---------- */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.process-aside { position: sticky; top: 120px; }
.process-aside h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); margin-top: 14px; }
.process-aside p { color: var(--muted); font: 400 1.2rem/1.5 var(--serif); margin-top: 16px; max-width: 34ch; }
.rail { position: relative; height: 4px; border-radius: 4px; background: rgba(26, 79, 214, .14); margin-top: 36px; max-width: 260px; overflow: hidden; }
.rail::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--blue); transform: scaleX(var(--p, 1)); transform-origin: left; }
.steps li { background: #fff; border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-1); }
.steps li + li { margin-top: 18px; }
.steps .k { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font: 500 .8rem/1 var(--mono); }
.steps h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin: 18px 0 10px; }
.steps p { color: var(--ink-2); max-width: 50ch; }
@media (min-width: 1001px) {
    .steps li { min-height: 44vh; display: flex; flex-direction: column; justify-content: center; }
    .js .steps li { opacity: .35; transform: scale(.96); transition: opacity .6s var(--ease-apple), transform .6s var(--ease-apple), box-shadow .6s ease; }
    .js .steps li.active { opacity: 1; transform: none; box-shadow: var(--shadow-2); }
}
@media (max-width: 1000px) { .process { grid-template-columns: 1fr; } .process-aside { position: static; } .rail { display: none; } }

/* ---------- experiencia: línea de tiempo ---------- */
.timeline { position: relative; max-width: 1100px; margin-inline: auto; }
.timeline::before, .timeline::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 2px; }
.timeline::before { background: var(--line); }
.timeline::after { background: var(--blue); transform: scaleY(var(--p, 1)); transform-origin: top; }
.t-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 110px); align-items: center; padding-block: 28px; }
.t-item::before { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--blue), 0 0 0 9px rgba(26, 79, 214, .12); z-index: 1; }
.t-card { background: var(--blue); color: #fff; border-radius: var(--radius); padding: clamp(26px, 3.4vw, 40px); box-shadow: 0 20px 50px rgba(26, 79, 214, .22); }
.t-card time { display: inline-block; padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--blue); font: 500 .72rem/1 var(--mono); letter-spacing: .04em; }
.t-card h3 { font-size: clamp(1.5rem, 2.3vw, 1.9rem); margin: 16px 0 6px; }
.t-card .role { font-weight: 500; font-size: .95rem; color: rgba(255, 255, 255, .84); margin-bottom: 14px; }
.t-card p { font-size: .94rem; line-height: 1.7; color: rgba(255, 255, 255, .9); }
.t-logo { display: grid; place-items: center; }
.t-logo span { display: grid; place-items: center; width: min(100%, 320px); aspect-ratio: 16 / 9; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 28px; transition: transform .5s var(--ease-out), box-shadow .5s ease; }
.t-logo img { max-height: 84px; width: auto; max-width: 100%; object-fit: contain; }
@media (hover: hover) { .t-item:hover .t-logo span { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-2); } }
.t-item:nth-child(even) .t-card { order: 2; }
@media (max-width: 860px) {
    .timeline::before, .timeline::after { left: 10px; }
    .t-item { grid-template-columns: 1fr; gap: 16px; padding-left: 40px; }
    .t-item::before { left: 10px; top: 46px; }
    .t-item:nth-child(even) .t-card { order: 0; }
    .t-logo { justify-items: start; }
    .t-logo span { width: 200px; padding: 18px; }
    .t-logo img { max-height: 54px; }
}

/* ---------- formación: carrusel UP ---------- */
.carousel { position: relative; overflow: hidden; background: var(--black-2); min-height: 60vh; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.js .slide.active img { animation: kenburns 7s linear both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.carousel::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, transparent 55%, rgba(10, 10, 10, .65)); pointer-events: none; }
.carousel-badge { position: absolute; left: 24px; top: 24px; z-index: 3; width: 84px; height: 84px; border-radius: 20px; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-2); }
.carousel-badge img { width: 64px; height: 64px; object-fit: contain; }
.carousel-ui { position: absolute; left: 24px; right: 16px; bottom: 16px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; }
.carousel-ui p { font-weight: 500; font-size: .92rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.dots { display: flex; gap: 2px; }
.dots button { width: 44px; height: 44px; display: grid; place-items: center; }
.dots button::before { content: ''; width: 9px; height: 9px; border-radius: 999px; background: rgba(255, 255, 255, .5); transition: width .4s var(--ease-apple), background-color .3s ease; }
.dots button[aria-current="true"]::before { width: 28px; background: #fff; }

.degrees { margin-top: 26px; }
.degrees li { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .22); }
.degrees li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .22); }
.degrees time { font: 500 .72rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.degrees strong { display: block; font: 500 1.35rem/1.25 var(--serif); margin-top: 4px; }
.degrees .sub2 { display: block; font-size: .9rem; color: rgba(255, 255, 255, .78); margin-top: 2px; }
.tag-live { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: #fff; color: var(--blue); font: 500 .62rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: 4px; }

/* ---------- filosofía ---------- */
.philosophy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.philosophy .pq { font: 400 italic clamp(2rem, 3.9vw, 3.3rem)/1.18 var(--serif); letter-spacing: -.015em; margin-top: 20px; text-wrap: balance; }
.philosophy .who { margin-top: 26px; color: var(--on-dark-2); font-weight: 500; }
.philosophy figure { overflow: hidden; border-radius: var(--radius); }
.philosophy img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: 50% 20%; }
@media (max-width: 860px) { .philosophy { grid-template-columns: 1fr; } .philosophy figure { order: -1; max-width: 380px; } .philosophy img { aspect-ratio: 4 / 5; } }

/* ---------- habilidades e idiomas ---------- */
.skills-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 22px; }
.s-card { background: var(--black-2); border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); box-shadow: inset 0 0 0 1px var(--line-dark); }
.s-card h3 { font-size: 1.6rem; margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.s-card h3::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--blue); }
.chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.chips li { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--blue); font-weight: 500; transition: transform .35s var(--ease-out), background-color .3s ease; }
@media (hover: hover) { .chips li:hover { transform: translateY(-3px); background: var(--blue-deep); } }
.lang + .lang { margin-top: 26px; }
.lang-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.lang-row b { font-weight: 500; }
.lang-row span { color: var(--on-dark-2); font-size: .88rem; }
.bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-light)); }
.js .bar i { transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-apple) .2s; }
.js .in .bar i { transform: scaleX(1); }
@media (max-width: 860px) { .skills-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .chips { grid-template-columns: 1fr; } }

/* ---------- tarjetas de artículos ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1); transition: transform .5s var(--ease-out), box-shadow .5s ease; }
@media (hover: hover) { .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); } }
.cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue); color: #fff; }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.cover-art { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; justify-content: space-between;
    background: radial-gradient(90% 120% at 100% 0%, rgba(110, 155, 255, .55), transparent 60%), linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%); }
.cover-art::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); mask-image: linear-gradient(200deg, #000, transparent 70%); }
.cover-art b { position: relative; font: 400 italic clamp(2.4rem, 4.6vw, 3.4rem)/1 var(--serif); letter-spacing: -.03em; transition: transform .8s var(--ease-out); transform-origin: left bottom; }
.cover-art small { position: relative; font: 500 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
@media (hover: hover) { .card:hover .cover img, .card:hover .cover-art b { transform: scale(1.06); } }
.card-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font: 500 .68rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.card h3 { font-size: 1.45rem; line-height: 1.2; margin: 10px 0 10px; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ''; position: absolute; inset: 0; }
.card p { color: var(--muted); font-size: .92rem; line-height: 1.6; }
.card-meta { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 400 .74rem/1.4 var(--mono); color: var(--muted); }
.card-meta .go { color: var(--blue); font: 500 .85rem/1 var(--sans); transition: transform .3s var(--ease-out); }
@media (hover: hover) { .card:hover .card-meta .go { transform: translateX(4px); } }
.card.oculto { display: none; }
.cards-more { text-align: center; margin-top: 40px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* ---------- testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.quotes figure { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 24px; transition: transform .5s var(--ease-out); }
@media (hover: hover) { .quotes figure:hover { transform: translateY(-6px); } }
.quotes figure::before { content: '“'; font: 500 4.4rem/0.6 var(--serif); color: var(--blue); opacity: .5; height: 24px; }
.quotes blockquote p { font: 400 1.22rem/1.5 var(--serif); }
.quotes figcaption { margin-top: auto; display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: .95rem; }
.quotes figcaption i { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font: 500 .8rem/1 var(--mono); font-style: normal; }
.quotes figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- preguntas frecuentes ---------- */
.faq { max-width: 880px; margin-inline: auto; }
.faq details { background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-1); transition: box-shadow .3s ease; }
.faq details + details { margin-top: 12px; }
.faq details[open] { box-shadow: var(--shadow-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 26px; min-height: 44px; font: 500 clamp(1.15rem, 1.9vw, 1.35rem)/1.3 var(--serif); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 32px; height: 32px; border-radius: 50%; background: rgba(26, 79, 214, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A4FD6' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .45s var(--ease-apple), background-color .3s ease; }
.faq details[open] summary::after { transform: rotate(135deg); background-color: rgba(26, 79, 214, .18); }
@media (hover: hover) { .faq summary:hover { color: var(--blue); } }
.faq .a p { padding: 0 26px 24px; color: var(--ink-2); max-width: 68ch; }
.js .faq details[open] .a p { animation: faqIn .55s var(--ease-apple); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- contacto ---------- */
.band-blue { background: var(--blue); color: #fff; }
.contact { text-align: center; padding-block: clamp(90px, 12vw, 160px); position: relative; overflow: hidden; isolation: isolate; }
.contact::before { content: ''; position: absolute; width: 900px; height: 900px; left: 50%; top: 50%; margin: -450px 0 0 -450px; border-radius: 50%; background: radial-gradient(circle, rgba(110, 155, 255, .45), transparent 65%); z-index: -1; transform: scale(calc(.6 + var(--p, 1) * .6)); }
.contact h2 { font-size: clamp(2.8rem, 7.4vw, 6rem); letter-spacing: -.04em; line-height: 1; margin-top: 18px; }
.contact h2 em { font-style: italic; }
.contact .lede { max-width: 620px; margin: 22px auto 0; font: 400 1.2rem/1.55 var(--serif); color: rgba(255, 255, 255, .88); }
.contact-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; }
.contact-list a { color: #fff; text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid rgba(255, 255, 255, .35); transition: border-color .2s ease; }
@media (hover: hover) { .contact-list a:hover { border-color: #fff; } }
.contact-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* ==========================================================================
   PERSPECTIVAS (blog.html)
   ========================================================================== */
.masthead { padding: 150px 0 40px; text-align: center; }
.masthead h1 { font-size: clamp(3.4rem, 10vw, 7.4rem); letter-spacing: -.045em; line-height: .95; margin: 18px 0 20px; }
.masthead p:not(.eyebrow) { font: 400 clamp(1.15rem, 1.7vw, 1.35rem)/1.5 var(--serif); color: var(--muted); max-width: 640px; margin-inline: auto; }
.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 40px; }
.filtros button { min-height: 44px; padding: 0 18px; border-radius: 999px; font: 500 .8rem/1 var(--mono); background: var(--paper); color: var(--ink-2); transition: background-color .2s ease, color .2s ease, transform .2s var(--ease-out); }
@media (hover: hover) { .filtros button:hover { background: rgba(26, 79, 214, .1); color: var(--blue); } }
.filtros button:active { transform: scale(.96); }
.filtros button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.lead-card { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); margin-bottom: 24px; }
.lead-card .cover { aspect-ratio: auto; min-height: 340px; }
.lead-card .card-body { padding: clamp(28px, 4vw, 48px); justify-content: center; }
.lead-card h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin: 12px 0 14px; }
.lead-card h2 a { text-decoration: none; }
.lead-card h2 a::after { content: ''; position: absolute; inset: 0; }
@media (max-width: 860px) { .lead-card { grid-template-columns: 1fr; } .lead-card .cover { min-height: 0; aspect-ratio: 16 / 9; } }
.byline { display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 500; }
.byline img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.byline span { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.blog-wrap { padding-bottom: clamp(80px, 10vw, 130px); }

/* ==========================================================================
   ARTÍCULO
   ========================================================================== */
.progreso { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--blue); z-index: calc(var(--z-header) + 1); }
.art-head { padding: 140px 0 32px; max-width: 900px; }
.volver { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font: 500 .78rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: color .2s ease; }
@media (hover: hover) { .volver:hover { color: var(--blue); } }
.art-head .eyebrow { margin-top: 22px; }
.art-head h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); letter-spacing: -.03em; line-height: 1.03; margin: 14px 0 20px; }
.art-head .deck { font: 400 clamp(1.2rem, 2vw, 1.5rem)/1.45 var(--serif); color: var(--ink-2); max-width: 46ch; }
.art-by { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 0; border-block: 1px solid var(--line); margin-top: 30px; }
.share { display: flex; gap: 6px; }
.share a, .share button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink-2); transition: background-color .2s ease, color .2s ease, transform .2s var(--ease-out); }
.share svg { width: 18px; height: 18px; fill: currentColor; }
@media (hover: hover) { .share a:hover, .share button:hover { background: var(--blue); color: #fff; } }
.share a:active, .share button:active { transform: scale(.94); }
.share button.ok { background: var(--blue); color: #fff; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 88px); align-items: start; padding-bottom: 64px; }
.art-grid > aside { position: sticky; top: 110px; }
@media (max-width: 960px) { .art-grid { grid-template-columns: 1fr; } .art-grid > aside { position: static; order: -1; } }
.esencial { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 26px; }
.esencial h2 { font: 500 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8); margin-bottom: 8px; }
.esencial li { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); font-size: .94rem; }
.esencial li:last-child { border-bottom: 0; }
.prose { max-width: 68ch; font: 400 1.2rem/1.7 var(--serif); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.65rem, 2.6vw, 2.1rem); line-height: 1.15; margin-top: 2em; }
.prose ul li { position: relative; padding-left: 1.4em; }
.prose ul li + li { margin-top: .6em; }
.prose ul li::before { content: ''; position: absolute; left: .2em; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.prose strong { font-weight: 600; }
.prose a { color: var(--blue); text-underline-offset: 3px; }
.prose blockquote { margin: 2em 0; padding: 26px 30px; border-radius: var(--radius); background: var(--paper); border-left: 4px solid var(--blue); font: 400 italic clamp(1.4rem, 2.4vw, 1.8rem)/1.35 var(--serif); }
.prose figure { margin: 2.2em 0; }
.prose figcaption { margin-top: 10px; font: 400 .85rem/1.5 var(--sans); color: var(--muted); }
.video-embed { position: relative; aspect-ratio: 16 / 9; background: var(--black); border-radius: var(--radius); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; color: #fff; background: radial-gradient(80% 80% at 50% 40%, rgba(26, 79, 214, .55), var(--black)); }
.yt-play { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 26px 0 20px; border-radius: 999px; background: #fff; color: var(--blue); font: 500 .95rem/1 var(--sans); transition: transform .2s var(--ease-out); }
.yt-play::before { content: ''; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 4px; }
@media (hover: hover) { .yt-play:hover { transform: scale(1.04); } }
.yt-play:active { transform: scale(.97); }
.yt-note { font-size: .8rem; color: rgba(255, 255, 255, .72); max-width: 46ch; }
.yt-note a { color: #fff; }
.autora { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 24px; align-items: center; padding: 30px; border-radius: var(--radius); background: var(--paper); max-width: 68ch; margin-top: 56px; }
.autora img { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; }
.autora h2 { font-size: 1.5rem; margin: 6px 0 6px; }
.autora p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 520px) { .autora { grid-template-columns: 1fr; } }
.art-cta { padding-block: clamp(64px, 9vw, 110px); }
.art-cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.art-cta h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -.03em; max-width: 18ch; }
.art-cta p { color: rgba(255, 255, 255, .86); margin-top: 10px; max-width: 46ch; }
.relacionados { padding-block: clamp(64px, 9vw, 110px); background: var(--paper); }
.relacionados h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 30px; }

/* ==========================================================================
   AVISOS LEGALES
   ========================================================================== */
.legal-hero { padding: 150px 0 clamp(56px, 7vw, 84px); position: relative; overflow: hidden; isolation: isolate; }
.legal-hero::before { content: ''; position: absolute; width: 760px; height: 760px; right: -240px; top: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(110, 155, 255, .5), transparent 65%); z-index: -1; }
.legal-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grid-lines); background-size: 56px 56px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 60%); mask-image: linear-gradient(200deg, #000, transparent 60%); }
.legal-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.035em; line-height: 1.02; margin: 18px 0 12px; max-width: 16ch; }
.legal-hero .fecha-actualizacion { font: 400 .8rem/1.5 var(--mono); color: rgba(255, 255, 255, .78); }
.legal-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.legal-summary li { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: var(--radius-sm); padding: 18px 18px 20px; }
.legal-summary b { display: flex; align-items: center; gap: 10px; font: 500 1.2rem/1.2 var(--serif); }
.legal-summary b::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A4FD6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.legal-summary span { display: block; margin-top: 8px; font-size: .88rem; color: rgba(255, 255, 255, .84); }
@media (max-width: 960px) { .legal-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .legal-summary { grid-template-columns: 1fr; } }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; padding-block: clamp(48px, 7vw, 88px) clamp(70px, 9vw, 110px); }
.legal-toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 20px; }
.legal-toc .eyebrow { margin-bottom: 10px; }
.legal-toc ol { border-left: 2px solid var(--line); }
.legal-toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; font-size: .86rem; line-height: 1.35; color: var(--muted); transition: color .2s ease, border-color .2s ease; }
@media (hover: hover) { .legal-toc a:hover { color: var(--blue); } }
.legal-toc a[aria-current="true"] { color: var(--blue); border-left-color: var(--blue); font-weight: 500; }
.legal-toc .btn { align-self: flex-start; min-height: 44px; padding: 0 18px; font-size: .85rem; }
@media (max-width: 960px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; } .legal-toc ol { columns: 2 220px; } }
.storage-panel { background: var(--paper); border-radius: var(--radius); padding: 10px 24px 22px; margin: 6px 0 22px; }
.sp-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sp-k { color: var(--ink-2); font-size: .94rem; }
.sp-v { font: 500 .8rem/1 var(--mono); letter-spacing: .04em; color: var(--blue); background: #fff; padding: 8px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.storage-panel .btn { margin-top: 18px; min-height: 44px; font-size: .88rem; }
.btn:disabled { opacity: .45; pointer-events: none; }
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2.5rem, 5.8vw, 4.2rem); letter-spacing: -.03em; margin: 14px 0 10px; }
.legal .fecha-actualizacion { font: 400 .8rem/1.5 var(--mono); color: var(--muted); margin-bottom: 34px; }
.legal-intro { font: 400 1.2rem/1.6 var(--serif); color: var(--ink-2); margin-bottom: 30px; }
.legal-index { background: var(--paper); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px; }
.legal-index ol { columns: 2 260px; column-gap: 32px; font-size: .9rem; }
.legal-index li { break-inside: avoid; }
.legal-index .link { min-height: 36px; font-weight: 500; }
.legal .privacidad-section { padding: 30px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.legal .privacidad-section:first-of-type { padding-top: 10px; }
.legal h2 { font-size: 1.65rem; margin-bottom: 14px; }
.legal h3 { font: 600 1rem/1.4 var(--sans); letter-spacing: 0; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 1em; }
.legal ul { margin: 12px 0; }
.legal .privacidad-section li { position: relative; padding-left: 1.4em; margin-top: .55em; }
.legal .privacidad-section li::before { content: ''; position: absolute; left: .2em; top: .72em; width: 6px; height: 6px; border-radius: 2px; background: var(--blue); }
.legal a:not(.btn):not(.link) { color: var(--blue); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal code { font: 400 .85em/1 var(--mono); background: var(--paper); padding: 2px 7px; border-radius: 6px; }
.legal .btn-volver { margin-top: 34px; }

/* ==========================================================================
   ÁREAS · CONTACTO GUIADO · RECURSOS · GLOSARIO
   ========================================================================== */

/* servicios enlazados en la portada */
.services a { display: block; text-decoration: none; color: inherit; }
.services li { transition: background-color .3s ease; }
@media (hover: hover) { .services li:hover strong { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; } }

/* índice de áreas */
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.area-card { position: relative; background: var(--paper); border-radius: var(--radius); padding: 32px 30px 28px; display: flex; flex-direction: column; gap: 12px; min-height: 280px; transition: background-color .4s ease, color .4s ease, transform .5s var(--ease-out); }
.area-card .area-n { font: 500 .8rem/1 var(--mono); color: var(--blue); }
.area-card h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.area-card h2 a { text-decoration: none; }
.area-card h2 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.area-card p { color: var(--ink-2); }
.area-card .go { margin-top: auto; color: var(--blue); font-weight: 500; transition: transform .3s var(--ease-out); }
@media (hover: hover) {
    .area-card:hover { background: var(--blue); color: #fff; transform: translateY(-6px); }
    .area-card:hover p, .area-card:hover .area-n, .area-card:hover .go { color: rgba(255, 255, 255, .88); }
    .area-card:hover .go { transform: translateX(4px); }
}
@media (max-width: 960px) { .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .area-grid { grid-template-columns: 1fr; } .area-card { min-height: 0; } }

/* página de área */
.area-hero { padding: 150px 0 clamp(70px, 9vw, 110px); position: relative; overflow: hidden; isolation: isolate; }
.area-hero::before { content: ''; position: absolute; width: 760px; height: 760px; right: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(110, 155, 255, .5), transparent 65%); z-index: -1; }
.area-hero .volver { display: flex; width: fit-content; color: rgba(255, 255, 255, .78); }
@media (hover: hover) { .area-hero .volver:hover { color: #fff; } }
.area-hero .pill { margin-top: 26px; }
.area-hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); letter-spacing: -.04em; line-height: 1; margin: 18px 0 18px; max-width: 14ch; }
.area-hero .lede { font: 400 clamp(1.2rem, 2vw, 1.5rem)/1.45 var(--serif); color: rgba(255, 255, 255, .88); max-width: 40ch; }
.area-hero .contact-actions { margin-top: 30px; }
.area-intro p { font: 400 clamp(1.35rem, 2.4vw, 1.9rem)/1.45 var(--serif); max-width: 46ch; margin-bottom: clamp(40px, 6vw, 64px); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.two-col > div { background: var(--paper); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
.two-col h3 { font-size: 1.6rem; margin-bottom: 16px; }
.tick-list li { position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--line); color: var(--ink-2); }
.tick-list li:first-child { border-top: 0; }
.tick-list li::before { content: ''; position: absolute; left: 0; top: 14px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.deliverables { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.deliverables li { background: #fff; border-radius: var(--radius-sm); padding: 24px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 14px; transition: transform .4s var(--ease-out), box-shadow .4s ease; }
.deliverables span { font: 500 .78rem/1 var(--mono); color: var(--blue); }
.deliverables p { font-weight: 500; }
@media (hover: hover) { .deliverables li:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); } }
.marco { margin-top: 40px; text-align: center; }
.marco h3 { font: 500 .74rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.marco ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.marco li { padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .9rem; }
.cards-one { grid-template-columns: minmax(0, 420px); justify-content: center; }
.other-areas h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 26px; text-align: center; }
.other-areas ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.other-areas a { display: flex; flex-direction: column; gap: 10px; min-height: 120px; padding: 20px; border-radius: var(--radius-sm); background: var(--paper); text-decoration: none; transition: background-color .3s ease, color .3s ease, transform .4s var(--ease-out); }
.other-areas a span { font: 500 .74rem/1 var(--mono); color: var(--blue); }
.other-areas a b { font: 500 1.15rem/1.2 var(--serif); }
@media (hover: hover) { .other-areas a:hover { background: var(--blue); color: #fff; transform: translateY(-4px); } .other-areas a:hover span { color: rgba(255, 255, 255, .8); } }
@media (max-width: 960px) { .other-areas ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* opciones tipo chip (contacto guiado y autoevaluación) */
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--paper); color: var(--ink-2); font-weight: 500; font-size: .92rem; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s var(--ease-out); }
@media (hover: hover) { .opt:hover span { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); } }
.opt input:checked + span { background: var(--blue); color: #fff; box-shadow: none; }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt input:active + span { transform: scale(.96); }

/* contacto guiado */
.guided { max-width: 860px; margin: 40px auto 0; text-align: left; background: #fff; color: var(--ink); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 80px rgba(6, 22, 70, .35); }
.guided fieldset { border: 0; padding: 0; margin: 0 0 26px; min-width: 0; }
.guided legend { font: 500 1.3rem/1.3 var(--serif); margin-bottom: 14px; padding: 0; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 14px; margin-bottom: 22px; }
.fields label { display: flex; flex-direction: column; gap: 8px; font-size: .88rem; font-weight: 500; color: var(--ink-2); }
.fields input, .fields textarea { font: 400 1rem/1.5 var(--sans); color: var(--ink); background: var(--paper); border: 0; border-radius: var(--radius-sm); padding: 13px 16px; box-shadow: inset 0 0 0 1px var(--line); resize: vertical; transition: box-shadow .2s ease, background-color .2s ease; }
.fields input:focus, .fields textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
@media (max-width: 680px) { .fields { grid-template-columns: 1fr; } }
.preview { background: var(--paper); border-radius: var(--radius-sm); padding: 18px 20px; margin-bottom: 20px; }
.preview .eyebrow { color: var(--muted); margin-bottom: 6px; }
#guiado-msg { font: 400 1.08rem/1.55 var(--serif); white-space: pre-line; }
.guided-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.guided .btn-line { color: var(--ink); border-color: var(--ink); }
@media (hover: hover) { .guided .btn-line:hover { background: var(--ink); color: #fff; } }
.guided .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.guided-note { margin-top: 14px; font-size: .82rem; color: var(--muted); }
.contact-direct { margin-top: 28px; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.contact-direct a { color: #fff; text-underline-offset: 3px; display: inline-flex; min-height: 44px; align-items: center; }

/* recursos en la portada */
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.res-card { display: flex; flex-direction: column; gap: 14px; min-height: 230px; padding: 30px; border-radius: var(--radius); background: var(--black); color: #fff; text-decoration: none; position: relative; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease-out); }
.res-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 100% at 100% 0%, rgba(26, 79, 214, .75), transparent 60%); opacity: .6; transition: opacity .5s ease; }
.res-card .res-k { font: 500 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.res-card h3 { font-size: 1.55rem; }
.res-card .go { margin-top: auto; font-weight: 500; transition: transform .3s var(--ease-out); }
@media (hover: hover) { .res-card:hover { transform: translateY(-6px); } .res-card:hover::before { opacity: 1; } .res-card:hover .go { transform: translateX(4px); } }
@media (max-width: 900px) { .res-grid { grid-template-columns: 1fr; } .res-card { min-height: 0; } }

/* autoevaluación */
.quiz { max-width: 860px; margin-inline: auto; background: #fff; border-radius: 28px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-2); }
.quiz-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin: 14px 0 10px; }
.quiz-head p { color: var(--muted); }
.quiz-bar { height: 6px; border-radius: 6px; background: var(--paper); margin: 22px 0 10px; overflow: hidden; }
.quiz-bar i { display: block; height: 100%; width: 100%; background: var(--blue); border-radius: inherit; transform: scaleX(var(--q, 0)); transform-origin: left; transition: transform .6s var(--ease-apple); }
.quiz .q { border: 0; padding: 20px 0; margin: 0; border-top: 1px solid var(--line); min-width: 0; }
.quiz .q legend { display: flex; gap: 14px; font: 500 1.15rem/1.35 var(--serif); margin-bottom: 14px; padding: 0; float: left; width: 100%; }
.quiz .q legend + .opts { clear: both; }
.quiz .q legend span:first-child { font: 500 .78rem/1.8 var(--mono); color: var(--blue); flex: none; }
.quiz .q .opts { padding-left: 34px; }
.quiz-out { margin-top: 16px; padding: 24px; border-radius: var(--radius); background: var(--paper); text-align: center; }
.quiz-score { font: 500 3rem/1 var(--serif); color: var(--blue); }
.quiz-score b { font-weight: 500; }
.quiz-res h3 { font-size: 1.6rem; margin: 10px 0 8px; }
.quiz-res p { color: var(--ink-2); max-width: 52ch; margin-inline: auto; }
.quiz-hint { color: var(--muted); }
.quiz-cta { margin-top: 18px; }
.js .quiz-res:not([hidden]) { animation: faqIn .6s var(--ease-apple); }

/* guías */
.guides { display: grid; gap: 22px; }
.guide-block { background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.guide-block header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.guide-block h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.guide-block header p { color: var(--muted); margin-top: 6px; }
.guide-tools { display: flex; align-items: center; gap: 14px; }
.guide-count { font: 500 .9rem/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.guide-count b { color: var(--blue); font-weight: 500; }
.checklist { columns: 2 320px; column-gap: 28px; }
.checklist li { break-inside: avoid; }
.checklist label { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; cursor: pointer; border-top: 1px solid var(--line); }
.checklist input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(10, 10, 10, .3); background: #fff center / 13px no-repeat; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease, transform .2s var(--ease-out); }
.checklist input:checked { background-color: var(--blue); box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.checklist input:active { transform: scale(.9); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(10, 10, 10, .25); }

/* glosario */
.gl-tools { position: sticky; top: 86px; z-index: 5; display: flex; flex-direction: column; gap: 12px; padding: 14px; margin-bottom: 26px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); }
.gl-search input { width: 100%; font: 400 1.05rem/1.4 var(--sans); padding: 14px 18px 14px 46px; border: 0; border-radius: 999px; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6573' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 16px center / 18px no-repeat; box-shadow: inset 0 0 0 1px var(--line); }
.gl-search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); background-color: #fff; }
.gl-letters { display: flex; flex-wrap: wrap; gap: 2px; }
.gl-letters a { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 10px; text-decoration: none; font: 500 .85rem/1 var(--mono); color: var(--ink-2); transition: background-color .2s ease, color .2s ease; }
@media (hover: hover) { .gl-letters a:hover { background: var(--blue); color: #fff; } }
.glossary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.term { position: relative; background: var(--paper); border-radius: var(--radius-sm); padding: 22px 24px; scroll-margin-top: 220px; transition: box-shadow .3s ease; }
.term:target { box-shadow: inset 0 0 0 2px var(--blue); }
.term dt { font: 500 1.35rem/1.25 var(--serif); margin-bottom: 8px; }
.term dd { color: var(--ink-2); }
.term.oculto { display: none; }
.gl-anchor { position: absolute; top: 0; scroll-margin-top: 220px; }
.gl-empty { padding: 40px; text-align: center; color: var(--muted); background: var(--paper); border-radius: var(--radius); }
@media (max-width: 760px) { .glossary { grid-template-columns: 1fr; } .gl-tools { top: 82px; } }

/* imprimir solo una guía */
@media print {
    body.print-guide main > *:not(#guias), body.print-guide #guias .section-head, body.print-guide #guias .cards-more, body.print-guide .guide-block:not(.printing), body.print-guide .guide-tools button { display: none !important; }
    .guide-block { background: #fff; padding: 0; }
    .checklist { columns: 1; }
    .area-hero { padding-top: 20px; }
    .guided, .gl-tools, .legal-toc, .storage-panel .btn, .btn-volver { display: none !important; }
    .legal-layout { display: block; padding-top: 10px; }
    .legal-hero { background: #fff !important; color: #000; padding: 0 0 10px; }
    .legal-summary li { box-shadow: inset 0 0 0 1px #ccc; }
    .legal-summary span, .legal-hero .fecha-actualizacion { color: #333; }
}

/* ==========================================================================
   PULIDO GRÁFICO POR SECCIÓN
   ========================================================================== */
:root { --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='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
        --grid-lines: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); }

/* portada: grano fotográfico y borde luminoso en la tarjeta */
.hero-media::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .09; mix-blend-mode: overlay; pointer-events: none; }
.hero-card::before { display: none; content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 62%, rgba(143, 176, 255, .45)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }

/* logotipos: título con líneas a los lados */
.logos .eyebrow { display: flex; align-items: center; justify-content: center; gap: 18px; padding-inline: var(--gutter); }
.logos .eyebrow::before, .logos .eyebrow::after { content: ''; flex: 0 1 120px; height: 1px; background: var(--line); }

/* sobre mí: divisores verticales entre cifras */
.stats div { position: relative; }
.stats div:not(:nth-child(3n + 1))::before { content: ''; position: absolute; left: -12px; top: 4px; bottom: 4px; width: 1px; background: rgba(255, 255, 255, .2); }
@media (max-width: 480px) { .stats div::before { display: none; } }

/* áreas de práctica: retícula y número en contorno */
.statement { position: relative; isolation: isolate; }
.statement::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grid-lines); background-size: 56px 56px; -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.statement::after { content: '06'; position: absolute; right: 4%; bottom: -6%; z-index: -1; font: 400 italic clamp(10rem, 28vw, 24rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .22); letter-spacing: -.05em; }

/* servicios: flecha que aparece al pasar el cursor */
.services a { position: relative; padding-right: 36px; }
.services a::after { content: '→'; position: absolute; right: 4px; top: 50%; transform: translate(-8px, -50%); opacity: 0; color: #fff; transition: opacity .3s ease, transform .4s var(--ease-out); }
@media (hover: hover) { .services li:hover a::after { opacity: 1; transform: translate(0, -50%); } }
@media (hover: none) { .services a::after { opacity: .6; transform: translate(0, -50%); } }

/* cómo trabajo: número grande de fondo */
.steps li { position: relative; overflow: hidden; isolation: isolate; }
.steps li::after { content: attr(data-n); position: absolute; right: 18px; bottom: -28px; z-index: -1; font: 400 italic 9rem/1 var(--serif); color: rgba(26, 79, 214, .07); letter-spacing: -.04em; }

/* experiencia: brillo sutil en las tarjetas */
.t-card { position: relative; overflow: hidden; isolation: isolate; }
.t-card::before { content: ''; position: absolute; width: 320px; height: 320px; right: -120px; top: -160px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(143, 176, 255, .45), transparent 65%); }

/* carrusel: el punto activo funciona como barra de tiempo */
.dots button { position: relative; }
.dots button::after { content: ''; position: absolute; left: 50%; top: 50%; width: 28px; height: 9px; margin: -4.5px 0 0 -14px; border-radius: 999px; background: var(--blue); transform: scaleX(0); transform-origin: left; opacity: 0; }
.js .dots button[aria-current="true"]::after { opacity: 1; animation: dotfill 5.2s linear forwards; }
.carousel:hover .dots button::after, .carousel:focus-within .dots button::after { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }

/* filosofía: comilla gigante decorativa */
.philosophy > div { position: relative; isolation: isolate; }
.philosophy > div::before { content: '“'; position: absolute; left: -.06em; top: .12em; z-index: -1; font: 400 18rem/1 var(--serif); color: rgba(26, 79, 214, .35); pointer-events: none; }
.section.dark { position: relative; }
.section.dark::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: .05; mix-blend-mode: overlay; pointer-events: none; }

/* habilidades: índice discreto en cada chip */
.chips { counter-reset: ch; }
.chips li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chips li::after { counter-increment: ch; content: counter(ch, decimal-leading-zero); font: 500 .7rem/1 var(--mono); color: rgba(255, 255, 255, .55); }

/* contacto: retícula de fondo */
.contact::after { content: ''; position: absolute; inset: 0; z-index: -1; background-image: var(--grid-lines); background-size: 64px 64px; -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent); mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent); }

/* encabezados de sección: línea fina bajo el título */
.section-head h2::after { content: ''; display: block; width: 44px; height: 2px; margin: 20px auto 0; border-radius: 2px; background: var(--blue); }
.dark .section-head h2::after { background: var(--blue-light); }

/* ==========================================================================
   PORTADA: "DE LA IDEA A LA LEY" (recorrido de cámara por obras de dominio público)
   ========================================================================== */
.story { position: relative; height: 620vh; background: var(--black); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--black); isolation: isolate; }

.scene { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform, filter; transform-origin: var(--fx) var(--fy); object-position: var(--ox, 50%) var(--oy, 40%); }
.scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, .62) 0%, rgba(10, 10, 10, .18) 52%, transparent 75%), linear-gradient(0deg, rgba(10, 10, 10, .55), transparent 40%); pointer-events: none; }
.scene.s1::after { background: radial-gradient(90% 70% at 50% 50%, rgba(10, 10, 10, .15), rgba(10, 10, 10, .65)); }
.scene.s4::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #1A4FD6, #4C7BEF 55%, #8FB0FF); mix-blend-mode: color; opacity: .8; }
.scene.s4 { --tone: brightness(1.12) contrast(1.05); }
.grain { position: absolute; inset: 0; z-index: 5; background-image: var(--grain); opacity: .1; mix-blend-mode: overlay; pointer-events: none; }


/* textos por capítulo */
.chapter { position: absolute; z-index: 7; left: clamp(20px, 7vw, 110px); bottom: clamp(70px, 14vh, 150px); max-width: min(640px, 86vw); color: #fff; opacity: 0; will-change: opacity, transform, filter; pointer-events: none; }
.chapter .k { font: 500 .78rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); display: flex; align-items: center; gap: 12px; }
.chapter .k::before { content: ''; width: 34px; height: 1px; background: currentColor; }
.chapter h2 { font: 500 clamp(2.6rem, 6.4vw, 5.6rem)/1 var(--serif); letter-spacing: -.035em; margin: 18px 0 16px; text-wrap: balance; }
.chapter h2 em { font-style: italic; color: #b9ccff; }
.chapter p { font: 400 clamp(1.05rem, 1.5vw, 1.3rem)/1.5 var(--serif); color: rgba(255, 255, 255, .88); max-width: 40ch; }
.chapter .cr { display: block; margin-top: 18px; font: 400 .72rem/1.4 var(--mono); letter-spacing: .04em; color: rgba(255, 255, 255, .55); }

/* capítulo 1: la tarjeta azul que ya le gustó */
.hero-card.story-card { position: absolute; z-index: 7; left: 50%; top: 50%; width: min(820px, 92vw); transform: translate(-50%, -50%); opacity: 0; filter: none; color: #fff; }
.story-card .hero-lede { color: rgba(255, 255, 255, .88); }
.story-card h1, .story-card .hero-lede { text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.entra .story-card { animation: entra 1.2s cubic-bezier(.22,1,.36,1) both; }
@keyframes entra { from { opacity: 0; filter: blur(10px); } }
.story-card .cr { display: block; margin-top: 22px; font: 400 .72rem/1.4 var(--mono); color: rgba(255, 255, 255, .6); }

/* indicador de capítulos */
.rail-dots { position: absolute; z-index: 8; right: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.rail-dots span { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font: 500 .68rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .45); transition: color .3s ease; }
.rail-dots span::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: transform .3s ease, background-color .3s ease; }
.rail-dots span.on { color: #fff; }
.rail-dots span.on::after { background: #fff; transform: scale(1.5); }
@media (max-width: 760px) { .rail-dots span { font-size: 0; gap: 0; } }
.progress-line { position: absolute; z-index: 8; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--blue-light); transform-origin: left; transform: scaleX(0); }
.cue { position: absolute; z-index: 8; left: 50%; bottom: 24px; transform: translateX(-50%); font: 500 .7rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .75); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cue::after { content: ''; width: 1px; height: 34px; background: linear-gradient(#fff, transparent); animation: cueline 1.8s var(--ease-out) infinite; transform-origin: top; }
@keyframes cueline { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }


/* sin animación: una sola escena fija con el texto */
.story-static .story { height: auto; }
.story-static .stage { position: relative; }
.story-static .scene.s1 { opacity: 1; }
.story-static .chapter, .story-static .rail-dots, .story-static .cue, .story-static .progress-line { display: none; }
.story-static .hero-card.story-card { opacity: 1; }

/* la tarjeta del capítulo 1 la mueve el motor del recorrido, no las transiciones de la portada anterior */
.story .hero-card.story-card { transition: none; }
.story .rotativo { color: #fff; margin: 4px 0 6px; }
.story .hero-actions { margin-top: 26px; }
.story .hero-actions .btn { pointer-events: auto; }
.story .btn-line { color: #fff; border-color: rgba(255, 255, 255, .7); }
@media (hover: hover) { .story .btn-line:hover { background: #fff; color: var(--blue); border-color: #fff; } }
.story :focus-visible { outline-color: #fff; }
.story-static .story { height: auto; }
.story-static .stage { height: 100svh; min-height: 560px; }

/* ==========================================================================
   MOVIMIENTO (solo con JS y sin "reducir movimiento")
   ========================================================================== */

/* entrada de la portada */
.js .hero-card { opacity: 0; transform: translateY(40px) scale(.96); filter: blur(10px); transition: opacity 1.2s var(--ease-apple) .15s, transform 1.4s var(--ease-apple) .15s, filter 1.2s var(--ease-apple) .15s; }
.js.loaded .hero-card { opacity: 1; transform: translateY(calc(var(--p, 0) * -60px)) scale(calc(1 - var(--p, 0) * .06)); filter: none; }
.js.loaded .hero-card.settled { transition: opacity .2s linear, transform .1s linear, filter .2s linear; opacity: calc(1 - var(--p, 0) * 1.4); }
.js .hero h1 .line > span { transform: translateY(110%); transition: transform 1.2s var(--ease-apple); }
.js .hero h1 .line:nth-child(1) > span { transition-delay: .45s; }
.js .hero h1 .line:nth-child(2) > span { transition-delay: .55s; }
.js.loaded .hero h1 .line > span { transform: none; }
.js .hero .pill, .js .rotativo, .js .hero-lede, .js .hero-actions { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-apple), transform 1s var(--ease-apple); }
.js.loaded .hero .pill { transition-delay: .35s; }
.js.loaded .rotativo { transition-delay: .75s; }
.js.loaded .hero-lede { transition-delay: .85s; }
.js.loaded .hero-actions { transition-delay: .95s; }
.js.loaded .hero .pill, .js.loaded .rotativo, .js.loaded .hero-lede, .js.loaded .hero-actions { opacity: 1; transform: none; }
.js .hero-media { transform: scale(calc(1.08 + var(--p, 0) * .08)); transition: transform 2.4s var(--ease-apple); }
.js.loaded .hero-media { transform: scale(calc(1 + var(--p, 0) * .08)); }
.js.loaded .hero-media.settled { transition: none; }
.js .wa-float { opacity: 0; transform: translateY(16px) scale(.9); }
.js.loaded .wa-float { opacity: 1; transform: none; transition-delay: 1.6s; }
.js.loaded .wa-float::before { animation: ping 2.8s var(--ease-out) 2.2s 3; }
@keyframes ping { 0% { opacity: .6; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }

/* aparición general */
.js .reveal { opacity: 0; transform: translateY(30px); filter: blur(8px); transition: opacity 1s var(--ease-apple), transform 1s var(--ease-apple), filter 1s var(--ease-apple); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
/* al subir, los elementos entran desde arriba */
.js.subiendo .reveal:not(.in) { transform: translateY(-30px); }
.js.subiendo .t-item:not(.in) .t-card { transform: translateY(-30px); }
.js.subiendo .t-item:nth-child(even):not(.in) .t-card { transform: translateY(-30px); }
.js .stagger > .reveal:nth-child(2) { transition-delay: 90ms; }
.js .stagger > .reveal:nth-child(3) { transition-delay: 180ms; }
.js .stagger > .reveal:nth-child(4) { transition-delay: 270ms; }
.js .stagger > .reveal:nth-child(5) { transition-delay: 340ms; }
.js .stagger > .reveal:nth-child(n+6) { transition-delay: 400ms; }

/* fotos: cortina + zoom */
.js .reveal-img > img, .js .reveal-img > video { clip-path: inset(10% 10% 10% 10% round 24px); transform: scale(1.18); transition: clip-path 1.5s var(--ease-apple), transform 2s var(--ease-apple); }
.js .reveal-img.in > img, .js .reveal-img.in > video { clip-path: inset(0 0 0 0 round 0px); transform: scale(1); }

/* tarjetas de experiencia: entran desde los lados */
.js .t-item .t-card { opacity: 0; transform: translateX(-40px); transition: opacity 1s var(--ease-apple), transform 1s var(--ease-apple); }
.js .t-item:nth-child(even) .t-card { transform: translateX(40px); }
.js .t-item .t-logo span { opacity: 0; transform: scale(.85) rotate(-3deg); transition: opacity 1s var(--ease-apple) .15s, transform 1.2s var(--ease-apple) .15s; }
.js .t-item::before { transform: scale(0); transition: transform .6s var(--ease-apple) .2s; }
.js .t-item.in .t-card, .js .t-item.in .t-logo span { opacity: 1; transform: none; }
.js .t-item.in::before { transform: scale(1); }

/* declaración que crece con el scroll */
.js .statement h2 { transform: scale(calc(.72 + var(--p, 1) * .28)); opacity: calc(.2 + var(--p, 1) * .8); }
.js .statement p { opacity: calc(var(--p, 1) * 1.4 - .3); transform: translateY(calc((1 - var(--p, 1)) * 30px)); }

/* cita que se ilumina palabra por palabra */
.js [data-words] .w { opacity: .2; transition: opacity .35s ease; }
.js [data-words] .w.lit { opacity: 1; }

/* foto de filosofía que se expande */
.js .philosophy figure { transform: scale(calc(.85 + var(--p, 1) * .15)); }
.js .philosophy figure img { transform: scale(calc(1.25 - var(--p, 1) * .25)); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

@media print {
    .top, .wa-float, .share, .art-cta, .relacionados, .foot, .progreso, .video-toggle, .scroll-cue { display: none !important; }
    .js .reveal, .js .reveal *, .js .hero *, .js .t-item * { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
}
