/* ==========================================================================
   A.D.A.R.E. · agregadosdiplomaticos.org
   Identidad: azul #0E2746 y oro #E6C276 (manual, pág. 4). Marcellus + Public Sans.
   Sin dependencias externas (RGPD): todo se sirve desde el propio dominio.
   ========================================================================== */

@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  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: "Public Sans"; src: url("../fonts/public-sans-italic-latin.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  /* Marca */
  --azul: #0E2746;
  --azul-900: #081A31;
  --azul-950: #050F1F;
  --azul-700: #163A66;
  --azul-500: #2B5288;
  --oro: #E6C276;
  --oro-claro: #F3DDA8;
  --oro-600: #C9A35A;
  --oro-700: #A8823A;
  --oro-800: #7E6128;
  --hielo: #C7D3E7;
  /* Neutros */
  --tinta: #13213A;
  --pizarra: #4B5870;
  --niebla: #8792A6;
  --linea: rgb(14 39 70 / .12);
  --papel: #F7F4EE;
  --blanco: #FFFFFF;
  /* Tipografía */
  --f-marca: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --f-texto: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Medidas */
  --ancho: 76rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radio: 4px;
  --radio-g: 14px;
  --sombra: 0 1px 2px rgb(8 26 49 / .06), 0 8px 24px -8px rgb(8 26 49 / .18);
  --sombra-g: 0 2px 4px rgb(8 26 49 / .08), 0 24px 60px -16px rgb(8 26 49 / .35);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --cabecera: 76px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--cabecera) + 1rem); }
body { margin: 0; font: 400 1.0625rem/1.65 var(--f-texto); color: var(--tinta); background: var(--blanco);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select { font: inherit; color: inherit; }
::selection { background: var(--oro); color: var(--azul-900); }
:focus-visible { outline: 2px solid var(--oro-600); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--blanco); color: var(--azul); padding: .75rem 1rem; border-radius: var(--radio); box-shadow: var(--sombra); transition: top .2s; }
.saltar:focus { top: 1rem; }
.contenedor { width: 100%; max-width: calc(var(--ancho) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ---------- Tipografía ---------- */
.antetitulo { display: inline-flex; align-items: center; gap: .75rem; font-size: .75rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--oro-700); margin-bottom: 1.1rem; }
.antetitulo::before { content: ""; width: 2.25rem; height: 1px; background: currentColor; transform-origin: left; }
.antetitulo--claro { color: var(--oro); }
.titulo-seccion { font-family: var(--f-marca); font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); line-height: 1.1; color: var(--azul); letter-spacing: -.005em; }
.titulo-seccion--claro { color: var(--blanco); }
.titulo-bloque { font-family: var(--f-marca); font-size: 1.6rem; color: var(--azul); margin: 3rem 0 1.25rem; display: flex; align-items: center; gap: 1rem; }
.titulo-bloque::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--oro-600), transparent); }
.prosa { color: var(--pizarra); display: grid; gap: 1.1rem; }
.prosa__destacado { font-size: 1.2rem; line-height: 1.6; color: var(--tinta); }
.vacio { color: var(--pizarra); padding: 2rem; border: 1px dashed var(--linea); border-radius: var(--radio-g); text-align: center; }
.vacio--claro { color: var(--hielo); border-color: rgb(255 255 255 / .2); }

/* ---------- Enlaces y botones ---------- */
.enlace { color: var(--azul); font-weight: 600; font-size: .95rem; text-decoration: none; background: linear-gradient(var(--oro-600), var(--oro-600)) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .35s var(--ease), color .2s; }
.enlace:hover { color: var(--oro-800); background-size: 0 1px; background-position: 100% 100%; }
.enlace--claro { color: var(--blanco); background-image: linear-gradient(var(--oro), var(--oro)); }
.enlace--claro:hover { color: var(--oro-claro); }
.enlaces-fila { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-top: 2.5rem; }
.prosa .enlaces-fila { margin-top: .75rem; }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: .95rem 1.6rem; border-radius: var(--radio); font-weight: 600; font-size: .95rem; letter-spacing: .01em; text-decoration: none; border: 1px solid transparent; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, color .25s, border-color .25s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--oro { background: linear-gradient(180deg, var(--oro) 0%, var(--oro-600) 100%); color: var(--azul-900); box-shadow: 0 1px 0 rgb(255 255 255 / .4) inset, 0 10px 24px -10px rgb(230 194 118 / .7); }
.btn--oro:hover { box-shadow: 0 1px 0 rgb(255 255 255 / .4) inset, 0 14px 30px -10px rgb(230 194 118 / .85); }
.btn--azul { background: var(--azul); color: var(--blanco); }
.btn--azul:hover { background: var(--azul-700); box-shadow: var(--sombra); }
.btn--contorno { border-color: var(--azul); color: var(--azul); background: transparent; }
.btn--contorno:hover { background: var(--azul); color: var(--blanco); }
.btn--peq { padding: .6rem 1.1rem; font-size: .875rem; }
.btn--bloque { width: 100%; }
.btn__flecha { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .3s var(--ease); }
.btn:hover .btn__flecha { transform: translateX(3px); }

.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--linea); background: var(--blanco); font-size: .875rem; font-weight: 500; color: var(--tinta); cursor: pointer; transition: all .2s; white-space: nowrap; }
.chip:hover { border-color: var(--azul); }
.chip[aria-pressed="true"] { background: var(--azul); border-color: var(--azul); color: var(--blanco); }
.chip--oro[aria-pressed="true"] { background: var(--oro-600); border-color: var(--oro-600); color: var(--azul-900); }
.chip--claro { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .2); color: var(--blanco); }
.chip--claro:hover { border-color: var(--oro); }
.chip--claro[aria-pressed="true"] { background: var(--oro); border-color: var(--oro); color: var(--azul-900); }

.etiqueta { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 2px; background: rgb(14 39 70 / .08); color: var(--azul); }
.etiqueta--oro { background: rgb(201 163 90 / .18); color: var(--oro-800); }

.buscador { position: relative; display: block; flex: 1 1 18rem; max-width: 24rem; }
.buscador svg { position: absolute; left: .9rem; top: 50%; translate: 0 -50%; width: 1rem; height: 1rem; fill: none; stroke: var(--niebla); stroke-width: 2; pointer-events: none; }
.buscador input { width: 100%; padding: .75rem 1rem .75rem 2.6rem; border-radius: var(--radio); border: 1px solid rgb(14 39 70 / .2); background: var(--blanco); transition: border-color .2s, box-shadow .2s; }
.buscador input:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 4px rgb(14 39 70 / .08); }
.buscador--claro input { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .2); color: var(--blanco); }
.buscador--claro input::placeholder { color: rgb(255 255 255 / .5); }
.buscador--claro input:focus { border-color: var(--oro); box-shadow: 0 0 0 4px rgb(230 194 118 / .15); }
.selector { padding: .75rem 2.25rem .75rem 1rem; border-radius: var(--radio); appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23E6C276' stroke-width='1.8'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E") right .7rem center / 1rem no-repeat; }
.selector--claro { background-color: var(--azul-900); border: 1px solid rgb(255 255 255 / .2); color: var(--blanco); }

/* ---------- Barra institucional y cabecera ---------- */
.barra-inst { background: var(--azul-950); color: rgb(255 255 255 / .62); font-size: .78rem; }
.barra-inst__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.25rem; }
.barra-inst__in > p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idiomas { display: flex; gap: 1.1rem; flex: none; }
.idiomas a { text-decoration: none; transition: color .2s; display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 .2rem; }
.idiomas a:hover { color: var(--blanco); }
.idiomas a[aria-current] { color: var(--oro); font-weight: 600; }
@media (max-width: 720px) { .barra-inst__in > p { display: none; } .barra-inst__in { justify-content: flex-end; } }

.cabecera { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .92);
  border-bottom: 1px solid var(--linea); transition: background-color .35s, border-color .35s, box-shadow .35s, color .35s; }
