/* Stratton World · Dossier (HTML estático) — mismo sistema visual que la home (estructura udia.es) */
:root {
  --ink: #08090a;
  --band: #0c0c0d;
  --card: #0e0e0f;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.5);
  --faint: rgba(255, 255, 255, 0.35);
  --silver: #a8a29e;
  --accent: #f5f5f4;
  --good: #6ee7b7;
  --warn: #fcd34d;
  --sans: "Geist", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Inria Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 72rem;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.03em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.grad-hero { background: linear-gradient(to bottom right, #fff, #d6d3d1 45%, #8a837e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-title { background: linear-gradient(to bottom right, #fff, #fff 40%, #a8a29e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-bg { background-image: linear-gradient(319.64deg, rgba(16, 17, 18, 0.8) 1.95%, rgba(36, 39, 42, 0.8) 97.12%); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.serif { font-family: var(--serif); font-style: italic; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 16px 32px; font-weight: 600; font-size: 16px; transition: transform .25s, background-color .25s, box-shadow .25s, border-color .25s; }
.btn-primary { background: var(--accent); color: #0a0a0a; box-shadow: 0 16px 50px -14px rgba(255, 255, 255, 0.45); }
.btn-primary:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: rgba(255, 255, 255, 0.85); padding: 12px 20px; border-radius: 12px; font-size: 14px; }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.09); color: #fff; }
.arrow { transition: transform .3s; }
a:hover .arrow { transform: translateX(3px); }

/* Nav flotante (píldora) */
.nav-shell { position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; justify-content: center; padding: 20px 14px 0; pointer-events: none; }
.nav { pointer-events: auto; width: 100%; max-width: var(--wrap); border: 1px solid var(--line); border-radius: 16px; background: rgba(20, 20, 20, 0.55); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2); }
.nav-row { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-inline: 20px; }
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 36px; font-weight: 500; }
.nav-links a:hover { opacity: .8; }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(255,255,255,.4); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .dark { background: #232323; border-radius: 12px; padding: 6px 14px; font-weight: 600; }
.nav-cta .light { background: var(--accent); color: #0a0a0a; border-radius: 12px; padding: 6px 14px; font-weight: 600; }
.nav-menu { display: none; }
.nav-menu summary { list-style: none; cursor: pointer; padding: 6px; color: rgba(255,255,255,.75); }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu-panel { position: absolute; left: 14px; right: 14px; top: 88px; border: 1px solid var(--line); border-radius: 16px; background: rgba(12, 12, 13, 0.97); padding: 12px; display: grid; gap: 4px; }
.nav-menu-panel a { padding: 12px; border-radius: 12px; font-size: 18px; font-weight: 500; }
.nav-menu-panel a:hover { background: rgba(255,255,255,.05); }
@media (max-width: 1023px) { .nav-links { display: none; } .nav-menu { display: block; } }
@media (max-width: 767px) { .nav-cta .dark { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0 0 auto 0; height: 38rem; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(115% 80% at 50% -15%, #383634 0%, #242322 20%, #161616 45%, #0d0d0e 72%, #08090a 100%); }
.hero-bg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 16rem; background: linear-gradient(to bottom, transparent, rgba(8,9,10,.75), var(--ink)); }
.hero-grid { position: absolute; inset: 0; opacity: .6; background-image: linear-gradient(to right, rgba(231,229,228,.07) 1px, transparent 1px), linear-gradient(rgba(231,229,228,.07) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 80%); mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 30%, transparent 80%); }
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; padding-top: clamp(8rem, 14vw, 10rem); padding-bottom: 40px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; max-width: 56rem; }
.hero .lead { max-width: 42rem; font-size: clamp(16.5px, 1.5vw, 18px); font-weight: 500; color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; padding-top: 8px; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat b { font-size: clamp(1.5rem, 2.4vw, 1.75rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { margin-top: 4px; font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,.4); }
@keyframes rise { from { opacity: .001; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .9s cubic-bezier(.16,1,.3,1) both; }
.rise-2 { animation-delay: .08s; } .rise-3 { animation-delay: .16s; } .rise-4 { animation-delay: .24s; }

/* Barra de apartados */
.toc { position: relative; z-index: 2; margin-bottom: clamp(56px, 8vw, 80px); border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.02); padding: 16px; }
.toc p { margin-bottom: 12px; }
.toc-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); padding: 8px 16px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.6); transition: color .2s, border-color .2s; }
.pill:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.pill i { font-style: normal; border-radius: 999px; background: rgba(255,255,255,.1); padding: 0 6px; font-size: 11px; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }

/* Apartados */
.sections { display: flex; flex-direction: column; gap: clamp(96px, 12vw, 128px); padding-bottom: clamp(64px, 8vw, 96px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.sec-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 44rem; }
.sec-head .idx { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--faint); }
.sec-head h2 { font-size: clamp(2.1rem, 3.6vw, 2.75rem); font-weight: 700; line-height: 1.08; }
.sec-head .intro { font-weight: 500; color: rgba(255,255,255,.45); }
.sec-head .count { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.4); font-variant-numeric: tabular-nums; }

