/* Avatar branding, after Álex's CV site: Inter + JetBrains Mono, black ink, warm slate greys,
   Student Experience green as the accent (soft marker on light, text on dark), pill buttons, uppercase mono labels.
   Loaded after each page's own <style>, so it only restyles; layout and menu stay as they are. */
:root {
  --green: #00b2a9;           /* Student Experience corporate green */
  --green-soft: rgba(0, 178, 169, .35); /* marker behind black text */
  --graphite: #333333;        /* Avatar logo ground */
  --slate-50: #F7F7F4; --slate-200: #E3E3DB; --slate-400: #8F8F87; --slate-500: #666666; --slate-800: #1F1F1F;
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --monof: "JetBrains Mono", ui-monospace, Menlo, monospace;
  /* deck tokens (index*.html) */
  --rojo: #000000; --blackbueno: var(--slate-800); --casiblanco: var(--slate-50); --gris: var(--slate-400); --muted: var(--slate-500);
  --regular: var(--sans); --medium: var(--sans); --bold: var(--sans);
  /* full-proposal tokens (detalle*.html) */
  --ink: var(--slate-800); --soft: var(--slate-50); --line: var(--slate-200); --accent: #000000;
  --display: var(--sans); --body: var(--sans); --mono: var(--monof);
}
body { font-family: var(--sans); letter-spacing: 0; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .big, .mult { font-family: var(--sans); font-weight: 900; letter-spacing: -.02em; }
b, strong { font-family: var(--sans); font-weight: 700; }

/* ---------- deck ---------- */
.slide.dark { background: var(--graphite); }
.dark { --rojo: var(--green); }
.kicker { font-family: var(--monof); font-weight: 700; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.ninety { color: var(--slate-400); }
/* accent words: green marker on light, green text on dark */
.red { color: inherit; background: linear-gradient(transparent 58%, var(--green-soft) 58%, var(--green-soft) 92%, transparent 92%); padding: 0 .08em; }
.dark .red, .results .red { color: var(--green); background: none; padding: 0; }
.big { color: var(--rojo); }
.slide:not(.dark) .rule .big { box-shadow: inset 0 -.18em 0 var(--green-soft); justify-self: start; }
.mult { color: var(--green); }
.results { background: var(--graphite); }
.results .kicker { color: var(--green); }
ul.plain li::marker { color: var(--slate-800); }
.dark ul.plain li::marker { color: var(--green); }
th { font-family: var(--monof); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); }
.facts .k, .kpi-col h3 span { font-family: var(--monof); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.kpi-col h3 span { color: var(--rojo); }
.lifecycle span { font-family: var(--sans); font-weight: 600; border-radius: 999px; padding: 8px 14px; }
.lifecycle span:not(:last-child)::after { color: var(--slate-400); }
.dark .lifecycle span:not(:last-child)::after { color: var(--green); }
.field input { font-family: var(--sans); border-bottom-color: var(--slate-400); }
.field input:focus { border-bottom-color: #000; }
.pilot-card { border-radius: 2px; }
a.plain-link { text-decoration-color: var(--green); text-decoration-thickness: 3px; }

/* pill buttons */
.cta { font-family: var(--sans); font-weight: 900; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; height: 44px; padding: 0 26px; border-radius: 999px; background: #000; color: #fff; transition: background .2s, color .2s; }
.dark .cta { background: var(--green); color: #000; }
.cta:hover, .cta:focus-visible { background: var(--green); color: #000; }
.dark .cta:hover, .dark .cta:focus-visible { background: #fff; color: #000; }
.lang-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--slate-50); border: 1px solid var(--slate-200); font-family: var(--sans); font-weight: 900; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #000; }
body.on-dark .lang-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.lang-btn:hover, .lang-btn:focus-visible, body.on-dark .lang-btn:hover { background: var(--green); border-color: var(--green); color: #000; }

/* menu: same layout and behaviour, new colours and type */
.menu-label { font-family: var(--sans); font-weight: 900; font-size: 13px; letter-spacing: .15em; text-transform: uppercase; color: #000; }
.menu-current { font-family: var(--monof); font-weight: 700; font-size: 11px; letter-spacing: .08em; color: var(--slate-500); }
body.on-dark .menu-current { color: var(--green); }
.menu-btn:hover .menu-label { color: #000; background: var(--green); }
.nav { background-color: #fff; }
.nav a.item { font-family: var(--sans); font-weight: 800; letter-spacing: -.02em; justify-self: start; }
.nav a.item:hover, .nav a.item:focus-visible, .nav a.item.current { color: #000; background: linear-gradient(transparent 62%, var(--green-soft) 62%, var(--green-soft) 90%, transparent 90%); }
.close::before, .close::after { background-color: #000; }
.mouse-icon { border-color: var(--green); }
.mouse-icon::after { background: var(--green); }

/* Avatar logo: white mark on a tile painted with the same graphite as the dark slides */
.logo-tile { display: inline-block; width: 88px; height: 88px; background: var(--graphite); line-height: 0; }
.logo-tile img { width: 100%; height: 100%; display: block; }
.logo-tile-s { width: 56px; height: 56px; }
@media (max-width: 560px) { .site-header .logo-tile, .nav .logo-tile { width: 64px; height: 64px; } }

/* ---------- full proposal ---------- */
.titleblock { border-top-color: var(--green); border-top-width: 6px; }
.thesis aside { border-left-color: var(--green); }
.total .num { color: #000; box-shadow: inset 0 -.2em 0 var(--green-soft); }
.road > div::before { font-family: var(--monof); font-weight: 700; color: var(--slate-500); }
.close:not(button) { background: var(--graphite); }
.close:not(button) .label, .close:not(button) .red, .close:not(button) .big { color: var(--green); background: none; }
.close:not(button) a { color: #fff; text-decoration-color: var(--green); }
#b-co { background: var(--green) !important; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.legend span:first-child { --c: var(--green) !important; }
.site nav a:hover, .site nav a:focus-visible { color: #000; background: var(--green); }
.calc input:focus-visible { outline-color: #000; }

/* keep the language pill clear of the menu label, whatever the current section is called */
.menu-current { max-width: 150px; text-align: right; }
.site-header ~ .lang-btn, .site-header .lang-btn { right: calc(var(--pad) + 172px); top: calc(var(--pad) + env(safe-area-inset-top, 0px) - 6px); }

/* client name on the cover, in its own brand colour */
.client { color: var(--green); font-weight: 900; }

/* sample clause on the offer slide: struck-through before, bold after */
.clause { border-left: 4px solid var(--green); padding: 4px 0 4px 18px; display: grid; gap: 6px; max-width: 900px; font-size: 15px; line-height: 1.5; }
.clause s { color: rgba(255,255,255,.55); }
.clause b { color: #fff; font-weight: 600; }

/* phase strip: six steps read left to right instead of a table */
.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.strip li { display: grid; align-content: start; gap: 8px; padding: 16px 14px 18px; background: var(--slate-50); border-top: 4px solid var(--green); font-size: 14px; line-height: 1.45; }
.strip li b { font-size: 18px; line-height: 1.2; font-weight: 800; }
.strip li em { font-style: normal; font-family: var(--monof); font-size: 10.5px; letter-spacing: .04em; color: var(--slate-500); margin-top: 4px; }
@media (max-width: 1100px) { .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .strip { grid-template-columns: 1fr 1fr; } }
.pillars { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 20px; }
.pillars span { font-family: var(--monof); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; border: 1px solid var(--green); padding: 6px 12px; border-radius: 999px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 24px; margin: 20px 0 4px; padding-top: 14px; border-top: 1px solid var(--slate-200); }
.kpis .kicker { grid-column: 1 / -1; }
.kpis div { display: grid; align-content: start; gap: 2px; border-left: 3px solid var(--green); padding-left: 12px; }
.kpis b { font-size: 24px; line-height: 1.15; font-weight: 800; color: var(--graphite); }
.kpis div span { font-size: 14px; line-height: 1.4; color: var(--slate-600, #475569); }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } }

/* Aire y jerarquía (1-10-2026) */
.inner { gap: clamp(24px, 4vh, 44px); }
.inner > .kicker { margin-bottom: -6px; }
.cols-2 { gap: clamp(32px, 4.5vw, 72px); }
.cols-3 { gap: 40px clamp(40px, 4.5vw, 72px); }
.cols-4 { gap: 28px; }
.rule { gap: 10px; }
.rule p.body, .rule p.body.muted { color: var(--slate-600, #475569); }
.dark .rule p.body, .dark .rule p.body.muted { color: rgba(255,255,255,.72); }
.rule p.body b { color: var(--blackbueno); }
.dark .rule p.body b { color: #fff; }
.slide:not(.dark) .rule .big[style] { box-shadow: none; }
.kpi-col { padding: 28px; gap: 16px; }
.kpi span { font-size: 15px; line-height: 1.5; }
.strip li { padding: 18px 16px 20px; gap: 10px; }
.split-end > .lead, .inner > .lead { max-width: 74ch; }
.inner { max-width: 1600px; }
.clause { max-width: 1100px; }
@media (min-width: 1200px) { .rule p.body { font-size: 17px; line-height: 1.6; } .cols-3 .rule p.body { max-width: 52ch; } }

#offer .inner, #scope .inner, #roi .inner { gap: clamp(18px, 2.6vh, 30px); }
@media (min-width: 761px) { #offer, #scope, #roi { padding-top: calc(var(--pad) + 56px); } }

/* Móvil */
@media (max-width: 760px) {
  .calc form { padding: 20px 16px; }
  .slide { min-height: auto; padding: calc(var(--pad) + 60px) var(--pad) 64px; }
  #thesis { padding-top: 132px; }
  .inner { gap: 28px; justify-content: flex-start; }
  .inner > .kicker { margin-bottom: -10px; font-size: 12px; }
  .ninety, .mouse-wrapper { display: none; }
  .h-hero { font-size: 40px; line-height: 1.1; }
  .h-xl { font-size: 30px; line-height: 1.18; }
  .h-l { font-size: 27px; line-height: 1.2; }
  .big { font-size: 44px; }
  .rule .big[style] { font-size: 28px !important; line-height: 1.15; }
  .lead { font-size: 18px; line-height: 1.5; }
  .body { font-size: 16px; line-height: 1.6; }
  .cols-2, .cols-3 { gap: 36px; }
  .cols-4 { gap: 14px; }
  .strip { grid-template-columns: 1fr; gap: 10px; }
  .strip li { grid-template-columns: 1fr; padding: 16px; gap: 6px; }
  .strip li b { font-size: 19px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 8px; }
  .kpis b { font-size: 21px; }
  .clause { font-size: 14px; padding-left: 14px; }
  .pillars span { font-size: 11px; padding: 5px 10px; }
  .kpi-col { padding: 22px; }
  .facts { gap: 18px; }
  .split-end { gap: 18px; }
  .split-end .cta { width: 100%; justify-content: center; text-align: center; }
}
/* Portátiles bajos (≤ 820 px de alto) */
@media (min-width: 761px) and (max-height: 820px) {
  .slide { padding-top: calc(var(--pad) + 40px); padding-bottom: 32px; }
  #offer, #scope, #roi { padding-top: calc(var(--pad) + 32px); }
  .inner, #offer .inner, #scope .inner, #roi .inner { gap: 16px; }
  .rule p.body { font-size: 15px; line-height: 1.5; }
  .strip li { padding: 14px 14px 16px; gap: 6px; }
  .kpi-col { padding: 20px; gap: 10px; }
  .calc form { padding: 18px 24px; gap: 8px 18px; }
  .results { padding: 18px 24px; gap: 6px; }
  .results .big { font-size: 56px; }
}
/* Ancho completo y bloques más compactos (1-10-2026, tarde) */
@media (min-width: 761px) {
  .inner { max-width: none; gap: clamp(16px, 2.6vh, 28px); }
  #offer .inner, #scope .inner, #roi .inner { gap: clamp(14px, 2vh, 22px); }
  .h-hero { font-size: clamp(40px, 4.6vw, 68px); }
  .h-xl { font-size: clamp(30px, 3.2vw, 46px); }
  .h-l { font-size: clamp(26px, 2.4vw, 34px); }
  .big { font-size: clamp(40px, 3.6vw, 56px); }
  .lead { font-size: clamp(17px, 1.3vw, 20px); }
  .split-end > .lead, .inner > .lead { max-width: none; }
  .rule p.body { font-size: 16px; line-height: 1.55; }
  .cols-3 .rule p.body { max-width: none; }
  .cols-2 { gap: clamp(28px, 3.5vw, 56px); }
  .cols-3 { gap: 28px clamp(28px, 3.5vw, 56px); }
  .cols-4 { gap: 20px; }
  .kpi-col { padding: 20px; gap: 10px; }
  .strip li { padding: 14px 14px 16px; gap: 6px; }
  .kpis { margin: 12px 0 0; padding-top: 10px; } .kpis b { font-size: 21px; }
  .clause { max-width: none; }
  .calc form { padding: 20px 24px; gap: 10px 18px; }
  .results { padding: 20px 24px; gap: 8px; }
}
/* Maquetación como la web del CV: fondo blanco, margen generoso, bloques ligeros (1-10-2026) */
.site-header .logo-tile { background: var(--graphite); }
.slide.white { background: #fff; }
.inner > .kicker, .split-end > .kicker { display: inline-block; align-self: flex-start; background: var(--green); color: #fff !important; padding: 4px 8px; margin-bottom: 4px; }
.inner > .kicker .ninety { color: rgba(255,255,255,.75) !important; }
.kpi-col, .dark .kpi-col { background: transparent; border-top: 2px solid var(--graphite); padding: 18px 0 0; }
.strip li { background: transparent; border-top: 2px solid var(--graphite); padding: 14px 4px 0 0; }
.strip li::before { content: none; }
.clause { background: transparent; }
@media (min-width: 761px) {
  .slide { padding-left: clamp(64px, 12vw, 176px); padding-right: clamp(64px, 5.5vw, 80px); }
  .inner { gap: clamp(18px, 2.8vh, 32px); }
  .inner > h1, .inner > h2, .inner > .split-end { margin-bottom: clamp(8px, 2.5vh, 28px); }
  .h-hero { font-size: clamp(44px, 5vw, 72px); line-height: 1.05; }
  .h-xl { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.08; }
  .h-l { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.1; }
  .split-end > .lead, .inner > .lead { max-width: 64ch; }
  .lead { color: var(--slate-600, #475569); }
  .rule p.body { font-size: 15px; line-height: 1.55; }
  .cols-3 { gap: 32px clamp(32px, 3.5vw, 56px); }
}
.clause s { color: var(--slate-500, #64748b); } .clause b { color: var(--blackbueno); }
.pillars span { color: var(--graphite); }
.mouse-icon { border-color: var(--green); } .mouse-icon::after { background: var(--green); }
.close:not(button) a { color: var(--blackbueno); }
.kpis .kpi-note { grid-column: 1 / -1; margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: var(--slate-500, #64748b); }
@media (min-width: 761px) and (max-height: 820px) {
  .inner { gap: 14px; }
  .inner > h1, .inner > h2, .inner > .split-end { margin-bottom: 4px; }
}
/* Capa 1 visual + capa 2 integrada (1-10-2026) */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px clamp(24px, 3vw, 48px); margin-top: 8px; }
.fig { display: grid; align-content: start; gap: 8px; border-top: 2px solid var(--graphite); padding-top: 16px; }
.fig b { font-family: var(--sans); font-weight: 900; letter-spacing: -.03em; font-size: clamp(40px, 4.4vw, 68px); line-height: 1; color: var(--blackbueno); }
.fig:first-child b { color: var(--green); }
.fig span { font-size: 15px; line-height: 1.45; color: var(--slate-600, #475569); max-width: 26ch; }
.figs.words .fig b { font-size: clamp(30px, 3vw, 44px); }
.figs.one { grid-template-columns: 1fr; }
.figs.one .fig b { font-size: clamp(56px, 6vw, 96px); }
.hero { align-items: end; }
.hero-side { display: grid; gap: 22px; }
.steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps li::before { content: ""; grid-row: 1; grid-column: 1; align-self: center; height: 2px; background: var(--graphite); margin-left: 40px; }
.steps i { grid-row: 1; grid-column: 1; width: 32px; height: 32px; border-radius: 50%; background: var(--graphite); color: #fff; font: 700 12px/32px var(--monof); text-align: center; font-style: normal; }
.steps li:last-child i { background: var(--green); }
.steps b { font-size: 15px; line-height: 1.3; font-weight: 800; }
.more { align-self: flex-start; display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--graphite); background: #fff; color: var(--graphite); font: 900 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s; }
.more:hover, .more:focus-visible { background: var(--graphite); color: #fff; }
.more .more-close, .slide.open .more .more-open { display: none; }
.slide.open .more .more-close { display: inline; }
.l2 { display: none; }
.slide.open .l2 { display: grid; gap: 22px; padding-top: 22px; border-top: 1px solid var(--slate-200, #e2e8f0); animation: l2in .3s ease; }
@keyframes l2in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.slide.open { min-height: auto; }
.l2-cards .kpi-col h3 { font-size: 17px; margin: 0; }
.l2-cards .kpi-col span { font-size: 15px; line-height: 1.5; color: var(--slate-600, #475569); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta.ghost { background: #fff; color: var(--graphite); border: 1.5px solid var(--graphite); }
.cta.ghost:hover { background: var(--graphite); color: #fff; }
#contact .cta { display: inline-flex; align-items: center; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 20px; } }
@media (max-width: 760px) {
  .figs { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .figs.words { grid-template-columns: 1fr; }
  .fig b { font-size: 34px; } .figs.words .fig b { font-size: 28px; } .figs.one .fig b { font-size: 60px; }
  .fig span { font-size: 14px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .more { width: 100%; justify-content: center; }
  .actions .cta { width: 100%; justify-content: center; }
}
/* Cuerpo alineado con el logo y el menú */
@media (min-width: 761px) { .slide { padding-left: var(--pad); padding-right: var(--pad); } .inner { max-width: none; } }
.fig { min-width: 0; } .fig b { font-size: clamp(36px, 3.6vw, 58px); white-space: nowrap; }
.figs.words .fig b { white-space: normal; }
@media (max-width: 760px) { .figs { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .fig b { font-size: 26px; } .figs.one .fig b { font-size: 56px; } .figs.words { grid-template-columns: 1fr; } }
.figs:has(.fig:nth-child(4)) .fig b { font-size: clamp(32px, 3vw, 50px); }
@media (max-width: 760px) { .figs:has(.fig:nth-child(4)) .fig b { font-size: 26px; } }
.terms { font-family: var(--monof); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--graphite); margin: 0; }