/* El desenfoque va en un pseudoelemento: si estuviera en .cabecera, el menú móvil (position: fixed) quedaría encerrado en ella. */
.cabecera::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); pointer-events: none; }
.cabecera__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: var(--cabecera); }
.marca { display: flex; align-items: center; gap: .85rem; text-decoration: none; flex: none; }
.marca__sello { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 1px rgb(230 194 118 / .5), 0 4px 14px -4px rgb(8 26 49 / .4); transition: transform .6s var(--ease); }
.marca:hover .marca__sello { transform: rotate(-12deg) scale(1.04); }
.marca__texto { display: grid; line-height: 1.15; }
.marca__siglas { font-family: var(--f-marca); font-size: 1.35rem; letter-spacing: .22em; color: var(--azul); transition: color .35s; }
.marca__nombre { font-size: .68rem; color: var(--pizarra); max-width: 15rem; transition: color .35s; }
.nav { display: flex; gap: clamp(1rem, 2vw, 1.9rem); font-size: .9rem; font-weight: 500; }
.nav a { position: relative; text-decoration: none; color: var(--tinta); padding: .4rem 0; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--oro-600); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.cabecera__acciones { display: flex; align-items: center; gap: .75rem; }
.hamburguesa { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; place-items: center; }
.hamburguesa__l, .hamburguesa__l::before, .hamburguesa__l::after { display: block; width: 22px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.hamburguesa__l { position: relative; color: var(--azul); }
.hamburguesa__l::before, .hamburguesa__l::after { content: ""; position: absolute; left: 0; }
.hamburguesa__l::before { top: -7px; }
.hamburguesa__l::after { top: 7px; }
.hamburguesa[aria-expanded="true"] .hamburguesa__l { background: transparent; }
.hamburguesa[aria-expanded="true"] .hamburguesa__l::before { transform: translateY(7px) rotate(45deg); background: var(--azul); }
.hamburguesa[aria-expanded="true"] .hamburguesa__l::after { transform: translateY(-7px) rotate(-45deg); background: var(--azul); }

/* Cabecera transparente sobre el azul de la portada (hasta hacer scroll) */
.cabecera--sobre-azul:not(.es-solida) { background: transparent; border-color: rgb(255 255 255 / .1); }
.cabecera--sobre-azul:not(.es-solida)::before { display: none; }
.cabecera--sobre-azul:not(.es-solida) .marca__siglas { color: var(--blanco); }
.cabecera--sobre-azul:not(.es-solida) .marca__nombre { color: var(--hielo); }
.cabecera--sobre-azul:not(.es-solida) .nav a { color: rgb(255 255 255 / .85); }
.cabecera--sobre-azul:not(.es-solida) .nav a:hover { color: var(--blanco); }
.cabecera--sobre-azul:not(.es-solida) .btn--contorno { border-color: rgb(230 194 118 / .7); color: var(--oro); }
.cabecera--sobre-azul:not(.es-solida) .btn--contorno:hover { background: var(--oro); color: var(--azul-900); }
.cabecera--sobre-azul:not(.es-solida) .hamburguesa__l { color: var(--blanco); }
.es-portada .cabecera--sobre-azul { position: fixed; left: 0; right: 0; top: 2.25rem; transition: top .3s var(--ease), background-color .35s, border-color .35s, box-shadow .35s; }
.es-portada .cabecera--sobre-azul.es-solida { top: 0; box-shadow: 0 10px 30px -18px rgb(8 26 49 / .45); }
@media (max-width: 720px) { .es-portada .cabecera--sobre-azul { top: 2.25rem; } }

.menu-movil { position: fixed; inset: var(--cabecera) 0 0; background: var(--blanco); padding: 1.5rem var(--gutter) 2rem; overflow-y: auto; display: grid; align-content: start; gap: 1.5rem; animation: entra-menu .35s var(--ease); }
.menu-movil ul { display: grid; }
.menu-movil li { border-bottom: 1px solid var(--linea); }
.menu-movil li a { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 0; font-family: var(--f-marca); font-size: 1.6rem; color: var(--azul); text-decoration: none; }
.menu-movil__n { font-family: var(--f-texto); font-size: .75rem; color: var(--oro-700); font-weight: 600; }
.menu-movil__idiomas { display: flex; gap: 1.25rem; font-size: .9rem; }
.menu-movil__idiomas a { text-decoration: none; color: var(--pizarra); }
.menu-movil__idiomas a[aria-current] { color: var(--azul); font-weight: 700; }
@keyframes entra-menu { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 1100px) {
  .nav { display: none; }
  .hamburguesa { display: grid; }
}
@media (max-width: 560px) {
  .cabecera__socios { display: none; }
  .marca__nombre { display: none; }
}

/* ---------- Portada: hero con mapa ---------- */
.hero { position: relative; isolation: isolate; color: var(--blanco); background: var(--azul); padding-top: calc(var(--cabecera) + 2.25rem + clamp(2rem, 5vw, 4.5rem)); overflow: hidden; }
.hero__fondo { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 18% 8%, rgb(43 82 136 / .55), transparent 70%),
    radial-gradient(45% 45% at 88% 30%, rgb(230 194 118 / .10), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, rgb(5 15 31 / .9), transparent 70%),
    var(--azul); }
