/* Capa de contenidos: reutiliza la identidad de la portada y añade
   patrones de artículo, ejercicios, migas de pan y navegación secundaria. */

.content-page .landing-shell { scroll-behavior: smooth; }

/* Enlace de salto para teclado y lectores de pantalla. */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 12px 18px;
  color: var(--navy);
  background: #fff6cf;
  border: 3px solid var(--navy);
  border-radius: 10px;
  font-weight: 900;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .15s ease;
}
.skip-link:focus { transform: translateY(0); }

/* Navegación secundaria: aparece cuando el menú principal se oculta. */
.site-subnav { display: none; }

.content-main {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 clamp(18px, 3.2vw, 80px) clamp(42px, 5vw, 88px);
}

/* Migas de pan */
.breadcrumbs { padding: 18px 0 0; font-size: .78rem; font-weight: 800; color: #5e7c8a; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: '›'; color: #91adb8; font-size: 1rem; line-height: 1; }
.breadcrumbs a { min-height: 24px; display: inline-flex; align-items: center; color: #3156a7; text-decoration: none; }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: #3d5b6b; }

/* Cabecera del artículo */
.content-hero {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: clamp(28px, 3.2vw, 64px);
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, #8b6dff66 0, transparent 34%),
    radial-gradient(circle at 8% 95%, #37c8c25e 0, transparent 34%),
    linear-gradient(125deg, #101d45 2%, #262269 58%, #145b78 100%);
  box-shadow: 0 18px 44px #0d1c3f38;
}
.content-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(#ffffff12 1px, transparent 1px), linear-gradient(90deg, #ffffff12 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 55%, #000);
}
.content-hero > * { position: relative; z-index: 1; }
.content-hero .eyebrow {
  gap: 9px;
  padding: 6px 13px 6px 7px;
  border: 1px solid #b7d6ff57;
  border-radius: 999px;
  color: #d8fdf2;
  background: #ffffff16;
  font-size: .68rem;
  letter-spacing: .11em;
}
.content-hero .eyebrow-star { border-color: #e0f5ff; background: #ffe17b; }
.content-hero h1 {
  max-width: 1050px;
  margin: 20px 0 16px;
  font-size: clamp(2rem, calc(3vw + .9rem), 4rem);
  line-height: 1.02;
  letter-spacing: -.05em;
  font-weight: 900;
}
.content-hero h1 em { color: #a9f0c8; font-style: normal; }
.content-hero .lede { max-width: 88ch; margin: 0; color: #d6e8f2; font-size: clamp(1rem, calc(.45vw + .78rem), 1.22rem); line-height: 1.6; }
.content-hero .lede a { color: #ffe38a; }
.content-hero .content-hero-link { color: #ffe38a; font-weight: 900; text-decoration: none; border-bottom: 2px solid #ffe38a66; padding-bottom: 2px; }
.content-hero .content-hero-link:hover, .content-hero .content-hero-link:focus-visible { border-bottom-color: #ffe38a; }
.content-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 24px; }
.content-hero-actions .cta { min-height: 56px; padding: 12px 22px; font-size: 1.02rem; }
.content-hero-note { margin: 18px 0 0; color: #9fc0cb; font-size: .82rem; font-weight: 800; }

/* Artículo + columna lateral */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 26%);
  gap: clamp(28px, 2.6vw, 56px);
  align-items: start;
  margin-top: clamp(28px, 3.2vw, 44px);
}
.content-article { min-width: 0; }
.prose { color: #38566a; font-size: clamp(1rem, calc(.35vw + .75rem), 1.16rem); line-height: 1.68; }
.prose p, .prose li, .prose blockquote { max-width: 76ch; }
.prose > *:first-child { margin-top: 0; }
.prose h2 {
  margin: 38px 0 12px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: -.025em;
  font-weight: 900;
  scroll-margin-top: 92px;
}
.prose h3 { margin: 24px 0 8px; color: #244a65; font-size: 1.08rem; line-height: 1.3; font-weight: 900; }
.prose p { margin: 0 0 15px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 24px; }
.prose li { margin: 5px 0; }
.prose li::marker { color: #2f8f95; font-weight: 900; }
.prose strong { color: var(--navy); }
.prose a { color: #2f4e9e; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover, .prose a:focus-visible { color: #6b3fc4; }
.content-article a.cta { color: var(--navy); text-decoration: none; }
.content-article a.cta:hover, .content-article a.cta:focus-visible { color: var(--navy); }
.content-article a.link-card { color: var(--navy); text-decoration: none; }
.content-article a.link-card:hover, .content-article a.link-card:focus-visible { color: var(--navy); }
.prose code { padding: 2px 6px; border-radius: 6px; background: #e9f3f4; color: #1c4d5c; font-size: .92em; }
.prose blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 5px solid var(--mint);
  border-radius: 0 12px 12px 0;
  background: #e8f8f3;
  color: #2c5c58;
}
.prose blockquote p:last-child { margin-bottom: 0; }

/* Tablas */
.prose .table-wrap { margin: 18px 0 24px; overflow-x: auto; border: 2px solid #cfe3e5; border-radius: 14px; background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.prose caption { padding: 12px 14px; color: #3e6170; font-weight: 900; text-align: left; background: #eef7f9; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid #dcebec; text-align: left; vertical-align: top; }
.prose th { background: #eef7f9; color: var(--navy); font-weight: 900; }
.prose tr:last-child td { border-bottom: 0; }

/* Ejercicios con respuesta desplegable */
.exercise {
  margin: 16px 0;
  padding: 16px 18px;
  border: 2px solid var(--navy);
  border-radius: 14px;
  background: #fff;
  box-shadow: 4px 5px 0 #cfe9e2;
}
.exercise > summary, .prose details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-weight: 900;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.exercise > summary::-webkit-details-marker, .prose details > summary::-webkit-details-marker { display: none; }
.exercise > summary::after, .prose details > summary::after { content: '+'; color: #7755c7; font-size: 1.35rem; line-height: 1; }
.exercise[open] > summary::after, .prose details[open] > summary::after { content: '–'; }
.exercise p { margin: 10px 0 0; }
.exercise .answer { color: #1f6b4f; font-weight: 900; }

/* Figuras del artículo */
.content-figure {
  float: right;
  width: min(210px, 42%);
  margin: 4px 0 16px 24px;
  padding: 12px;
  border: 2px solid #cfe3e5;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  box-shadow: 4px 5px 0 #e2f1ee;
}
.content-figure img { display: block; width: 100%; height: auto; }
.content-figure figcaption { margin-top: 8px; color: #5c7d8b; font-size: .78rem; line-height: 1.35; }

/* Avisos y cajas */
.callout {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 6px solid var(--mint);
  border-radius: 0 14px 14px 0;
  background: #e8f8f3;
  color: #2c5c58;
}
.callout strong { color: #174f4a; }
.callout p:last-child { margin-bottom: 0; }
.callout--gold { border-left-color: var(--gold); background: #fff7dd; color: #6b5522; }
.callout--violet { border-left-color: var(--violet); background: #f1ecff; color: #44366f; }

/* Tarjetas de enlaces internos */
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0 24px; }
.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 17px;
  border: 2px solid var(--navy);
  border-radius: 14px;
  background: #fff;
  box-shadow: 4px 5px 0 #cfe9e2;
  color: var(--navy);
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease;
}
.link-card:hover, .link-card:focus-visible { transform: translateY(-2px); box-shadow: 5px 7px 0 #bfe0d7; }
.link-card strong { font-size: 1.02rem; line-height: 1.25; }
.link-card span { color: #557586; font-size: .9rem; line-height: 1.45; }
.link-card .link-card-arrow { margin-top: auto; color: #3156a7; font-size: .82rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }

/* Lista de pasos */
.step-list { margin: 20px 0 24px; padding: 0; list-style: none; counter-reset: paso; }
.step-list li { position: relative; margin: 0 0 14px; padding: 0 0 0 46px; counter-increment: paso; }
.step-list li::before {
  content: counter(paso);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-weight: 900;
}
.step-list strong { display: block; color: var(--navy); }

/* Columna lateral */
.content-aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.aside-card { padding: 17px 18px; border: 2px solid #cfe3e5; border-radius: 16px; background: #fff; }
.aside-card h2, .aside-card h3 { margin: 0 0 10px; color: var(--navy); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 900; }
.toc ol { margin: 0; padding-left: 18px; }
.toc li { margin: 6px 0; font-size: .88rem; line-height: 1.35; }
.toc a { color: #3156a7; text-decoration: none; }
.toc a:hover, .toc a:focus-visible { text-decoration: underline; }
.aside-cta { border-color: var(--navy); background: #172447; color: #fff; }
.aside-cta p { margin: 0 0 12px; color: #d6e6ef; font-size: .9rem; line-height: 1.45; }
.aside-cta .cta { display: flex; justify-content: center; width: 100%; min-height: 48px; padding: 10px 12px; font-size: .92rem; }
.aside-links { display: grid; gap: 8px; }
.aside-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; color: #3156a7; font-size: .9rem; font-weight: 800; text-decoration: none; }
.aside-links a::after { content: '→'; color: #8aa9c7; }
.aside-links a:hover, .aside-links a:focus-visible { text-decoration: underline; }

/* Llamada final */
.cta-panel {
  margin: 38px 0 0;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 22px;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at 50% 0, #d7f6ef44, transparent 58%), linear-gradient(160deg, #1a3c5c, #10283f);
  box-shadow: 0 18px 40px #10283f2e;
}
.cta-panel h2 { margin: 0 0 10px; color: #fff; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.03em; }
.cta-panel p { max-width: 680px; margin: 0 auto 20px; color: #c3dde7; font-size: .98rem; line-height: 1.55; }
.cta-panel .cta { min-height: 56px; padding: 12px 24px; font-size: 1.04rem; }
.cta-panel .hero-note { display: block; margin-top: 14px; color: #9fc0cb; font-size: .8rem; }

/* Preguntas frecuentes dentro del artículo */
.content-article .faq { max-width: none; margin-top: 8px; }
.content-article .faq details { border-color: #cfe3e5; box-shadow: none; }
.content-article .faq summary { font-size: .98rem; }
.content-article .faq p { color: #38566a; }

/* Las páginas de lectura tienen una jerarquía propia sin cambiar la portada. */
.content-page { --page-accent: #61d3ba; --page-soft: #e8f8f2; }
.content-page[data-content-tone="play"] { --page-accent: #c2a4ff; --page-soft: #f3eeff; }
.content-page[data-content-tone="learn"] { --page-accent: #ffd16f; --page-soft: #fff7e6; }
.content-page .content-main { background: linear-gradient(180deg, #f3f9fa, #f8fbf8 480px); }
.content-page .breadcrumbs { padding-top: 24px; }
.content-page .content-hero {
  border: 1px solid #ffffff2d;
  background: radial-gradient(circle at 88% 16%, color-mix(in srgb, var(--page-accent) 32%, transparent), transparent 33%), linear-gradient(125deg, #172447, #253e66 58%, #126171);
  box-shadow: 0 20px 42px #183b5a25;
}
.content-page .content-hero::before {
  content: '✦'; position: absolute; right: clamp(22px, 5vw, 70px); top: 28px;
  width: 62px; height: 62px; display: grid; place-items: center;
  border: 1px solid #ffffff50; border-radius: 18px; color: var(--page-accent);
  background: #ffffff12; font-size: 2rem; transform: rotate(12deg);
}
.content-page .content-hero h1 { max-width: 900px; line-height: 1.08; }
.content-page .content-hero h1 em { color: var(--page-accent); }
.content-page .content-hero .lede { max-width: 72ch; }
.content-page .content-hero-note { display: inline-flex; width: fit-content; margin-top: 24px; padding: 8px 12px; border: 1px solid #ffffff36; border-radius: 999px; color: #e4f5f3; background: #ffffff12; }
.content-page .content-layout { grid-template-columns: minmax(0, 1fr) minmax(245px, 270px); gap: clamp(24px, 3vw, 42px); }
.content-page .content-article { display: grid; gap: 24px; counter-reset: content-section; }
.content-page .content-article > section:not(.related):not(.cta-panel) {
  position: relative; min-width: 0; margin: 0; padding: clamp(23px, 3vw, 38px);
  border: 1px solid #dce9eb; border-radius: 23px; background: #fff;
  box-shadow: 0 12px 30px #244b6420; counter-increment: content-section;
  scroll-margin-top: 18px;
}
.content-page .content-article > section:not(.related):not(.cta-panel)::before { content: ''; position: absolute; top: 0; left: 27px; right: 27px; height: 4px; border-radius: 0 0 8px 8px; background: var(--page-accent); }
.content-page .content-article > section:not(.related):not(.cta-panel):target { border-color: #8eb5ba; box-shadow: 0 0 0 3px var(--page-soft), 0 12px 30px #244b6420; }
.content-page .content-article > section:not(.related):not(.cta-panel) > h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 19px; font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.content-page .content-article > section:not(.related):not(.cta-panel) > h2::before { content: counter(content-section, decimal-leading-zero); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #17334f; background: var(--page-accent); font-size: .8rem; letter-spacing: 0; }
.content-page .prose { color: #3c5668; line-height: 1.74; }
.content-page .prose p, .content-page .prose li { max-width: 70ch; }
.content-page .prose .table-wrap { border: 1px solid #d5e5e7; border-radius: 17px; box-shadow: 0 8px 18px #1d4c6410; }
.content-page .prose th { background: var(--page-soft); }
.content-page .prose tbody tr:nth-child(even) { background: #f7fafb; }
.content-page .prose tbody tr:hover { background: var(--page-soft); }
.content-page .callout { border-left-color: var(--page-accent); background: var(--page-soft); }
.content-page .link-card { border: 1px solid #d1e4e5; border-radius: 17px; box-shadow: 0 6px 0 #dceceb; }
.content-page .link-card:hover, .content-page .link-card:focus-visible { box-shadow: 0 9px 0 #dceceb; }
.content-page .content-article > .related { margin-top: 4px; padding: clamp(20px, 3vw, 32px); border: 1px solid #dce9eb; border-radius: 22px; background: #edf7f7; }
.content-page .related > h2 { margin: 0 0 17px; }
.content-page .related .link-grid { margin-bottom: 0; }
.content-page .content-aside { top: 20px; gap: 18px; }
.content-page .aside-card { border: 1px solid #d9e6e9; border-radius: 20px; box-shadow: 0 10px 24px #244b6419; }
.content-page .toc { padding: 24px; }
.content-page .toc h2 { margin-bottom: 14px; color: #17334f; font-size: .77rem; }
.content-page .toc ol { padding-left: 0; list-style: none; counter-reset: toc-step; }
.content-page .toc li { margin: 0; counter-increment: toc-step; }
.content-page .toc a { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e8eeee; color: #3f6173; line-height: 1.35; }
.content-page .toc li:last-child a { border-bottom: 0; }
.content-page .toc a::before { content: counter(toc-step, decimal-leading-zero); color: #648e97; font-size: .73rem; font-weight: 900; }
.content-page .aside-cta { padding: 24px; border-color: #203c60; background: linear-gradient(150deg, #193657, #18234a); }
.content-page .aside-cta h2 { color: var(--page-accent); font-size: .85rem; }
.content-mobile-toc { display: none; }

/* Pie común: una invitación clara, navegación legible y créditos discretos. */
.landing-page .header-nav a[aria-current="page"] { color: #ffe38a; }
.landing-page .site-footer { position: relative; display: block; overflow: hidden; padding: clamp(24px, 3vw, 42px) clamp(20px, 4vw, 52px) 23px; border: 0; background: radial-gradient(circle at 8% 8%, #354b8652, transparent 31%), radial-gradient(circle at 91% 76%, #237b8050, transparent 28%), #101b35; color: #e1edfb; letter-spacing: normal; text-align: left; }
.site-footer::before { position: absolute; inset: 0; pointer-events: none; content: ''; opacity: .36; background-image: radial-gradient(#d8f5ff 1px, transparent 1px); background-size: 53px 53px; background-position: 17px 29px; -webkit-mask-image: linear-gradient(#000, transparent 77%); mask-image: linear-gradient(#000, transparent 77%); }
.site-footer > * { position: relative; z-index: 1; }
.site-footer .footer-spotlight { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 42px; padding: clamp(24px, 3vw, 38px); border: 1px solid #a8d8dc55; border-radius: 24px; background: radial-gradient(circle at 74% 14%, #7ec7b13b, transparent 35%), linear-gradient(125deg, #244472, #34598a 58%, #196c70); box-shadow: 0 15px 28px #07132355; }
.footer-spotlight-copy { max-width: 610px; }
.footer-kicker { color: #a9f2d1; font-size: .68rem; font-weight: 900; letter-spacing: .15em; }
.site-footer .footer-spotlight h2 { margin: 6px 0 8px; color: #fff; font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.04em; text-transform: none; }
.footer-spotlight p { margin: 0; color: #d4e7f2; font-size: .93rem; line-height: 1.5; }
.footer-play { flex: none; justify-content: center; min-height: 52px; padding: 12px 20px; font-size: .95rem; white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: minmax(230px, 1.22fr) repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.footer-brand { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 17px; min-width: 0; min-height: 100%; padding: clamp(23px, 2.4vw, 34px); overflow: hidden; border: 1px solid #a6ede641; border-radius: 22px; background: radial-gradient(circle at 95% 1%, #69d9c333, transparent 43%), linear-gradient(145deg, #223969, #1c3356 68%, #1b515c); box-shadow: 0 12px 28px #07101e40; }
.footer-brand::after { position: absolute; right: -31px; bottom: -41px; width: 140px; height: 140px; border: 1px solid #b4f6e13d; border-radius: 50%; box-shadow: 0 0 0 22px #b4f6e10c, 0 0 0 45px #b4f6e108; content: ''; pointer-events: none; }
.site-footer .footer-brand .logo { color: #fff; font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -.06em; }
.site-footer .footer-brand .logo-mark { box-shadow: 0 6px 18px #04132077; }
.site-footer .footer-brand .logo b { color: #aee77e; }
.footer-brand p { position: relative; z-index: 1; max-width: 30ch; margin: 0; color: #e1eef3; font-size: .91rem; font-weight: 500; line-height: 1.65; }
.footer-brand-note { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 9px 12px; border: 1px solid #abefce5c; border-radius: 999px; background: #b2f3cc16; color: #b7f0ce; font-size: .64rem; font-weight: 900; letter-spacing: .12em; }
.footer-brand-note::before { content: '✦'; color: #ffe397; font-size: .84rem; }
.site-footer .footer-grid nav { min-width: 0; padding: 23px clamp(15px, 1.7vw, 25px) 21px; border: 1px solid #bed4ee26; border-radius: 22px; background: linear-gradient(155deg, #ffffff0e, #ffffff05); }
.site-footer .footer-grid h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; color: #f0f7ff; font-size: .84rem; letter-spacing: .02em; text-transform: none; font-weight: 900; }
.site-footer .footer-grid h2::before { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid #95d9ca5c; border-radius: 10px; background: #95d9ca1a; color: #baf3de; content: '✦'; font-size: .9rem; }
.site-footer .footer-grid nav:nth-of-type(2) h2::before { content: '＋'; color: #ffe5a3; border-color: #ffe5a35c; background: #ffe5a31a; }
.site-footer .footer-grid nav:nth-of-type(3) h2::before { content: '▤'; color: #c9c4ff; border-color: #c9c4ff5c; background: #c9c4ff1a; }
.site-footer ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-footer ul a { display: flex; align-items: center; min-height: 35px; padding: 5px 8px; border-radius: 8px; color: #d7e5f5; font-size: .84rem; font-weight: 600; line-height: 1.35; text-decoration: none; transition: background .18s ease, color .18s ease, transform .18s ease; }
.site-footer ul a:hover, .site-footer ul a:focus-visible { background: #ffffff16; color: #ffe9aa; transform: translateX(3px); }
.site-footer ul a:focus-visible, .footer-legal a:focus-visible, .footer-brand .logo:focus-visible { outline: 2px solid #ffe9aa; outline-offset: 2px; }
.site-footer .landing-credits { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px 24px; margin-top: 26px; padding: 19px 20px; border: 1px solid #ffffff24; border-radius: 17px; background: #07152a82; text-align: left; }
.site-footer .landing-copy, .site-footer .landing-dev { color: #aebfd3; font-size: .74rem; font-weight: 600; letter-spacing: 0; }
.site-footer .landing-dev { grid-column: 1 / -1; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 9px; border-radius: 8px; color: #d9e5f6; font-size: .75rem; font-weight: 700; text-decoration: none; }
.footer-legal a:hover, .footer-legal a:focus-visible { background: #ffffff16; color: #ffe9aa; }

/* Navegación secundaria móvil */
.site-subnav {
  display: none;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  background: #13233f;
  border-top: 1px solid #ffffff1f;
  scrollbar-width: thin;
}
.site-subnav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 11px;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  color: #dce9f2;
  font-size: .76rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.site-subnav a:hover, .site-subnav a:focus-visible { background: #ffffff1a; color: #fff; }
.site-subnav a[aria-current="page"] { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* Ajustes responsivos */
@media (min-width: 1361px) and (max-width: 1460px) {
  .landing-page .header-nav { gap: 8px; }
  .landing-page .header-nav a { font-size: .68rem; letter-spacing: .04em; }
  .landing-page .landing-header-right { gap: 10px; }
  .landing-page .sound-toggle { padding: 8px 10px; }
}
@media (max-width: 1160px) {
  .site-subnav { display: flex; }
}
@media (max-width: 900px) {
  .content-layout, .content-page .content-layout { grid-template-columns: minmax(0, 1fr); }
  .content-aside, .content-page .content-aside { position: static; grid-row: auto; }
  .content-aside .toc { display: none; }
  .content-page .content-mobile-toc { display: block; margin-top: 22px; }
  .content-page .content-mobile-toc .toc { padding: 19px 22px; border: 1px solid #d9e6e9; border-radius: 18px; background: #fff; }
  .content-page .content-mobile-toc .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .footer-grid nav:last-child { grid-column: 1 / -1; }
  .site-footer .footer-grid nav:last-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; }
}
@media (max-width: 620px) {
  .content-main { padding-left: 16px; padding-right: 16px; }
  .content-hero { margin-top: 12px; padding: 24px 19px; border-radius: 20px; }
  .content-hero h1 { margin-top: 16px; }
  .content-hero-actions .cta { width: 100%; justify-content: space-between; }
  .content-layout { margin-top: 26px; gap: 24px; }
  .content-page .content-hero::before { width: 44px; height: 44px; right: 15px; top: 17px; font-size: 1.3rem; opacity: .65; }
  .content-page .content-article { gap: 18px; }
  .content-page .content-article > section:not(.related):not(.cta-panel) { padding: 22px 19px; border-radius: 19px; }
  .content-page .content-article > section:not(.related):not(.cta-panel) > h2 { align-items: flex-start; gap: 9px; }
  .content-page .content-article > section:not(.related):not(.cta-panel) > h2::before { width: 29px; height: 29px; border-radius: 9px; font-size: .7rem; }
  .content-page .content-mobile-toc .toc ol { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .content-figure { float: none; width: 100%; margin: 0 0 18px; }
  .prose { font-size: .98rem; }
  .landing-page .site-footer { padding: 20px 16px 24px; }
  .site-footer .footer-spotlight { flex-direction: column; align-items: stretch; gap: 18px; margin-bottom: 31px; padding: 24px 20px; border-radius: 19px; }
  .site-footer .footer-play { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-brand { grid-column: auto; min-height: 230px; }
  .site-footer .footer-grid nav { padding: 19px; }
  .site-footer .footer-grid nav:last-child { grid-column: auto; }
  .site-footer .footer-grid ul, .site-footer .footer-grid nav:last-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 9px; }
  .site-footer .landing-credits { grid-template-columns: 1fr; align-items: start; }
  .site-footer .landing-dev { grid-column: auto; }
}
@media (max-width: 390px) {
  .site-footer .footer-grid ul, .site-footer .footer-grid nav:last-child ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .link-card, .site-footer ul a { transition: none; }
  .site-footer ul a:hover, .site-footer ul a:focus-visible { transform: none; }
  .skip-link { transition: none; }
}
