/* Sistema visual transversal. No repetir estos componentes en cada página. */
/* Avisos de datos de los formularios. */
.form-data-notice{grid-column:1/-1;min-width:0;color:#425064;font-size:.88rem;line-height:1.55;padding:14px 16px;border:1px solid #dce5e1;border-radius:12px;background:#f0f6ef}
.form-data-notice p{margin:0 0 12px}.form-data-notice p:last-child{margin-bottom:0}
.form-data-notice summary{cursor:pointer;color:#283b86;font-weight:750;padding:8px 0;min-height:44px}
.form-data-notice details>div{padding:10px 0 0}
.form-data-notice a{color:#283b86;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.form-data-notice summary:focus-visible,.form-data-notice a:focus-visible{outline:3px solid #6254a5;outline-offset:3px}
.form-consent{background:#fff;border-color:#d4deec;color:#283b86}
.form .form-consent-label{display:flex;align-items:center;gap:10px;font-size:.88rem;font-weight:400;line-height:1.55;cursor:pointer;min-height:44px;margin:0 0 4px}
.form .form-consent-label input[type="checkbox"]{appearance:auto;flex:0 0 18px;width:18px;height:18px;min-height:0;margin:0;padding:0;accent-color:#2e6b2b}
.form-consent .required-mark{color:#ad241b;font-weight:700}
.form-consent>p,.form-consent>details{margin-left:28px}
.form-consent input:focus-visible{outline:3px solid #6254a5;outline-offset:3px}
@font-face {
  font-family: Mulish;
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/mulish-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Mulish;
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url("fonts/mulish-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --aa-verde: #2e6b2b;
  --aa-verde-oscuro: #255a26;
  --aa-azul: #283b86;
  --aa-borde: #dce5e1;
  --aa-texto-suave: #667085;
  --green: #57a930; --g: #57a930;
  --green-dark: var(--aa-verde); --dark: var(--aa-verde); --d: var(--aa-verde);
  --blue: var(--aa-azul); --b: var(--aa-azul); --violet: #6254a5;
  --ink: #1f2933; --i: #1f2933;
  --muted: var(--aa-texto-suave); --m: var(--aa-texto-suave);
  --paper: #f7faf8; --p: #f7faf8;
  --line: var(--aa-borde); --l: var(--aa-borde); --white: #fff;
  --shadow: 0 16px 42px rgba(28,45,53,.12);
}
* { box-sizing: border-box; }
html { font-size: 97%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.55; }
body, input, textarea, select, button {
  font-family: Mulish, "Avenir Next", Avenir, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }

/* Tema oscuro: el sistema lo propone y el botón del encabezado permite
   alternarlo. Las variables mantienen la identidad verde y azul de la marca. */
:root[data-aa-theme="dark"] {
  color-scheme: dark;
  --aa-verde: #86c96b; --aa-verde-oscuro: #a0d985; --aa-azul: #aebbe8;
  --aa-borde: #48565c; --aa-texto-suave: #b9c4c3;
  --ink: #dce5e1; --i: #dce5e1; --paper: #20292d; --p: #20292d;
  --line: #48565c; --l: #48565c; --white: #29353a;
  --aa-surface: #29353a; --aa-surface-soft: #304039; --aa-header: #242e33;
  --shadow: 0 16px 42px rgba(0,0,0,.32);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-aa-theme="light"]) {
    color-scheme: dark;
    --aa-verde: #86c96b; --aa-verde-oscuro: #a0d985; --aa-azul: #aebbe8;
    --aa-borde: #48565c; --aa-texto-suave: #b9c4c3;
    --ink: #dce5e1; --i: #dce5e1; --paper: #20292d; --p: #20292d;
    --line: #48565c; --l: #48565c; --white: #29353a;
    --aa-surface: #29353a; --aa-surface-soft: #304039; --aa-header: #242e33;
    --shadow: 0 16px 42px rgba(0,0,0,.32);
  }
}
.aa-theme-toggle {
  display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px;
  padding:0; border:1px solid var(--aa-borde); border-radius:50%;
  background:rgba(255,255,255,.68); color:var(--aa-azul); cursor:pointer;
  font:700 1.1rem/1 system-ui,sans-serif;
}
.aa-theme-toggle:hover { background:#e8f4e7; color:var(--aa-verde-oscuro); }
.aa-theme-toggle:focus-visible { outline:3px solid #6254a5; outline-offset:3px; }
html[data-aa-theme="dark"] .top { background:linear-gradient(120deg,#303647,#242e33 52%,#293b31); }
html[data-aa-theme="dark"] .foot { background:var(--aa-header); }
html[data-aa-theme="dark"] .hero { background:linear-gradient(120deg,#2c4037 0%,#263238 56%,#31394b 100%) !important; }
html[data-aa-theme="dark"] .hero :is(h1,.hero-title) { color:#e2e8ff !important; }
html[data-aa-theme="dark"] .hero p { color:#d2dcda !important; }
html[data-aa-theme="dark"] .aa-theme-toggle { background:#344247; color:#eadf9a; border-color:#5a696f; }
html[data-aa-theme="dark"] .aa-theme-toggle:hover { background:#405147; color:#f5eaa5; }
html[data-aa-theme="dark"] :is(.panel,.card,.error-page,.info-card,.practice,.topic-list,.edition-compare__table,.edition-compare__table tbody tr,.form-data-notice,.form-consent,.form-feedback) {
  background:var(--aa-surface); color:var(--ink); border-color:var(--aa-borde);
}
html[data-aa-theme="dark"] :is(.product,.product.special,.product.eval,.split-box,.about-box) {
  background:var(--aa-surface); color:var(--ink); border-color:var(--aa-borde);
}
html[data-aa-theme="dark"] .split-box.green { background:#304039; }
html[data-aa-theme="dark"] .split-box.join { background:#32394d; border-color:#59627b; }
html[data-aa-theme="dark"] .featured {
  background:linear-gradient(135deg,#334456,#2c3944 58%,#30463c);
  color:#e1e8e5;
}
html[data-aa-theme="dark"] .featured :is(h1,h2,h3,.featured-name) { color:#e8efec; }
html[data-aa-theme="dark"] .featured p { color:#c6d0d0; }
html[data-aa-theme="dark"] .featured .ribbon { color:#a9d991; }
html[data-aa-theme="dark"] .featured .light-button { background:#e1e8e5; color:#344456; border-color:#e1e8e5; }
html[data-aa-theme="dark"] .featured .light-button:hover { background:#f0f5f2; color:#293944; }
html[data-aa-theme="dark"] :is(.collaboration-inner,.notice) { background:var(--aa-surface-soft) !important; border-color:var(--aa-borde) !important; }
html[data-aa-theme="dark"] .collaboration-logo { background:#dce5e1 !important; border-color:#5a696f; }
html[data-aa-theme="dark"] .collaboration-copy strong { color:#dce5e1; }
html[data-aa-theme="dark"] .collaboration-link { color:#a9d991; }
html[data-aa-theme="dark"] main :is(.section,.content-section) { background:transparent !important; }
html[data-aa-theme="dark"] :is(input,textarea,select) { background:#242f33; color:var(--ink); border-color:#5a696f; }
html[data-aa-theme="dark"] :is(.top .links a.nav-current,.button.alt) { background:#30394e; border-color:#606c87; }
html[data-aa-theme="dark"] :is(.tag,.card:hover,.top .links a:not(.cta):hover) { background:#34483d; }
html[data-aa-theme="dark"] .top.mobile-nav-ready .links { background:var(--aa-header); }
html[data-aa-theme="dark"] .aa-wa-panel { background:#2a3937; color:var(--ink); }
html[data-aa-theme="dark"] .aa-wa .aa-wa-bubble { background:#354642; color:var(--ink); }
html[data-aa-theme="dark"] .aa-wa .aa-wa-note { color:var(--aa-texto-suave); }
html[data-aa-theme="dark"] .map .leaflet-tile-pane { filter:grayscale(.35) brightness(.62) contrast(1.12); }
/* Atajo de teclado: fuera del flujo normal y visible únicamente al recibir foco. */
.skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; z-index: 10000;
  width: auto; height: auto; max-width: calc(100vw - 24px); margin: 0;
  padding: 12px 18px; overflow: visible; clip-path: none; white-space: normal;
  border: 2px solid var(--aa-azul); border-radius: 10px;
  background: #fff; color: var(--aa-azul); font-weight: 800;
  outline: 3px solid var(--aa-verde); outline-offset: 2px;
}
main[tabindex="-1"] { scroll-margin-top: 110px; }

/* Encabezado: ancho, tipografía, separación y botones idénticos. */
.top {
  background: linear-gradient(120deg, #f1effa, #fff 52%, #edf7f0);
  border-bottom: 1px solid var(--aa-borde);
  position: sticky; top: 0; z-index: 30;
}
.top .wrap, .foot .wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.top .nav {
  height: 78px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.top .nav > a { flex-shrink: 0; display: flex; align-items: center; }
.top .logo { width: 230px; height: 70px; object-fit: contain; }
.top .links {
  display: flex; gap: 10px; align-items: center;
  font-size: .94rem; font-weight: 650;
}
.top .links a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px; border-radius: 10px; line-height: 1.4; white-space: nowrap;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.top .links a:not(.cta):hover { color: var(--aa-verde); background: #eaf6ec; }
.top .links a.nav-current {
  color: var(--aa-azul);
  background: linear-gradient(120deg, #eeeafa, #edf7f0);
  box-shadow: inset 0 0 0 1px #d9d8e8;
}
.top .links a.nav-current:hover {
  color: var(--aa-azul);
  background: linear-gradient(120deg, #e6e0f7, #e4f2e7);
}
.top .separator { color: var(--aa-azul); font-size: 1.1rem; margin: 0; }

/* Botones compartidos, incluidas las variantes sobre cuadros azules. */
.cta, .button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 18px; border: 0; border-radius: 12px;
  font: inherit; font-weight: 800; line-height: 1.4; text-align: center;
  background: var(--aa-verde); color: #fff; cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.top .links .cta {
  padding: 11px 18px; border: 0; border-radius: 999px;
  background: var(--aa-verde); color: #fff;
  font-size: inherit; font-weight: 800; line-height: 1.4;
}
.cta:hover, .button:hover, .top .links .cta:hover {
  color: #fff; background: var(--aa-verde-oscuro);
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(46,107,43,.28);
}
.button.alt { background: transparent; color: var(--aa-azul); border: 1px solid #afb9dc; }
.button.light-button { background: #fff; color: var(--aa-azul); border: 1px solid rgba(255,255,255,.75); }
.button.alt:hover, .button.light-button:hover {
  background: #f1effa; color: var(--aa-azul); box-shadow: 0 6px 16px rgba(0,0,0,.2);
}
.button:focus-visible, .cta:focus-visible, .top .links a:focus-visible {
  outline: 3px solid #6254a5; outline-offset: 4px;
}
.eyebrow { text-transform: uppercase; letter-spacing: .13em; color: var(--aa-verde); font-weight: 800; font-size: .89rem; }
.tag {
  display: inline-block; font-size: .89rem; font-weight: 800;
  color: var(--aa-verde); background: #e8f4e7;
  border-radius: 999px; padding: 5px 10px;
  transition: background .2s ease, color .2s ease;
}
.card:hover .tag { background: #e9e6fb; color: var(--aa-azul); }
.card { transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card:hover { background: #eaf6ec; border-color: var(--green); transform: translateY(-4px); box-shadow: 0 12px 26px rgba(28,45,53,.1); }

/* Dos renglones explícitos; el tamaño acompaña el ancho real de la columna. */
.hero-copy { min-width: 0; container-type: inline-size; }
.hero .hero-title {
  font-size: clamp(1.65rem, 5vw, 4.7rem);
  font-size: clamp(1.65rem, 10.6cqi, 4.7rem);
  line-height: 1.12; letter-spacing: -.025em;
}
.hero-title > span { display: block; white-space: nowrap; }

/* Pie único, centrado respecto de la página, no del contenido particular. */
.foot { padding: 10px 0 14px; border-top: 1px solid var(--aa-borde); background: #fff; color: var(--aa-texto-suave); font-size: .9rem; line-height: 1.3; }
.footline { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.footer-email { color: inherit; overflow-wrap: anywhere; text-underline-offset: 3px; }
.footer-email:hover { color: var(--aa-azul); }
.footer-email:focus-visible { outline: 2px solid var(--aa-azul); outline-offset: 4px; }
.footer-mark-inline { justify-self: center; display: inline-flex; align-items: center; line-height: 0; }
.footer-mark { width: auto; height: 54px; opacity: 1; object-fit: contain; }
.whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: grid; place-items: center; width: 60px; height: 60px;
  background: #25d366; border: 0; padding: 0; cursor: pointer; border-radius: 50%; transition: transform .2s ease;
  box-shadow: 0 4px 16px #0003;
}
.whatsapp:hover { transform: translateY(-2px) scale(1.05); }
.whatsapp img { width: 36px; height: 40px; filter: brightness(0) invert(1); }
.aa-wa { --aa-wa-bottom: 18px; position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(var(--aa-wa-bottom), env(safe-area-inset-bottom)); z-index: 60; }
.aa-wa .aa-wa-toggle { position: static; margin-left: auto; }
.aa-wa-panel { box-sizing: border-box; width: min(350px, calc(100vw - 36px)); max-height: calc(100dvh - var(--aa-wa-bottom) - 96px); overflow: auto; margin: 0 0 14px; padding: 0; border-radius: 18px; background: #f0f3ee; box-shadow: 0 8px 32px #162e2933; color: #263b33; text-align: left; font: 400 16px/1.5 Mulish, sans-serif; animation: aa-wa-enter .18s ease-out; }
.aa-wa-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 12px 14px 20px; background: #075e54; color: #fff; }
.aa-wa-header strong { display: block; font-size: 17px; }
.aa-wa-header span { display: block; font-size: 12px; opacity: .9; }
.aa-wa .aa-wa-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font: 400 30px/1 sans-serif; }
.aa-wa-close:hover { background: #ffffff20; }
.aa-wa-body { padding: 20px; }
.aa-wa .aa-wa-bubble { margin: 0 0 20px; padding: 14px 16px; border-radius: 0 12px 12px; background: #fff; color: #263b33; font-size: 16px; line-height: 1.6; box-shadow: 0 1px 3px #0001; }
.aa-wa .aa-wa-start { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 14px; box-sizing: border-box; border-radius: 24px; background: #25d366; color: #073e23; font-weight: 800; text-decoration: none; }
.aa-wa-start:hover { background: #20c55e; }
.aa-wa .aa-wa-note { margin: 10px 0 0; text-align: center; font-size: 12px; line-height: 1.4; color: #53655d; }
.aa-wa button:focus-visible, .aa-wa a:focus-visible, .whatsapp:focus-visible { outline: 3px solid #6254a5; outline-offset: 4px; }
@keyframes aa-wa-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .aa-wa-panel { animation: none; } }

/* Reservar el espacio del captcha desde el HTML evita saltos al cargarlo. */
.cf-turnstile { width: 300px; max-width: 100%; margin: 0 0 14px; min-height: 65px; }
.turnstile-feedback { margin: -4px 0 14px; color: #8a2f2f; font-size: .88rem; font-weight: 700; }
[hidden], #barrio-wrap[hidden], .shop[hidden], .zone-heading[hidden] { display: none !important; }
.map[data-mapa-activo]::before, .map[data-mapa-activo]::after { display: none; }
.map .leaflet-tile-pane { filter: saturate(.62) brightness(1.04) contrast(.92); }
.map { scroll-margin-top: var(--aa-mobile-anchor-offset, 90px); isolation: isolate; }
#contacto { scroll-margin-top: var(--aa-mobile-anchor-offset, 90px); }
.shop a.shop-location { display: flex; width: fit-content; max-width: 100%; margin-top: 12px; color: var(--aa-azul); font-size: .9rem; font-weight: 750; }
.shop-location:hover { color: var(--aa-verde); }
.shop-location:focus-visible { outline: 3px solid #6254a5; outline-offset: 3px; }

@media (max-width: 1050px) {
  #contacto { scroll-margin-top: var(--aa-mobile-anchor-offset, 145px); }
  .top .nav { height: auto; min-height: 78px; padding: 10px 0; gap: 10px 18px; flex-wrap: wrap; }
  .top .logo { width: 188px; height: 61px; }
  .top .links { flex: 1 1 620px; justify-content: flex-end; flex-wrap: wrap; gap: 6px; font-size: .86rem; }
  .top .links a:not(.cta) { padding: 8px; }
}
/* Ajustes exclusivos de celulares: no alteran el diseño de escritorio. */
@media (max-width: 760px) {
  #contacto { scroll-margin-top: var(--aa-mobile-anchor-offset, 190px); }
  #indice-fuentes, .legacy-content > a[id^="fuente-"] {
    scroll-margin-top: var(--aa-mobile-anchor-offset, 190px);
  }
  .hero .commerce-title { line-height: 1.12; }
  .product-grid .product { min-height: 0; }
}
@media (max-width: 560px) {
  .top .wrap, .foot .wrap { width: calc(100% - 28px); }
  .top .nav { justify-content: center; }
  .top .logo { width: 200px; }
  .top .links { flex-basis: 100%; justify-content: center; gap: 5px; font-size: .8rem; }
  .top .links a:not(.cta) { padding: 7px; }
  .top .links .cta { padding: 8px 13px; }
}
/* El contacto se mueve fuera del desplegable; no se duplica. */
.mobile-menu-toggle { display: none; }
@media (max-width: 760px) {
  .top.mobile-nav-ready .nav {
    display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    height: 72px; min-height: 72px; padding: 8px 0; gap: 8px;
  }
  .top.mobile-nav-ready .nav > a:not(.mobile-contact) { grid-column: 2; grid-row: 1; justify-self: center; min-width: 0; }
  .top.mobile-nav-ready .logo { width: clamp(112px, 34vw, 156px); height: 56px; }
  .top.mobile-nav-ready .mobile-menu-toggle {
    grid-column: 1; grid-row: 1; justify-self: start;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 9px; border: 1px solid var(--aa-borde);
    border-radius: 9px; background: rgba(255,255,255,.75); color: var(--aa-azul); cursor: pointer;
  }
  .mobile-menu-toggle span { width: 23px; height: 2px; background: currentColor; border-radius: 2px; }
  .mobile-menu-toggle[aria-expanded="true"] { background: #e8f4e7; }
  .mobile-menu-toggle:focus-visible { outline: 3px solid #6254a5; outline-offset: 3px; }
  .top.mobile-nav-ready .mobile-contact {
    grid-column: 3; grid-row: 1; justify-self: end;
    min-height: 44px; padding: 8px 10px; border-radius: 999px;
    font-size: .78rem; white-space: nowrap;
  }
  .top.mobile-nav-ready .links {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    margin: 0; padding: 12px 14px 16px; background: #fff;
    border-bottom: 1px solid var(--aa-borde); box-shadow: 0 12px 22px rgba(28,45,53,.12);
    max-height: calc(100vh - 73px); max-height: calc(100dvh - 73px); overflow-y: auto;
    font-size: .94rem;
  }
  .top.mobile-nav-ready .links a:not(.cta) { justify-content: flex-start; min-height: 44px; padding: 11px 16px; }
  .top.mobile-nav-ready .links .separator { display: none; }
  .top.mobile-nav-ready .aa-theme-toggle { align-self:flex-start; margin:6px 8px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .cta, .top .links a, .whatsapp, .tag { transition: none; }
}

/* Ficha común de formato y presentación para todas las tablas periódicas. */
:is(.format-card, .ficha-formato-escolar) {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 1rem auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(24, 61, 139, .16);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(239,247,242,.96));
  box-shadow: 0 8px 20px rgba(24, 61, 76, .07);
}
:is(.format-card, .ficha-formato-escolar) :is(h2, h3) {
  margin: 0 0 9px;
  color: var(--blue, #183d8b);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
:is(.format-grid, .ficha-formato-escolar__grid) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  margin: 0;
}
:is(.format-item, .ficha-formato-escolar__item) {
  padding: 7px 0;
  border-top: 1px solid rgba(24, 61, 139, .12);
  border-radius: 0;
  background: transparent;
  color: #526174;
  font-size: .92rem;
  line-height: 1.4;
}
:is(.format-item, .ficha-formato-escolar__item) :is(dt, strong) {
  display: block;
  margin: 0 0 3px;
  color: #28712f;
  font-size: inherit;
  font-weight: 700;
}
/* Navegación entre las cinco ediciones: fotografía suave y nombre legible. */
.related-editions { padding-block: 34px 44px; }
.related-editions h2 { margin: 0 0 18px; color: var(--blue); font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.2; }
.related-editions__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.related-editions__card { position: relative; isolation: isolate; container-type: inline-size; display: flex; align-items: flex-end; min-width: 0; aspect-ratio: 4 / 3; padding: 20px; overflow: hidden; border: 1px solid #d2dfd7; border-radius: 16px; background: #edf5ef; color: var(--blue); text-decoration: none; box-shadow: 0 4px 14px rgba(24, 55, 80, .06); transition: border-color .2s ease, box-shadow .2s ease; }
.related-editions__card img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; transition: transform .25s ease; }
.related-editions__card::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(246, 250, 246, .12) 15%, rgba(246, 250, 246, .86) 75%, #f6faf6 100%); }
.related-editions__name { display: block; max-width: 100%; font-size: clamp(.78rem, 10cqi, 1.18rem); font-weight: 800; line-height: 1.25; }
.related-editions__name > span { display: block; white-space: nowrap; }
.related-editions__card:hover { border-color: var(--green); box-shadow: 0 7px 20px rgba(24, 55, 80, .13); }
.related-editions__card:hover img { transform: scale(1.035); }
.related-editions__card:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
@media (max-width: 760px) {
  .related-editions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .related-editions__card { padding: 15px; }
}
@media (max-width: 480px) {
  .related-editions__card { aspect-ratio: 1; padding: 13px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .related-editions__card, .related-editions__card img { transition: none; }
}
:is(.format-item, .ficha-formato-escolar__item) dd { margin: 0; color: inherit; font-size: inherit; line-height: inherit; }
:is(.format-item, .ficha-formato-escolar__item) small { color: inherit; font-size: inherit; line-height: inherit; }
:is(.format-grid, .ficha-formato-escolar__grid) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 620px) {
  :is(.format-grid, .ficha-formato-escolar__grid) { grid-template-columns: 1fr; }
  :is(.format-grid, .ficha-formato-escolar__grid) > :last-child:nth-child(odd) { grid-column: auto; }
}
/* Resultado del envío en la misma página; no almacena datos del visitante. */
.form-feedback{grid-column:1/-1;min-width:0;padding:14px 16px;border:1px solid #dce5e1;border-left:4px solid #283b86;border-radius:10px;background:#fff;color:#283b86;line-height:1.5;overflow-wrap:anywhere;scroll-margin-top:120px}
.form-feedback p{margin:4px 0 0;color:#495767}
.form-feedback[data-estado="error"]{border-left-color:#b42318}
.form-feedback[data-estado="exito"]{border-left-color:#2e6b2b}
.form-feedback:focus-visible{outline:2px solid #283b86;outline-offset:3px}
form[aria-busy="true"] [type="submit"]{cursor:wait;opacity:.75}

/* Disuasión de copiado del contenido público. Los campos del visitante no se bloquean. */
html.aa-copy-guard :is(.top, main, .foot){
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
}
html.aa-copy-guard :is(input, textarea, select, [contenteditable="true"], [contenteditable=""], [contenteditable="plaintext-only"]){
  -webkit-touch-callout:default;
  -webkit-user-select:text;
  user-select:text;
}

/* Movimiento progresivo y reversible en las páginas públicas. */
@keyframes aa-page-float{
  0%,100%{transform:translate3d(0,0,0) rotate(0)}
  50%{transform:translate3d(0,-9px,0) rotate(.12deg)}
}
@media (prefers-reduced-motion:no-preference){
  html.aa-motion-ready .aa-motion{
    opacity:.08;
    transform:translate3d(0,var(--aa-shift,28px),0) scale(.985);
    transition:
      opacity .78s cubic-bezier(.22,.75,.25,1),
      transform .78s cubic-bezier(.22,.75,.25,1);
    transition-delay:var(--aa-forward-delay,0ms);
  }
  html.aa-motion-ready .aa-motion[data-aa-side="above"]{
    --aa-shift:-28px;
    transition-delay:var(--aa-reverse-delay,0ms);
  }
  html.aa-motion-ready .aa-motion.is-visible{
    opacity:1;
    transform:translate3d(0,0,0) scale(1);
  }
  main .aa-float{animation:aa-page-float 7s ease-in-out infinite}
}
@media (max-width:600px) and (prefers-reduced-motion:no-preference){
  html.aa-motion-ready .aa-motion{
    opacity:.16;
    transform:translate3d(0,var(--aa-shift,16px),0) scale(.992);
    transition-duration:.58s;
  }
  html.aa-motion-ready .aa-motion[data-aa-side="above"]{--aa-shift:-16px}
  html.aa-motion-ready .aa-motion.is-visible{opacity:1;transform:translate3d(0,0,0) scale(1)}
  main .aa-float{animation:none}
}
@media (prefers-reduced-motion:reduce){
  html.aa-motion-ready .aa-motion,
  html.aa-motion-ready .aa-motion.is-visible,
  main .aa-float{
    opacity:1;
    transform:none;
    transition:none;
    animation:none;
  }
}