.hero__fondo::after { content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__marca-agua { position: absolute; width: min(46rem, 80vw); right: -12rem; top: -8rem; opacity: .06; animation: gira 240s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.hero__cabeza { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 1024px) { .hero__cabeza { grid-template-columns: 1.5fr 1fr; gap: 4rem; } }
.hero__titulo { font-family: var(--f-marca); font-size: clamp(2.4rem, 1.3rem + 3.4vw, 4.1rem); line-height: 1.04; letter-spacing: -.01em; }
.palabra { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.palabra > span { display: inline-block; }
.hero__lado { max-width: 34rem; }
.hero__entradilla { font-size: 1.125rem; color: rgb(255 255 255 / .78); line-height: 1.7; }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
.hero__nota { font-size: .78rem; color: rgb(255 255 255 / .5); padding: 1.25rem 0 2.5rem; }

.mapa-herr { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); }
.mapa-herr--2 { margin-top: .9rem; }
.mapa-herr__contador { font-size: .85rem; color: rgb(255 255 255 / .7); }
.mapa-herr__contador strong { color: var(--oro); font-family: var(--f-marca); font-size: 1.6rem; font-weight: 400; margin-right: .25rem; vertical-align: -.1em; }
.mapa-herr__der { display: flex; gap: .5rem; }
.zoom { display: flex; border: 1px solid rgb(255 255 255 / .2); border-radius: var(--radio); overflow: hidden; }
.zoom button { width: 2.75rem; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--blanco); transition: background .2s; }
.zoom button + button { border-left: 1px solid rgb(255 255 255 / .2); }
.zoom button:hover { background: rgb(255 255 255 / .08); }
.zoom svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mapa-marco { position: relative; }
.mapa { position: relative; margin-top: 1rem; aspect-ratio: 360 / 140; min-height: 15rem; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mapa.es-ampliado { cursor: grab; touch-action: none; }
.mapa.es-arrastrando { cursor: grabbing; }
.mapa canvas, .mapa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapa__cargando { position: absolute; inset: 0; display: grid; place-items: center; color: rgb(255 255 255 / .5); font-size: .9rem; }
.mapa__capa { position: absolute; inset: 0; pointer-events: none; }
.mapa__marcador, .mapa__madrid, .mapa__destino { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.mapa__marcador { pointer-events: auto; outline: none; }
.mapa__marcador .punto, .mapa__marcador .halo { position: absolute; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
.mapa__marcador .punto { width: 9px; height: 9px; background: var(--azul); border: 1.5px solid var(--oro); transition: background .25s, scale .5s var(--ease), opacity .3s; scale: 0; }
.mapa__marcador .halo { width: 26px; height: 26px; background: rgb(230 194 118 / .28); scale: 0; transition: scale .35s var(--ease); }
.mapa__marcador--nores .punto { border-style: dotted; border-color: rgb(230 194 118 / .7); width: 7px; height: 7px; }
.mapa__capa.es-visible .mapa__marcador .punto { scale: 1; transition-delay: inherit; }
.mapa__marcador:hover .punto, .mapa__marcador:focus-visible .punto, .mapa__marcador.es-activo .punto { background: var(--oro); scale: 1.35; transition-delay: 0s; }
.mapa__marcador:hover .halo, .mapa__marcador:focus-visible .halo, .mapa__marcador.es-activo .halo { scale: 1; }
.mapa__marcador.es-activo .halo { animation: late-halo 1.8s ease-in-out infinite; }
@keyframes late-halo { 50% { scale: 1.5; opacity: .4; } }
.mapa__marcador.es-atenuado { pointer-events: none; }
.mapa__marcador.es-atenuado .punto { opacity: .12; }
.mapa__marcador.es-fuera { visibility: hidden; }
.mapa__madrid .nucleo, .mapa__destino .nucleo { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #C8102E; border: 2px solid var(--blanco); translate: -50% -50%; box-shadow: 0 0 12px rgb(200 16 46 / .8); }
.mapa__destino .nucleo { background: var(--oro); box-shadow: 0 0 14px rgb(230 194 118 / .9); border-color: var(--azul); }
.mapa__madrid .onda, .mapa__destino .onda { position: absolute; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--oro); translate: -50% -50%; animation: onda 2.8s var(--ease) infinite; }
.mapa__madrid .onda + .onda { animation-delay: 1.4s; }
.etiqueta-madrid { position: absolute; left: -.5rem; top: -1.6rem; translate: -100% 0; font-size: .7rem; font-weight: 600; letter-spacing: .08em; color: var(--blanco); text-shadow: 0 1px 4px var(--azul-900); white-space: nowrap; }
@keyframes onda { from { scale: .6; opacity: .9; } to { scale: 4; opacity: 0; } }
.mapa__arco { fill: none; stroke: rgb(230 194 118 / .32); stroke-width: calc(var(--trazo, 1px) * .8); stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease), opacity .4s, stroke .3s; }
.mapa__arco--nores { stroke: rgb(199 211 231 / .14); }
.es-dibujado .mapa__arco { stroke-dashoffset: 0; }
.mapa__arco--oculto { opacity: 0; }
.mapa__arco--activo { stroke: var(--oro); stroke-width: calc(var(--trazo, 1px) * 1.8); opacity: 1; transition-delay: 0s !important; }
.rotulo { position: absolute; z-index: 5; pointer-events: none; translate: -50% calc(-100% - 14px); background: var(--blanco); color: var(--tinta); padding: .5rem .75rem; border-radius: var(--radio); box-shadow: var(--sombra-g); font-size: .85rem; white-space: nowrap; }
.rotulo strong { display: block; font-family: var(--f-marca); font-size: 1.05rem; font-weight: 400; color: var(--azul); }
.rotulo::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: var(--blanco); translate: -50% 0; rotate: 45deg; }

.ficha-mapa { position: absolute; z-index: 6; left: calc(var(--gutter) + 1rem); bottom: 1.5rem; width: min(23rem, calc(100% - 2 * var(--gutter))); max-height: calc(100% - 2rem); overflow-y: auto;
  background: var(--blanco); color: var(--tinta); border-radius: var(--radio-g); box-shadow: var(--sombra-g); padding: 1.5rem; animation: entra-ficha .45s var(--ease); }
.ficha-mapa::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--oro-600), var(--oro), var(--oro-600)); border-radius: var(--radio-g) var(--radio-g) 0 0; }
@keyframes entra-ficha { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.ficha-mapa__cerrar { position: absolute; top: .75rem; right: .75rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: var(--papel); cursor: pointer; display: grid; place-items: center; transition: background .2s, rotate .3s; }
.ficha-mapa__cerrar:hover { background: var(--hielo); rotate: 90deg; }
.ficha-mapa__cerrar svg { width: .9rem; height: .9rem; stroke: var(--azul); stroke-width: 2; fill: none; }
.ficha-mapa__tipo { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--oro-700); }
.ficha-mapa__pais { font-family: var(--f-marca); font-size: 1.9rem; color: var(--azul); line-height: 1.15; margin: .35rem 0 .25rem; }
.ficha-mapa__sub { font-size: .875rem; color: var(--pizarra); }
.ficha-mapa__lista { margin: 1rem 0 1.25rem; padding-top: 1rem; border-top: 1px solid var(--linea); display: grid; gap: .45rem; font-size: .9rem; }
.ficha-mapa__lista li { display: flex; gap: .6rem; align-items: baseline; }
.ficha-mapa__lista li::before { content: ""; flex: none; width: 6px; height: 6px; rotate: 45deg; background: var(--oro-600); translate: 0 -2px; }
@media (max-width: 700px) {
  .ficha-mapa { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-height: 70dvh; border-radius: var(--radio-g) var(--radio-g) 0 0; z-index: 60; }
}

/* ---------- Cifras ---------- */
.cifras { background: var(--azul-900); color: var(--blanco); border-top: 1px solid rgb(230 194 118 / .25); }
.cifras__rejilla { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .cifras__rejilla { grid-template-columns: repeat(4, 1fr); } }
.cifra { display: flex; flex-direction: column-reverse; gap: .4rem; padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 2.5vw, 2rem); position: relative; }
.cifra + .cifra::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: linear-gradient(transparent, rgb(230 194 118 / .5), transparent); }
@media (max-width: 899px) { .cifra:nth-child(3)::before { display: none; } .cifra:nth-child(n+3) { border-top: 1px solid rgb(255 255 255 / .08); } }
.cifra dd { font-family: var(--f-marca); font-size: clamp(2.5rem, 1.8rem + 3vw, 4.25rem); line-height: 1; color: var(--oro); font-variant-numeric: tabular-nums; }
.cifra dt { font-size: .85rem; color: var(--hielo); letter-spacing: .02em; }

/* ---------- Secciones ---------- */
.seccion { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.seccion--corta { padding-block: clamp(3rem, 6vw, 5rem); }
.seccion--papel { background: var(--papel); }
.seccion--azul { background: var(--azul); color: var(--blanco); overflow: hidden; }
.seccion--azul::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 70% at 100% 0%, rgb(43 82 136 / .5), transparent 70%); pointer-events: none; }
.dos-col { display: grid; gap: 1.5rem 5rem; }
@media (min-width: 960px) { .dos-col { grid-template-columns: 1fr 1fr; align-items: start; } .dos-col--abajo { align-items: end; } }
.cabeza-seccion { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); position: relative; }

/* Pilares */
.pilares { display: grid; gap: 1.25rem; margin-top: clamp(3.5rem, 7vw, 5.5rem); }
@media (min-width: 860px) { .pilares { grid-template-columns: repeat(3, 1fr); } }
.pilar { position: relative; padding: 2.25rem 2rem 2rem; border: 1px solid var(--linea); border-radius: var(--radio-g); background: var(--blanco); color: var(--pizarra); font-size: .975rem; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.pilar::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--oro-600), var(--oro)); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .2s; }
.pilar.es-visible::before { transform: scaleX(1); }
.pilar:hover { transform: translateY(-4px); box-shadow: var(--sombra-g); border-color: transparent; }
.pilar__icono { width: 3.25rem; height: 3.25rem; fill: none; stroke: var(--oro-600); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.5rem; }
.pilar__icono * { stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 2s var(--ease) .3s; }
.pilar.es-visible .pilar__icono * { stroke-dashoffset: 0; }
.pilar__n { position: absolute; top: 1.25rem; right: 1.5rem; font-family: var(--f-marca); font-size: 3.5rem; line-height: 1; color: rgb(14 39 70 / .05); transition: color .4s; }
.pilar:hover .pilar__n { color: rgb(201 163 90 / .25); }
.pilar__titulo { font-family: var(--f-marca); font-size: 1.45rem; color: var(--azul); line-height: 1.2; margin-bottom: .75rem; }