/* Casos (formato udia.es/alumnos) */
.cases { display: flex; flex-direction: column; gap: clamp(24px, 3vw, 40px); }
.case { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.02); transition: border-color .5s; }
.case:hover { border-color: rgba(255,255,255,.15); }
.case-cover-link { min-width: 0; }
.case-cover-link .cover { height: 100%; }
.case.flip > .case-cover-link { order: 2; }
.case-text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(28px, 4vw, 48px); }
.case-text .quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.35; letter-spacing: -0.02em; }
.case-text .summary { margin-top: 24px; font-size: 15px; font-weight: 500; color: var(--muted); }
.case-foot { display: flex; flex-direction: column; gap: 16px; }
.case-foot .who { border-top: 1px solid rgba(255,255,255,.07); padding-top: 20px; }
.case-foot .who b { display: block; font-size: 16px; }
.case-foot .who span { font-size: 12px; font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.3); }
@media (max-width: 767px) { .case { grid-template-columns: 1fr; } .case.flip > .case-cover-link { order: 0; } }

/* Portada generativa */
.cover { position: relative; isolation: isolate; display: flex; align-items: flex-end; overflow: hidden; min-height: 28rem; }
.cover svg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.cover .code { position: absolute; left: 16px; top: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; opacity: .75; }
.cover .status { position: absolute; right: 16px; top: 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(0,0,0,.4); padding: 4px 12px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; backdrop-filter: blur(8px); }
.cover .wm { position: relative; max-width: 60%; padding: clamp(20px, 3vw, 28px); font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; text-wrap: balance; }
.wm.display { font-weight: 500; letter-spacing: -0.03em; }
.wm.serif { font-family: var(--serif); font-style: italic; }
.wm.geometric { font-weight: 300; text-transform: uppercase; letter-spacing: .22em; font-size: clamp(1.6rem, 3.4vw, 2.6rem); }
@media (max-width: 767px) { .cover { min-height: 0; aspect-ratio: 16 / 10; } }

/* Tarjetas (webs gestionadas / pendientes) */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .grid-2 { grid-template-columns: 1fr; } }
.tile { position: relative; display: flex; flex-direction: column; gap: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 3vw, 36px); transition: transform .5s, border-color .5s; }
a.tile:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.2); }
.tile.dashed { border-style: dashed; border-color: rgba(255,255,255,.15); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile-top .kind { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(0,0,0,.3); padding: 4px 12px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.8); white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(110,231,183,.15); }
.dot.warn { background: var(--warn); box-shadow: 0 0 0 4px rgba(252,211,77,.15); }
.tile h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 700; line-height: 1.1; }
.tile p { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.tile-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 20px; font-size: 13px; color: rgba(255,255,255,.4); }
.tile-foot b { font-weight: 500; color: rgba(255,255,255,.7); }
.circle { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; color: rgba(255,255,255,.5); }

