/* Tareas IACC · El Solucionario — hoja de estilos */
:root {
  --navy-950: #06122e;
  --navy-900: #0b1f4b;
  --navy-800: #13306b;
  --navy-700: #1d4596;
  --navy-100: #e8eef8;
  --blue: #1877f2;
  --blue-600: #1466d8;
  --blue-700: #0f55b8;
  --blue-soft: #e8f1fe;
  --blue-light: #7cb8ff;
  --green: #22a559;
  --green-600: #1c8f4c;
  --green-bright: #25d366;
  --green-light: #4ade80;
  --green-soft: #e7f7ee;
  --iacc: #1ea34a;
  --sky: #229ed9;
  --lime: #a3e635;
  --red: #e11d48;
  --surface: #f5f7fb;
  --paper: #ffffff;
  --ink: #0f1f3a;
  --muted: #56657d;
  --line: #e4e9f1;
  --line-cool: #d9e1ec;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgb(11 31 75 / 6%), 0 2px 8px rgb(11 31 75 / 6%);
  --shadow-md: 0 6px 24px rgb(11 31 75 / 10%);
  --shadow-lg: 0 24px 60px rgb(6 18 46 / 22%);
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4, p { margin: 0 0 .6em; }
h1, h2 { font-family: var(--display); font-weight: 800; line-height: 1.1; letter-spacing: -.028em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.45rem); font-weight: 750; }
h3 { font-size: 1.1rem; line-height: 1.3; font-weight: 700; }
h1 em, h2 em { font-style: normal; color: var(--blue-600); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .35; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: #cfe0fb; color: var(--navy-950); }
.container { width: min(var(--container), calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: 88px; }
.section.compact { padding-block: 40px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 200; background: var(--paper); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-md); }
.skip-link:focus { top: 12px; }
.flag { display: inline-block; border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / 12%); object-fit: cover; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 26px; border-radius: 999px; border: 1.5px solid transparent; font-family: var(--display); font-weight: 700; font-size: .97rem; line-height: 1.2; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgb(24 119 242 / 30%); }
.btn-primary:hover { background: var(--blue-600); box-shadow: 0 12px 26px rgb(24 119 242 / 38%); }
.btn-wa { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgb(34 165 89 / 32%); }
.btn-wa:hover { background: var(--green-600); box-shadow: 0 12px 26px rgb(34 165 89 / 40%); }
.btn-light { background: var(--paper); color: var(--navy-900); border-color: var(--line-cool); border-radius: 12px; }
.btn-light:hover { border-color: var(--navy-900); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { border-color: rgb(255 255 255 / 35%); color: #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / 10%); border-color: #fff; }
.btn-sm { min-height: 44px; padding: 9px 20px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.round-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-cool); background: var(--paper); color: var(--navy-900); transition: background-color .18s, color .18s, border-color .18s; }
.round-btn:hover:not(:disabled) { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.round-btn.light { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 25%); color: #fff; }
.round-btn.light:hover:not(:disabled) { background: #fff; color: var(--navy-900); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--navy-700); font-size: .93rem; }
.link-arrow:hover { color: var(--blue-600); }
.icon-badge { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--blue-soft); color: var(--blue-600); }
.icon-badge.is-wa { background: var(--green-soft); color: var(--green-600); }
.icon-badge.is-fb { background: #e7f0fe; color: #1877f2; }
.icon-badge.sm { width: 38px; height: 38px; border-radius: 10px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px; }
.eyebrow.light { color: var(--blue-light); }
.eyebrow .rule { width: 28px; height: 1.5px; background: currentColor; display: inline-block; }

/* ---------- barra superior y cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / 94%); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo { width: 60px; height: 60px; border-radius: 50%; box-shadow: 0 6px 16px rgb(11 31 75 / 22%), 0 0 0 2px #fff, 0 0 0 3px rgb(24 119 242 / 55%); transition: transform .3s ease; }
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.04); }
.brand-text { font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--navy-900); }
.brand-text b { font-weight: 800; color: var(--iacc); letter-spacing: -.01em; }
.brand-text small { display: block; margin-top: 6px; font-family: var(--body); font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--navy-700); }
.brand-light .brand-text { color: #fff; }
.brand-light .brand-text b { color: var(--green-light); }
.brand-light .brand-logo { box-shadow: 0 0 0 2px var(--navy-950), 0 0 0 3px rgb(124 184 255 / 60%); }
.brand-light .brand-text small { color: #a9bbd6; }
#main-nav { display: flex; align-items: center; gap: 24px; font-size: .93rem; font-weight: 600; white-space: nowrap; }
#main-nav > a:not(.btn) { position: relative; padding: 8px 0; color: var(--ink); }
#main-nav > a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
#main-nav > a:not(.btn):hover::after, #main-nav > a[aria-current='page']::after { transform: scaleX(1); }
#main-nav > a[aria-current='page'] { color: var(--navy-700); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-cool); border-radius: 12px; background: var(--paper); padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-toggle span { display: block; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- portada: hero ejecutivo ---------- */
.hero { position: relative; color: #fff; background: radial-gradient(1000px 560px at 82% 30%, rgb(37 84 160 / 48%), transparent 62%), radial-gradient(700px 420px at 0% 100%, rgb(34 165 89 / 16%), transparent 60%), linear-gradient(165deg, #0d2557, var(--navy-950) 72%); overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgb(255 255 255 / 3.5%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 3.5%) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 40px; align-items: center; padding-block: 60px 132px; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 14%); font-size: .8rem; font-weight: 600; color: #dbe5f2; margin-bottom: 24px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #25d366; animation: live-dot 2s infinite; }
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 rgb(37 211 102 / 65%); } 70% { box-shadow: 0 0 0 10px rgb(37 211 102 / 0%); } 100% { box-shadow: 0 0 0 0 rgb(37 211 102 / 0%); } }
.hero h1 { font-size: clamp(2.4rem, 4.7vw, 4rem); color: #fff; margin-bottom: 22px; }
.hero h1 em, .page-hero h1 em { background: linear-gradient(92deg, #60a5fa, var(--green-light) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #c3d0e0; font-size: 1.1rem; max-width: 580px; }
.hero .btn-row { margin-top: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; margin: 40px 0 0; padding-top: 26px; border-top: 1px solid rgb(255 255 255 / 12%); }
.hero-stats div { display: flex; flex-direction: column-reverse; padding: 0 28px; border-left: 1px solid rgb(255 255 255 / 12%); }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dd { margin: 0; font-family: var(--display); font-size: 2.05rem; font-weight: 800; line-height: 1.1; color: #fff; letter-spacing: -.02em; }
.hero-stats dt { font-size: .8rem; color: #9fb1c9; font-weight: 500; }
.hero-visual { position: relative; min-width: 0; }
.hero-visual::before { content: ''; position: absolute; left: 10%; right: 10%; top: 12%; height: 62%; z-index: -1; background: radial-gradient(closest-side, rgb(124 184 255 / 22%), transparent); filter: blur(10px); }
.hero-banner { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); }

/* carrusel de portadas de los PDF */
.coverflow { --w: 252px; --gap: 122px; display: grid; justify-items: center; }
.cf-stage { position: relative; width: 100%; height: calc(var(--w) * 1.2944 + 44px); perspective: 1300px; overflow: hidden; touch-action: pan-y; -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); }
.cover-item { position: absolute; top: 14px; left: 50%; width: var(--w); border-radius: 6px; background: #fff; box-shadow: 0 24px 48px rgb(0 0 0 / 42%); transform: translateX(-50%) translateX(calc(var(--k) * var(--gap))) rotateY(calc(clamp(-1, var(--k), 1) * -24deg)) scale(calc(1 - var(--d) * .12)); z-index: calc(20 - var(--d)); opacity: clamp(0, calc(3 - var(--d)), 1); transition: transform .75s cubic-bezier(.22, .8, .26, 1), opacity .6s ease; }
.cover-item::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--navy-950); opacity: calc(var(--d) * .26); transition: opacity .6s ease; pointer-events: none; }
.cover-item img { width: 100%; border-radius: 6px; }
.cover-item.is-active { box-shadow: 0 30px 60px rgb(0 0 0 / 50%), 0 0 0 1px rgb(124 184 255 / 55%); }
.cover-item:not(.is-active) { cursor: pointer; }
.cover-item.is-far { display: none; }
.cover-item.is-jump, .cover-item.is-jump::after { transition: none; }
.cf-caption { display: grid; justify-items: center; text-align: center; min-height: 96px; max-width: 460px; margin-top: 4px; }
.cf-tags { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.cf-kind { padding: 3px 9px; border-radius: 6px; background: rgb(255 255 255 / 10%); color: #dbe5f2; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cf-title { font-family: var(--display); font-weight: 700; font-size: 1.1rem; line-height: 1.35; color: #fff; margin: 0 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cf-meta { font-size: .84rem; color: #9fb1c9; margin: 0; }

/* tareas semanales */
.weekly-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: center; }
.weekly-poster { margin: 0; position: relative; justify-self: center; padding: 22px; border-radius: 26px; background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); box-shadow: var(--shadow-lg); }
.weekly-poster .gallery-open { border-radius: 14px; box-shadow: none; }
.weekly-poster .gallery-open img { height: 520px; width: auto; }
.weekly-poster figcaption { position: absolute; left: -22px; bottom: 44px; display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; background: var(--paper); color: var(--navy-900); font-weight: 700; font-size: .88rem; box-shadow: var(--shadow-md); }
.weekly-poster figcaption svg { color: var(--green-600); }
.weekly-copy .section-heading { margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-sm); }
.step-num { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue); color: #fff; font-family: var(--display); font-weight: 800; font-size: .95rem; }
.steps h3 { margin: 2px 0 4px; font-family: var(--display); font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- buscador y banderas ---------- */
.finder { position: relative; z-index: 5; margin-top: -84px; padding: 28px 32px; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.finder-search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.finder-stats { color: var(--muted); font-size: .9rem; margin: 0; }
.finder-stats strong { color: var(--navy-900); }
.search-form { display: flex; align-items: center; gap: 12px; background: var(--paper); padding: 7px 7px 7px 18px; border-radius: 14px; border: 1.5px solid var(--line-cool); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; }
.search-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(24 119 242 / 18%); }
.search-form > svg { color: var(--muted); }
.search-form input { flex: 1; width: 100%; min-width: 0; border: 0; outline: 0; padding: 10px 0; background: transparent; font-size: 1rem; }
.search-form button { border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; padding: 12px 26px; }
.search-form button:hover { background: var(--blue-600); }
.unis { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.uni-list { animation-direction: reverse; animation-duration: 36s; }
.uni-chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 16px; border-radius: 12px; border: 1.5px solid var(--line-cool); background: var(--paper); transition: border-color .18s, transform .18s, box-shadow .18s; }
.uni-chip strong { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 1rem; font-weight: 800; color: var(--navy-900); letter-spacing: .01em; }
.uni-chip span { font-size: .78rem; font-weight: 600; color: var(--muted); }
.uni-chip:hover { border-color: var(--blue); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.uni-chip.is-featured { border-color: var(--iacc); background: var(--green-soft); }
.uni-chip.is-featured strong { color: var(--iacc); }
.countries { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.countries-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.country-marquee { contain: inline-size; min-width: 0; overflow: hidden; padding: 4px 0 6px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.country-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; width: max-content; animation: country-scroll 32s linear infinite; }
.country-list li { flex: none; padding-right: 10px; }
.country-marquee:hover .country-list, .country-marquee:focus-within .country-list { animation-play-state: paused; }
@keyframes country-scroll { to { transform: translateX(-50%); } }
.country { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 10px; border-radius: 999px; border: 1.5px solid var(--line-cool); background: var(--paper); font-weight: 600; font-size: .92rem; transition: border-color .18s, transform .18s, box-shadow .18s; }
.country:hover { border-color: var(--blue); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.country.is-featured { border-color: var(--blue); background: var(--blue-soft); }
.country .flag { width: 26px; height: 17px; }

/* ---------- carriles y tarjetas ---------- */
.rails { padding-top: 64px; }
.rail-block { margin-bottom: 56px; }
.rail-block:last-child { margin-bottom: 0; }
.rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.rail-head .eyebrow { margin-bottom: 6px; }
.rail-head h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin: 0; display: flex; align-items: center; gap: 12px; }
.rail-head h2 a:hover { color: var(--navy-700); }
.count { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--blue); color: #fff; font-family: var(--body); font-size: .8rem; font-weight: 700; letter-spacing: 0; }
.rail-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.rail-actions .link-arrow { margin-right: 6px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 248px; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 18px; margin: -4px; scrollbar-width: thin; scrollbar-color: var(--line-cool) transparent; }
.rail > * { scroll-snap-align: start; }
.rail.is-marquee { scroll-snap-type: none; scroll-behavior: auto; scrollbar-width: none; padding-bottom: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent); mask-image: linear-gradient(90deg, transparent, #000 2.5%, #000 97.5%, transparent); }
.rail.is-marquee::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: 2px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.doc-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s; }
.doc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c9d4e4; }
.doc-thumb { position: relative; display: block; aspect-ratio: 5 / 4.4; overflow: hidden; padding: 18px 20px 0; background: linear-gradient(160deg, #eef2f8, #e2e9f2); }
.doc-thumb img { width: 100%; border-radius: 6px 6px 0 0; box-shadow: 0 10px 24px rgb(11 31 75 / 18%); transition: transform .35s ease; }
.doc-card:hover .doc-thumb img { transform: translateY(-4px) scale(1.02); }
.doc-format { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgb(11 31 75 / 90%); color: #fff; font-size: .72rem; font-weight: 700; }
.doc-format.is-imagen { background: rgb(28 143 76 / 94%); }
.doc-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 20px; }
.doc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .76rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; background: var(--navy-100); color: var(--navy-800); }
.pill-iacc { background: #e6f2dc; color: #2f5d12; }
.pill-unab { background: #f9e4e4; color: #8d1f24; }
.pill-udla { background: #fdebd9; color: #8a4310; }
.pill-ucsc { background: #e4ecfa; color: #1b3f86; }
.doc-body h3 { font-family: var(--body); font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.doc-body h3 a:hover { color: var(--navy-700); }
.doc-body h3 a::after { content: ''; position: absolute; inset: 0; }
.doc-card { position: relative; }
.doc-course { margin: auto 0 0; font-size: .82rem; color: var(--blue-600); font-weight: 700; }
.doc-views { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 8px; font-size: .84rem; font-weight: 600; color: var(--muted); }
.doc-views svg, .views-chip svg { color: var(--blue-600); flex: none; }
.views-chip .chip { gap: 6px; }

/* ---------- secciones de inicio ---------- */
.section-heading { max-width: 720px; margin-bottom: 36px; }
.section-heading p:last-child { color: var(--muted); font-size: 1.05rem; margin: 0; }
.heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.heading-row .section-heading { margin-bottom: 36px; }
.heading-row > .link-arrow, .heading-row > .rail-actions { margin-bottom: 40px; }
.tinted { background: var(--surface); }
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service { padding: 28px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; }
.service:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service h2, .service h3 { font-family: var(--display); font-size: 1.25rem; font-weight: 700; margin: 18px 0 6px; }
.service p { color: var(--muted); margin: 0; }
.promises { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.promises li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; background: var(--navy-900); color: #fff; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.promises li svg { color: var(--green-light); }
.promises li:nth-child(2) { background: var(--blue); }
.promises li:nth-child(2) svg { color: #fff; }
.promises li:nth-child(3) { background: var(--green); }
.promises li:nth-child(3) svg { color: #fff; }
.promises li:nth-child(4) { background: var(--red); }
.promises li:nth-child(4) svg { color: #fff; }
.iacc-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.iacc-copy .section-heading { margin-bottom: 0; }
.weeks { padding: 34px; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); color: #fff; box-shadow: var(--shadow-lg); }
.weeks-label { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--blue-light); }
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin: 18px 0; }
.week-grid a { display: grid; gap: 2px; padding: 16px; border-radius: 12px; background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 12%); transition: background-color .2s, border-color .2s; }
.week-grid a:hover { background: rgb(124 184 255 / 14%); border-color: var(--blue-light); }
.week-grid small { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #a9b9cf; }
.week-grid strong { font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1; color: var(--green-light); }
.week-grid span { font-size: .78rem; color: #c3d0e0; }
.weeks-note { margin: 0; color: #a9b9cf; font-size: .88rem; }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.area-card { display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s; }
.area-card:hover { border-color: var(--blue); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.area-card h3 { margin: 16px 0 6px; font-size: 1.12rem; }
.area-card p { color: var(--muted); font-size: .93rem; }
.area-count { margin-top: auto; font-weight: 700; font-size: .85rem; color: var(--navy-700); }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 4px 18px; margin: -4px; scrollbar-width: thin; scrollbar-color: var(--line-cool) transparent; }
.gallery-item { margin: 0; scroll-snap-align: start; }
.gallery-open { display: block; padding: 0; border: 0; background: var(--navy-900); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); cursor: zoom-in; }
.gallery-open img { height: 340px; width: auto; transition: transform .4s ease, opacity .3s; }
.gallery-open:hover img { transform: scale(1.03); opacity: .92; }
.gallery-item figcaption { margin-top: 12px; font-weight: 700; font-size: .92rem; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgb(6 20 48 / 86%); backdrop-filter: blur(4px); }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: -18px; right: -18px; font-size: 1.5rem; line-height: 1; background: var(--navy-900) !important; z-index: 2; }
.institutions-strip { display: flex; align-items: center; gap: 40px; padding-block: 44px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-block: 0 0; }
.institutions-strip > p { margin: 0; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); flex-shrink: 0; max-width: 150px; }
.wordmarks { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; }
.wordmark { font-family: var(--display); font-size: 1.45rem; font-weight: 800; color: #97a3b6; letter-spacing: -.01em; transition: color .2s; }
.wordmark:hover { color: var(--navy-900); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; font-weight: 700; font-size: 1.05rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-family: var(--display); font-weight: 500; font-size: 1.6rem; line-height: 1; color: var(--blue-600); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* ---------- banda de llamada a la acción ---------- */
.cta-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; margin-block: 24px 88px; padding: 52px 56px; border-radius: 28px; color: #fff; background: radial-gradient(500px 300px at 100% 0%, rgb(24 119 242 / 28%), transparent 70%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; inset: 10px; border-radius: 20px; border: 1px solid rgb(124 184 255 / 22%); pointer-events: none; }
.cta-band h2 { color: #fff; }
.cta-band .eyebrow { color: var(--blue-light); }
.cta-copy p:last-child { color: #c3d0e0; margin: 0; }
.cta-actions { display: grid; justify-items: start; gap: 12px; position: relative; z-index: 1; }
.cta-phone { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.cta-phone:hover { color: var(--blue-light); }
.cta-note { display: inline-flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--green-light); font-weight: 700; }

/* ---------- cabecera de páginas internas ---------- */
.page-hero { color: #fff; background: radial-gradient(700px 360px at 90% 0%, rgb(42 86 150 / 50%), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-950)); padding: 28px 0 56px; }
.page-hero h1 { color: #fff; max-width: 860px; }
.page-hero .eyebrow { color: var(--blue-light); margin-top: 28px; }
.page-hero-text { color: #c3d0e0; font-size: 1.08rem; max-width: 720px; margin: 0; }
.page-hero .btn-row { margin-top: 24px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: '/'; opacity: .45; }
.breadcrumbs a { opacity: .78; }
.breadcrumbs a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.page-hero .breadcrumbs { color: #c3d0e0; }
.doc-page .breadcrumbs { color: var(--muted); padding-top: 24px; }
.doc-page .breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- biblioteca ---------- */
.filter-panel { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-top: -76px; position: relative; z-index: 2; }
.filter-panel .search-field { flex: 2 1 280px; }
.filter-panel label { flex: 1 1 150px; display: grid; gap: 4px; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.filter-panel select, .search-field input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line-cool); background: var(--paper); font-size: .95rem; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink); }
.filter-panel select:focus, .search-field input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(24 119 242 / 18%); }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input { padding-left: 44px; }
.reset-button { min-height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--line-cool); background: var(--surface); font-weight: 700; }
.reset-button:hover { border-color: var(--navy-900); }
.results-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 28px 0 18px; color: var(--muted); font-size: .92rem; }
.results-line p { margin: 0; font-weight: 700; color: var(--ink); }
.results-line span { display: inline-flex; align-items: center; gap: 6px; }
.empty-state { text-align: center; max-width: 560px; margin: 24px auto; padding: 44px 32px; border: 1px dashed var(--line-cool); border-radius: var(--radius-lg); background: var(--surface); }
.empty-state .icon-badge { margin-bottom: 16px; }
.empty-state p { color: var(--muted); }
.related-courses { margin-top: 40px; }
.related-courses h2 { font-size: 1.4rem; }
.course-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.course-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: .95rem; transition: border-color .18s, box-shadow .18s; }
.course-list a:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.course-list a span { flex-shrink: 0; font-size: .74rem; font-weight: 700; color: var(--muted); }
.course-list a span.has-docs { padding: 3px 9px; border-radius: 999px; background: var(--green-soft); color: var(--green-600); }
.catalog-search { max-width: 560px; margin-top: -76px; position: relative; z-index: 2; box-shadow: var(--shadow-md); border-radius: 12px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 12px; }
.filter-tabs button { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-cool); background: var(--paper); font-weight: 600; font-size: .88rem; }
.filter-tabs button:hover { border-color: var(--navy-900); }
.filter-tabs button[aria-pressed='true'] { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.course-group { margin-top: 36px; }
.course-group h2 { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.help-note { padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.help-note h2 { font-size: 1.3rem; }
.help-note p { color: var(--muted); margin: 0; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.check-list li { display: flex; gap: 8px; align-items: baseline; }
.check-list svg { color: var(--green-600); transform: translateY(2px); }
.check-list strong { color: var(--ink); }
.check-list a { color: inherit; text-decoration: underline; text-decoration-color: var(--blue-light); text-underline-offset: 3px; }
.check-list a:hover strong, .check-list a:hover { color: var(--blue-600); }
.inst-offer { margin-top: 22px; font-size: 1.02rem; }
.service h2 a { color: inherit; text-decoration: none; }
.service h2 a:hover { color: var(--blue-600); }
.institution-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.institution-card { display: flex; flex-direction: column; min-height: 200px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); transition: transform .2s, box-shadow .2s, border-color .2s; }
.institution-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.institution-card h2 { margin-bottom: 4px; }
.institution-card p { color: var(--muted); }
.institution-status { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--navy-700); }
.institution-card.featured { background: linear-gradient(150deg, var(--navy-800), var(--navy-950)); color: #fff; border-color: transparent; }
.institution-card.featured .eyebrow, .institution-card.featured .institution-status { color: var(--blue-light); }
.institution-card.featured p { color: #c3d0e0; }

/* ---------- ficha de documento ---------- */
.attention { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin: 18px 0 32px; padding: 24px 28px; border-radius: var(--radius-lg); color: #fff; background: radial-gradient(400px 200px at 100% 0%, rgb(24 119 242 / 22%), transparent 70%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); box-shadow: var(--shadow-md); }
.attention-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 16%); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.attention-title { font-family: var(--display); font-size: 1.35rem; font-weight: 700; margin: 12px 0 8px; }
.attention ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: #c3d0e0; font-size: .9rem; }
.attention li { display: inline-flex; align-items: center; gap: 6px; }
.attention li svg { color: var(--green-light); }
.attention-actions { display: grid; gap: 14px; flex-shrink: 0; min-width: 330px; }
.attention-cta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 14px 22px 14px 14px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #34e27a, #1ebe5d 55%, #14a44c); box-shadow: 0 14px 34px rgb(37 211 102 / 36%), inset 0 1px 0 rgb(255 255 255 / 32%); transition: transform .2s; animation: cta-glow 2.6s ease-in-out infinite; }
.attention-cta:hover { transform: translateY(-2px); }
.attention-wa { position: relative; isolation: isolate; display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: #1ebe5d; box-shadow: 0 6px 16px rgb(6 18 46 / 18%); animation: wa-beat 2.6s ease-in-out infinite; }
.attention-wa::before, .attention-wa::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: rgb(255 255 255 / 65%); animation: wa-ring 2.6s ease-out infinite; }
.attention-wa::after { animation-delay: 1.3s; }
.attention-cta-text { display: grid; gap: 2px; line-height: 1.2; }
.attention-cta-text small { font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgb(255 255 255 / 88%); }
.attention-cta-text strong { font-family: var(--display); font-size: 1.28rem; font-weight: 800; letter-spacing: -.01em; }
.attention-cta-text > span { font-size: .9rem; font-weight: 600; color: rgb(255 255 255 / 92%); }
.attention-cta > svg { margin-left: auto; flex: none; transition: transform .2s; }
.attention-cta:hover > svg { transform: translateX(4px); }
.attention-flags { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0; color: #9fb1c9; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.attention-flags span { display: inline-flex; }
.attention-flags span:first-child { margin-right: 2px; }
@keyframes cta-glow { 0%, 100% { box-shadow: 0 14px 34px rgb(37 211 102 / 30%), 0 0 0 0 rgb(74 222 128 / 0%); } 50% { box-shadow: 0 14px 34px rgb(37 211 102 / 46%), 0 0 0 7px rgb(74 222 128 / 16%); } }
.doc-header { max-width: 980px; margin: 18px 0 28px; }
.doc-header h1 { font-size: clamp(1.75rem, 3.3vw, 2.7rem); }
.doc-lead { font-size: 1.1rem; color: var(--muted); max-width: 820px; }
.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-cool); background: var(--paper); font-size: .84rem; font-weight: 600; color: var(--ink); }
a.chip:hover { border-color: var(--blue); }
.chip-strong { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
a.chip-strong:hover { background: var(--navy-700); }
.chip-soft { background: var(--blue-soft); border-color: #cfe0fb; color: var(--blue-700); }

.reader { background: radial-gradient(800px 400px at 50% 0%, rgb(42 86 150 / 40%), transparent 70%), var(--navy-950); color: #fff; padding: 22px 0 26px; }
.reader-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.reader-name { display: flex; align-items: center; gap: 8px; margin: 0; min-width: 0; font-weight: 600; color: #c3d0e0; font-size: .92rem; }
.reader-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-name svg { color: var(--blue-light); }
.reader-tools { display: flex; gap: 8px; flex-shrink: 0; }
.tool { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 22%); background: rgb(255 255 255 / 6%); color: #fff; font-size: .86rem; font-weight: 600; transition: background-color .18s, border-color .18s; }
.tool:hover { background: rgb(255 255 255 / 14%); border-color: rgb(255 255 255 / 45%); }
.tool-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.tool-primary:hover { background: var(--blue-600); border-color: var(--blue-600); }
.reader-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; touch-action: pan-y; user-select: none; }
.book { display: flex; justify-content: center; align-items: flex-start; width: 100%; padding-inline: 64px; }
.leaf { margin: 0; display: none; position: relative; cursor: zoom-in; }
.leaf.is-visible { display: block; animation: leaf-in .35s ease; }
@keyframes leaf-in { from { opacity: .3; } to { opacity: 1; } }
.leaf img { width: auto; max-width: 100%; max-height: max(420px, min(calc(100vh - 210px), 1040px)); background: #fff; box-shadow: 0 24px 60px rgb(0 0 0 / 45%); border-radius: 4px; }
.book.is-spread .leaf.is-visible { max-width: 50%; }
.book.is-spread.is-pair .leaf.is-visible:first-child img, .book.is-spread.is-pair .leaf.is-left img { border-radius: 4px 0 0 4px; }
.book.is-spread.is-pair .leaf.is-right img { border-radius: 0 4px 4px 0; }
.book.is-spread.is-pair .leaf.is-left::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 34px; background: linear-gradient(90deg, transparent, rgb(0 0 0 / 16%)); pointer-events: none; }
.book.is-spread.is-pair .leaf.is-right::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 34px; background: linear-gradient(270deg, transparent, rgb(0 0 0 / 16%)); pointer-events: none; }
.stage-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 22%); background: rgb(6 20 48 / 72%); color: #fff; backdrop-filter: blur(6px); transition: background-color .18s, transform .18s; }
.stage-nav:hover:not(:disabled) { background: var(--blue); color: #fff; }
.stage-nav.prev { left: 0; }
.stage-nav.next { right: 0; }
.reader:not(.is-ready) .stage-nav, .reader:not(.is-ready) .reader-bar, .reader:not(.is-ready) .thumbs, .reader:not(.is-ready) [data-fullscreen] { display: none; }
.reader:not(.is-ready) .book { flex-direction: column; align-items: center; gap: 18px; }
.reader:not(.is-ready) .leaf { display: block; }
.reader-bar { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 18px 0 14px; font-size: .88rem; color: #a9b9cf; }
.counter { padding: 5px 14px; border-radius: 999px; background: rgb(255 255 255 / 8%); color: #fff; font-weight: 700; }
.thumbs { list-style: none; margin: 0; padding: 4px 2px 8px; display: flex; justify-content: center; gap: 10px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / 20%) transparent; }
.thumbs button { position: relative; display: block; padding: 0; border: 2px solid transparent; border-radius: 6px; background: #fff; overflow: hidden; opacity: .6; transition: opacity .18s, border-color .18s, transform .18s; }
.thumbs button:hover { opacity: 1; transform: translateY(-2px); }
.thumbs button[aria-current='true'] { opacity: 1; border-color: var(--blue); }
.thumbs img { width: 64px; height: auto; }
.thumbs span { position: absolute; right: 3px; bottom: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 4px; background: var(--navy-900); color: #fff; font-size: .68rem; font-weight: 700; line-height: 18px; text-align: center; }
.reader:fullscreen { overflow-y: auto; padding: 18px 0; display: flex; flex-direction: column; justify-content: center; }
.reader.is-fullscreen { position: fixed; inset: 0; z-index: 300; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; }
.reader:fullscreen .container, .reader.is-fullscreen .container { width: min(1600px, calc(100% - 32px)); }
.reader:fullscreen .leaf img, .reader.is-fullscreen .leaf img { max-height: calc(100vh - 210px); }
.reader:fullscreen .leaf, .reader.is-fullscreen .leaf { cursor: zoom-out; }

.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; padding-block: 36px 24px; }
.doc-panel { padding: 26px 28px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.doc-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.share-card { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line-cool); }
.share-title { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-family: var(--display); font-weight: 800; color: var(--navy-900); }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 999px; color: #fff; font-family: var(--display); font-weight: 800; font-size: .95rem; transition: transform .15s ease, box-shadow .15s ease, filter .15s ease; }
.share-pill:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 10px 20px rgb(11 31 75 / 18%); }
.share-pill.is-wa { background: var(--green); }
.share-pill.is-fb { background: #1877f2; }
.share-pill.is-tg { background: var(--sky); }
.share-pill.is-copy { background: var(--navy-900); color: var(--lime); }
.image-stage { background: radial-gradient(800px 400px at 50% 0%, rgb(29 69 150 / 45%), transparent 70%), var(--navy-950); padding: 28px 0 22px; }
.image-frame { margin: 0 auto; display: grid; justify-items: center; gap: 12px; }
.image-open { display: block; padding: 0; border: 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgb(0 0 0 / 45%); cursor: zoom-in; }
.image-open img { max-height: min(78vh, 900px); width: auto; }
.image-frame figcaption { display: inline-flex; align-items: center; gap: 8px; color: #a9b9cf; font-size: .86rem; }
.transcript { padding-top: 32px; }
.figures { padding-top: 36px; }
.figures h2 { font-size: 1.7rem; margin-bottom: 4px; }
.figure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 18px; }
.doc-figure { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; box-shadow: var(--shadow-sm); }
.figure-open { display: grid; place-items: center; height: 230px; padding: 12px; border: 0; background: #fff; cursor: zoom-in; border-bottom: 1px solid var(--line); overflow: hidden; }
.figure-open img { max-width: 100%; max-height: 206px; width: auto; height: auto; object-fit: contain; transition: transform .25s; }
.figure-open:hover img { transform: scale(1.03); }
.doc-figure figcaption { display: grid; gap: 4px; padding: 12px 14px 14px; font-size: .86rem; line-height: 1.4; }
.doc-figure figcaption strong { color: var(--navy-900); }
.doc-figure figcaption span { color: var(--blue-600); font-weight: 600; font-size: .78rem; }
.doc-figure figcaption small { color: var(--muted); font-size: .76rem; }
.transcript h2 { font-size: 1.7rem; margin-bottom: 4px; }
.transcript-body { position: relative; max-height: 560px; overflow: hidden; margin-top: 18px; }
.transcript-body::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(transparent, var(--paper)); pointer-events: none; }
.transcript.is-open .transcript-body { max-height: none; }
.transcript.is-open .transcript-body::after { display: none; }
.transcript-page { padding: 20px 0; border-top: 1px solid var(--line); }
.transcript-page:first-child { border-top: 0; padding-top: 0; }
.transcript-page h3 { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600); }
.transcript-page h4 { font-size: 1.05rem; margin: 18px 0 8px; color: var(--navy-900); }
.transcript-page p, .transcript-page li { color: #34465f; line-height: 1.75; }
.transcript-page ul { padding-left: 20px; }
.expand-btn { margin-top: 12px; }
.doc-sidebar { position: sticky; top: min(100px, calc(100vh - var(--sb-h, 0px) - 24px)); display: grid; gap: 18px; }
.side-card { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.side-card h2 { font-size: 1.45rem; }
.side-card p:not(.eyebrow) { color: var(--muted); font-size: .94rem; }
.side-card .eyebrow { margin: 16px 0 8px; }
.side-card .btn { width: 100%; }
.side-phone { display: block; margin-top: 12px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--navy-900); }
.facts { margin: 0; padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 12px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; font-size: .9rem; border-bottom: 1px dashed var(--line); padding-bottom: 10px; }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.facts a:hover { color: var(--navy-700); text-decoration: underline; }

/* ---------- contacto ---------- */
.contact-page { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
.contact-info .countries { margin-top: 8px; }
.contact-detail { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); transition: border-color .18s, box-shadow .18s; }
.contact-detail:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.contact-detail > span:last-child { display: grid; }
.contact-detail small { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-detail strong { font-size: 1.1rem; }
.contact-detail em { font-style: normal; color: var(--muted); font-size: .88rem; }
.contact-form { display: grid; gap: 16px; padding: 32px; border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-md); margin-top: -96px; position: relative; z-index: 2; }
.contact-form h2 { margin-bottom: 0; }
.contact-form > p { color: var(--muted); margin: 0; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line-cool); background: var(--paper); font-weight: 400; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgb(24 119 242 / 18%); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.optional { color: var(--muted); font-weight: 400; }
.contact-form small { color: var(--muted); }
.not-found { text-align: center; max-width: 640px; }
.not-found .eyebrow { justify-content: center; }
.not-found .btn-row { justify-content: center; }
.not-found .search-form { margin-top: 24px; }

/* ---------- pie de página ---------- */
.footer { background: var(--navy-950); color: #b9c6d8; padding: 64px 0 28px; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.2fr; gap: 40px; }
.footer-brand p { margin: 18px 0; max-width: 340px; }
.footer-flags { display: flex; gap: 8px; }
.footer h2 { font-family: var(--body); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 16px; }
.footer-top > div:not(.footer-brand) { display: grid; align-content: start; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / 10%); font-size: .8rem; color: #8597b0; }

/* ---------- flotantes ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 14px; }
.wa-bubble { position: relative; display: grid; padding: 10px 16px 11px; border-radius: 14px; background: var(--paper); color: var(--navy-900); font-size: .9rem; font-weight: 600; line-height: 1.3; white-space: nowrap; box-shadow: 0 12px 32px rgb(6 20 48 / 22%); border: 1px solid var(--line); animation: wa-bubble-in .6s cubic-bezier(.2, .9, .3, 1.3) 1.5s both; }
.wa-bubble::after { content: ''; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; background: var(--paper); border-right: 1px solid var(--line); border-top: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); }
.wa-bubble small { display: flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #128c4a; }
.wa-bubble small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #25d366; }
.wa-bubble strong { color: #128c4a; }
.wa-button { position: relative; isolation: isolate; display: grid; place-items: center; width: 66px; height: 66px; border-radius: 50%; background: linear-gradient(160deg, #2fe375, #1ebe5d); color: #fff; box-shadow: 0 12px 30px rgb(37 211 102 / 48%), inset 0 1px 0 rgb(255 255 255 / 35%); animation: wa-beat 2.6s ease-in-out infinite; }
.wa-button::before, .wa-button::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: #25d366; animation: wa-ring 2.6s ease-out infinite; }
.wa-button::after { animation-delay: 1.3s; }
.wa-badge { position: absolute; top: -3px; right: -3px; display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #e11d48; color: #fff; font-size: .74rem; font-weight: 800; border: 2px solid #fff; }
.wa-float:hover .wa-button { animation-play-state: paused; transform: scale(1.08); }
.wa-float:hover .wa-bubble { transform: translateX(-4px); }
@keyframes wa-ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.95); opacity: 0; } }
@keyframes wa-beat { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.12); } 16% { transform: scale(.98); } 24% { transform: scale(1.08); } 34% { transform: scale(1); } }
.wa-float.is-doc .wa-bubble { display: flex; align-items: center; gap: 11px; padding: 8px 16px 8px 8px; border-color: #bfe9cf; animation: wa-bubble-in .6s cubic-bezier(.2, .9, .3, 1.3) .8s both, wa-bubble-beat 2.6s ease-in-out 2.6s infinite; }
.wa-float.is-doc .wa-bubble img { width: 34px; height: 44px; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.wa-float.is-doc .wa-bubble > span { display: grid; gap: 1px; }
.wa-float.is-doc .wa-bubble strong { font-size: 1.02rem; font-weight: 800; }
@keyframes wa-bubble-beat { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.06); } 16% { transform: scale(.99); } 24% { transform: scale(1.04); } 34% { transform: scale(1); } }
@keyframes wa-bubble-in { from { opacity: 0; transform: translateX(16px) scale(.9); } to { opacity: 1; transform: none; } }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 400; padding: 12px 20px; border-radius: 999px; background: var(--navy-900); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg); }

/* ---------- garantías (0% IA, original, Turnitin) y tesis ---------- */
.guarantees { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.guarantees li { display: flex; align-items: center; gap: 10px; }
.g-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--green-soft); color: var(--green-600); }
.guarantees strong { display: block; font-family: var(--display); font-weight: 800; font-size: .95rem; line-height: 1.25; color: var(--navy-900); }
.guarantees small { display: block; margin-top: 2px; font-size: .86rem; line-height: 1.4; color: var(--muted); }
.guarantees.is-pills li { gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.guarantees.is-pills .g-icon { width: 28px; height: 28px; border-radius: 50%; }
.guarantees.is-pills .g-icon svg { width: 16px; height: 16px; }
.guarantees.is-pills strong { font-size: .86rem; white-space: nowrap; }
.guarantees.is-pills small { display: none; }
.guarantees.is-dark li { background: rgb(255 255 255 / 8%); border-color: rgb(255 255 255 / 18%); }
.guarantees.is-dark .g-icon { background: rgb(74 222 128 / 16%); color: var(--green-light); }
.guarantees.is-dark strong { color: #fff; }
.guarantees.is-list { display: grid; gap: 16px; }
.guarantees.is-list li { align-items: flex-start; }
.page-hero .guarantees, .hero-guarantees { margin-top: 20px; }
.attention .guarantees { gap: 8px; margin: 4px 0 0; color: #fff; font-size: 1rem; }
.attention-note { margin: 12px 0 0; color: #9fb1c9; font-size: .86rem; }
.side-guarantee { padding: 22px 24px; border-radius: var(--radius); border: 1px solid #bfe9cf; background: linear-gradient(180deg, var(--green-soft), var(--paper) 75%); }
.side-guarantee .eyebrow { margin-bottom: 16px; color: var(--green-600); }
.side-thesis { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); color: #fff; background: radial-gradient(260px 140px at 100% 0%, rgb(34 165 89 / 26%), transparent 70%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.side-thesis:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.side-thesis .icon-badge { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgb(255 255 255 / 10%); color: var(--green-light); }
.side-thesis strong { display: block; font-family: var(--display); font-size: 1rem; }
.side-thesis small { display: block; margin-top: 2px; color: #c3d0e0; font-size: .84rem; line-height: 1.35; }
.side-thesis > svg { flex: none; margin-left: auto; color: var(--green-light); transition: transform .2s; }
.side-thesis:hover > svg { transform: translateX(3px); }
.thesis-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 30px; padding: 34px 38px; border-radius: var(--radius-lg); color: #fff; background: radial-gradient(520px 260px at 100% 0%, rgb(34 165 89 / 24%), transparent 70%), radial-gradient(420px 240px at 0% 100%, rgb(24 119 242 / 24%), transparent 70%), linear-gradient(150deg, var(--navy-800), var(--navy-950)); box-shadow: var(--shadow-lg); }
.thesis-banner::after { content: ''; position: absolute; inset: 9px; border-radius: 15px; border: 1px solid rgb(124 184 255 / 18%); pointer-events: none; }
.services + .thesis-banner { margin-top: 28px; }
.thesis-art { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 26px; background: linear-gradient(140deg, var(--green-light), var(--green)); color: var(--navy-950); box-shadow: 0 16px 32px rgb(34 165 89 / 34%); transform: rotate(-6deg); }
.thesis-copy .eyebrow { margin-bottom: 8px; color: var(--green-light); }
.thesis-copy h2 { margin: 0 0 6px; color: #fff; font-size: 1.75rem; }
.thesis-copy > p:not(.eyebrow) { max-width: 640px; margin: 0 0 16px; color: #c3d0e0; }
.thesis-actions { position: relative; z-index: 1; display: grid; gap: 10px; }
.thesis-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: 48px; align-items: start; }
.check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; color: var(--ink); font-weight: 600; }
.check-grid li { align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.check-grid li svg { flex: none; transform: translateY(1px); }
.guarantee-card { position: sticky; top: 100px; padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--green-soft), var(--paper) 45%); border: 1px solid #bfe9cf; box-shadow: var(--shadow-md); }
.guarantee-card .eyebrow { color: var(--green-600); }
.guarantee-card h2 { margin-bottom: 22px; font-size: 1.6rem; }
.guarantee-card .btn { width: 100%; margin-top: 26px; }
.steps-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-grid li { flex-direction: column; }

/* ---------- referencias: alumnos satisfechos ---------- */
.doc-attention .attention { margin: 30px 0 0; }
.attention-refs { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--green-light); font-size: .9rem; font-weight: 700; }
.attention-refs:hover { text-decoration: underline; }
.ref-rail { grid-auto-columns: 236px; gap: 22px; }
.ref-card { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ref-shot { display: block; width: 100%; padding: 8px; border: 0; border-radius: 28px; background: linear-gradient(160deg, var(--navy-700), var(--navy-950)); box-shadow: var(--shadow-md); cursor: zoom-in; transition: transform .2s, box-shadow .2s; }
.ref-shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ref-shot img { display: block; width: 100%; height: 400px; object-fit: cover; object-position: 50% 50%; border-radius: 21px; background: #efeae2; }
.ref-card figcaption { display: grid; gap: 6px; padding: 0 4px; }
.ref-badge { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-600); font-size: .74rem; font-weight: 800; }
.ref-card q { font-family: var(--display); font-size: .96rem; font-weight: 700; line-height: 1.35; color: var(--navy-900); }
.ref-meta { color: var(--muted); font-size: .84rem; font-weight: 600; }
.ref-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 32px 24px; }
.ref-grid .ref-shot img { height: 480px; }

/* ---------- adaptable ---------- */
@media (max-width: 1300px) {
  .menu-toggle { display: flex; }
  #main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); }
  #main-nav.is-open { display: flex; }
  #main-nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  #main-nav > a:not(.btn)::after { display: none; }
  #main-nav .nav-cta { margin-top: 16px; }
  .services, .promises { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; padding-block: 44px 120px; }
  .weekly-grid { grid-template-columns: 1fr; gap: 48px; }
  .weekly-poster .gallery-open img { height: 440px; }
  .iacc-feature, .faq-grid, .contact-page { grid-template-columns: 1fr; gap: 40px; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 32px; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-sidebar { position: static; }
  .attention { flex-direction: column; align-items: flex-start; }
  .attention-actions { width: 100%; min-width: 0; }
  .attention-flags { justify-content: flex-start; }
  .contact-form { margin-top: 0; }
  .institutions-strip { flex-direction: column; align-items: flex-start; gap: 18px; }
  .thesis-banner { grid-template-columns: auto minmax(0, 1fr); gap: 22px 26px; padding: 30px; }
  .thesis-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
  .thesis-grid { grid-template-columns: 1fr; gap: 36px; }
  .guarantee-card { position: static; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .section { padding-block: 64px; }
  .header-inner { height: 66px; }
  .brand { gap: 10px; }
  .brand-text { font-size: 1.28rem; }
  .brand-logo { width: 48px; height: 48px; }
  .hero h1 { font-size: 2.25rem; }
  .hero .lead { font-size: 1rem; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 0; margin-top: 30px; }
  .hero-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stats dd { font-size: 1.7rem; }
  .coverflow { --w: 186px; --gap: 84px; }
  .cf-title { font-size: 1rem; }
  .btn-row .btn { flex: 1 1 auto; }
  .weekly-poster { padding: 14px; }
  .weekly-poster .gallery-open img { height: 380px; }
  .weekly-poster figcaption { left: 0; bottom: 24px; }
  .steps li { padding: 16px; gap: 14px; }
  .finder { padding: 20px; }
  .search-form { padding-left: 14px; }
  .search-form button { padding: 11px 18px; }
  .country { padding: 6px 12px 6px 8px; font-size: .86rem; }
  .uni-chip { padding: 8px 13px; }
  .rail { grid-auto-columns: 74%; }
  .rail-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .rail-actions .round-btn { display: none; }
  .doc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .doc-body { padding: 12px 12px 16px; }
  .doc-body h3 { font-size: .9rem; }
  .doc-thumb { padding: 12px 12px 0; }
  .services, .promises { grid-template-columns: 1fr; }
  .heading-row { flex-direction: column; align-items: flex-start; gap: 0; }
  .heading-row > .link-arrow, .heading-row > .rail-actions { margin-bottom: 28px; }
  .gallery-open img { height: 230px; }
  .filter-panel { margin-top: -60px; }
  .filter-panel .reset-button { flex: 1 1 100%; }
  .help-grid, .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 22px; border-radius: 22px; }
  .reader-top { flex-direction: column; align-items: stretch; }
  .reader-tools { justify-content: space-between; }
  .tool { flex: 1; justify-content: center; padding: 8px 10px; }
  .tool span { font-size: .8rem; }
  .stage-nav { width: 42px; height: 42px; }
  .book { padding-inline: 0; }
  .leaf img { max-height: 72vh; }
  .reader-hint { display: none; }
  .thumbs { justify-content: flex-start; }
  .doc-buttons .btn { flex: 1 1 100%; }
  .doc-panel { padding: 20px; }
  .share-pill { flex: 1 1 calc(50% - 10px); justify-content: center; padding: 10px 14px; }
  .footer-top { grid-template-columns: 1fr; }
  .wa-float { right: 14px; bottom: 14px; }
  .wa-bubble { display: none; }
  .wa-button { width: 60px; height: 60px; }
  .attention { padding: 22px 20px; }
  .attention-cta { gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; }
  .attention-wa { width: 50px; height: 50px; }
  .attention-wa svg { width: 26px; height: 26px; }
  .attention-cta-text small { font-size: .6rem; white-space: nowrap; }
  .attention-cta-text strong { font-size: 1.06rem; white-space: nowrap; }
  .attention-cta > svg { display: none; }
  .wa-float.is-doc { gap: 10px; }
  .wa-float.is-doc .wa-bubble { padding: 6px 12px 6px 6px; gap: 8px; }
  .wa-float.is-doc .wa-bubble img { width: 26px; height: 34px; }
  .wa-float.is-doc .wa-bubble small { display: none; }
  .wa-float.is-doc .wa-bubble strong { font-size: .92rem; }
  .wordmark { font-size: 1.2rem; }
  .thesis-banner { grid-template-columns: 1fr; padding: 26px 20px; }
  .thesis-art { width: 64px; height: 64px; border-radius: 18px; }
  .thesis-art svg { width: 34px; height: 34px; }
  .thesis-copy h2 { font-size: 1.4rem; }
  .thesis-actions .btn { flex: 1 1 100%; }
  .check-grid, .steps-grid { grid-template-columns: 1fr; }
  .guarantees.is-pills { gap: 8px; }
  .guarantees.is-pills strong { font-size: .8rem; }
  .guarantee-card { padding: 24px 20px; }
  .ref-rail { grid-auto-columns: 64%; }
  .ref-shot img, .ref-grid .ref-shot img { height: 380px; }
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .ref-grid .ref-shot { padding: 6px; border-radius: 22px; }
  .ref-grid .ref-shot img { height: 300px; border-radius: 17px; }
  .doc-attention .attention { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .wa-button, .wa-button::before, .wa-button::after, .live-dot, .wa-bubble, .attention-cta, .attention-wa, .attention-wa::before, .attention-wa::after { animation: none !important; }
  .country-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .country-list { animation: none !important; }
  .country-list .is-copy { display: none; }
}
@media print {
  .site-header, .footer, .wa-float, .attention, .reader, .image-stage, .doc-panel, .doc-sidebar, .cta-band, .figures, .thesis-banner { display: none !important; }
  .transcript-body { max-height: none; }
  .transcript-body::after { display: none; }
}

/* ---------- Navidad: solo en diciembre (la clase .navidad la pone un script del <head> según la fecha del visitante).
   El 1 de enero ya no se agrega y todo vuelve al estilo normal, sin cambiar el HTML. ---------- */
.navidad {
  --xmas-hat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 56'%3E%3Cpath d='M8 42C11 24 22 9 40 8c11-1 18 6 19 16l-4 10c-1-7-5-11-11-10-4 6-2 13 1 18z' fill='%23d62839'/%3E%3Cpath d='M40 8c11-1 18 6 19 16l-4 10c-1-7-5-11-11-10z' fill='%23a81c2c'/%3E%3Crect x='3' y='38' width='50' height='14' rx='7' fill='%23fff' stroke='%23d9e2ec' stroke-width='1.5'/%3E%3Ccircle cx='56' cy='37' r='6.5' fill='%23fff' stroke='%23d9e2ec' stroke-width='1.5'/%3E%3C/svg%3E");
  --xmas-lights: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='26' viewBox='0 0 96 26'%3E%3Cpath d='M0 3Q24 13 48 3T96 3' fill='none' stroke='%23334155' stroke-width='1.6'/%3E%3Cg fill='%2364748b'%3E%3Crect x='10' y='6' width='4' height='4.5' rx='1'/%3E%3Crect x='34' y='6' width='4' height='4.5' rx='1'/%3E%3Crect x='58' y='6' width='4' height='4.5' rx='1'/%3E%3Crect x='82' y='6' width='4' height='4.5' rx='1'/%3E%3C/g%3E%3Cellipse cx='12' cy='16' rx='4.2' ry='6' fill='%23ef4444'/%3E%3Cellipse cx='36' cy='16' rx='4.2' ry='6' fill='%23fbbf24'/%3E%3Cellipse cx='60' cy='16' rx='4.2' ry='6' fill='%2322c55e'/%3E%3Cellipse cx='84' cy='16' rx='4.2' ry='6' fill='%233b82f6'/%3E%3Cg fill='%23fff' opacity='.55'%3E%3Cellipse cx='10.6' cy='13.6' rx='1.2' ry='2.2'/%3E%3Cellipse cx='34.6' cy='13.6' rx='1.2' ry='2.2'/%3E%3Cellipse cx='58.6' cy='13.6' rx='1.2' ry='2.2'/%3E%3Cellipse cx='82.6' cy='13.6' rx='1.2' ry='2.2'/%3E%3C/g%3E%3C/svg%3E");
  --xmas-snow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23fff'%3E%3Ccircle cx='20' cy='30' r='2.2' opacity='.9'/%3E%3Ccircle cx='80' cy='12' r='1.4' opacity='.7'/%3E%3Ccircle cx='140' cy='50' r='2.8' opacity='.8'/%3E%3Ccircle cx='200' cy='20' r='1.6' opacity='.6'/%3E%3Ccircle cx='50' cy='95' r='1.8' opacity='.75'/%3E%3Ccircle cx='110' cy='120' r='2.4' opacity='.85'/%3E%3Ccircle cx='180' cy='100' r='1.3' opacity='.6'/%3E%3Ccircle cx='225' cy='140' r='2.1' opacity='.8'/%3E%3Ccircle cx='15' cy='170' r='1.5' opacity='.65'/%3E%3Ccircle cx='70' cy='200' r='2.6' opacity='.9'/%3E%3Ccircle cx='130' cy='180' r='1.4' opacity='.6'/%3E%3Ccircle cx='170' cy='225' r='2' opacity='.75'/%3E%3Ccircle cx='215' cy='205' r='1.2' opacity='.55'/%3E%3Ccircle cx='95' cy='60' r='1.1' opacity='.5'/%3E%3Ccircle cx='35' cy='135' r='1' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
}
/* Guirnalda de luces colgando bajo la cabecera; las luces se encienden por turnos */
.navidad .site-header::before, .navidad .site-header::after { content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 2px); height: 26px; pointer-events: none; background-repeat: repeat-x; }
.navidad .site-header::after { background-image: var(--xmas-lights); background-size: 96px 26px; }
.navidad .site-header::before { background-image: radial-gradient(circle at 12px 16px, rgb(255 236 170 / 90%), rgb(255 236 170 / 0) 12px); background-size: 48px 26px; animation: xmas-twinkle 1.4s steps(1, end) infinite; }
@keyframes xmas-twinkle { 0% { background-position-x: 0; } 50% { background-position-x: 24px; } }
/* Gorro de Navidad en el logo de la cabecera y en el botón de WhatsApp */
.navidad .site-header .brand { position: relative; }
.navidad .site-header .brand::before { content: ''; position: absolute; left: -10px; top: -14px; width: 40px; height: 35px; z-index: 1; pointer-events: none; background: var(--xmas-hat) no-repeat center / contain; transform: rotate(-24deg); }
.navidad .wa-button::after { inset: auto; top: -18px; left: -10px; width: 42px; height: 37px; z-index: 1; border-radius: 0; background: var(--xmas-hat) no-repeat center / contain; animation: none; transform: rotate(-24deg); opacity: 1; }
/* Nieve cayendo en las secciones azules (portada, títulos de página y recuadro de reservas) */
.navidad .page-hero { position: relative; overflow: hidden; isolation: isolate; }
.navidad .cta-band { isolation: isolate; }
.navidad .hero::after, .navidad .page-hero::after, .navidad .cta-band::before { content: ''; position: absolute; left: 0; right: 0; top: -240px; bottom: 0; z-index: -1; pointer-events: none; background-image: var(--xmas-snow), var(--xmas-snow); background-size: 240px 240px, 120px 120px; background-position: 0 0, 60px 40px; opacity: .6; animation: xmas-snow 18s linear infinite; }
@keyframes xmas-snow { to { transform: translateY(240px); } }
.navidad .hero-badge::after { content: '🎄'; }
@media (max-width: 640px) {
  .navidad .site-header .brand::before { left: -8px; top: -12px; width: 33px; height: 29px; }
  .navidad .wa-button::after { top: -16px; left: -9px; width: 38px; height: 33px; }
}
@media (prefers-reduced-motion: reduce) {
  .navidad .site-header::before, .navidad .hero::after, .navidad .page-hero::after, .navidad .cta-band::before { animation: none !important; }
}
@media print {
  .navidad .hero::after, .navidad .page-hero::after { display: none; }
}