/* Lema */
.lema { position: relative; background: var(--azul-900); color: var(--blanco); overflow: hidden; padding-block: clamp(5rem, 10vw, 8rem); text-align: center; }
.lema::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 50% 40%, rgb(43 82 136 / .6), transparent 70%); }
.lema__anillos { position: absolute; left: 50%; top: 42%; translate: -50% -50%; pointer-events: none; }
.lema__anillos span { position: absolute; left: 50%; top: 50%; border: 1px solid rgb(230 194 118 / .14); border-radius: 50%; translate: -50% -50%; }
.lema__anillos span:nth-child(1) { width: 22rem; height: 22rem; border-style: dashed; animation: gira 120s linear infinite; }
.lema__anillos span:nth-child(2) { width: 34rem; height: 34rem; }
.lema__anillos span:nth-child(3) { width: 50rem; height: 50rem; border-color: rgb(230 194 118 / .07); }
.lema__in { position: relative; display: flex; flex-direction: column; align-items: center; }
.lema__sello { position: relative; width: clamp(9rem, 20vw, 13.75rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgb(230 194 118 / .35), 0 0 80px -10px rgb(230 194 118 / .35); }
.lema__sello img { width: 100%; height: 100%; }
.lema__brillo { position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgb(255 255 255 / .35) 50%, transparent 65%); transform: translateX(-120%); animation: destello 7s var(--ease) infinite 1.5s; mix-blend-mode: overlay; }
@keyframes destello { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.lema__texto { margin-top: 2.75rem; font-family: var(--f-marca); font-size: clamp(1.4rem, .6rem + 3.4vw, 3rem); letter-spacing: .32em; padding-left: .32em; color: var(--blanco); }
.lema__texto span { color: var(--oro); }
.lema__texto .letra { display: inline-block; opacity: 0; transform: translateY(.4em); filter: blur(6px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.lema__texto.es-visible .letra { opacity: 1; transform: none; filter: none; }
.lema__trad { margin-top: 1rem; font-size: .9rem; color: var(--hielo); font-style: italic; letter-spacing: .04em; }

/* Actualidad */
.noticias { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .noticias { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; } .noticia--principal { grid-row: span 2; } }
.noticia { position: relative; display: grid; grid-template-columns: 7.5rem 1fr; background: var(--blanco); border-radius: var(--radio-g); overflow: hidden; border: 1px solid var(--linea); transition: transform .4s var(--ease), box-shadow .4s; }
.noticia:hover { transform: translateY(-4px); box-shadow: var(--sombra-g); }
.noticia__visual { position: relative; min-height: 8rem; background: radial-gradient(120% 90% at 30% 20%, var(--azul-500), var(--azul) 55%, var(--azul-900)); display: grid; place-items: center; overflow: hidden; }
.noticia__visual img { width: 60%; opacity: .9; transition: transform .8s var(--ease); }
.noticia:hover .noticia__visual img { transform: scale(1.08) rotate(-6deg); }
.noticia__cuerpo { padding: 1.5rem; display: grid; align-content: start; gap: .75rem; }
.noticia__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; font-size: .8rem; color: var(--pizarra); }
.noticia__titulo { font-family: var(--f-marca); font-size: 1.3rem; line-height: 1.25; color: var(--azul); }
.noticia__enlace { text-decoration: none; }
.noticia__enlace::after { content: ""; position: absolute; inset: 0; }
.noticia__entradilla { color: var(--pizarra); font-size: .95rem; }
.noticia--principal { grid-template-columns: 1fr; grid-template-rows: minmax(13rem, 1fr) auto; }
.noticia--principal .noticia__visual img { width: 9rem; }
.noticia--principal .noticia__cuerpo { padding: 2rem; }
.noticia--principal .noticia__titulo { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
@media (max-width: 560px) { .noticia { grid-template-columns: 1fr; } .noticia__visual { min-height: 8rem; } }

/* Distinciones */
.medallas { display: grid; gap: 2rem 1.5rem; margin-top: clamp(3rem, 6vw, 4.5rem); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.medalla { color: var(--pizarra); font-size: .95rem; }
.medalla__marco { position: relative; border-radius: var(--radio-g); overflow: hidden; background: linear-gradient(160deg, #fff, var(--papel)); aspect-ratio: 15 / 16; box-shadow: inset 0 0 0 1px var(--linea); }
.medalla__marco img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.medalla:hover .medalla__marco img { transform: scale(1.06); }
.medalla__reflejo { position: absolute; inset: -20%; background: linear-gradient(115deg, transparent 40%, rgb(255 255 255 / .55) 50%, transparent 60%); transform: translateX(-100%); transition: transform 1s var(--ease); pointer-events: none; }
.medalla:hover .medalla__reflejo { transform: translateX(100%); }
.medalla__n { font-family: var(--f-marca); color: var(--oro-700); margin-top: 1.25rem; font-size: .95rem; letter-spacing: .2em; }
.medalla__titulo { font-family: var(--f-marca); font-size: 1.35rem; color: var(--azul); margin: .2rem 0 .5rem; }

/* Agenda */
.agenda { position: relative; display: grid; }
.evento { position: relative; display: grid; grid-template-columns: 5.5rem 1fr auto; align-items: center; gap: 1.5rem; padding: 1.75rem 0; border-top: 1px solid rgb(255 255 255 / .12); transition: background .3s; }
.evento:last-child { border-bottom: 1px solid rgb(255 255 255 / .12); }
.evento::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--oro); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.evento:hover::before { transform: scaleX(1); }
.evento__fecha { display: grid; justify-items: center; line-height: 1; }
.evento__dia { font-family: var(--f-marca); font-size: 3.25rem; color: var(--oro); }
.evento__mes { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--hielo); margin-top: .35rem; }
.evento__tipo { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--oro); }
.evento__titulo { font-family: var(--f-marca); font-size: clamp(1.25rem, 1rem + .9vw, 1.65rem); line-height: 1.25; margin: .35rem 0; }
.evento__lugar { font-size: .875rem; color: var(--hielo); }
.evento__flecha { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); display: grid; place-items: center; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.evento__flecha svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: var(--blanco); stroke-width: 1.6; }
.evento:hover .evento__flecha { background: var(--oro); border-color: var(--oro); transform: translateX(4px); }
.evento:hover .evento__flecha svg { stroke: var(--azul-900); }
@media (max-width: 600px) { .evento { grid-template-columns: 4rem 1fr; } .evento__flecha { display: none; } .evento__dia { font-size: 2.5rem; } }

/* Accesos */
.accesos { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .accesos { grid-template-columns: 1fr 1fr; } }
.acceso { position: relative; padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radio-g); display: grid; align-content: start; gap: 1rem; overflow: hidden; }
.acceso .btn { justify-self: start; margin-top: .75rem; }
.acceso__titulo { font-family: var(--f-marca); font-size: 1.85rem; }
.acceso--azul { background: linear-gradient(135deg, var(--azul) 0%, var(--azul-900) 100%); color: var(--blanco); }
.acceso--azul p { color: rgb(255 255 255 / .75); }
.acceso--azul::after { content: ""; position: absolute; right: -4rem; bottom: -4rem; width: 14rem; height: 14rem; border-radius: 50%; border: 1px solid rgb(230 194 118 / .25); box-shadow: 0 0 0 2.5rem rgb(230 194 118 / .04), 0 0 0 5rem rgb(230 194 118 / .03); }
.acceso--papel { background: var(--papel); color: var(--pizarra); border: 1px solid var(--linea); }
.acceso--papel .acceso__titulo { color: var(--azul); }

/* ---------- Páginas interiores ---------- */
.cab-pagina { position: relative; isolation: isolate; background: var(--azul); color: var(--blanco); padding-block: 2rem clamp(3rem, 6vw, 4.5rem); overflow: hidden; }
.cab-pagina__fondo { position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 80% at 10% 0%, rgb(43 82 136 / .6), transparent 70%), radial-gradient(40% 60% at 95% 100%, rgb(230 194 118 / .1), transparent 70%); }
.cab-pagina__fondo::after { content: ""; position: absolute; right: -6rem; top: -6rem; width: 26rem; height: 26rem; border-radius: 50%; border: 1px solid rgb(230 194 118 / .12); box-shadow: 0 0 0 3rem rgb(230 194 118 / .03), 0 0 0 6rem rgb(230 194 118 / .02); }
.cab-pagina__titulo { font-family: var(--f-marca); font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.2rem); line-height: 1.05; margin-top: 2rem; view-transition-name: titulo-pagina; }
.cab-pagina__intro { color: rgb(255 255 255 / .75); max-width: 38rem; }
.migas ol { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; color: rgb(255 255 255 / .55); }
.migas li + li::before { content: "/"; margin-right: .4rem; color: var(--oro-600); }
.migas a { text-decoration: none; transition: color .2s; }
.migas a:hover { color: var(--oro); }
.migas [aria-current] { color: var(--blanco); }