/* CTA */
.cta { position: relative; overflow: hidden; border-block: 1px solid var(--line-soft); background: var(--band); padding-block: 96px; }
.cta::before { content: ""; position: absolute; left: 50%; top: 50%; width: 54rem; height: 24rem; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(50% 50% at 50% 50%, rgba(214,211,209,.12) 0%, transparent 70%); filter: blur(70px); }
.cta-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 54rem; margin-inline: auto; padding-inline: var(--gutter); text-align: center; }
.cta h2 { font-size: clamp(2.1rem, 3.6vw, 2.75rem); font-weight: 700; line-height: 1.08; }
.cta p { font-size: 17px; font-weight: 500; color: rgba(255,255,255,.45); }
.cta p b { color: #fff; font-weight: 500; }

/* Ficha de caso */
.crumb { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.4); display: flex; flex-wrap: wrap; gap: 8px; }
.crumb a:hover { color: #fff; }
.crumb [aria-current] { font-family: var(--mono); color: rgba(255,255,255,.7); }
.case-head { display: flex; flex-direction: column; gap: 20px; padding-block: 24px 40px; }
.case-head h1 { font-size: clamp(2.5rem, 6vw, 4.25rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.case-head .serif { font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.35; color: rgba(255,255,255,.8); max-width: 48rem; }
.big-cover { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; }
.big-cover .cover { min-height: 0; aspect-ratio: 21 / 9; }
@media (max-width: 767px) { .big-cover .cover { aspect-ratio: 4 / 3; } }
.ficha { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(40px, 6vw, 64px); padding-block: 56px; }
@media (max-width: 1023px) { .ficha { grid-template-columns: 1fr; } }
.spec { align-self: start; position: sticky; top: 128px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; margin: 0; }
@media (max-width: 1023px) { .spec { position: static; } }
.spec div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.spec div:last-child { border-bottom: 0; }
.spec dt { padding-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.spec dd { margin: 0; color: rgba(255,255,255,.85); overflow-wrap: anywhere; }
.spec dd a { text-decoration: underline; text-underline-offset: 3px; }
.story { display: flex; flex-direction: column; gap: 48px; }
.block { display: flex; flex-direction: column; gap: 12px; }
.block h2 { font-size: clamp(1.9rem, 2.6vw, 2.25rem); font-weight: 700; line-height: 1.08; }
.block > p:not(.eyebrow) { max-width: 64ch; font-size: 17px; font-weight: 500; color: rgba(255,255,255,.6); }
.deliv, .kpis { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: 24px; background: rgba(255,255,255,.06); }
.deliv { grid-template-columns: 1fr 1fr; }
.kpis { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .deliv, .kpis { grid-template-columns: 1fr; } }
.deliv li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); padding: 16px 20px; font-size: 15px; color: rgba(255,255,255,.8); }
.deliv li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: #fff; color: #000; font-size: 11px; font-weight: 800; }
.kpis li { display: flex; flex-direction: column; gap: 8px; background: var(--card); padding: 24px; }
.kpis b { font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.03em; background: linear-gradient(to bottom right, #fff, #a8a29e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpis span { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.45); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-block: 40px; border-top: 1px solid rgba(255,255,255,.07); }
.pager a { display: flex; flex-direction: column; gap: 4px; }
.pager a:last-child { text-align: right; align-items: flex-end; }
.pager span { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.pager b { font-size: 20px; letter-spacing: -0.02em; color: rgba(255,255,255,.85); }
.pager a:hover b { color: #fff; }

/* Footer (formato udia.es) */
.footer { border-top: 1px solid #24272a; background: var(--ink); }
.footer-in { max-width: 64rem; margin-inline: auto; padding: 48px var(--gutter) 24px; }
.footer-in > img { height: 40px; width: auto; }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; margin-top: 36px; }
.footer-cols div { display: flex; flex-direction: column; gap: 12px; }
.footer-cols p { color: rgba(255,255,255,.6); }
.footer-cols a { color: rgba(255,255,255,.4); }
.footer-cols a:hover { color: rgba(255,255,255,.7); }
.footer-bottom { margin-top: 80px; color: rgba(255,255,255,.6); }
.footer-bottom b { color: #fff; font-weight: 400; margin-right: 16px; }
.footer-bottom small { display: block; margin-top: 12px; font-size: 11px; color: rgba(255,255,255,.25); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.nav-menu-panel .mobile-diagnostic { display: none; }
@media (max-width: 767px) { .nav-menu-panel .mobile-diagnostic { display: block; } }