/* Directorio */
.directorio { padding-block: 2.5rem 5rem; }
.dir-herr { display: grid; gap: .85rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--linea); }
.dir-herr__total { font-size: .85rem; color: var(--pizarra); }
.abecedario { position: sticky; top: var(--cabecera); z-index: 10; display: flex; flex-wrap: wrap; gap: .25rem; margin: 0 calc(var(--gutter) * -1) .5rem; padding: .6rem var(--gutter); background: rgb(255 255 255 / .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.abecedario a { width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; text-decoration: none; font-family: var(--f-marca); color: var(--azul); transition: background .2s, color .2s; }
.abecedario a:hover { background: var(--azul); color: var(--oro); }
.abecedario a.es-vacia { opacity: .25; pointer-events: none; }
.dir-letra { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding-top: 2rem; scroll-margin-top: calc(var(--cabecera) + 4rem); }
.dir-letra__l { font-family: var(--f-marca); font-size: 2.75rem; color: var(--oro-600); line-height: 1; position: sticky; top: calc(var(--cabecera) + 4.5rem); align-self: start; }
@media (max-width: 640px) { .dir-letra { grid-template-columns: 1fr; } .dir-letra__l { position: static; font-size: 2rem; border-bottom: 1px solid var(--linea); padding-bottom: .5rem; } }
.dir-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: .75rem; }
.tarjeta-emb { position: relative; display: grid; gap: .2rem; height: 100%; padding: 1.1rem 2.75rem 1.1rem 1.25rem; border: 1px solid var(--linea); border-radius: 10px; text-decoration: none; background: var(--blanco); overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.tarjeta-emb::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--oro-600); transform: scaleY(0); transition: transform .35s var(--ease); }
.tarjeta-emb:hover { border-color: rgb(14 39 70 / .25); box-shadow: var(--sombra); transform: translateY(-2px); }
.tarjeta-emb:hover::before { transform: scaleY(1); }
.tarjeta-emb__pais { font-family: var(--f-marca); font-size: 1.25rem; color: var(--azul); line-height: 1.2; }
.tarjeta-emb__capital { font-size: .85rem; color: var(--pizarra); }
.tarjeta-emb__pie { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-top: .4rem; font-size: .75rem; color: var(--niebla); }
.tarjeta-emb__n { color: var(--oro-800); font-weight: 600; }
.tarjeta-emb__flecha { position: absolute; right: 1rem; top: 50%; width: 1.1rem; height: 1.1rem; translate: 0 -50%; fill: none; stroke: var(--oro-600); stroke-width: 1.8; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease); }
.tarjeta-emb:hover .tarjeta-emb__flecha { opacity: 1; transform: none; }
.nota-fuente { margin-top: 3rem; font-size: .8rem; color: var(--niebla); }

/* Ficha de embajada */
.cab-emb { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 900px) { .cab-emb { grid-template-columns: 1fr minmax(18rem, 26rem); } }
.cab-emb__oficial { font-size: 1.1rem; color: var(--hielo); margin-top: .5rem; }
.estado { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.25rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / .2); font-size: .8rem; color: var(--hielo); }
.estado::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--niebla); }
.estado--activo::before { background: var(--oro); box-shadow: 0 0 0 4px rgb(230 194 118 / .2); animation: late 2.4s ease-in-out infinite; }
@keyframes late { 50% { box-shadow: 0 0 0 7px rgb(230 194 118 / 0); } }
.mini-mapa { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radio-g); background: rgb(5 15 31 / .35); border: 1px solid rgb(255 255 255 / .08); overflow: hidden; }
.mini-mapa canvas, .mini-mapa svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.emb { display: grid; gap: 0 4rem; padding-block: 1rem 4rem; }
@media (min-width: 1000px) { .emb { grid-template-columns: 1fr 1.35fr; } }
.datos { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; padding: 1.75rem; background: var(--papel); border-radius: var(--radio-g); }
.datos > div { display: grid; gap: .25rem; }
.datos__ancho { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--linea); }
.datos dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-700); }
.datos dd { color: var(--tinta); }
.datos__nombre { display: block; font-family: var(--f-marca); font-size: 1.3rem; color: var(--azul); }
.datos__sub { display: block; font-size: .875rem; color: var(--pizarra); }
.sedes { display: grid; gap: .75rem; }
.sede { padding: 1.25rem 1.5rem; border: 1px solid var(--linea); border-radius: 10px; display: grid; gap: .5rem; font-size: .95rem; }
.sede--principal { border-color: rgb(201 163 90 / .5); background: linear-gradient(135deg, rgb(230 194 118 / .08), transparent 60%); }
.sede__nombre { font-family: var(--f-marca); font-size: 1.2rem; color: var(--azul); }
.sede__linea { display: flex; gap: .65rem; align-items: flex-start; color: var(--pizarra); }
.sede__linea svg { flex: none; width: 1.05rem; height: 1.05rem; margin-top: .2rem; fill: none; stroke: var(--oro-600); stroke-width: 1.6; }
.emb__resumen { color: var(--pizarra); font-size: .9rem; margin-top: -.5rem; margin-bottom: 1.25rem; }
.agregadurias { display: grid; gap: 1rem; }
.agregaduria { border-radius: var(--radio-g); border: 1px solid var(--linea); overflow: hidden; }
.agregaduria__nombre { padding: 1rem 1.5rem; background: var(--azul); color: var(--blanco); font-family: var(--f-marca); font-size: 1.2rem; display: flex; align-items: center; gap: .75rem; }
.agregaduria__nombre::before { content: ""; width: 8px; height: 8px; rotate: 45deg; background: var(--oro); flex: none; }
.agregaduria__lista { display: grid; }
.agregado { display: grid; gap: .1rem; padding: 1rem 1.5rem; transition: background .2s; }
.agregado + .agregado { border-top: 1px solid var(--linea); }
.agregado:hover { background: var(--papel); }
.agregado__nombre { font-weight: 600; color: var(--tinta); }
.agregado__cargo { font-size: .9rem; color: var(--pizarra); }
.agregado__desde { font-size: .8rem; color: var(--niebla); }
.contacto-emb { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--linea); }
.contacto-emb p { flex: 1 1 16rem; font-size: .85rem; color: var(--pizarra); }
.vecinas { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding-block: 2rem 4rem; border-top: 1px solid var(--linea); }
.vecina { display: grid; gap: .15rem; text-decoration: none; padding: .75rem 1rem; border-radius: 10px; transition: background .2s; }
.vecina:hover { background: var(--papel); }
.vecina--sig { text-align: right; }
.vecina__et { font-size: .75rem; color: var(--oro-700); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.vecina__pais { font-family: var(--f-marca); font-size: 1.2rem; color: var(--azul); }
@media (max-width: 600px) { .vecinas { grid-template-columns: 1fr 1fr; } .vecinas > .enlace { grid-column: 1 / -1; grid-row: 2; justify-self: center; } }

.error { padding-block: 4rem 3rem; display: grid; gap: 1.25rem; justify-items: start; }
.error__codigo { font-family: var(--f-marca); font-size: clamp(5rem, 15vw, 10rem); line-height: 1; color: var(--oro); opacity: .9; }

/* ---------- Actualidad ---------- */
a.chip { text-decoration: none; }
.chip[aria-current="page"] { background: var(--azul); border-color: var(--azul); color: var(--blanco); }
.cabeza-seccion--filtros { align-items: center; margin-bottom: 2rem; }
.enlace--rss::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .45em; border-radius: 0 0 0 100%; border: 2px solid var(--oro-600); border-width: 2px 2px 0 0; transform: rotate(-90deg) translate(-1px, 1px); }
.noticias--lista { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.noticias--lista .noticia { grid-template-columns: 1fr; grid-template-rows: 12rem auto; }
.noticias--lista .noticia--principal { grid-column: 1 / -1; grid-row: auto; grid-template-columns: 1.2fr 1fr; grid-template-rows: none; }
@media (max-width: 800px) { .noticias--lista .noticia--principal { grid-template-columns: 1fr; grid-template-rows: 14rem auto; } }
.noticia__visual--foto { background: var(--azul-900); }
.noticia__visual--foto img { width: 100%; height: 100%; object-fit: cover; opacity: 1; position: absolute; inset: 0; }
.noticia:hover .noticia__visual--foto img { transform: scale(1.04); }
.noticia__sello { width: 60%; }
.noticia--principal .noticia__sello { width: 9rem; }
.paginacion { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 3rem; }
.paginacion a { min-width: 2.5rem; padding: .5rem .85rem; text-align: center; border: 1px solid var(--linea); border-radius: 999px; text-decoration: none; color: var(--azul); transition: background .2s, color .2s; }
.paginacion a:hover { border-color: var(--azul); }
.paginacion a[aria-current] { background: var(--azul); color: var(--blanco); border-color: var(--azul); }
.contenedor--texto { max-width: calc(46rem + 2 * var(--gutter)); }
.cab-pagina--articulo { padding-bottom: clamp(3rem, 7vw, 5rem); }
.articulo__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 2rem; font-size: .85rem; color: var(--hielo); }
.etiqueta--claro { background: rgb(255 255 255 / .1); color: var(--blanco); }
.etiqueta--claro.etiqueta--oro { background: var(--oro); color: var(--azul-900); }
.articulo__titulo { font-family: var(--f-marca); font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); line-height: 1.1; margin-top: 1rem; view-transition-name: titulo-pagina; }
.articulo__entradilla { margin-top: 1.25rem; font-size: 1.2rem; line-height: 1.6; color: rgb(255 255 255 / .8); }
.articulo__imagen { margin-top: calc(clamp(3rem, 7vw, 5rem) * -.6); margin-bottom: 0; position: relative; z-index: 1; }
.articulo__imagen img { width: 100%; max-height: 38rem; object-fit: cover; border-radius: var(--radio-g); box-shadow: var(--sombra-g); }
.articulo__cuerpo { padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; }
.prosa-articulo { font-size: 1.125rem; line-height: 1.8; color: var(--tinta); }
.prosa-articulo > * + * { margin-top: 1.25em; }
.prosa-articulo h2 { font-family: var(--f-marca); font-size: 1.8rem; color: var(--azul); margin-top: 2em; line-height: 1.2; }
.prosa-articulo h3 { font-family: var(--f-marca); font-size: 1.4rem; color: var(--azul); margin-top: 1.6em; }
.prosa-articulo h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--oro-800); margin-top: 1.6em; }
.prosa-articulo a { color: var(--azul); text-decoration-color: var(--oro-600); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prosa-articulo a:hover { color: var(--oro-800); }
.prosa-articulo ul, .prosa-articulo ol { padding-left: 1.4em; }
.prosa-articulo ul { list-style: none; }
.prosa-articulo ul li { position: relative; }
.prosa-articulo ul li::before { content: ""; position: absolute; left: -1.1em; top: .7em; width: 6px; height: 6px; rotate: 45deg; background: var(--oro-600); }
.prosa-articulo ol { list-style: decimal; }
.prosa-articulo li + li { margin-top: .4em; }
.prosa-articulo blockquote { margin: 2em 0; padding: .5em 0 .5em 1.5em; border-left: 3px solid var(--oro-600); font-family: var(--f-marca); font-size: 1.35rem; line-height: 1.5; color: var(--azul); }
.prosa-articulo hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--oro-600), transparent); margin: 2.5em 0; }
.prosa-articulo:not(.bloque-aviso .prosa-articulo, .retrato__bio .prosa-articulo) > p:first-child { display: flow-root; }
.prosa-articulo:not(.bloque-aviso .prosa-articulo, .retrato__bio .prosa-articulo) > p:first-child::first-letter { font-family: var(--f-marca); float: left; font-size: 3.6em; line-height: .85; padding: .08em .12em 0 0; color: var(--oro-700); }
.articulo__pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding: 2rem 0 4rem; border-top: 1px solid var(--linea); }
.articulo__firma { font-family: var(--f-marca); color: var(--pizarra); letter-spacing: .04em; }
.relacionadas { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.relacionadas a { display: grid; gap: .5rem; height: 100%; padding: 1.5rem; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio-g); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
.relacionadas a:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.relacionadas .etiqueta { justify-self: start; }
.relacionadas strong { font-family: var(--f-marca); font-weight: 400; font-size: 1.2rem; color: var(--azul); line-height: 1.3; }
.relacionadas time { font-size: .8rem; color: var(--pizarra); }

/* ---------- Pie ---------- */
.pie { background: var(--azul-950); color: rgb(255 255 255 / .7); position: relative; }
.pie__filete { height: 3px; background: linear-gradient(90deg, transparent, var(--oro-600) 20%, var(--oro) 50%, var(--oro-600) 80%, transparent); }
.pie__rejilla { display: grid; gap: 2.5rem; padding-block: clamp(3.5rem, 7vw, 5rem); font-size: .9rem; }
@media (min-width: 860px) { .pie__rejilla { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.pie__sello { width: 5.5rem; height: 5.5rem; }
.pie__siglas { font-family: var(--f-marca); font-size: 1.5rem; letter-spacing: .22em; color: var(--blanco); margin-top: 1.25rem; }
.pie__nombre { font-size: .8rem; max-width: 18rem; margin-top: .3rem; }
.pie__lema { font-family: var(--f-marca); font-size: .8rem; letter-spacing: .25em; color: var(--oro); margin-top: 1rem; }
.pie__titulo { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--oro); margin-bottom: 1.1rem; }
.pie__dir { font-style: normal; line-height: 1.8; }
.pie__correo { color: var(--blanco); text-decoration: none; border-bottom: 1px solid rgb(230 194 118 / .5); transition: color .2s, border-color .2s; }
.pie__correo:hover { color: var(--oro); border-color: var(--oro); }
.pie__lista { display: grid; gap: .55rem; }
.pie__lista a { text-decoration: none; transition: color .2s, padding .2s; }
.pie__lista a:hover { color: var(--blanco); padding-left: .25rem; }
.pie__base { border-top: 1px solid rgb(255 255 255 / .08); font-size: .78rem; color: rgb(255 255 255 / .45); }
.pie__base-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: 1.5rem; }

/* ---------- Animaciones de entrada ---------- */
.js [data-aparece] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--retraso, 0) * 110ms); }
.js [data-aparece].es-visible { opacity: 1; transform: none; }
.js .palabra > span { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--retraso, 0) * 70ms + 150ms); }
.js [data-titular].es-visible .palabra > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-aparece], .js .palabra > span, .lema__texto .letra { opacity: 1 !important; transform: none !important; filter: none !important; }
  @view-transition { navigation: none; }
}

@media print {
  .barra-inst, .cabecera, .mapa-herr, .mapa-marco, .pie__filete, .dir-herr, .abecedario { display: none !important; }
  .hero, .cab-pagina, .seccion--azul, .cifras, .lema, .pie { background: none !important; color: #000 !important; }
}

/* Vista previa desde el panel */
/* Aviso para el equipo (mantenimiento, vista previa): flotante abajo, fuera del flujo, para no desplazar ni tapar la cabecera */
.aviso-previa { position: fixed; z-index: 90; left: 50%; bottom: 1rem; translate: -50% 0; width: max-content; max-width: calc(100% - 2rem); margin: 0; padding: .6rem 1.1rem; border-radius: 999px; background: var(--oro); color: var(--azul-900); text-align: center; font-weight: 600; font-size: .85rem; line-height: 1.35; box-shadow: 0 10px 30px -10px rgb(8 26 49 / .55), 0 0 0 1px rgb(8 26 49 / .08); pointer-events: none; }
@media (max-width: 560px) { .aviso-previa { border-radius: 12px; font-size: .78rem; } }

/* ---------- Páginas por bloques ---------- */
.pagina__entradilla { margin-top: 1.25rem; font-size: 1.2rem; line-height: 1.6; }
.pagina__cuerpo { padding-block: clamp(2.5rem, 6vw, 4.5rem); display: grid; gap: 2rem; }
.pagina__cuerpo > .bloque + .bloque-personas, .pagina__cuerpo > .bloque + .bloque-faq { margin-top: 1rem; }
.bloque .titulo-bloque { margin-top: 0; }
.bloque-destacado { font-family: var(--f-marca); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); line-height: 1.45; color: var(--azul); padding-left: 1.5rem; border-left: 2px solid var(--oro-600); }
.bloque-aviso { background: var(--papel); border: 1px solid var(--linea); border-top: 3px solid var(--oro-600); border-radius: var(--radio); padding: 1.5rem 1.75rem; }
.bloque-aviso__titulo { font-weight: 700; color: var(--azul); letter-spacing: .02em; margin-bottom: .5rem; }
.bloque-aviso .prosa-articulo { font-size: 1rem; }
.bloque-imagen { margin: 0; }
.bloque-imagen img { width: 100%; border-radius: var(--radio-g); box-shadow: var(--sombra); }
.bloque-imagen--completo { width: min(100vw - 2 * var(--gutter), var(--ancho)); margin-inline: calc(50% - min(50vw - var(--gutter), var(--ancho) / 2)); }
.bloque-imagen figcaption { margin-top: .75rem; font-size: .875rem; color: var(--pizarra); text-align: center; }
.bloque-doc { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem; padding: 1.25rem 1.5rem; border: 1px solid var(--linea); border-radius: var(--radio-g); background: var(--blanco); color: var(--tinta); text-decoration: none; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.bloque-doc:hover { border-color: var(--oro-600); box-shadow: var(--sombra); transform: translateY(-2px); }
.bloque-doc__icono { position: relative; display: grid; place-items: center; width: 3.25rem; height: 3.75rem; color: var(--azul); }
.bloque-doc__icono svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; }
.bloque-doc__icono span { position: relative; top: .5rem; font-size: .6rem; font-weight: 800; letter-spacing: .08em; background: var(--azul); color: var(--blanco); padding: .1rem .3rem; border-radius: 2px; }
.bloque-doc__texto { display: grid; gap: .2rem; }
.bloque-doc__texto strong { font-family: var(--f-marca); font-size: 1.2rem; font-weight: 400; color: var(--azul); }
.bloque-doc__texto span { color: var(--pizarra); font-size: .95rem; }
.bloque-doc__texto small { color: var(--oro-800); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.bloque-doc__flecha { width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--oro-700); stroke-width: 1.8; transition: transform .3s var(--ease); }
.bloque-doc:hover .bloque-doc__flecha { transform: translateY(3px); }
.personas { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 1rem; }
.persona { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--linea); border-radius: var(--radio-g); background: var(--blanco); transition: border-color .25s, box-shadow .25s; }
.persona:hover { border-color: rgb(201 163 90 / .6); box-shadow: var(--sombra); }
.persona__monograma { flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: radial-gradient(circle at 30% 25%, var(--azul-500), var(--azul) 70%); color: var(--oro-claro); font-family: var(--f-marca); font-size: 1.15rem; letter-spacing: .04em; box-shadow: 0 0 0 2px var(--blanco), 0 0 0 3px rgb(201 163 90 / .55); }
.persona__texto { display: grid; gap: .15rem; min-width: 0; }
.persona__cargo { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--oro-800); }
.persona__nombre { font-weight: 600; color: var(--tinta); line-height: 1.3; }
.persona__nota { font-size: .875rem; color: var(--pizarra); }
.faq { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-weight: 600; color: var(--azul); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: .65rem; height: .65rem; border-right: 1.5px solid var(--oro-700); border-bottom: 1.5px solid var(--oro-700); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s var(--ease); }
.faq[open] summary::after { transform: rotate(225deg); }
.faq__r { padding: 0 0 1.25rem; color: var(--pizarra); line-height: 1.75; }
.subpaginas { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1rem; }
.subpaginas a { position: relative; display: grid; gap: .35rem; height: 100%; padding: 1.5rem 3.5rem 1.5rem 1.5rem; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio-g); text-decoration: none; color: var(--tinta); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.subpaginas a:hover { border-color: var(--oro-600); box-shadow: var(--sombra); transform: translateY(-2px); }
.subpaginas strong { font-family: var(--f-marca); font-weight: 400; font-size: 1.3rem; color: var(--azul); }
.subpaginas span { font-size: .925rem; color: var(--pizarra); }
.subpaginas svg { position: absolute; right: 1.25rem; top: 1.6rem; width: 1.25rem; height: 1.25rem; fill: none; stroke: var(--oro-700); stroke-width: 1.8; transition: transform .3s var(--ease); }
.subpaginas a:hover svg { transform: translateX(3px); }
@media (max-width: 560px) { .bloque-doc { grid-template-columns: auto 1fr; } .bloque-doc__flecha { display: none; } }
/* Personas en tarjetas con retrato (Junta Directiva…) */
.bloque-personas--tarjetas { width: min(100vw - 2 * var(--gutter), 64rem); margin-inline: calc(50% - min(50vw - var(--gutter), 32rem)); }
.retratos { list-style: none; padding: 0; display: grid; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1.5rem; }
.retrato { display: grid; background: var(--blanco); border: 1px solid var(--linea); border-radius: var(--radio-g); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.retrato:hover { transform: translateY(-4px); box-shadow: var(--sombra-g, var(--sombra)); border-color: rgb(201 163 90 / .55); }
.retrato__foto { position: relative; aspect-ratio: 4 / 5; background: radial-gradient(120% 90% at 50% 0%, var(--azul-500), var(--azul) 55%, var(--azul-900)); display: grid; place-items: end center; overflow: hidden; }
.retrato__foto::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, transparent, var(--oro), transparent); }
.retrato__foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.retrato__foto svg { width: 78%; fill: rgb(199 211 231 / .14); stroke: rgb(230 194 118 / .55); stroke-width: .8; }
.retrato__texto { padding: 1.1rem 1.25rem 1.35rem; text-align: center; display: grid; gap: .3rem; }
.retrato__cargo { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-800); }
.retrato__nombre { font-family: var(--f-marca); font-size: 1.25rem; color: var(--azul); line-height: 1.25; }
.retrato--vacio .retrato__nombre { color: var(--niebla); font-family: var(--f-texto); font-size: .95rem; font-style: italic; }
.retrato__nota { font-size: .85rem; color: var(--pizarra); }
.retrato { align-content: start; }
.retrato__bio { margin-top: .5rem; text-align: left; border-top: 1px solid var(--linea); padding-top: .5rem; }
.retrato__bio summary { cursor: pointer; list-style: none; text-align: center; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--azul-500); }
.retrato__bio summary::-webkit-details-marker { display: none; }
.retrato__bio summary::after { content: " +"; color: var(--oro-700); }
.retrato__bio[open] summary::after { content: " −"; }
.retrato__bio .prosa-articulo { font-size: .9rem; line-height: 1.65; margin-top: .6rem; color: var(--pizarra); }
/* ---------- Área de socios ---------- */
.cab-pagina--socios { padding-bottom: clamp(5rem, 9vw, 7rem); }
.acceso-socios { display: grid; justify-items: center; margin-top: calc(clamp(5rem, 9vw, 7rem) * -.65); padding-bottom: clamp(3rem, 7vw, 5rem); position: relative; z-index: 1; }
.acceso-socios__tarjeta { width: min(100%, 28rem); background: var(--blanco); border: 1px solid var(--linea); border-top: 3px solid var(--oro-600); border-radius: var(--radio-g); box-shadow: var(--sombra-g, var(--sombra)); padding: clamp(1.5rem, 4vw, 2.5rem); }
.acceso-socios__sello { width: 3.5rem; height: 3.5rem; margin: -3.4rem auto 1rem; border-radius: 50%; background: var(--azul); display: grid; place-items: center; box-shadow: 0 0 0 4px var(--blanco), 0 8px 20px -8px rgb(8 26 49 / .5); }
.acceso-socios__sello img { width: 100%; height: 100%; border-radius: 50%; }
.acceso-socios__sello svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--oro); stroke-width: 1.6; }
.acceso-socios__titulo { font-family: var(--f-marca); font-weight: 400; font-size: 1.6rem; color: var(--azul); text-align: center; }
.acceso-socios__intro { text-align: center; color: var(--pizarra); font-size: .925rem; margin: .5rem 0 1.25rem; }
.acceso-socios__error, .acceso-socios__ok { padding: .7rem .9rem; border-radius: var(--radio); font-size: .9rem; margin-bottom: 1rem; }
.acceso-socios__error { background: #FBE9EB; color: #8E1B2A; }
.acceso-socios__ok { background: #E5F4EC; color: #1F5F3D; }
.form-socios { display: grid; gap: 1rem; }
.campo { display: grid; gap: .35rem; }
.campo > span { font-size: .82rem; font-weight: 600; color: var(--tinta); }
.campo input { width: 100%; padding: .8rem .9rem; border: 1px solid #CBD2DD; border-radius: var(--radio); font: inherit; background: var(--blanco); transition: border-color .2s, box-shadow .2s; }
.campo input:focus { outline: none; border-color: var(--azul-500); box-shadow: 0 0 0 3px rgb(43 82 136 / .15); }
.campo__codigo { font-family: ui-monospace, Menlo, monospace; font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; }
.acceso-socios__nota { margin-top: 1.25rem; font-size: .82rem; color: var(--pizarra); text-align: center; }
.acceso-socios__acciones { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1rem; }
.acceso-socios__acciones form { margin: 0; }
.acceso-socios__acciones .enlace { background: none; border: 0; cursor: pointer; font: inherit; font-size: .875rem; color: var(--azul-500); text-decoration: underline; text-underline-offset: 3px; }
.area-socios { display: grid; gap: 1.5rem; }
.area-socios__barra { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.area-socios__barra form { margin: 0; }
.area-socios__nota { font-size: .82rem; color: var(--niebla); }

/* ---------- Contacto ---------- */
.contacto { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem); }
@media (min-width: 60em) { .contacto { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); } }
.contacto__info { font-size: .95rem; color: var(--tinta); }
.contacto__info address { font-style: normal; line-height: 1.6; }
.contacto__subtitulo { font-family: var(--f-marca); font-weight: 400; font-size: 1.15rem; color: var(--azul); margin: 1.5rem 0 .4rem; padding-bottom: .4rem; border-bottom: 1px solid var(--linea); }
.contacto__subtitulo:first-child { margin-top: 0; }
.contacto__nota { font-size: .85rem; color: var(--pizarra); margin-top: 1rem; }
.contacto__tarjeta { background: var(--blanco); border: 1px solid var(--linea); border-top: 3px solid var(--oro-600); border-radius: var(--radio-g); box-shadow: var(--sombra-g, var(--sombra)); padding: clamp(1.25rem, 4vw, 2.25rem); min-width: 0; }
.contacto__titulo { font-family: var(--f-marca); font-weight: 400; font-size: 1.6rem; color: var(--azul); margin-bottom: 1rem; }
.contacto__hecho { text-align: center; padding-block: 1rem; }
.contacto__hecho p { color: var(--pizarra); margin: .5rem auto 1.5rem; max-width: 30rem; }
.form-contacto { display: grid; gap: 1rem; }
.form-contacto__fila { display: grid; gap: 1rem; }
@media (min-width: 40em) { .form-contacto__fila { grid-template-columns: 1fr 1fr; } }
.campo select, .campo textarea { width: 100%; padding: .8rem .9rem; border: 1px solid #CBD2DD; border-radius: var(--radio); font: inherit; background: var(--blanco); transition: border-color .2s, box-shadow .2s; }
.campo textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azul-500); box-shadow: 0 0 0 3px rgb(43 82 136 / .15); }
.campo [aria-invalid="true"] { border-color: #B4283C; }
.campo__error { display: block; font-size: .8rem; color: #8E1B2A; }
.form-contacto__trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-contacto__rgpd { font-size: .78rem; line-height: 1.5; color: var(--pizarra); background: var(--fondo-suave, #F7F4EE); border-radius: var(--radio); padding: .75rem .9rem; }
.casilla { display: flex; gap: .6rem; align-items: flex-start; font-size: .875rem; cursor: pointer; }
.casilla input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; flex: none; accent-color: var(--azul); }
.form-contacto .cf-turnstile { min-height: 65px; }
.form-contacto, .form-contacto__fila { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 23.5em) { .form-contacto .cf-turnstile { width: 300px; min-height: 0; height: 56px; transform: scale(.82); transform-origin: 0 0; } }
.form-contacto .btn { justify-self: start; }

/* ---------- Agenda (página y ficha de acto) ---------- */
.evento__enlace { color: inherit; text-decoration: none; }
.evento__enlace::after { content: ""; position: absolute; inset: 0; }   /* toda la fila es clicable */
.evento__enlace:focus-visible { outline: none; }
.evento:has(.evento__enlace:focus-visible) { outline: 2px solid var(--oro-600); outline-offset: 4px; border-radius: 2px; }
.evento--cancelado .evento__titulo { text-decoration: line-through; text-decoration-thickness: 1px; opacity: .7; }
.evento__cancelado { color: #E89AA4; }
.agenda--clara .evento { border-top-color: var(--linea); }
.agenda--clara .evento:last-child { border-bottom-color: var(--linea); }
.agenda--clara .evento__dia, .agenda--clara .evento__tipo { color: var(--oro-700, #A8823A); }
.agenda--clara .evento__mes, .agenda--clara .evento__lugar { color: var(--pizarra); }
.agenda--clara .evento__titulo { color: var(--azul); }
.agenda--clara .evento__cancelado { color: #8E1B2A; }
.agenda--clara .evento__flecha { border-color: var(--linea); }
.agenda--clara .evento__flecha svg { stroke: var(--azul); }
.agenda--clara .evento:hover .evento__flecha { background: var(--azul); border-color: var(--azul); }
.agenda--clara .evento:hover .evento__flecha svg { stroke: var(--blanco); }

.acto__rejilla { display: grid; gap: clamp(1.5rem, 4vw, 3rem); padding-block: clamp(2rem, 5vw, 3rem) clamp(3rem, 7vw, 5rem); }
@media (min-width: 60em) { .acto__rejilla { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; } .acto__ficha { position: sticky; top: 6rem; } }
.acto__texto { min-width: 0; max-width: 44rem; }
.acto__texto .articulo__cuerpo { margin-top: 0; }
.acto__aviso { padding: .8rem 1rem; border-radius: var(--radio); background: #FBE9EB; color: #8E1B2A; margin-bottom: 1.5rem; }
.acto__aviso--pasado { background: var(--fondo-suave, #F7F4EE); color: var(--pizarra); }
.acto__ficha { background: var(--blanco); border: 1px solid var(--linea); border-top: 3px solid var(--oro-600); border-radius: var(--radio-g); box-shadow: var(--sombra); padding: 1.5rem; display: grid; gap: 1rem; }
.acto__ficha dl { display: grid; gap: .25rem; margin: 0; }
.acto__ficha dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--oro-700, #A8823A); margin-top: .6rem; }
.acto__ficha dt:first-child { margin-top: 0; }
.acto__ficha dd { margin: 0; font-size: .95rem; color: var(--tinta); line-height: 1.5; }
.acto__calendario-t { font-size: .8rem; font-weight: 600; color: var(--pizarra); margin-bottom: -.4rem; }
.acto__calendario { display: flex; flex-wrap: wrap; gap: .5rem; }
.acto__cabecera > * { max-width: 52rem; }

/* ---------- Ajustes de móvil (revisión 23-11) ---------- */
@media (max-width: 40em) {
  .medallas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
  .medalla { font-size: .85rem; }
  .medalla__titulo { font-size: 1.1rem; }
  .medalla__n { margin-top: .85rem; }
  .retratos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .retrato__cargo { font-size: .64rem; letter-spacing: .1em; }
  .retrato__nombre { font-size: 1.05rem; }
  .tarjeta-emb { padding: .85rem 2.25rem .85rem 1rem; gap: .1rem; }
  .tarjeta-emb__pie { margin-top: .2rem; }
  .retrato, .retrato__texto { min-width: 0; }
  .retrato__texto { padding: .9rem .6rem 1.1rem; overflow-wrap: anywhere; }
  .mapa-herr__der { flex: 1 1 100%; min-width: 0; }
  .mapa-herr__der .selector { flex: 1; min-width: 0; }
}
@media (max-width: 22.5em) { .retrato__cargo { font-size: .58rem; letter-spacing: .05em; } }
