/* ==========================================================================
   DAE UBO — estilos principales
   Minimalista, tarjetas redondeadas, azul institucional + celeste de acento.
   ========================================================================== */

:root {
	--brand: #0b3a7a;
	--brand-700: #082c5e;
	--brand-900: #061d40;
	--accent: #35c6f4;
	--accent-soft: #e6f7fe;
	--brand-soft: #eaf0fa;
	--ink: #0f1a2e;
	--text: #3d4759;
	--muted: #6b7489;
	--line: #e4e8f0;
	--bg: #f5f7fb;
	--surface: #ffffff;

	/* Paleta del sitio en producción (dae.ubo.cl), usada en tonos suaves */
	--p-navy: #213b75;
	--p-cyan: #3fcfff;
	--p-deep: #1d1145;
	--p-sky: #ace4ff;
	--p-orange: #ff6600;

	--r-xl: 32px;
	--r-lg: 24px;
	--r-md: 18px;
	--r-sm: 12px;
	--pill: 999px;

	--shadow-sm: 0 1px 2px rgba(15, 26, 46, .04), 0 2px 8px rgba(15, 26, 46, .04);
	--shadow: 0 2px 4px rgba(15, 26, 46, .03), 0 12px 32px rgba(15, 26, 46, .07);
	--shadow-lg: 0 24px 60px rgba(8, 44, 94, .16);

	--ico-pdf: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 2.5H6.5a2 2 0 0 0-2 2v15a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7.5z'/%3E%3Cpath d='M14.5 2.5v5h5'/%3E%3C/svg%3E");

	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1240px;
	--gutter: clamp(16px, 4vw, 32px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 999; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }

.dae-icon { flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 22px; border-radius: var(--pill); border: 1px solid transparent;
	font: 600 15px/1.2 var(--font); cursor: pointer; text-align: center;
	transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(11, 58, 122, .22); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-soft { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand-900); }
.btn-light:hover { color: var(--brand); }
.btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-ghost-light:hover { color: #fff; background: rgba(255, 255, 255, .1); }

.chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 4px 11px; border-radius: var(--pill);
	background: var(--brand-soft); color: var(--brand);
	font-size: 12.5px; font-weight: 600; line-height: 1.5;
}
.chip--accent { background: var(--accent-soft); color: #0a7aa3; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--brand); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.eyebrow--light { color: var(--accent); }

.icon-bubble {
	display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 16px;
	background: var(--brand-soft); color: var(--brand); flex-shrink: 0;
	transition: background .25s, color .25s, transform .25s var(--ease);
}
.icon-bubble--solid { background: var(--brand); color: #fff; }
.icon-bubble--light { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--brand-900); color: rgba(255, 255, 255, .78); font-size: 13.5px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: rgba(255, 255, 255, .82); display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 22px; }
.topbar__links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.topbar__links a { padding: 4px 12px; border-radius: var(--pill); }
.topbar__links a:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Cabecera ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255, 255, 255, .86);
	backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(15, 26, 46, .05); }

/* ---------- Portada: la cabecera flota sobre la foto ----------
   Arriba del todo es transparente; al bajar aparece el fondo blanco. */
.home .hero { height: 100svh; margin-top: calc(-1 * var(--hdr, 116px)); }
/* el contenido se centra en lo que queda bajo la cabecera */
.home .hero__inner { padding-top: calc(var(--hdr, 116px) + clamp(16px, 3vh, 36px)); }
.home .topbar { position: relative; z-index: 51; background: transparent; transition: background .3s; }
.home .site-header { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .3s, box-shadow .25s, border-color .25s; }
.home .site-header.is-scrolled, body.home.nav-open .site-header {
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
}
body.home:not(.nav-open) .site-header:not(.is-scrolled) .brand__txt strong,
body.home:not(.nav-open) .site-header:not(.is-scrolled) .brand__txt small,
body.home:not(.nav-open) .site-header:not(.is-scrolled) .main-nav > div > ul > li > a,
body.home:not(.nav-open) .site-header:not(.is-scrolled) .menu > li > a,
body.home:not(.nav-open) .site-header:not(.is-scrolled) .icon-btn { color: #fff; }
body.home:not(.nav-open) .site-header:not(.is-scrolled) .brand__logo { filter: brightness(0) invert(1); }
body.home:not(.nav-open) .site-header:not(.is-scrolled) .brand__divider { background: rgba(255, 255, 255, .4); }
body.home:not(.nav-open) .site-header:not(.is-scrolled) .icon-btn { background: transparent; border-color: rgba(255, 255, 255, .45); }
body.home:not(.nav-open) .site-header:not(.is-scrolled) .icon-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
/* el contorno del hover también en blanco */
/* solo el primer nivel: los submenús tienen fondo blanco y conservan su color */
body.home:not(.nav-open) .site-header:not(.is-scrolled) .main-nav .menu > li > a:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
body.home:not(.nav-open) .site-header:not(.is-scrolled) .main-nav .menu > li.current-menu-item > a,
body.home:not(.nav-open) .site-header:not(.is-scrolled) .main-nav .menu > li.current-menu-ancestor > a {
	background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
body.home:not(.nav-open) .site-header:not(.is-scrolled) .btn-primary { background: #fff; color: var(--brand); border-color: #fff; }
body.home:not(.nav-open) .site-header:not(.is-scrolled) .btn-primary:hover { background: rgba(255, 255, 255, .88); color: var(--brand-700); }
/* la barra superior, sobre la foto, sin su azul */
body.home:not(.nav-open) .topbar a { color: rgba(255, 255, 255, .92); }
body.home:not(.nav-open) .topbar { text-shadow: 0 1px 12px rgba(6, 29, 64, .45); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); flex-shrink: 0; }
.brand__logo { height: 46px; width: auto; }
.brand__divider { width: 1px; height: 34px; background: var(--line); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt strong { font-size: 18px; font-weight: 800; color: var(--brand); letter-spacing: .02em; }
.brand__txt small { font-size: 12.5px; color: var(--muted); font-weight: 500; }

.main-nav { margin-left: auto; }
/* Calificados: .main-nav a lleva display: block y gana por especificidad. */
.main-nav .main-nav__head, .main-nav .main-nav__quick { display: none; }
.main-nav .menu, .main-nav > div > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 14px; border-radius: var(--pill); color: var(--ink); font-weight: 600; font-size: 15px; }
/* hover con contorno (sin fondo) · sección actual en celeste · página actual en
   azul lleno, para que no se confunda "dónde estoy" con "qué estoy apuntando" */
.main-nav a { box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background .2s, color .2s; }
.main-nav a:hover { background: none; color: var(--brand); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 38%, transparent); }
.main-nav .current-menu-ancestor > a, .main-nav .current-menu-parent > a, .main-nav .current-page-ancestor > a { background: var(--brand-soft); color: var(--brand); }
.main-nav .current-menu-item > a { background: var(--brand); color: #fff; }
.main-nav .current-menu-item > a:hover { background: var(--brand-700); color: #fff; }
.main-nav .menu-item-has-children > a { padding-right: 32px; }
.submenu-toggle {
	position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
	border: 0; background: none; padding: 4px; color: var(--muted); cursor: pointer; border-radius: 8px;
	display: grid; place-items: center;
}
.main-nav .sub-menu {
	list-style: none; margin: 0; padding: 10px;
	position: absolute; top: calc(100% + 10px); left: 50%;
	min-width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
	box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
	transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.main-nav .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* Los paneles son blancos: el texto va SIEMPRE oscuro y el hover pinta un fondo
   suave (nunca blanco sobre blanco, tampoco cuando la cabecera es transparente). */
.main-nav .sub-menu { --tone-ink: var(--brand); } /* color de la burbuja del ícono fuera del panel de áreas */
.main-nav .sub-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--r-sm); font-weight: 500; font-size: 14.5px; color: var(--text); box-shadow: none; }
.main-nav .sub-menu a:hover { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.main-nav .sub-menu .current-menu-item > a,
.main-nav .sub-menu .current-menu-item > a:hover { background: var(--brand); color: #fff; font-weight: 600; }
.main-nav .sub-menu .current-menu-item > a:hover { background: var(--brand-700); }
.main-nav .menu-sep { display: block; margin: 8px 6px 4px; padding: 10px 8px 4px; border-top: 1px solid var(--line); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.main-nav .sub-menu.is-mega { display: grid; grid-template-columns: repeat(2, minmax(230px, 1fr)); gap: 2px; min-width: 520px; }
.main-nav .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
	transition: border-color .2s, color .2s;
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); }
.nav-toggle { display: none; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

/* Buscador */
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(6, 29, 64, .55); backdrop-filter: blur(6px); display: grid; place-items: start center; padding: 10vh 16px 16px; }
.search-overlay[hidden] { display: none; }
.search-panel { width: min(880px, 100%); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); overflow: hidden; display: flex; flex-direction: column; max-height: 80vh; }
.search-panel__top { display: flex; gap: 10px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.search-panel__top .search-form { border-color: transparent; background: var(--bg); padding: 8px 8px 8px 20px; }
.search-panel__top .search-form input { font-size: 18px; padding: 10px 0; }
.search-panel__results { overflow-y: auto; padding: 10px; position: relative; min-height: 64px; }
.search-panel__results.is-loading::after { content: ""; position: absolute; top: 0; left: 0; height: 2px; width: 40%; background: var(--accent); animation: dae-load 1s ease-in-out infinite; }
@keyframes dae-load { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.search-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px 12px; }
.search-hints span { width: 100%; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.search-hints button { border: 1px solid var(--line); background: var(--surface); border-radius: var(--pill); padding: 6px 14px; font: 500 14px var(--font); color: var(--text); cursor: pointer; }
.search-hints button:hover { border-color: var(--brand); color: var(--brand); }
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.search-result { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); color: var(--text); }
.search-result:hover, .search-result.is-active { background: var(--brand-soft); color: var(--text); }
.search-result__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--brand-soft); color: var(--brand); }
.search-result__icon.is-post { background: var(--accent-soft); color: #0a7aa3; }
.search-result__icon.is-galeria { background: #fbeaf3; color: #b0357f; }
.search-result__icon.is-evento { background: #e5f6ef; color: #117a5e; }
.search-result.is-active .search-result__icon, .search-result:hover .search-result__icon { background: var(--surface); }
.search-result__txt { display: flex; flex-direction: column; min-width: 0; }
.search-result__txt strong { color: var(--ink); font-size: 15.5px; line-height: 1.35; }
.search-result__txt small { color: var(--muted); font-size: 13.5px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.search-result mark { background: rgba(53, 198, 244, .28); color: inherit; border-radius: 3px; padding: 0 1px; }
.search-result__type { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.search-all { display: block; padding: 12px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14.5px; text-align: center; }
.search-empty { color: var(--muted); padding: 18px 12px; margin: 0; text-align: center; }
.search-form { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 6px 6px 6px 18px; color: var(--muted); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 16px var(--font); color: var(--ink); background: transparent; padding: 8px 0; }

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section--tight { padding: clamp(28px, 4vw, 48px) 0; }
.section--soft { background: var(--surface); border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 420px; margin: 0; color: var(--muted); }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Hero portada (fondo de fotos a pantalla completa) ---------- */
.hero { position: relative; height: calc(100svh - var(--hdr, 116px)); min-height: 560px; display: flex; overflow: hidden; background: var(--p-deep); color: #fff; }
.hero__bg { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 8s linear; will-change: opacity, transform; }
.hero__slide.is-active { opacity: 1; transform: scale(1); }
/* Velo oscuro: la foto es solo apoyo, el texto manda. La última capa es un tinte
   plano que asegura contraste incluso con fotos muy claras. */
.hero__shade { position: absolute; inset: 0; background:
	linear-gradient(90deg, rgba(29, 17, 69, .9) 0%, rgba(33, 59, 117, .72) 48%, rgba(29, 17, 69, .44) 100%),
	linear-gradient(0deg, rgba(29, 17, 69, .72) 0%, rgba(29, 17, 69, 0) 46%),
	rgba(8, 18, 45, .3); }
/* velo oscuro arriba: la cabecera transparente tiene que leerse también sobre fotos claras */
.home .hero__shade::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0;
	height: calc(var(--hdr, 116px) + 90px);
	background: linear-gradient(180deg, rgba(6, 22, 52, .62) 0%, rgba(6, 22, 52, .34) 45%, rgba(6, 22, 52, 0) 100%);
}
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; width: 100%; padding-block: clamp(28px, 5vh, 56px) clamp(20px, 4vh, 36px); }
.hero__copy { margin-block: auto; max-width: 660px; }
.hero__title { color: #fff; margin-bottom: 18px; font-size: clamp(2.2rem, 5vw, 3.9rem); text-shadow: 0 2px 24px rgba(0, 0, 0, .18); }
.hero__lead { font-size: clamp(1rem, 1.4vw, 1.2rem); color: rgba(255, 255, 255, .86); max-width: 560px; margin-bottom: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero__pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__pills a { display: inline-block; padding: 6px 14px; border-radius: var(--pill); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 14px; font-weight: 500; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero__pills a:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn-glass { color: #fff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.hero .btn-light { box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 20px; flex-wrap: wrap; }

/* Últimas noticias: tres slides que se turnan en la misma tarjeta. */
.hero__ultimo { width: min(420px, 100%); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--r-lg); padding: 14px 16px 12px; box-shadow: var(--shadow-lg); color: var(--ink); }
.hero__slider { position: relative; min-height: 76px; }
.hero__noticia { position: absolute; inset: 0; display: flex; align-items: center; gap: 13px; color: var(--ink); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.hero__noticia.is-active { opacity: 1; visibility: visible; transform: none; position: relative; }
.hero__noticia:hover strong { color: var(--p-sky); }
.hero__noticia-img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.hero__noticia-txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hero__noticia-txt .chip { align-self: flex-start; }
.hero__noticia strong { font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.hero__noticia small { color: var(--muted); font-size: 13px; }

.hero__mini { display: flex; gap: 3px; margin-top: 10px; }
.hero__mini button { border: 0; background: none; padding: 5px 3px; cursor: pointer; }
.hero__mini i { display: block; width: 18px; height: 3px; border-radius: 99px; background: rgba(11, 58, 122, .18); transition: background .3s; }
.hero__mini [aria-selected="true"] i { background: var(--brand); }
.hero__todas { float: right; margin-top: 6px; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--brand); }
.hero__todas:hover { color: var(--p-sky); }

/* Columna derecha del pie: álbumes y controles del fondo. */
.hero__lado { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; min-width: 0; }
.hero__albumes { padding: 10px 12px; border-radius: var(--r-lg); background: rgba(10, 12, 40, .38); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-width: 100%; }
.hero__albumes-rot { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .78); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 8px; }
.hero__albumes-rot:hover { color: var(--p-sky); }
.hero__albumes-fila { display: flex; gap: 8px; }
.hero__album { display: grid; gap: 5px; width: 122px; color: #fff; }
.hero__album-img { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; background: rgba(255, 255, 255, .1); aspect-ratio: 4 / 3; }
.hero__album img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.hero__album:hover img { transform: scale(1.07); }
.hero__album-n { position: absolute; left: 6px; bottom: 6px; padding: 1px 8px; border-radius: var(--pill); background: rgba(6, 14, 34, .72); color: #fff; font-size: 10.5px; font-weight: 600; }
.hero__album strong { font-size: 11.5px; line-height: 1.3; font-weight: 600; color: rgba(255, 255, 255, .92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__album:hover strong { color: var(--p-sky); }

.hero__gallery { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: var(--pill); background: rgba(10, 12, 40, .38); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); max-width: 100%; }
.hero__gal-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 13.5px; font-weight: 600; min-width: 0; }
.hero__gal-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.hero__gal-link:hover { color: var(--p-sky); }
.hero__dots { display: flex; gap: 2px; }
.hero__dots button { border: 0; background: none; padding: 6px 3px; cursor: pointer; }
.hero__dots i { display: block; width: 7px; height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .4); transition: width .3s, background .3s; }
.hero__dots [aria-selected="true"] i { width: 20px; background: var(--p-cyan); }
.hero__pause { width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.hero__pause .i-pause { width: 10px; height: 11px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero__pause[aria-pressed="true"] .i-pause { width: 0; height: 0; border: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); color: rgba(255, 255, 255, .8); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.hero__scroll:hover { color: #fff; background: rgba(255, 255, 255, .12); }
@media (prefers-reduced-motion: no-preference) { .hero__scroll { animation: dae-bob 2.4s ease-in-out infinite; } }
@keyframes dae-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
@media (max-width: 860px) { .hero__scroll { display: none; } }
/* Pantallas bajas (laptops de 768px o menos): el contenido se compacta para caber en la altura */
@media (max-height: 860px) and (min-width: 641px) {
	.hero__title { font-size: clamp(2rem, 6.2vh, 3.2rem); margin-bottom: 12px; }
	.hero__lead { font-size: 1.02rem; margin-bottom: 20px; }
	.hero__actions { margin-bottom: 16px; }
	.hero__scroll { display: none; }
	.hero__pills a { padding: 5px 12px; font-size: 13.5px; }
	.hero__ultimo { padding: 12px 14px 10px; }
	.hero__noticia-img { width: 56px; height: 56px; border-radius: 12px; }
	.hero__slider { min-height: 68px; }
	.hero__album { width: 96px; }
}

/* ---------- Tarjetas ---------- */
.link-card {
	position: relative; display: flex; align-items: flex-start; gap: 16px;
	padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
	color: var(--text); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.link-card:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.link-card:hover .icon-bubble { background: var(--brand); color: #fff; }
.link-card__txt { display: flex; flex-direction: column; gap: 4px; padding-right: 22px; }
.link-card__txt strong { color: var(--ink); font-size: 16px; line-height: 1.35; }
.link-card__txt small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.link-card__arrow { position: absolute; top: 20px; right: 20px; color: var(--muted); transition: transform .25s var(--ease), color .25s; }
.link-card:hover .link-card__arrow { color: var(--brand); transform: translate(2px, -2px); }
.link-card--tall { min-height: 150px; }

.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.post-card__link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.post-card__link:hover { color: inherit; }
.card-media { position: relative; overflow: hidden; background: var(--brand-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .card-media img, .gallery-card:hover .card-media img, .news-hero:hover .card-media img, .news-cat:hover .card-media img, .news-lead:hover .card-media img { transform: scale(1.04); }
.card-media.is-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); }
.card-media.is-empty span { font-weight: 800; font-size: 28px; letter-spacing: .1em; color: rgba(11, 58, 122, .25); }
.post-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__title { font-size: 17px; margin: 0; line-height: 1.4; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--brand); }

.news-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.news-lead { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.news-lead a { color: inherit; display: block; }
.news-lead__body { padding: 22px 26px 26px; }
.news-lead__body h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 12px 0 8px; }
.news-lead__body p { color: var(--muted); margin: 0; }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-row {
	display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center;
	padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: inherit;
	transition: box-shadow .25s, border-color .25s, transform .25s var(--ease);
}
.news-row:hover { box-shadow: var(--shadow); border-color: transparent; color: inherit; transform: translateX(3px); }
.news-row .card-media { border-radius: var(--r-sm); }
.news-row time { font-size: 13px; color: var(--muted); }
.news-row h4 { margin: 2px 0 0; font-size: 15.5px; line-height: 1.4; }

.split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-card {
	display: flex; flex-direction: column; gap: 12px; padding: clamp(26px, 3.5vw, 40px);
	border-radius: var(--r-xl); min-height: 280px; transition: transform .25s var(--ease), box-shadow .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); margin: 10px 0 0; }
.feature-card p { margin: 0 0 12px; max-width: 460px; }
.feature-card--navy { background: var(--brand); color: rgba(255, 255, 255, .8); }
.feature-card--navy h3, .feature-card--navy .more { color: #fff; }
.feature-card--navy:hover { color: rgba(255, 255, 255, .8); }
.feature-card--sky { background: var(--accent-soft); color: var(--text); }
.feature-card--sky:hover { color: var(--text); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
.stat { padding: 30px 28px; display: flex; flex-direction: column; gap: 6px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { font-size: clamp(2rem, 3.4vw, 2.75rem); color: var(--brand); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat strong em { font-style: normal; font-size: .5em; margin-left: 4px; color: var(--accent); font-weight: 700; }
.stat > span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* Tarjeta de álbum: foto completa + título y categoría encima (mismo tamaño que la tarjeta anterior) */
.gallery-card { position: relative; display: block; aspect-ratio: 7 / 8; border-radius: var(--r-lg); overflow: hidden; background: var(--p-deep); color: #fff; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s; }
.gallery-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: #fff; }
.gallery-card__media, .gallery-card__media .card-media { position: absolute; inset: 0; height: 100%; aspect-ratio: auto !important; }
.gallery-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 40, 0) 45%, rgba(10, 12, 40, .78) 100%); pointer-events: none; }
.gallery-card__count { position: absolute; z-index: 2; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(10, 12, 40, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: 3px 8px; border-radius: var(--pill); }
.gallery-card__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 14px; display: flex; flex-direction: column; gap: 7px; }
.gallery-card__body h3 { margin: 0; color: #fff; font-size: 13.5px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gallery-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gallery-card__date { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .82); margin-top: -3px; text-transform: capitalize; }
.gallery-card__cat { font-size: 10.5px; font-weight: 700; letter-spacing: .02em; color: var(--p-navy); background: rgba(255, 255, 255, .92); padding: 2px 8px; border-radius: var(--pill); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gallery-card__more { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .8); white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.gallery-card:hover .gallery-card__more { opacity: 1; transform: none; color: #fff; }

.tour-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 32px); }
.tour-card__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.tour-card__head h2 { margin: 0; }
.tour-card__head p { margin: 0; color: var(--muted); max-width: 380px; }
.tour-card__frame { position: relative; aspect-ratio: 16/7; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(135deg, var(--brand-900), var(--brand) 60%, var(--accent)); }
/* Con vista previa: la foto va de fondo y un velo deja legible el botón. */
.tour-card__frame.has-portada { background-size: cover; background-position: center; background-repeat: no-repeat; }
.tour-card__frame.has-portada::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 22, 52, .34) 0%, rgba(8, 22, 52, .58) 100%); transition: background .25s; }
.tour-card__frame.has-portada:hover::before { background: linear-gradient(180deg, rgba(8, 22, 52, .24) 0%, rgba(8, 22, 52, .5) 100%); }
.tour-card__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-card__play { position: absolute; inset: 0; border: 0; background: none; color: #fff; font: 600 16px var(--font); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; cursor: pointer; text-shadow: 0 1px 12px rgba(6, 22, 52, .5); }
.tour-card__play .icon-bubble { width: 72px; height: 72px; border-radius: 50%; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); transition: transform .25s var(--ease); }
.tour-card__play:hover .icon-bubble { transform: scale(1.08); }

.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.info-card h3 { margin: 18px 0 8px; }
.info-card p { margin: 0; color: var(--muted); }

/* ---------- Encabezado de página interna ---------- */
.page-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); }
.page-hero .page-title { margin: 0; max-width: 900px; }
.page-hero .page-lead { color: var(--muted); font-size: 1.1rem; max-width: 720px; margin: 16px 0 0; }
.page-hero--post .meta { margin: 6px 0 16px; }
.page-hero--post .page-title { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .sep { opacity: .5; }

.page-body { padding-bottom: clamp(56px, 7vw, 96px); }
.page-cover { margin: 0 0 32px; border-radius: var(--r-xl); overflow: hidden; }
.page-cover img { width: 100%; max-height: 560px; object-fit: cover; }
.child-pages { margin-top: 48px; }
.h-sub { font-size: 1.25rem; }

.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-pills a { padding: 7px 16px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 500; }
.filter-pills a:hover { border-color: var(--brand); color: var(--brand); }
.filter-pills a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.pagination, .nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }
a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }

.empty-state { text-align: center; max-width: 560px; margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 48px 28px; }
.empty-state .search-form { margin: 20px 0; }
.big-404 { display: block; font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--brand-soft); line-height: 1; letter-spacing: -.05em; -webkit-text-stroke: 2px var(--brand); }

.post-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.post-share span { color: var(--muted); margin-right: 6px; }
.post-share a { padding: 6px 14px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.post-share a:hover { border-color: var(--brand); color: var(--brand); }

/* Filas justificadas (no columnas CSS): cada foto mantiene su proporción (--r = ancho/alto,
   calculada en PHP), todas las de una fila quedan a la misma altura y las de "Ver más"
   se suman al final sin mover las que ya se veían. */
.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-grid::after { content: ""; flex-grow: 999999; } /* la última fila no se estira */
.photo-grid__item { --r: 1.5; display: block; flex: calc(var(--r) * 1000) 1 calc(var(--r) * 220px); aspect-ratio: var(--r); border-radius: var(--r-md); overflow: hidden; background: var(--brand-soft); }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.photo-grid__item.is-nueva { animation: dae-foto-entra .45s var(--ease) both; }
@keyframes dae-foto-entra { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 640px) { .photo-grid { gap: 6px; } .photo-grid__item { flex-basis: calc(var(--r) * 160px); } }
@media (prefers-reduced-motion: reduce) { .photo-grid__item.is-nueva { animation: none; } }
.photo-grid__item:hover img { transform: scale(1.03); }
.photo-grid__item.is-oculta { display: none; }
.photo-grid__mas { text-align: center; margin-top: 22px; }
.back-link { margin-top: 32px; }

/* ---------- Anuncios (notificaciones arriba del sitio) ---------- */
.anuncios {
	position: fixed;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	/* Por ENCIMA de la cabecera (50) para que el aviso tape el menú y se note,
	   pero bajo el velo (55) y el cajón del menú móvil (60). */
	z-index: 52;
	width: min(700px, calc(100vw - 24px));
	display: grid;
	gap: 10px;
	pointer-events: none;
}
.anuncios:empty { display: none; }

.anuncio {
	pointer-events: auto;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: start;
	gap: 14px;
	padding: 14px 14px 14px 16px;
	background: #fff;
	border-radius: var(--r-lg);
	border: 1px solid var(--line);
	border-left: 4px solid var(--u);
	box-shadow: 0 14px 34px rgba(11, 26, 58, .16);
	/* Entran de a una, deslizándose desde arriba. */
	animation: anuncio-entra .45s var(--ease) both;
	animation-delay: calc(var(--i, 0) * .09s + .25s);
}
.anuncio.is-cerrando { animation: anuncio-sale .25s var(--ease) both; }

/* Bajan desde fuera de la pantalla, por encima de la cabecera. */
@keyframes anuncio-entra {
	from { opacity: 0; transform: translateY(calc(-100% - 20px)); }
	to   { opacity: 1; transform: none; }
}
@keyframes anuncio-sale {
	from { opacity: 1; transform: none; }
	to   { opacity: 0; transform: translateY(-14px) scale(.98); }
}

/* Con el menú móvil abierto estorban: el cajón manda. */
body.nav-open .anuncios { display: none; }
@media (prefers-reduced-motion: reduce) {
	.anuncio, .anuncio.is-cerrando { animation-duration: .01ms; }
}

.anuncio__foto { position: relative; flex: none; }
.anuncio__foto a { display: block; width: 76px; height: 76px; border-radius: var(--r-md); overflow: hidden; background: var(--brand-soft); }
.anuncio__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.anuncio__foto a:hover img { transform: scale(1.06); }
.anuncio__lupa {
	position: absolute; right: 5px; bottom: 5px; display: grid; place-items: center;
	width: 24px; height: 24px; border-radius: 50%; background: rgba(8, 18, 45, .66); color: #fff;
}
.anuncio__ico {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: none;
	background: color-mix(in srgb, var(--u) 12%, #fff); color: var(--u);
}

.anuncio__txt { min-width: 0; }
.anuncio__nivel {
	display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
	text-transform: uppercase; color: var(--u); margin-bottom: 2px;
}
.anuncio__tit { display: block; font-size: 15.5px; line-height: 1.3; color: var(--text); }
.anuncio__txt p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.anuncio__cta {
	display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
	font-size: 13.5px; font-weight: 600; color: var(--u); text-decoration: none;
}
.anuncio__cta:hover { text-decoration: underline; }

.anuncio__x {
	flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin: -2px -2px 0 0;
	border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer;
}
.anuncio__x:hover { background: var(--brand-soft); color: var(--text); }

.anuncios__mas {
	pointer-events: auto; justify-self: center; border: 0; cursor: pointer;
	padding: 7px 18px; border-radius: var(--pill);
	background: rgba(11, 26, 58, .82); color: #fff; font: 600 13px/1 inherit; font-family: inherit;
	box-shadow: 0 8px 20px rgba(11, 26, 58, .22);
}
.anuncios__mas:hover { background: var(--brand); }
.anuncio[hidden] { display: none; }

@media (max-width: 700px) {
	.anuncios { top: 8px; width: calc(100vw - 16px); gap: 8px; }
	.anuncio { padding: 12px; gap: 11px; border-radius: var(--r-md); }
	.anuncio__foto a { width: 60px; height: 60px; }
	.anuncio__tit { font-size: 14.5px; }
	.anuncio__txt p { font-size: 13px; }
}

/* ---------- Aviso para instalar la app (pwa-instalar.js) ---------- */
/* Abajo, para no chocar con los anuncios de arriba; bajo el velo (55) y el cajón del menú (60). */
.app-aviso {
	position: fixed; left: 16px; bottom: 16px; z-index: 52;
	width: min(420px, calc(100vw - 32px));
	display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 14px;
	padding: 16px 12px 16px 16px; border-radius: var(--r-lg);
	background: var(--brand-900); color: rgba(255, 255, 255, .8);
	opacity: 0; transform: translateY(24px);
	transition: opacity .3s var(--ease), transform .35s var(--ease);
}
.app-aviso.is-visible { opacity: 1; transform: none; }
.app-aviso[hidden] { display: none; }
body.nav-open .app-aviso { display: none; }
.app-aviso__ico { width: 52px; height: 52px; border-radius: 14px; display: block; }
.app-aviso__txt { min-width: 0; }
.app-aviso__txt strong { display: block; color: #fff; font-size: 15.5px; line-height: 1.3; }
.app-aviso__txt p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; }
.app-aviso__txt b { color: #fff; font-weight: 600; }
.app-aviso__share { display: inline-grid; place-items: center; vertical-align: -4px; color: var(--accent); }
.app-aviso__acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.app-aviso__si, .app-aviso__no {
	border: 0; cursor: pointer; border-radius: var(--pill); padding: 9px 18px;
	font: 600 14px/1.2 var(--font); transition: background .2s, color .2s;
}
.app-aviso__si { background: var(--accent); color: var(--brand-900); }
.app-aviso__si:hover { background: #fff; }
.app-aviso__no { background: rgba(255, 255, 255, .08); color: #fff; }
.app-aviso__no:hover { background: rgba(255, 255, 255, .16); }
.app-aviso__x {
	display: grid; place-items: center; width: 30px; height: 30px; margin: -4px -2px 0 0;
	border: 0; border-radius: 50%; background: none; color: rgba(255, 255, 255, .6); cursor: pointer;
}
.app-aviso__x:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@media (max-width: 700px) {
	.app-aviso { left: 8px; width: calc(100vw - 16px); bottom: max(8px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
	.app-aviso { transition: none; }
}

/* ---------- Álbum de fotos dentro de una entrada ---------- */
.pgal-wrap { margin: 38px 0 8px; display: grid; gap: 22px; }
.pgal { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 18px 18px 20px; }
.pgal__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pgal__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); flex: none; }
.pgal__tit { min-width: 0; }
.pgal__tit h2 { font-size: 18px; margin: 0; line-height: 1.25; }
.pgal__tit p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.pgal__ver { margin-left: auto; flex: none; }

/* Mosaico: una foto grande y el resto en una columna al lado. */
.pgal__mosaico { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 104px; gap: 8px; }
.pgal__foto { display: block; position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--brand-soft); }
.pgal__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.pgal__foto:hover img { transform: scale(1.04); }
.pgal__foto--oculta { display: none; } /* la ventana de imagen igual las recoge */
.pgal__mosaico .pgal__foto:first-child { grid-column: span 2; grid-row: span 2; }
.pgal--n1 .pgal__foto:first-child, .pgal--n2 .pgal__foto:first-child { grid-column: span 4; grid-row: span 2; }
.pgal--n2 .pgal__foto:last-child { grid-column: span 4; }
.pgal--n3 .pgal__foto:first-child { grid-column: span 2; grid-row: span 2; }
.pgal--n3 .pgal__foto:not(:first-child) { grid-column: span 2; }
.pgal__mas { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 18, 45, .55); color: #fff; font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.pgal__foto:hover .pgal__mas { background: rgba(8, 18, 45, .45); }

@media (max-width: 700px) {
	.pgal { padding: 14px; }
	.pgal__head { flex-wrap: wrap; }
	.pgal__ver { margin-left: 0; width: 100%; text-align: center; }
	.pgal__mosaico { grid-auto-rows: 84px; gap: 6px; }
}

/* ---------- Contenido editorial (the_content) ---------- */
.entry-content { font-size: 17px; color: var(--text); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p:empty { display: none; } /* wpautop deja párrafos vacíos entre bloques */

/* El texto corrido se lee en una columna de ~72 caracteres; las grillas,
   tarjetas, tablas y figuras siguen ocupando todo el ancho. */
.entry-content > p, .entry-content > ul, .entry-content > ol, .entry-content > blockquote,
.entry-content > h2, .entry-content > h3, .entry-content > h4, .entry-content > h5, .entry-content > h6,
.dae-seccion > p, .dae-seccion > ul, .dae-seccion > ol, .dae-seccion > blockquote,
.dae-seccion > h3, .dae-seccion > h4, .dae-seccion > h5,
.dae-tabs__panel > p, .dae-tabs__panel > ul, .dae-tabs__panel > ol,
.dae-acc__body > p, .dae-acc__body > ul, .dae-acc__body > ol { max-width: 72ch; }

/* Entradilla: el primer párrafo hace de bajada del título */
.entry-content > p:first-child { font-size: 1.16em; line-height: 1.62; color: var(--ink); }

/* Secciones separadas, para que una página larga se pueda recorrer de un vistazo */
.entry-content h2 { margin-top: 1.6em; }
.entry-content > h2:not(:first-child) { margin-top: 2em; padding-top: 1.3em; border-top: 1px solid var(--line); }
.entry-content h3 { margin-top: 1.6em; font-size: 1.3rem; }
.entry-content h4 { margin-top: 1.5em; font-size: 1.08rem; color: var(--brand); }
.entry-content h5 { margin-top: 1.4em; font-size: 1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.25em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ul li::marker { color: var(--accent); }

/* Listas numeradas: el número como insignia, no como texto suelto */
.entry-content ol { counter-reset: dae-n; list-style: none; padding-left: 0; }
.entry-content ol > li { counter-increment: dae-n; position: relative; padding-left: 40px; }
.entry-content ol > li::before {
	content: counter(dae-n); position: absolute; left: 0; top: .05em;
	width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center;
	background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700;
}

/* Definiciones (modalidades, tipos) en tarjetas de color con distintivo */
.dae-defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--min, 270px), 1fr)); gap: 16px; margin: 1.6em 0 2em; }
/* si alguna tarjeta no lleva distintivo, los títulos igual quedan a la misma altura */
.dae-def:not(:has(.dae-def__badge))::before { content: ""; display: block; height: 25px; margin-bottom: 10px; }
.dae-def {
	background: var(--tone-bg, var(--surface)); border: 1px solid var(--tone-line, var(--line));
	border-radius: var(--r-lg); padding: 20px 22px;
}
.dae-def__badge {
	display: inline-block; margin: 0 0 10px; padding: 3px 12px; border-radius: var(--pill);
	background: #fff; border: 1px solid var(--tone-line); color: var(--tone-ink);
	font-size: 12.5px; font-weight: 600;
}
.entry-content .dae-def h4 { margin: 1.3em 0 6px; font-size: 1.04rem; color: var(--tone-ink, var(--ink)); }
/* el título de la tarjeta manda sobre los subtítulos que vengan dentro */
.entry-content .dae-def > h4:first-of-type { margin: 0 0 10px; font-size: 1.35rem; }
.entry-content .dae-def p { margin: 0 0 .7em; max-width: none; font-size: 15.5px; }
.entry-content .dae-def p:last-child { margin-bottom: 0; }

/* Aviso ("Importante") */
.dae-aviso {
	background: #fff7f1; border: 1px solid #fde3d0; border-radius: var(--r-lg);
	padding: 20px 24px; margin: 1.6em 0 2em;
}
/* h5 incluido: si no, conserva su margen superior y el aviso queda descentrado */
.entry-content .dae-aviso h3, .entry-content .dae-aviso h4, .entry-content .dae-aviso h5 { margin: 0 0 10px; font-size: 1.05rem; color: #c2540f; }
.entry-content .dae-aviso > :first-child { margin-top: 0; }
.entry-content .dae-aviso > :last-child { margin-bottom: 0; }
.entry-content .dae-aviso ul { margin-bottom: 0; }
.entry-content .dae-aviso li::marker { color: #e08b4e; }

/* Bloque que agrupa un título con su grilla de fichas (alterna de tono) */
.dae-bloque {
	background: var(--tone-bg, color-mix(in srgb, var(--brand) 4%, #fff));
	border: 1px solid var(--tone-line, var(--line));
	border-radius: var(--r-xl); padding: clamp(20px, 3vw, 32px); margin: 1.8em 0 26px;
}
.entry-content .dae-bloque > h2 { margin: 0 0 18px; padding-top: 0; border-top: 0; font-size: 1.45rem; color: var(--tone-ink, var(--ink)); }
.entry-content .dae-bloque > h3 { margin: 0 0 18px; color: var(--tone-ink, var(--ink)); }
.entry-content .dae-bloque ul.dae-items { margin: 0; }
.dae-bloque .dae-items > li { border-color: color-mix(in srgb, var(--tone, var(--brand)) 16%, #fff); }

/* Valor de una ficha como distintivo; cada valor distinto mantiene su color */
.dae-badge { display: inline-block; padding: 3px 11px; border-radius: var(--pill); font-size: 13.5px; font-weight: 600; line-height: 1.45; text-align: center; }
/* val-0 es el primer valor de cada ficha, casi siempre el que se repite en
   todas: va en gris para que destaquen los que sí cambian. */
.dae-badge.val-0 { background: #eef1f6; color: var(--text); }
.dae-badge.val-1 { background: var(--brand-soft); color: var(--brand); }
.dae-badge.val-2 { background: var(--accent-soft); color: #0d6f93; }
.dae-badge.val-3 { background: #f5f3fb; color: #4b3a8f; }
.dae-badge.val-4 { background: #fff4ec; color: #c2540f; }
.dae-badge.val-5 { background: color-mix(in srgb, var(--p-sky) 30%, #fff); color: var(--p-navy); }

/* Acordeón de dos líneas convertido en tarjetas (ver convert.py) */
/* Las fichas de una misma fila comparten altura; cada fila se mide sola. */
.entry-content ul.dae-items { list-style: none; padding: 0; margin: 0 0 2em; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; max-width: none; align-items: stretch; }
.dae-items > li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; display: flex; flex-direction: column; }
.dae-item__t { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.dae-items p:not(.dae-item__t) { margin: 0; font-size: 14.5px; color: var(--muted); }
.dae-items p:not(.dae-item__t) strong { color: var(--text); font-weight: 600; }

/* Pares rótulo/valor de una ficha: alineados abajo para que las tarjetas
   de una misma fila compartan la misma línea de datos. */
/* pegados abajo: así los datos quedan a la misma altura en toda la fila */
.dae-datos { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.dae-datos > div { display: grid; gap: 2px; }
.dae-datos dt { font-size: 11.5px; color: var(--muted); line-height: 1.3; text-align: center; }
.dae-datos dd { margin: 0; font-size: 14px; font-weight: 600; color: var(--brand); line-height: 1.3; }

/* Navegación entre las secciones de una página (una sola, pegada arriba) */
.entry-content .dae-secnav {
	position: sticky; top: 78px; z-index: 5; max-width: none;
	display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.8em; padding: 10px 0;
	background: var(--bg); border-bottom: 1px solid var(--line);
}
.entry-content .dae-secnav .btn { font-size: 14.5px; padding: 8px 16px; }
.entry-content .dae-secnav .btn.is-current { background: var(--tone-ink, var(--brand)); color: #fff; border-color: transparent; }

/* Cada sección anclada es una tarjeta con el tono que le corresponde */
.entry-content > .dae-seccion {
	background: var(--tone-bg, var(--surface)); border: 1px solid var(--tone-line, var(--line));
	border-radius: var(--r-xl); padding: clamp(22px, 3.2vw, 38px); margin: 0 0 24px; scroll-margin-top: 150px;
}
.entry-content .dae-seccion > h2, .entry-content .dae-seccion > h3, .entry-content .dae-seccion > h4 {
	margin: 0 0 .7em; padding-top: 0; border-top: 0; color: var(--tone-ink, var(--ink)); font-size: 1.4rem;
}
.entry-content .dae-seccion > p:first-of-type { font-size: 1.06em; color: var(--ink); }
.entry-content .dae-seccion > :last-child { margin-bottom: 0; }
.dae-seccion .dae-acc details { border-color: color-mix(in srgb, var(--tone) 18%, #fff); }
.dae-seccion .dae-figure { background: var(--surface); border: 1px solid var(--tone-line); border-radius: var(--r-lg); padding: 14px; margin: 1.4em 0; }
.dae-seccion ul.dae-docs { border-color: var(--tone-line); }

/* Índice de una página larga */
.dae-toc { max-width: 72ch; margin: 0 0 2.2em; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.dae-toc__t { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.entry-content .dae-toc ol { counter-reset: none; list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.entry-content .dae-toc li { margin: 0; padding-left: 0; }
.entry-content .dae-toc li::before { content: none; }
.entry-content .dae-toc a { font-weight: 600; font-size: 15.5px; text-decoration: none; }
.entry-content .dae-toc a:hover { text-decoration: underline; }

/* Columnas de puro texto (Misión / Objetivo, horarios de atención…) */
.dae-cols--text > .dae-col {
	background: color-mix(in srgb, var(--p-sky) 13%, #fff);
	border: 1px solid color-mix(in srgb, var(--p-sky) 55%, #fff);
	border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 26px);
}
.entry-content .dae-cols--text h2 { margin-top: 0; font-size: 1.25rem; border-top: 0; padding-top: 0; }
.entry-content .dae-cols--text h3, .entry-content .dae-cols--text h4 { margin-top: 0; }
.dae-cols--text p:last-child { margin-bottom: 0; }

/* Texto + imagen de apoyo (diagramas, esquemas) */
.entry-content > .dae-cols--media {
	align-items: center; gap: clamp(20px, 3vw, 40px); margin: 1.8em 0;
	background: color-mix(in srgb, var(--brand) 3%, #fff); border: 1px solid var(--line);
	border-radius: var(--r-xl); padding: clamp(20px, 3vw, 32px);
}
.entry-content .dae-cols--media h3, .entry-content .dae-cols--media h4 { margin-top: 0; font-size: 1.18rem; }
.dae-cols--media .dae-figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; }
.dae-cols--media .dae-figure img { border-radius: var(--r-sm); max-height: 340px; }

/* Lista numerada de ítems cortos, en grilla */
.entry-content ol.dae-lista-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; max-width: none; margin-bottom: 1.6em; }
.entry-content ol.dae-lista-grid > li {
	margin: 0; padding: 12px 16px 12px 48px; background: var(--surface);
	border: 1px solid var(--line); border-radius: var(--r-md); display: flex; align-items: center; min-height: 54px;
}
.entry-content ol.dae-lista-grid > li::before { left: 14px; top: 50%; transform: translateY(-50%); }

/* Foto del contenido: se amplía con el visor */
.entry-content img.is-zoom { cursor: zoom-in; }

/* Página que solo enlaza a sus secciones */
.dae-hub { margin: 0 0 2em; }
.dae-hub .link-card::after { content: "↗"; position: absolute; top: 16px; right: 18px; color: var(--muted); font-size: 15px; transition: transform .25s var(--ease), color .25s; }
.dae-hub .link-card:hover::after { color: var(--brand); transform: translate(2px, -2px); }
.entry-content a:not(.btn):not(.link-card):not(.dae-box):not(.dae-box__link):not(.dae-doc):not(.photo-grid__item):not(.plan-eje):not(.plan-comercio):not(.conv-com__link):not(.tal-tarjeta):not(.pgal__foto):not(.pgal__ver) { text-decoration: underline; text-decoration-color: rgba(11, 58, 122, .3); text-underline-offset: 3px; }
.entry-content a:not(.btn):hover { text-decoration-color: var(--brand); }
.entry-content img { border-radius: var(--r-md); }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.entry-content blockquote { margin: 1.6em 0; padding: 20px 24px; border-radius: var(--r-md); background: var(--accent-soft); border: 0; color: var(--ink); font-size: 1.05em; }
.entry-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.5em 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: 15px; }
.entry-content th, .entry-content td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content th { background: var(--brand-soft); color: var(--ink); font-weight: 700; }
.entry-content iframe { border: 0; border-radius: var(--r-md); }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2.5em 0; }
.entry-content .alignwide { margin-inline: calc(-1 * min(80px, 5vw)); }
.entry-content .wp-block-image img { border-radius: var(--r-lg); }

/* Componentes generados por la migración (dae-*) */
.dae-row { margin: 0 0 clamp(28px, 4vw, 48px); }
.dae-row:last-child { margin-bottom: 0; }
.dae-row--card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(22px, 3.5vw, 40px); }
.dae-cols { display: grid; gap: 24px; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); align-items: start; }
.entry-content > .dae-cols { margin: 0 0 1.8em; }
/* tarjetas de texto: misma altura para que queden simétricas */
.dae-cols--text { align-items: stretch; }
.dae-col > *:last-child { margin-bottom: 0; }
.dae-cols--cards { gap: 18px; align-items: stretch; }
/* Varias tarjetas apiladas en una misma columna: cada una se ajusta a su
   contenido (si no, cada .dae-box pide el 100% y deja un hueco enorme).
   El selector usa ~ porque wpautop deja un <p> vacío entre tarjeta y tarjeta. */
.dae-cols--cards > .dae-col:has(> .dae-box ~ .dae-box) { display: flex; flex-direction: column; gap: 18px; }
.dae-cols--cards > .dae-col:has(> .dae-box ~ .dae-box) > .dae-box { height: auto; }

.dae-box {
	display: flex; flex-direction: column; gap: 10px; height: 100%;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: 24px; color: var(--text); text-decoration: none !important;
	transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
a.dae-box:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
/* Tarjeta enlazada: el enlace va en el título y se estira sobre toda la tarjeta
   (si el <a> envuelve bloques, wpautop la parte en varias). */
.dae-box--enlace { position: relative; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.dae-box--enlace:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.entry-content .dae-box__link { color: var(--ink); text-decoration: none; }
.dae-box__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.dae-box--enlace .more .dae-box__link { color: var(--brand); }
.dae-box__img { margin: -24px -24px 8px; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--brand-soft); }
.dae-box__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 0; }
.dae-box__img--contain img { object-fit: contain; padding: 18px; background: #fff; }
.dae-box h3, .dae-box h4 { margin: 0; font-size: 17px; line-height: 1.35; }
/* Afiche del taller + su ficha, en una sola tarjeta */
.dae-box--afiche { padding: 0; overflow: hidden; gap: 0; }
.dae-box--afiche .dae-figure { margin: 0; padding: 0; border: 0; background: none; }
.dae-box--afiche .dae-figure img { width: 100%; max-height: none; border-radius: 0; }
.dae-box--afiche .dae-hours { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.dae-box--afiche .dae-hours li { padding: 11px 16px; font-size: 14px; }

.dae-box__rotulo { margin: 0 !important; font-size: 12.5px; color: var(--muted); }
.dae-box__rotulo + p { margin: 0; font-size: 16px; }
.entry-content .dae-box a[href^="mailto:"], .entry-content .dae-box a[href^="tel:"] { font-weight: 600; font-size: 17px; text-decoration: none; }
.entry-content .dae-box a[href^="mailto:"]:hover, .entry-content .dae-box a[href^="tel:"]:hover { text-decoration: underline; }
/* tarjeta de contacto: se distingue del resto */
.entry-content .dae-box:has(a[href^="mailto:"]), .entry-content .dae-box:has(a[href^="tel:"]) {
	background: color-mix(in srgb, var(--p-sky) 15%, #fff);
	border-color: color-mix(in srgb, var(--p-sky) 50%, #fff);
}
.dae-box p { margin: 0; font-size: 15px; color: var(--muted); }
.dae-box .more { margin-top: auto; padding-top: 6px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.2em 0; }
.entry-content .btn { text-decoration: none; }

.dae-acc { display: flex; flex-direction: column; gap: 10px; margin: 1.2em 0 1.6em; }
.dae-acc details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .2s, box-shadow .2s; }
.dae-acc details[open] { border-color: transparent; box-shadow: var(--shadow); }
.dae-acc summary {
	list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
	font-weight: 700; color: var(--ink); font-size: 16px; line-height: 1.4;
}
.dae-acc summary::-webkit-details-marker { display: none; }
.dae-acc summary::after {
	content: ""; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
	background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b3a7a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center no-repeat;
	transition: transform .25s var(--ease);
}
.dae-acc details[open] summary::after { transform: rotate(45deg); }
.dae-acc__body { padding: 0 22px 20px; font-size: 16px; }
.dae-acc__body > *:last-child { margin-bottom: 0; }

.dae-tabs { margin: 1.2em 0 2em; }
.dae-tabs__nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); margin-bottom: 24px; width: fit-content; max-width: 100%; }
.dae-tabs__nav button { border: 0; background: none; font: 600 14.5px var(--font); color: var(--muted); padding: 10px 18px; border-radius: var(--pill); cursor: pointer; transition: background .2s, color .2s; }
.dae-tabs__nav button:hover { color: var(--brand); }
.dae-tabs__nav button[aria-selected="true"] { background: var(--brand); color: #fff; }
.dae-tabs__panel[hidden] { display: none; }
/* pestañas anidadas: más chicas, para que se note cuál manda */
.dae-tabs .dae-tabs { margin-top: 0; }
.dae-tabs .dae-tabs > .dae-tabs__nav { background: none; border: 0; padding: 0; gap: 4px; margin-bottom: 18px; }
.dae-tabs .dae-tabs > .dae-tabs__nav button { font-size: 13.5px; padding: 7px 14px; border: 1px solid var(--line); background: var(--surface); }
.dae-tabs .dae-tabs > .dae-tabs__nav button[aria-selected="true"] { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 25%, #fff); }
.dae-tabs__panel > *:last-child { margin-bottom: 0; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 1.2em 0 2em; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 14px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.team-card__photo { width: 100%; aspect-ratio: 1/1; border-radius: var(--r-md); overflow: hidden; margin-bottom: 12px; background: linear-gradient(135deg, var(--brand-soft), var(--accent-soft)); display: grid; place-items: center; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; }
.team-card__initials { font-size: 42px; font-weight: 800; color: rgba(11, 58, 122, .35); letter-spacing: .02em; }
.team-card h3 { font-size: 16.5px; margin: 0; }
.team-card__role { font-size: 14px; color: var(--brand); font-weight: 600; line-height: 1.4; margin: 0; }
.team-card__meta { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }
.team-card details { width: 100%; margin-top: 10px; text-align: left; }
.team-card summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--brand); text-align: center; list-style: none; }
.team-card summary::-webkit-details-marker { display: none; }
.team-card details > div { font-size: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.team-card--lead { grid-column: 1 / -1; flex-direction: row; text-align: left; gap: 32px; padding: 20px; align-items: center; margin: 0 0 2em; }
.team-card--lead h3 { font-size: 1.5rem; }
.team-card--lead .team-card__role { font-size: 15px; }
.team-card__bio { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text); }
.team-card__bio p { margin: 0 0 10px; }
.team-card__bio ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14.5px; }
.entry-content h4 { font-size: 1.2rem; margin-top: 1.6em; }
.team-card--lead .team-card__photo { width: 220px; flex-shrink: 0; margin: 0; }
.team-card--lead details { margin-top: 12px; }
.team-card--lead summary { text-align: left; }

/* ---------- Organigrama del equipo ----------
   Jefatura superior arriba, las dos secciones colgando de ella: Centro de
   Servicios = morado #1D1145 · Bienestar = naranjo #FF6600, los mismos tonos
   suaves de los accesos rápidos de la portada. */
.team-org { margin: 1.4em 0 2.4em; }
.team-org__top .team-card--top {
	margin: 0;
	background: color-mix(in srgb, var(--p-sky) 14%, #fff);
	border-color: color-mix(in srgb, var(--p-sky) 62%, #fff);
}
.team-card--top .team-card__role { color: var(--p-navy); font-size: 15.5px; }
.team-card--top .team-card__bio { border-top-color: color-mix(in srgb, var(--p-sky) 55%, #fff); }
.team-org__scope { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.team-org__scope strong { color: var(--p-navy); font-weight: 600; }

/* conector ⊓ entre la jefatura superior y las secciones */
.team-org__branch { position: relative; height: 40px; }
.team-org__branch::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 18px; margin-left: -1px; background: var(--line); }
/* las patas caen justo en el centro de cada panel (2 columnas con 20px de gap) */
.team-org__branch::after { content: ""; position: absolute; left: calc(25% - 5px); right: calc(25% - 5px); top: 16px; bottom: 0; border: 2px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; }

/* tonos de sección, reutilizables en cualquier bloque de la página:
   0 = Centro de Servicios (morado) · 1 = Bienestar (naranjo) */
.tone-0 { --tone: var(--p-deep); --tone-ink: #4b3a8f; --tone-bg: #f5f3fb; --tone-line: #e6e1f4; }
.tone-1 { --tone: var(--p-orange); --tone-ink: #c2540f; --tone-bg: #fff7f1; --tone-line: #fde3d0; }
.tone-2 { --tone: var(--p-cyan); --tone-ink: #0d6f93; --tone-bg: #eef9ff; --tone-line: #cfeafb; }
.tone-3 { --tone: var(--p-navy); --tone-ink: var(--p-navy); --tone-bg: color-mix(in srgb, var(--p-sky) 16%, #fff); --tone-line: color-mix(in srgb, var(--p-sky) 55%, #fff); }

.team-org__units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.team-unit {
	background: var(--tone-bg); border: 1px solid var(--tone-line);
	border-radius: var(--r-xl); padding: clamp(16px, 2.2vw, 22px);
}
.team-unit__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 0 2px 12px; margin-bottom: 16px; border-bottom: 1px solid var(--tone-line); }
.entry-content .team-unit__head h4 { margin: 0; font-size: 1.05rem; line-height: 1.3; color: var(--tone-ink); }
.team-unit__head p { margin: 0; font-size: 13px; color: var(--muted); }

/* jefatura de cada sección: tarjeta horizontal destacada */
.team-card--jefe {
	flex-direction: row; align-items: center; text-align: left; gap: 16px; padding: 14px;
	background: var(--surface); border-color: color-mix(in srgb, var(--tone) 30%, #fff);
	box-shadow: 0 6px 18px color-mix(in srgb, var(--tone) 8%, transparent);
}
.team-card--jefe .team-card__photo { width: 96px; flex: 0 0 96px; aspect-ratio: 1 / 1; margin: 0; border-radius: var(--r-sm); }
.team-card--jefe .team-card__info { min-width: 0; }
.team-card--jefe h3 { font-size: 17px; margin: 3px 0 0; }
.team-card--jefe .team-card__role { color: var(--tone-ink); font-size: 14px; margin-top: 2px; }
.team-card__badge {
	display: inline-block; margin: 0; padding: 3px 10px; border-radius: var(--pill);
	background: color-mix(in srgb, var(--tone, var(--brand)) 12%, #fff); color: var(--tone-ink, var(--brand));
	font-size: 12.5px; font-weight: 600;
}

/* equipo de la sección */
.team-grid--unit { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 12px; margin: 16px 0 0; }
.team-grid--unit .team-card { padding: 10px 10px 14px; border-color: color-mix(in srgb, var(--tone) 18%, #fff); transition: transform .25s var(--ease), box-shadow .25s; }
.team-grid--unit .team-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--tone) 12%, transparent); }
.team-unit .team-card__photo { background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 12%, #fff), color-mix(in srgb, var(--tone) 4%, #fff)); }
.team-grid--unit .team-card__photo { margin-bottom: 10px; border-radius: var(--r-sm); }
.team-grid--unit .team-card h3 { font-size: 14.5px; }
.team-grid--unit .team-card__role { font-size: 12.8px; color: var(--tone-ink); }
.team-grid--unit .team-card__meta { font-size: 12.2px; margin-top: 2px; }

/* ---------- Resto de la página del equipo (misión, objetivos, secciones) ---------- */

/* la orgánica en imagen queda como apoyo: el organigrama de arriba ya la cuenta */
.dae-figure--org { margin: 0 0 2em; }
.dae-figure--org img { max-height: 400px; border: 1px solid var(--line); }

/* Misión y visión, en tarjeta */
.dae-intro {
	background: color-mix(in srgb, var(--p-sky) 13%, #fff);
	border: 1px solid color-mix(in srgb, var(--p-sky) 58%, #fff);
	border-radius: var(--r-xl); padding: clamp(20px, 3vw, 34px); margin: 0 0 26px;
}
.entry-content .dae-intro > :first-child { margin-top: 0; }
.dae-intro > :last-child { margin-bottom: 0; }

/* "Objetivo General", "Áreas de intervención"… como subtítulo, sin recuadros */
.entry-content .dae-intro h4,
.entry-content .dae-tabs--units .dae-tabs__panel h4 {
	margin: 26px 0 8px; font-size: 1.02rem; color: var(--tone-ink, var(--p-navy));
}
.entry-content .dae-intro > h4:first-child,
.entry-content .dae-tabs--units .dae-tabs__panel > h4:first-child { margin-top: 0; }

/* pestañas que son las mismas secciones del organigrama: mismo color */
.dae-tabs--units .dae-tabs__nav button:hover { color: var(--tone-ink); }
.dae-tabs--units .dae-tabs__nav button[aria-selected="true"] { background: var(--tone-ink); color: #fff; }
.dae-tabs--units .dae-tabs__panel {
	background: var(--tone-bg); border: 1px solid var(--tone-line);
	border-radius: var(--r-xl); padding: clamp(18px, 2.6vw, 30px);
}
.dae-tabs--units .dae-tabs__panel ul:not(.dae-chips) { list-style: none; padding-left: 0; margin: 0 0 1.2em; display: grid; gap: 9px; }
.dae-tabs--units .dae-tabs__panel ul:not(.dae-chips) li { position: relative; padding-left: 24px; margin: 0; }
.dae-tabs--units .dae-tabs__panel ul:not(.dae-chips) li::before {
	content: ""; position: absolute; left: 6px; top: .62em;
	width: 7px; height: 7px; border-radius: 50%; background: var(--tone); opacity: .5;
}

/* listas cortas (áreas de intervención) como etiquetas */
.dae-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dae-chips li {
	margin: 0; padding: 8px 15px; border-radius: var(--pill); background: var(--surface);
	border: 1px solid var(--tone-line, var(--line)); color: var(--tone-ink, var(--text));
	font-size: 13.5px; font-weight: 600; line-height: 1.35;
}

.dae-timeline { list-style: none; margin: 1.2em 0 2em; padding: 0 0 0 28px; position: relative; }
.dae-timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.dae-timeline li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; margin-bottom: 12px; }
.dae-timeline li::before { content: ""; position: absolute; left: -27px; top: 22px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); }
.dae-timeline .when { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: var(--pill); padding: 2px 10px; margin-bottom: 6px; }
.dae-timeline h4 { margin: 0 0 4px; }
.dae-timeline p { margin: 0; font-size: 15px; color: var(--muted); }

.dae-hours { list-style: none; padding: 0; margin: 0 0 1.2em; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.dae-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 18px; font-size: 15px; margin: 0; }
.dae-hours li + li { border-top: 1px solid var(--line); }
.dae-hours li span:last-child { color: var(--brand); font-weight: 600; text-align: right; }

.dae-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; margin: 1.2em 0; background: var(--brand-soft); }
.dae-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.dae-embed--tall { aspect-ratio: 4/3; }
.dae-embed--map { aspect-ratio: 16/10; }

.dae-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink); margin: 1.2em 0; font-size: 15.5px; }

.dae-counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 1.2em 0; }
.dae-counter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
.dae-counter strong { display: block; font-size: 1.9rem; color: var(--brand); font-weight: 800; line-height: 1.1; }
.dae-counter span { font-size: 14px; color: var(--muted); }

/* ---------- Biblioteca de documentos (transparencia, reglamentos) ----------
   Lista en vez de tarjetas: las portadas son casi todas la misma, y así se
   busca y se compara mucho más rápido. */
.dae-library { margin: 0 0 2em; }
.dae-library__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.dae-library__q {
	flex: 1 1 300px; max-width: 420px; font: 400 15px var(--font); color: var(--ink);
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 11px 18px;
}
.dae-library__q:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.dae-library__count { margin: 0; font-size: 13.5px; color: var(--muted); }

.dae-docs-group { margin: 0 0 28px; }
.entry-content .dae-docs-group > h2 { font-size: 1.3rem; margin: 0 0 14px; }
.entry-content .dae-docs-group > h3 { font-size: 1.12rem; margin: 0 0 14px; }
/* el padding de .entry-content ul dejaría las filas sin llegar al borde del recuadro */
.entry-content ul.dae-docs { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.entry-content .dae-docs > li { margin: 0; }
.dae-docs > li + li { border-top: 1px solid var(--line); }
.dae-docs > li[hidden], .dae-docs-group[hidden] { display: none; }
.entry-content a.dae-doc {
	display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 16px;
	padding: 13px 18px; color: var(--ink); text-decoration: none; transition: background .2s;
}
.entry-content a.dae-doc:hover { background: var(--brand-soft); }
/* distintivo de PDF: ícono de documento + el rojo con que se reconocen */
.dae-doc__tag {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	width: 46px; height: 58px; border-radius: 8px;
	background: #fdf3f2; border: 1px solid #f7dad5; color: #b42318;
	font-size: 10px; font-weight: 700; letter-spacing: .04em;
}
.dae-doc__tag::before {
	content: ""; width: 20px; height: 20px; background: currentColor;
	-webkit-mask: var(--ico-pdf) center / contain no-repeat;
	mask: var(--ico-pdf) center / contain no-repeat;
}
.dae-doc__cover { width: 46px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.dae-doc__body { min-width: 0; display: grid; gap: 2px; }
.dae-doc__name { font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.dae-doc__meta { font-size: 13px; color: var(--muted); }
.dae-doc__go { color: var(--brand); font-size: 18px; line-height: 1; transition: transform .2s var(--ease); }
.entry-content a.dae-doc:hover .dae-doc__go { transform: translateX(3px); }

/* documentos con portada propia: tarjeta con la carátula en grande */
.entry-content ul.dae-docs--covers {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px;
	background: none; border: 0; border-radius: 0; overflow: visible; margin-bottom: 18px;
}
.dae-docs--covers > li, .dae-docs--covers > li + li {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
	overflow: hidden; transition: box-shadow .25s, transform .25s var(--ease);
}
.dae-docs--covers > li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.entry-content .dae-docs--covers a.dae-doc {
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "cover cover" "body go";
	gap: 0; padding: 0 0 14px;
}
.entry-content .dae-docs--covers a.dae-doc:hover { background: none; }
.dae-docs--covers .dae-doc__ico { grid-area: cover; }
.dae-docs--covers .dae-doc__cover { width: 100%; height: auto; aspect-ratio: 1 / 1; border: 0; border-radius: 0; }
.dae-docs--covers .dae-doc__body { grid-area: body; padding: 14px 0 0 16px; }
.dae-docs--covers .dae-doc__name { font-size: 16.5px; }
.dae-docs--covers .dae-doc__go { grid-area: go; align-self: center; padding: 14px 16px 0 0; }

/* un tipo de documento por pestaña */
.dae-tabs--docs { margin: 0; }
.dae-tabs--docs .dae-tabs__nav { margin-bottom: 18px; }
.dae-tabs--docs .dae-tabs__nav button { display: inline-flex; align-items: center; gap: 8px; }
.dae-tabs__n { font-size: 12.5px; font-weight: 600; padding: 1px 8px; border-radius: var(--pill); background: var(--brand-soft); color: var(--brand); }
.dae-tabs--docs button[aria-selected="true"] .dae-tabs__n { background: rgba(255, 255, 255, .22); color: #fff; }
.dae-docs-group__title { display: none; }
/* al buscar se muestran todas las pestañas a la vez, con su título */
.dae-library.is-searching .dae-tabs__nav { display: none; }
.dae-library.is-searching .dae-tabs__panel { margin-bottom: 26px; }
.entry-content .dae-library.is-searching .dae-docs-group__title { display: block; font-size: 1.12rem; margin: 0 0 14px; }

.dae-figure { margin: 0 0 1.2em; }
.dae-figure img { border-radius: var(--r-lg); width: auto; max-width: 100%; max-height: 640px; margin-inline: auto; }
.dae-col .dae-figure img { max-height: 520px; }
.dae-logo img { max-height: 110px; width: auto; border-radius: 0; }

.dae-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 1.2em 0; }
.dae-gallery a { display: block; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 1; }
.dae-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }

/* Formulario simple */
.dae-form { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.dae-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.dae-form input, .dae-form textarea { font: 400 15.5px var(--font); padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); }
.dae-form input:focus, .dae-form textarea:focus { outline: 0; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--brand-soft); }
.dae-alert { padding: 14px 18px; border-radius: var(--r-md); font-size: 15px; margin-bottom: 16px; }
.dae-alert--ok { background: #e8f8ef; color: #17643a; }
.dae-alert--err { background: #fdecec; color: #9b1c1c; }

/* Ancho completo (Elementor) */
.full-width-content { min-height: 40vh; }

/* ---------- Pie ---------- */
.site-footer { background: var(--brand-900); color: rgba(255, 255, 255, .72); padding: 0 0 28px; margin-top: 24px; }
.footer-cta {
	position: relative; top: -48px; margin-bottom: -16px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	background: var(--brand); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 44px);
	color: rgba(255, 255, 255, .82); box-shadow: var(--shadow-lg);
	background-image: radial-gradient(circle at 100% 0, rgba(53, 198, 244, .35), transparent 45%);
}
.footer-cta h2 { color: #fff; margin: 0 0 6px; }
.footer-cta p { margin: 0; }
.footer-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 16px 0 40px; }
.footer-brand img { width: 170px; height: auto; margin-bottom: 18px; margin-left: -8px; }
.footer-brand p { font-size: 14.5px; max-width: 360px; }
.site-footer h3 { color: #fff; font-size: 15px; letter-spacing: .02em; margin-bottom: 16px; }
.footer-list, .footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-horario { display: grid; gap: 2px; }
.footer-list .dae-icon { margin-top: 3px; color: var(--accent); }
.site-footer a { color: rgba(255, 255, 255, .78); }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.socials a:hover { background: var(--accent); color: var(--brand-900); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bottom a { display: inline-flex; gap: 6px; align-items: center; }
.footer-bottom__links { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.footer-app {
	display: inline-flex; gap: 6px; align-items: center; padding: 0; border: 0; background: none; cursor: pointer;
	font: inherit; color: var(--accent);
}
.footer-app:hover { color: #fff; }
.footer-app[hidden] { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(6, 12, 26, calc(.94 * var(--lb-o, 1))); display: grid; place-items: center; padding: 56px 72px; overscroll-behavior: contain; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 112px); border-radius: var(--r-md); object-fit: contain; }
/* Escenario para deslizar: tres fotos (anterior, actual, siguiente) en una cinta
   que sigue al dedo. Solo deja al navegador el pellizco; el arrastre de un dedo
   lo maneja main.js. */
.lightbox__stage { position: absolute; inset: 0; overflow: hidden; touch-action: pinch-zoom; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.lightbox__track { position: absolute; inset: 0; will-change: transform; }
.lightbox__slide { position: absolute; inset: 0; display: grid; place-items: center; padding: 56px 72px; }
.lightbox__slide img { -webkit-user-drag: none; }
.lightbox__slide img:not([src]), .lightbox__slide img[src=""] { visibility: hidden; }
.lightbox.is-anim .lightbox__track { transition: transform .24s cubic-bezier(.23, 1, .32, 1); }
.lightbox.is-anim { transition: background-color .24s cubic-bezier(.23, 1, .32, 1); }
.lightbox > button, .lightbox__count { z-index: 2; transition: opacity .2s; }
.lightbox.is-tirando > button, .lightbox.is-tirando .lightbox__count { opacity: var(--lb-o, 1); }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .2); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%) scaleX(-1); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: 14px; }

/* ---------- Animación de entrada ---------- */
@media (prefers-reduced-motion: no-preference) {
	.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
	.reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.main-nav a { padding: 10px 11px; font-size: 14.5px; }
	.hide-sm { display: none; }
}

@media (max-width: 1080px) {
	.nav-toggle { display: inline-grid; }
	/* Dos trampas de la cabecera con el panel lateral abierto:
	   1. su backdrop-filter crea bloque contenedor y recortaba el panel position:fixed;
	   2. el panel vive DENTRO de la cabecera (z-50) y el velo (z-55) lo apagaba.
	   Por eso con el menú abierto la cabecera sube sobre el velo y se queda sin fondo
	   propio: lo que se ve detrás del panel es la página con el velo, no un bloque blanco. */
	.nav-open .site-header, body.home.nav-open .site-header {
		z-index: 60; background: transparent; box-shadow: none; border-bottom-color: transparent;
		backdrop-filter: none; -webkit-backdrop-filter: none;
	}
	.nav-open .site-header .brand { visibility: hidden; } /* la marca la pone el panel */
	/* Con el menú cerrado, el backdrop-filter hace que el panel (fuera de pantalla, a la derecha)
	   cuente para el ancho de la página y el celular la mostraba al doble de ancho. "clip" lo
	   recorta sin crear contenedor de scroll (el sticky sigue andando); abierto no afecta,
	   porque ahí la cabecera pierde el backdrop-filter y el panel vuelve a ser fijo de verdad. */
	.site-header { overflow-x: clip; }
	.main-nav {
		position: fixed; inset: 0 0 0 auto; width: min(400px, 100%); z-index: 60;
		background: var(--surface); padding: 0 20px 32px; overflow-y: auto;
		box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .35s var(--ease);
		margin: 0;
	}
	.nav-open .main-nav { transform: none; }
	/* La marca ocupa la misma franja que la cabecera; el hueco de la derecha deja
	   libres los botones de buscar y cerrar, que flotan por encima del panel. */
	.main-nav .main-nav__head {
		display: flex; align-items: center; gap: 12px; color: var(--ink);
		min-height: var(--hdr, 116px); padding: 8px 100px 8px 0; margin-bottom: 10px;
		border-radius: 0; border-bottom: 1px solid var(--line);
	}
	/* la marca no es un ítem del menú: sin contorno ni cambio de color al pasarle el mouse */
	.main-nav .main-nav__head:hover { box-shadow: none; color: var(--ink); }
	.main-nav .main-nav__head .brand__logo { height: 44px; width: auto; }
	/* En la cabecera a ≤640px la marca se comprime por falta de espacio; en el
	   panel sí cabe entera, así que se devuelven el separador y la bajada. */
	.main-nav .main-nav__head .brand__divider { display: block; width: 1px; height: 32px; background: var(--line); }
	.main-nav .main-nav__head .brand__txt { min-width: 0; }
	.main-nav .main-nav__head .brand__txt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	/* Accesos rápidos al pie del panel (en móvil la barra superior queda tapada). */
	.main-nav .main-nav__quick { display: block; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
	/* Calificado: .main-nav > div > ul lo pone en flex column y gana si no. */
	.main-nav .main-nav__quick-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: stretch; }
	.main-nav .main-nav__quick-list a {
		display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
		padding: 13px 10px; font-size: 14.5px; font-weight: 600; border-radius: var(--r-md);
		background: var(--brand-soft); color: var(--brand);
	}
	.main-nav .main-nav__quick-list a:hover { background: var(--brand); color: #fff; }
	/* Fondo y color explícitos: .main-nav a (y .main-nav a:hover, que trae
	   background: none) le ganan en especificidad a .btn-primary y dejaban el
	   botón blanco con las letras blancas al pasar el mouse. */
	.main-nav .main-nav__cta { display: flex; width: 100%; justify-content: center; gap: 8px; padding: 14px; font-size: 15px; background: var(--brand); color: #fff; }
	.main-nav .main-nav__cta:hover { background: var(--brand-700); color: #fff; box-shadow: none; }
	.nav-open .header-actions { position: relative; z-index: 70; }
	.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(6, 29, 64, .4); z-index: 55; }
	.main-nav .menu, .main-nav > div > ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav a { padding: 13px 16px; font-size: 16px; border-radius: var(--r-sm); }
	.submenu-toggle { top: 8px; transform: none; right: 6px; width: 36px; height: 36px; }
	.submenu-toggle[aria-expanded="true"] { transform: rotate(180deg); }
	.main-nav .sub-menu, .main-nav .sub-menu.is-mega {
		position: static; opacity: 1; visibility: visible; transform: none; display: none;
		box-shadow: none; border: 0; min-width: 0; padding: 0 0 8px 12px; border-radius: 0; grid-template-columns: 1fr;
	}
	/* El translate(-50%) que centra el panel bajo su ítem en escritorio seguía
	   aplicándose por :focus-within al tocar el botón, y sacaba el panel del cajón. */
	.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { transform: none; }
	.main-nav li.is-open > .sub-menu { display: block; }
	.main-nav .sub-menu::before { display: none; }
	.grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.news-layout { grid-template-columns: 1fr; }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.stat:nth-child(3) { border-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.split-cards { grid-template-columns: 1fr; }
	.dae-cols { grid-template-columns: repeat(min(var(--n, 2), 2), minmax(0, 1fr)); }
	.topbar__contact a:last-child { display: none; }
	.team-card--lead { flex-direction: column; text-align: center; }
	.team-card--lead .team-card__photo { width: 200px; }
	.team-org__units { grid-template-columns: 1fr; }
	.team-org__branch { height: 24px; }
	.team-org__branch::before { height: 24px; }
	.team-org__branch::after { display: none; }
}

@media (max-width: 640px) {
	body { font-size: 15.5px; }
	.topbar__contact { display: none; }
	.topbar__inner { justify-content: center; }
	.topbar__links { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
	.topbar__links ul { flex-wrap: nowrap; gap: 0; white-space: nowrap; }
	.topbar__links a { padding: 4px 7px; font-size: 12px; }
	.site-header__inner { min-height: 66px; gap: 12px; }
	.brand__logo { height: 38px; }
	.brand__divider, .brand__txt small { display: none; }
	.grid-2, .grid-3, .grid-4, .dae-cols { grid-template-columns: 1fr; }
	.grid-4.dae-galerias, .archive-galeria .grid-4, .home .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.hero { min-height: 520px; }
	.hero__shade { background: linear-gradient(180deg, rgba(29, 17, 69, .68) 0%, rgba(29, 17, 69, .8) 55%, rgba(29, 17, 69, .93) 100%); }
	.hero__ultimo { width: 100%; padding: 12px 13px 10px; }
	.hero__slider { min-height: 66px; }
	.hero__noticia-img { width: 60px; height: 60px; border-radius: 12px; }
	.hero__noticia strong { font-size: 14px; -webkit-line-clamp: 2; }
	.hero__lado { width: 100%; align-items: stretch; }
	.hero__albumes { display: none; } /* en pantallas chicas el hero ya va justo */
	.hero__gallery { width: 100%; justify-content: space-between; }
	.hero__gal-link span { max-width: 130px; }
	.stats { grid-template-columns: 1fr 1fr; }
	.stat { padding: 22px 18px; }
	/* ---- Pie en móvil: menos texto corrido y todo pulsable ---- */
	.footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 6px 0 26px; }
	.footer-cta { top: -32px; margin-bottom: -8px; padding: 24px 20px; gap: 18px; }
	.footer-cta h2 { font-size: 1.5rem; }
	.footer-cta__actions { width: 100%; }
	.footer-cta__actions .btn { flex: 1 1 100%; justify-content: center; padding: 13px 16px; }
	.footer-brand img { width: 136px; margin-bottom: 12px; }
	.footer-brand p { display: none; } /* la bajada larga no aporta en pantalla chica */
	.socials { margin-top: 0; }
	.site-footer h3 { margin-bottom: 12px; }
	/* Contacto: fichas tocables en vez de una lista de texto */
	.footer-list { gap: 8px; }
	.footer-list li { align-items: center; gap: 12px; padding: 12px 14px; background: rgba(255, 255, 255, .06); border-radius: var(--r-md); }
	.footer-list .dae-icon { margin-top: 0; flex-shrink: 0; }
	/* todas las fichas con el mismo peso y color, sean enlace o no */
	.site-footer .footer-list li, .site-footer .footer-list a { color: #fff; font-weight: 600; }
	/* Enlaces en dos columnas */
	.footer-links { grid-template-columns: 1fr 1fr; gap: 8px; }
	.site-footer .footer-links a { display: block; padding: 12px 10px; text-align: center; background: rgba(255, 255, 255, .06); border-radius: var(--r-md); color: #fff; font-weight: 600; }
	.footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 18px; font-size: 12.5px; }
	.lightbox { padding: 56px 12px; }
	.lightbox__slide { padding: 56px 12px 76px; }
	.lightbox img { max-height: calc(100vh - 132px); max-height: calc(100dvh - 132px); }
	.lightbox__nav { top: auto; bottom: 12px; }
	.lightbox__prev { left: 12px; transform: scaleX(-1); }
	.lightbox__next { right: 12px; transform: none; }
	.entry-content { font-size: 16px; }
	.dae-tabs__nav { border-radius: var(--r-md); width: 100%; }
	.dae-tabs__nav button { flex: 1 1 auto; }
	.search-form .btn { display: none; }
	.search-overlay { padding: 12px 10px; }
	.search-panel { max-height: calc(100vh - 24px); border-radius: var(--r-lg); }
	.search-panel__top { padding: 10px; }
	.search-result { grid-template-columns: 34px 1fr; }
	.search-result__icon { width: 34px; height: 34px; }
	.search-result__type { display: none; }
	.team-card--jefe { gap: 12px; padding: 12px; }
	.team-card--jefe .team-card__photo { width: 76px; flex-basis: 76px; }
	.team-grid--unit { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.site-footer .btn-light { color: var(--brand-900); }
.site-footer .btn-light:hover { color: var(--brand); }

/* ---------- Accesos rápidos agrupados por área (paleta de producción, suave) ----------
   Centro de Servicios = morado #1D1145 · Bienestar = naranjo #FF6600 (colores de producción),
   llevados a versiones claras para que no todo se vea azul. */
.access-groups { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto 1fr; gap: 0 20px; }
.access-group { --tone: var(--p-deep); --tone-ink: #4b3a8f; --tone-bg: #f5f3fb; --tone-line: #e6e1f4; --tone-ico: #ece8f8;
	border-radius: var(--r-xl); padding: clamp(16px, 2.2vw, 22px); display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 16px;
	background: var(--tone-bg); border: 1px solid var(--tone-line); }
.access-group--1 { --tone: var(--p-orange); --tone-ink: #c2540f; --tone-bg: #fff7f1; --tone-line: #fde3d0; --tone-ico: #ffebdc; }
.access-group__head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; border-bottom: 1px solid var(--tone-line); }
.access-group__head .icon-bubble { width: 42px; height: 42px; border-radius: 14px; background: var(--tone-ico); color: var(--tone-ink); }
.access-group__head h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; color: var(--tone-ink); }
.access-group__head p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.access-group__grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(64px, 1fr); }
.access-group--1 .access-group__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Si al Centro le sobra un acceso, el último ocupa la fila completa y no queda un hueco. */
.access-group--0 .access-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.access-group__head { align-self: stretch; }
.access-group__head > div { min-width: 0; }
.access-tile { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--tone-line); border-radius: var(--r-md); padding: 12px 14px; min-height: 64px; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.access-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 26px color-mix(in srgb, var(--tone) 12%, transparent); border-color: color-mix(in srgb, var(--tone-ink) 35%, #fff); color: var(--tone-ink); }
.access-tile__icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; background: var(--tone-ico); color: var(--tone-ink); transition: background .25s, color .25s; }
.access-tile:hover .access-tile__icon { background: var(--tone-ink); color: #fff; }
.access-tile__name { font-size: 14.5px; font-weight: 600; line-height: 1.3; }

/* ---------- Métricas (celeste claro #ACE4FF + azul #213B75, como en producción) ---------- */
.metrics { display: grid; grid-template-columns: 1fr; gap: 16px; }
.metrics__group { border-radius: var(--r-xl); padding: clamp(18px, 2.4vw, 24px); background: color-mix(in srgb, var(--p-sky) 22%, #fff); border: 1px solid color-mix(in srgb, var(--p-sky) 55%, #fff); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center; }
.metrics__head h3 { margin: 0 0 4px; font-size: 1.1rem; color: var(--p-navy); }
.metrics__head p { margin: 0; font-size: 13.5px; color: var(--muted); }
.metrics__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; grid-auto-rows: 1fr; }
.metric { background: #fff; border: 1px solid color-mix(in srgb, var(--p-sky) 60%, #fff); border-radius: var(--r-md); padding: 16px; display: grid; grid-template-rows: auto auto 1fr; gap: 4px; text-align: center; justify-items: center; }
.metric__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--p-sky) 40%, #fff); color: var(--p-navy); margin-bottom: 4px; }
.metric strong { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 800; color: var(--p-navy); letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; }
.metric strong em { font-style: normal; font-size: .5em; font-weight: 700; margin-left: 3px; color: #3f64b0; }
.metric__plus { font-size: .7em; margin-right: 1px; opacity: .55; }
.metric__label { font-size: 13px; color: var(--muted); line-height: 1.35; align-self: start; }

/* ---------- Menú desplegable "Estudiantes" (áreas DAE) ---------- */
.main-nav .mega-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; padding: 12px; min-width: min(1200px, calc(100vw - 32px)); left: 50%; }
/* Bienestar (9 enlaces) en dos columnas para que el panel no quede tan largo */
/* Se lee por columnas: primero toda la izquierda y luego la derecha (--filas = mitad de los enlaces) */
.mega-panel .mega-col__list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(var(--filas, 5), auto); grid-auto-flow: column; column-gap: 4px; }
/* Si un nombre ocupa dos líneas, su vecino de fila se estira y se centra
   en la misma altura (antes quedaba pegado arriba y la fila se veía chueca). */
.mega-panel .mega-col__list > li { display: flex; }
.mega-panel .mega-col__list > li > a { flex: 1; min-height: 44px; }
.main-nav .mega-panel--single { grid-template-columns: 1fr; min-width: 300px; padding: 10px; }
.mega-panel--single .mega-col__title { font-size: 13.5px; }
.mega-col { --tone: var(--p-navy); --tone-ink: var(--p-navy); border-radius: var(--r-md); padding: 14px 10px 10px; background: color-mix(in srgb, var(--tone) 6%, #fff); border: 1px solid color-mix(in srgb, var(--tone) 12%, #fff); }
.mega-col--1 { --tone: var(--p-cyan); --tone-ink: #0d6f93; background: color-mix(in srgb, var(--tone) 9%, #fff); border-color: color-mix(in srgb, var(--tone) 24%, #fff); }
.mega-col__title { margin: 0 0 8px; text-align: center; font-weight: 700; font-size: 14.5px; line-height: 1.3; color: var(--tone-ink); padding: 0 8px 10px; border-bottom: 1px solid color-mix(in srgb, var(--tone) 16%, #fff); }
.mega-col__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.main-nav .mega-col__list a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-weight: 500; font-size: 14.5px; color: var(--text); background: none; box-shadow: none; }
/* Fondo teñido (no blanco) para que el hover se note sobre la columna clara y la
   burbuja blanca del ícono no desaparezca. */
.main-nav .mega-col__list a:hover { background: color-mix(in srgb, var(--tone) 20%, #fff); color: var(--tone-ink); box-shadow: none; }
.main-nav .mega-col__list a.is-current,
.main-nav .mega-col__list a.is-current:hover { background: var(--tone-ink); color: #fff; font-weight: 600; }
.main-nav .mega-col__list a.is-current .mega-ico { background: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; }
.mega-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #fff; color: var(--tone-ink); flex-shrink: 0; box-shadow: 0 1px 2px rgba(15, 26, 46, .05); }
/* En los desplegables normales el panel ya es blanco: la burbuja va teñida.
   (El panel de áreas no entra: ahí el ícono cuelga de .mega-col__list.) */
.main-nav .sub-menu > li .mega-ico { background: var(--brand-soft); box-shadow: none; }
.main-nav .sub-menu > li a:hover .mega-ico { background: #fff; }
.main-nav .sub-menu > li.current-menu-item > a .mega-ico { background: rgba(255, 255, 255, .2); color: #fff; }

@media (max-width: 1080px) {
	.access-groups { grid-template-columns: 1fr; grid-template-rows: none; gap: 16px; }
	.access-group { display: flex; flex-direction: column; grid-row: auto; }
	.access-group__grid { grid-template-rows: none; }
	.access-group__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
	.access-group--0 .access-tile:last-child:nth-child(odd) { grid-column: auto; }
	.metrics__group { grid-template-columns: 1fr; gap: 14px; }
	.main-nav .mega-panel { display: none; grid-template-columns: 1fr; min-width: 0; padding: 4px 0 8px 8px; gap: 8px; }
	.mega-panel .mega-col__list { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
	.main-nav li.is-open > .mega-panel { display: grid; }
	.mega-col__title { text-align: left; }
}
@media (max-width: 860px) {
	.access-group__grid, .access-group--1 .access-group__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.access-group__grid, .access-group--1 .access-group__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
	.access-tile { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; min-height: 0; }
	.access-tile__name { font-size: 13.5px; }
	.metrics__grid { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.metric { padding: 14px; }
}

/* Botón "Todas las noticias / fotos": naranjo de producción en versión suave */
.btn-warm { background: #fff4ec; color: #c2540f; border-color: #fddcc4; }
.btn-warm:hover { background: #ffe9d9; color: #a84508; border-color: #f9c7a3; }

/* ---------- Explorador de galerías ---------- */
.gal-browser__bar { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.gal-search { flex: 1; min-width: 240px; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 4px 6px 4px 18px; color: var(--muted); transition: border-color .2s, box-shadow .2s; }
.gal-search:focus-within { border-color: var(--p-navy); box-shadow: 0 0 0 4px var(--brand-soft); }
.gal-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 16px var(--font); color: var(--ink); padding: 10px 0; }
.gal-browser__count { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.gal-filters, .gal-subfilters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.gal-subfilters { padding: 10px; background: #fff7f1; border: 1px solid #fde3d0; border-radius: var(--r-md); }
.gal-subfilters[hidden] { display: none; }
.gal-pill { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: var(--pill); padding: 8px 16px; font: 600 14px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
.gal-pill small { font-size: 12px; font-weight: 700; background: var(--bg); color: var(--muted); border-radius: var(--pill); padding: 1px 8px; }
.gal-pill:hover { border-color: var(--p-navy); color: var(--p-navy); }
.gal-pill.is-active { background: var(--p-navy); border-color: var(--p-navy); color: #fff; }
.gal-pill.is-active small { background: rgba(255, 255, 255, .18); color: #fff; }
.gal-pill--sm { padding: 6px 13px; font-size: 13px; }
.gal-subfilters .gal-pill.is-active { background: #c2540f; border-color: #c2540f; }
.gal-grid { margin-top: 18px; }
/* Con varias filas de píldoras el bloque se apelmaza: en pantallas grandes hay
   espacio de sobra, así que el buscador, los filtros y la grilla respiran más.
   (En móvil se mantiene apretado, donde el alto sí es caro.) */
@media (min-width: 701px) {
	.gal-browser__bar { gap: 18px; margin-bottom: 22px; }
	.gal-search input { padding: 11px 0; }
	.gal-filters, .gal-subfilters { gap: 10px; margin-bottom: 16px; }
	.gal-pill { padding: 9px 18px; }
	.gal-pill--sm { padding: 7px 14px; }
	.gal-grid { margin-top: 28px; }
	/* el -12px de .news-badges es para la portada (van pegadas al section-head);
	   dentro del explorador se comían el aire bajo el buscador */
	.news-browser .news-badges { margin-top: 0; }
	.news-browser .nb-grid { margin-top: 14px; }
}
.gal-item[hidden], .gal-empty[hidden] { display: none; }

/* ---------- Noticias de la portada ---------- */
.news-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; margin-bottom: 36px; transition: box-shadow .25s, transform .25s var(--ease); }
.news-hero:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-hero__link { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); color: inherit; }
.news-hero__link:hover { color: inherit; }
.news-hero .card-media { height: 100%; min-height: 320px; }
.news-hero__body { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.news-hero__label { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #c2540f; }
.news-hero__body h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.2; }
.news-hero__body p { margin: 0; color: var(--muted); }
.news-hero__body .btn { align-self: flex-start; margin-top: 6px; }

/* tonos por categoría (paleta de producción + complementarios suaves) */
.tone-navy   { --t-bg: #edf1f9; --t-ink: #213b75; }
.tone-orange { --t-bg: #fff1e6; --t-ink: #c2540f; }
.tone-purple { --t-bg: #f1eefa; --t-ink: #4b3a8f; }
.tone-sky    { --t-bg: #e6f7fe; --t-ink: #0d6f93; }
.tone-green  { --t-bg: #e7f6ef; --t-ink: #117a5e; }
.tone-rose   { --t-bg: #fcecf4; --t-ink: #a8327a; }

.news-cats__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.news-cats__head h3 { margin: 0; font-size: 1.2rem; }
.news-cats__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.news-cats__pills a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--pill); background: var(--t-bg); color: var(--t-ink); font-size: 13px; font-weight: 600; transition: filter .2s; }
.news-cats__pills a:hover { filter: brightness(.96); color: var(--t-ink); }
.news-cats__pills small { font-size: 11px; font-weight: 700; opacity: .7; }
.news-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.news-cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s var(--ease), border-color .25s; }
.news-cat:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.news-cat__link { display: flex; flex-direction: column; flex: 1; color: inherit; }
.news-cat__link:hover { color: inherit; }
.news-cat__body { padding: 14px 16px 6px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-cat__chip { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--pill); background: var(--t-bg); color: var(--t-ink); }
.news-cat__body h4 { margin: 0; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-cat__body time { margin-top: auto; font-size: 12.5px; color: var(--muted); }
.news-cat__more { display: flex; align-items: center; gap: 6px; padding: 10px 16px 14px; font-size: 13px; font-weight: 600; color: var(--t-ink); }
.news-cat__more:hover { color: var(--t-ink); text-decoration: underline; text-underline-offset: 3px; }
.news-cat--all { align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px; background: #fff7f1; border: 1px dashed #f9c7a3; color: #c2540f; }
.news-cat--all:hover { color: #a84508; }
.news-cat--all .icon-bubble { background: #ffe6d3; color: #c2540f; }
.news-cat--all strong { font-size: 16px; }
.news-cat--all small { color: var(--muted); }

@media (max-width: 1080px) {
	.news-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.news-hero__link { grid-template-columns: 1fr; }
	.news-hero .card-media { min-height: 0; }
	.news-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
	.news-cats { grid-template-columns: 1fr; }
}

/* ---------- Noticias: etiquetas de categoría, fila extra y explorador ---------- */
.news-badges { margin: -12px 0 22px; }
.news-row__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.news-row__cat { font-size: 11.5px; font-weight: 700; color: #c2540f; }
.news-row__meta time { font-size: 12.5px; }
.news-more { margin-top: 20px; }
.nb-item[hidden] { display: none; }
.nb-year select { appearance: none; -webkit-appearance: none; font: 600 14px var(--font); color: var(--ink); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7489' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center no-repeat; border: 1px solid var(--line); border-radius: var(--pill); padding: 12px 40px 12px 18px; cursor: pointer; }
.nb-year select:focus { outline: 0; border-color: var(--p-navy); box-shadow: 0 0 0 4px var(--brand-soft); }
.nb-more-wrap { text-align: center; margin-top: 28px; }
.nb-more-wrap [hidden] { display: none; }
.gal-pill[class*="tone-"] { color: var(--t-ink); background: var(--t-bg); border-color: transparent; }
.gal-pill[class*="tone-"] small { background: rgba(255, 255, 255, .7); color: var(--t-ink); }
.gal-pill[class*="tone-"].is-active { background: var(--t-ink); border-color: var(--t-ink); color: #fff; }
.gal-pill[class*="tone-"].is-active small { background: rgba(255, 255, 255, .2); color: #fff; }
@media (max-width: 640px) {
	.nb-year { width: 100%; }
	.nb-year select { width: 100%; }
	.news-badges { margin-top: -6px; }
}

/* ---------- Ventana emergente con el contenido de una página (a[data-dae-modal]) ---------- */
body.modal-open { overflow: hidden; }
.dae-modal {
	width: min(640px, calc(100vw - 32px)); max-height: min(86vh, 760px); padding: 0; border: 0; border-radius: var(--r-xl);
	background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(6, 15, 40, .35); overflow: hidden;
}
.dae-modal[open] { display: flex; animation: dae-modal-in .28s var(--ease); }
.dae-modal::backdrop { background: rgba(6, 15, 40, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@keyframes dae-modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dae-modal__box { display: flex; flex-direction: column; width: 100%; max-height: inherit; }
.dae-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.dae-modal__head h2 { margin: 0; font-size: 1.3rem; }
.dae-modal__x {
	display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border: 0; border-radius: 50%;
	background: var(--bg); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s;
}
.dae-modal__x:hover { background: var(--line); }
.dae-modal__body { flex: 1; overflow-y: auto; padding: 22px 24px; font-size: 15.5px; }
.dae-modal__body > *:last-child { margin-bottom: 0; }
.dae-modal__body p, .dae-modal__body ul { max-width: none; }
.dae-modal__body img { max-height: 150px; width: auto; border-radius: var(--r-md); margin: 6px 0; }
.dae-modal__body h4 { font-size: 1rem; margin: 1.2em 0 .5em; }
.dae-modal__body a { text-decoration: none; font-weight: 600; }
.dae-modal__cargando { color: var(--muted); }
@media (max-width: 560px) {
	.dae-modal { width: 100vw; max-width: 100vw; max-height: 88vh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
}

/* ---------- Tarjetas de foto completa (Actividades y Noticias): texto sobre la imagen ---------- */
.act { display: grid; gap: 16px; }
.act-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.nb-item[hidden] { display: none; }
.nb-item.is-lead, .act-grid > .act-card.is-lead { grid-column: 1 / -1; }
.nb-item > .act-card { height: 100%; }

/* los enlaces de estas tarjetas nunca van subrayados ni cambian a azul al pasar el mouse */
a.act-card, a.act-card:hover, a.act-card:focus { color: #fff !important; text-decoration: none !important; }
.act-card {
	position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; aspect-ratio: 4 / 3; padding: 16px;
	overflow: hidden; isolation: isolate; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--p-navy), var(--p-deep));
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.act-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.act-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 15, 40, .05) 30%, rgba(6, 15, 40, .88) 100%); }
.act-card.is-sin-foto::after { content: "DAE"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); z-index: -1; font-size: 5rem; font-weight: 800; color: rgba(255, 255, 255, .06); }
.act-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.act-card:hover img { transform: scale(1.05); }
.act-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.act-card__fecha {
	display: grid; place-items: center; min-width: 56px; padding: 8px 10px; border-radius: 14px; flex-shrink: 0;
	background: rgba(255, 255, 255, .92); color: var(--p-navy); font-size: 11.5px; font-weight: 700; line-height: 1.1; text-transform: lowercase;
	backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.act-card__fecha strong { font-size: 20px; font-weight: 800; }
.act-card__cat { padding: 5px 11px; border-radius: 999px; background: rgba(6, 15, 40, .55); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.act-card__body { display: grid; gap: 8px; }
.act-card__t { font-size: 1.1rem; line-height: 1.3; font-weight: 700; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .3); transition: color .2s; }
.act-card:hover .act-card__t { color: var(--p-sky); }
.act-tag, .act-card__exc, .act-ver { display: none; }

/* Destacada: la más reciente, a todo el ancho */
.act-card.is-lead { aspect-ratio: auto; min-height: clamp(340px, 42vw, 480px); padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); }
.act-card.is-lead::before { background: linear-gradient(90deg, rgba(6, 15, 40, .86) 0%, rgba(6, 15, 40, .35) 55%, rgba(6, 15, 40, .05) 100%), linear-gradient(180deg, transparent 50%, rgba(6, 15, 40, .55)); }
.act-card.is-lead .act-card__body { max-width: 620px; gap: 10px; }
.act-card.is-lead .act-tag { display: inline-block; justify-self: start; padding: 5px 12px; border-radius: 999px; background: var(--p-orange); color: #fff; font-size: 13px; font-weight: 700; }
.act-card.is-lead .act-card__t { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.act-card.is-lead .act-card__exc { display: block; font-size: 15.5px; line-height: 1.6; color: #dbe3f3; }
.act-card.is-lead .act-ver { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #fff; transition: gap .2s; }
.act-card.is-lead:hover .act-ver { gap: 10px; color: var(--p-sky); }
.act-mas { margin: 8px 0 0; text-align: center; max-width: none; }
.entry-content .act-mas a { text-decoration: none; }

/* En Noticias la grilla va bajo los filtros */
.nb-grid { margin-top: 8px; }

@media (max-width: 900px) {
	.act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.act-grid { grid-template-columns: 1fr; }
	.act-card.is-lead { min-height: 420px; }
	.act-card.is-lead::before { background: linear-gradient(180deg, rgba(6, 15, 40, .1) 15%, rgba(6, 15, 40, .92) 75%); }
}

/* ---------- Redes flotantes (footer.php): fijas a media altura en el borde derecho ---------- */
.redes-flot {
	position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 40;
	display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
a.redes-flot__btn {
	display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 13px; border-radius: 16px 0 0 16px;
	color: #fff !important; text-decoration: none !important; font-size: 14px; font-weight: 700; white-space: nowrap;
	box-shadow: 0 8px 22px rgba(6, 15, 40, .25); transition: padding .25s var(--ease), box-shadow .25s var(--ease);
}
.redes-flot__btn svg { flex-shrink: 0; }
/* el nombre aparece al pasar el mouse o con el teclado */
.redes-flot__btn span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .3s var(--ease), opacity .2s; }
a.redes-flot__btn:hover, a.redes-flot__btn:focus-visible { padding-right: 18px; box-shadow: 0 10px 28px rgba(6, 15, 40, .35); }
.redes-flot__btn:hover span, .redes-flot__btn:focus-visible span { max-width: 90px; opacity: 1; }
.redes-flot__btn--instagram { background: linear-gradient(45deg, #f9a53a 0%, #e1306c 45%, #833ab4 100%); }
.redes-flot__btn--tiktok { background: #111; box-shadow: -2px 0 0 #25f4ee inset, 0 8px 22px rgba(6, 15, 40, .25); }
.redes-flot__btn--tiktok svg { filter: drop-shadow(1.5px 1.5px 0 #fe2c55) drop-shadow(-1px -1px 0 #25f4ee); }

/* no estorba cuando hay un menú, buscador, ventana o visor abiertos */
body.nav-open .redes-flot, body.modal-open .redes-flot, body:has(#buscador:not([hidden])) .redes-flot, body:has(.lightbox:not([hidden])) .redes-flot { opacity: 0; pointer-events: none; }

@media (max-width: 760px) {
	a.redes-flot__btn { height: 42px; padding: 0 10px; border-radius: 13px 0 0 13px; }
	.redes-flot__btn svg { width: 19px; height: 19px; }
	.redes-flot__btn span { display: none; }
}
@media print { .redes-flot { display: none; } }

/* Agrupaciones: acciones del pie (Instagram + Escribir) */
.agr-card__acc { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.entry-content a.agr-card__insta { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--eje-bg, var(--surface)); color: var(--eje, var(--brand)); border: 1px solid var(--eje-line, var(--line)); transition: background .2s, color .2s; }
.entry-content a.agr-card__insta:hover { background: var(--eje, var(--brand)); color: #fff; }

/* Bienestar 2026: Espacios Estudiantiles, Representación Estudiantil y ajustes de grillas */
/* doble clase: las reglas base de estas grillas vienen después, en el bloque generado */
.plan-ejes.plan-ejes--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.proy-cards.proy-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.esp-campus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 1.6em 0 2em; }
.esp-campus__card { padding: clamp(16px, 2.2vw, 22px); border-radius: var(--r-xl); background: var(--surface, #fff); border: 1px solid var(--line); }
.entry-content .esp-campus__card h2 { margin: 0 0 14px; font-size: 1.15rem; border: 0; padding: 0; }
.esp-fotos::after { content: none; } /* solo dos fotos: que llenen el ancho de la tarjeta */
.esp-fotos .photo-grid__item { flex-basis: calc(var(--r) * 160px); }
.esp-normas__img { margin: 18px auto 0; max-width: 620px; }
.esp-normas__img img { border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.rep-feubo__in { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.rep-feubo__logo { margin: 0; padding: 10px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.rep-feubo__logo img { display: block; width: 100%; border-radius: 16px; }
.entry-content .rep-feubo h2 { margin-top: 0; }
.entry-content ul.rep-contacto { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: none; }
.entry-content ul.rep-contacto li { margin: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.entry-content ul.rep-contacto li::before { content: none; }
.rep-contacto { --eje: var(--p-navy); --eje-bg: color-mix(in srgb, var(--p-cyan) 14%, #fff); }
.rep-contacto .plan-ico { width: 40px; height: 40px; border-radius: 12px; }
.rep-contacto .plan-ico::after { width: 20px; height: 20px; }
.rep-contacto small { display: block; font-size: 12px; color: var(--muted); }
.rep-contacto a { font-weight: 600; word-break: break-all; }
@media (max-width: 860px) {
	.esp-campus, .entry-content ul.rep-contacto { grid-template-columns: 1fr; }
	.rep-feubo__in { grid-template-columns: 1fr; }
	.rep-feubo__logo { max-width: 140px; }
}
@media (max-width: 760px) { .proy-cards.proy-cards--2 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .plan-ejes.plan-ejes--2 { grid-template-columns: 1fr; } }

/* Implementación deportiva y recreativa + 5 servicios en /servicios/ */
.plan-ico.plan-ico--dado { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20width%3D%2218%22%20height%3D%2218%22%20x%3D%223%22%20y%3D%223%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M16%208h.01%22%2F%3E%3Cpath%20d%3D%22M8%208h.01%22%2F%3E%3Cpath%20d%3D%22M8%2016h.01%22%2F%3E%3Cpath%20d%3D%22M16%2016h.01%22%2F%3E%3Cpath%20d%3D%22M12%2012h.01%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico.plan-ico--pesa { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M14.4%2014.4%209.6%209.6%22%2F%3E%3Cpath%20d%3D%22M18.657%2021.485a2%202%200%201%201-2.829-2.828l-1.767%201.768a2%202%200%201%201-2.829-2.829l6.364-6.364a2%202%200%201%201%202.829%202.829l-1.768%201.767a2%202%200%201%201%202.828%202.829z%22%2F%3E%3Cpath%20d%3D%22m21.5%2021.5-1.4-1.4%22%2F%3E%3Cpath%20d%3D%22M3.9%203.9%202.5%202.5%22%2F%3E%3Cpath%20d%3D%22M6.404%2012.768a2%202%200%201%201-2.829-2.829l1.768-1.767a2%202%200%201%201-2.828-2.829l2.828-2.828a2%202%200%201%201%202.829%202.828l1.767-1.768a2%202%200%201%201%202.829%202.829z%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico.plan-ico--balon { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M11.1%207.1a16.55%2016.55%200%200%201%2010.9%204%22%2F%3E%3Cpath%20d%3D%22M12%2012a12.6%2012.6%200%200%201-8.7%205%22%2F%3E%3Cpath%20d%3D%22M16.8%2013.6a16.55%2016.55%200%200%201-9%207.5%22%2F%3E%3Cpath%20d%3D%22M20.7%2017a12.8%2012.8%200%200%200-8.7-5%2013.3%2013.3%200%200%201%200-10%22%2F%3E%3Cpath%20d%3D%22M6.3%203.8a16.55%2016.55%200%200%200%201.9%2011.5%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico.plan-ico--credencial { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20width%3D%2220%22%20height%3D%2214%22%20x%3D%222%22%20y%3D%225%22%20rx%3D%222%22%2F%3E%3Ccircle%20cx%3D%228%22%20cy%3D%2212%22%20r%3D%222%22%2F%3E%3Cpath%20d%3D%22M14%2010h4%22%2F%3E%3Cpath%20d%3D%22M14%2014h4%22%2F%3E%3Cpath%20d%3D%22M5%2017c.5-1.2%201.6-2%203-2s2.5.8%203%202%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico.plan-ico--qr { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20width%3D%225%22%20height%3D%225%22%20x%3D%223%22%20y%3D%223%22%20rx%3D%221%22%2F%3E%3Crect%20width%3D%225%22%20height%3D%225%22%20x%3D%2216%22%20y%3D%223%22%20rx%3D%221%22%2F%3E%3Crect%20width%3D%225%22%20height%3D%225%22%20x%3D%223%22%20y%3D%2216%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22M21%2016h-3a2%202%200%200%200-2%202v3%22%2F%3E%3Cpath%20d%3D%22M21%2021v.01%22%2F%3E%3Cpath%20d%3D%22M12%207v3a2%202%200%200%201-2%202H7%22%2F%3E%3Cpath%20d%3D%22M3%2012h.01%22%2F%3E%3Cpath%20d%3D%22M12%203h.01%22%2F%3E%3Cpath%20d%3D%22M12%2016v.01%22%2F%3E%3Cpath%20d%3D%22M16%2012h1%22%2F%3E%3Cpath%20d%3D%22M21%2012v.01%22%2F%3E%3Cpath%20d%3D%22M12%2021v-1%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico.plan-ico--reloj { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M12%206v6l4%202%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ejes.plan-ejes--5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.plan-ejes.plan-ejes--5 > .plan-eje { grid-column: span 2; }
.plan-ejes.plan-ejes--5 > .plan-eje:nth-child(n+4) { grid-column: span 3; }
.entry-content .impl-pasos { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: none; }
.entry-content .impl-pasos li { margin: 0; padding: 18px; border-radius: var(--r-md); background: var(--eje-bg, #f5f7fb); display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.55; }
.entry-content .impl-pasos li::before { content: none; }
.entry-content .impl-pasos strong { display: block; color: var(--p-navy); font-size: 15.5px; }
.impl-pasos { --eje: var(--p-navy); --eje-bg: color-mix(in srgb, var(--p-cyan) 10%, #fff); }
.impl-pasos .plan-ico { background: #fff; }
.entry-content .impl-items { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: none; }
.entry-content .impl-items li { margin: 0; padding: 20px; border-radius: var(--r-md); background: var(--eje-bg); display: flex; flex-direction: column; gap: 10px; }
.entry-content .impl-items li::before { content: none; }
.entry-content .impl-items strong { color: var(--eje); font-size: 16px; }
.entry-content .impl-items span { font-size: 14.5px; line-height: 1.55; color: var(--ink, #1f2937); }
.impl-items .plan-ico { background: #fff; }
@media (max-width: 1080px) {
	.plan-ejes.plan-ejes--5 { grid-template-columns: 1fr 1fr; }
	.plan-ejes.plan-ejes--5 > .plan-eje, .plan-ejes.plan-ejes--5 > .plan-eje:nth-child(n+4) { grid-column: auto; }
	.plan-ejes.plan-ejes--5 > .plan-eje:last-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.plan-ejes.plan-ejes--5, .entry-content .impl-pasos, .entry-content .impl-items { grid-template-columns: 1fr; }
}

/* ==== Páginas con maquetación propia (dae-tools/estilos) ==== */
/* Maquetación de /bienestar/ que arma dae-tools/plan_cuidado.py */
.dae-plan { --eje: var(--p-navy); --eje-bg: color-mix(in srgb, var(--p-sky) 22%, #fff); --eje-line: color-mix(in srgb, var(--p-sky) 60%, #fff); }
.plan-eje--salud { --eje: #0d6f93; --eje-bg: color-mix(in srgb, var(--p-cyan) 12%, #fff); --eje-line: color-mix(in srgb, var(--p-cyan) 35%, #fff); }
.plan-eje--acompanamiento { --eje: #c2540f; --eje-bg: color-mix(in srgb, var(--p-orange) 8%, #fff); --eje-line: color-mix(in srgb, var(--p-orange) 24%, #fff); }
.plan-eje--seguridad { --eje: #4b3a8f; --eje-bg: color-mix(in srgb, #6c5ad6 9%, #fff); --eje-line: color-mix(in srgb, #6c5ad6 24%, #fff); }

.plan-ico { display: inline-grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 14px; background: var(--eje-bg); }
.plan-ico::after { content: ""; width: 22px; height: 22px; background: var(--eje); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.plan-ico--salud { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M19%2014c1.49-1.46%203-3.21%203-5.5A5.5%205.5%200%200%200%2016.5%203c-1.76%200-3%20.5-4.5%202-1.5-1.5-2.74-2-4.5-2A5.5%205.5%200%200%200%202%208.5c0%202.3%201.5%204.05%203%205.5l7%207Z%22%2F%3E%3Cpath%20d%3D%22M3.22%2012H9.5l.5-1%202%204.5%202-7%201.5%203.5h5.27%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--acomp { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%2021v-2a4%204%200%200%200-4-4H6a4%204%200%200%200-4%204v2%22%2F%3E%3Cpath%20d%3D%22M22%2021v-2a4%204%200%200%200-3-3.87%22%2F%3E%3Cpath%20d%3D%22M16%203.13a4%204%200%200%201%200%207.75%22%2F%3E%3Ccircle%20cx%3D%229%22%20cy%3D%227%22%20r%3D%224%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--seguridad { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2013c0%205-3.5%207.5-7.66%208.95a1%201%200%200%201-.67-.01C7.5%2020.5%204%2018%204%2013V6a1%201%200%200%201%201-1c2%200%204.5-1.2%206.24-2.72a1.17%201.17%200%200%201%201.52%200C14.51%203.81%2017%205%2019%205a1%201%200%200%201%201%201z%22%2F%3E%3Cpath%20d%3D%22m9%2012%202%202%204-4%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--objetivo { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%226%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%222%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--unidad { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2022V4a2%202%200%200%201%202-2h8a2%202%200%200%201%202%202v18Z%22%2F%3E%3Cpath%20d%3D%22M6%2012H4a2%202%200%200%200-2%202v6a2%202%200%200%200%202%202h2%22%2F%3E%3Cpath%20d%3D%22M18%209h2a2%202%200%200%201%202%202v9a2%202%200%200%201-2%202h-2%22%2F%3E%3Cpath%20d%3D%22M10%206h4%22%2F%3E%3Cpath%20d%3D%22M10%2010h4%22%2F%3E%3Cpath%20d%3D%22M10%2014h4%22%2F%3E%3Cpath%20d%3D%22M10%2018h4%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--alianza { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M10%2013a5%205%200%200%200%207.54.54l3-3a5%205%200%200%200-7.07-7.07l-1.72%201.71%22%2F%3E%3Cpath%20d%3D%22M14%2011a5%205%200%200%200-7.54-.54l-3%203a5%205%200%200%200%207.07%207.07l1.71-1.71%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--talleres { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%203h20%22%2F%3E%3Cpath%20d%3D%22M21%203v11a2%202%200%200%201-2%202H5a2%202%200%200%201-2-2V3%22%2F%3E%3Cpath%20d%3D%22m7%2021%205-5%205%205%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--fondo { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M11%2017h3v2a1%201%200%200%200%201%201h2a1%201%200%200%200%201-1v-3a3.16%203.16%200%200%200%202-2h1a1%201%200%200%200%201-1v-2a1%201%200%200%200-1-1h-1a5%205%200%200%200-2-4V3a4%204%200%200%200-3.2%201.6l-.3.4H11a6%206%200%200%200-6%206v1a5%205%200%200%200%202%204v3a1%201%200%200%200%201%201h2a1%201%200%200%200%201-1z%22%2F%3E%3Cpath%20d%3D%22M16%2010h.01%22%2F%3E%3Cpath%20d%3D%22M2%208v1a2%202%200%200%200%202%202h1%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--ministerio { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%2022h18%22%2F%3E%3Cpath%20d%3D%22M6%2018v-7%22%2F%3E%3Cpath%20d%3D%22M10%2018v-7%22%2F%3E%3Cpath%20d%3D%22M14%2018v-7%22%2F%3E%3Cpath%20d%3D%22M18%2018v-7%22%2F%3E%3Cpath%20d%3D%22M12%202%2020%207H4z%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--idea { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M15%2014c.2-1%20.7-1.7%201.5-2.5%201-.9%201.5-2.2%201.5-3.5A6%206%200%200%200%206%208c0%201%20.2%202.2%201.5%203.5.7.7%201.3%201.5%201.5%202.5%22%2F%3E%3Cpath%20d%3D%22M9%2018h6%22%2F%3E%3Cpath%20d%3D%22M10%2022h4%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--fiesta { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5.8%2011.3%202%2022l10.7-3.79%22%2F%3E%3Cpath%20d%3D%22M4%203h.01%22%2F%3E%3Cpath%20d%3D%22M22%208h.01%22%2F%3E%3Cpath%20d%3D%22M15%202h.01%22%2F%3E%3Cpath%20d%3D%22M22%2020h.01%22%2F%3E%3Cpath%20d%3D%22m22%202-2.24.75a2.9%202.9%200%200%200-1.96%203.12c.1.86-.57%201.63-1.45%201.63h-.38c-.86%200-1.6.6-1.76%201.44L14%2010%22%2F%3E%3Cpath%20d%3D%22m22%2013-.82-.33c-.86-.34-1.82.2-1.98%201.11c-.11.7-.72%201.22-1.43%201.22H17%22%2F%3E%3Cpath%20d%3D%22m11%202%20.33.82c.34.86-.2%201.82-1.11%201.98C9.52%204.9%209%205.52%209%206.23V7%22%2F%3E%3Cpath%20d%3D%22M11%2013c1.93%201.93%202.83%204.17%202%205-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5%20.83-.83%203.07.07%205%202Z%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--paleta { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2213.5%22%20cy%3D%226.5%22%20r%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Ccircle%20cx%3D%2217.5%22%20cy%3D%2210.5%22%20r%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Ccircle%20cx%3D%228.5%22%20cy%3D%227.5%22%20r%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Ccircle%20cx%3D%226.5%22%20cy%3D%2212.5%22%20r%3D%221%22%20fill%3D%22%23000%22%2F%3E%3Cpath%20d%3D%22M12%202C6.5%202%202%206.5%202%2012s4.5%2010%2010%2010c.93%200%201.65-.75%201.65-1.69%200-.44-.18-.84-.44-1.13-.29-.29-.44-.65-.44-1.13a1.64%201.64%200%200%201%201.67-1.67h2c3.05%200%205.55-2.5%205.55-5.55C21.97%206.01%2017.46%202%2012%202z%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--ticket { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%209a3%203%200%200%201%200%206v2a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2v-2a3%203%200%200%201%200-6V7a2%202%200%200%200-2-2H4a2%202%200%200%200-2%202Z%22%2F%3E%3Cpath%20d%3D%22M13%205v2%22%2F%3E%3Cpath%20d%3D%22M13%2017v2%22%2F%3E%3Cpath%20d%3D%22M13%2011v2%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--normas { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%204h2a2%202%200%200%201%202%202v14a2%202%200%200%201-2%202H6a2%202%200%200%201-2-2V6a2%202%200%200%201%202-2h2%22%2F%3E%3Crect%20x%3D%228%22%20y%3D%222%22%20width%3D%228%22%20height%3D%224%22%20rx%3D%221%22%2F%3E%3Cpath%20d%3D%22M12%2011h4%22%2F%3E%3Cpath%20d%3D%22M12%2016h4%22%2F%3E%3Cpath%20d%3D%22M8%2011h.01%22%2F%3E%3Cpath%20d%3D%22M8%2016h.01%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--mision { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22m16.24%207.76-2.12%206.36-6.36%202.12%202.12-6.36%206.36-2.12z%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--trofeo { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%209H4.5a2.5%202.5%200%200%201%200-5H6%22%2F%3E%3Cpath%20d%3D%22M18%209h1.5a2.5%202.5%200%200%200%200-5H18%22%2F%3E%3Cpath%20d%3D%22M4%2022h16%22%2F%3E%3Cpath%20d%3D%22M10%2014.66V17c0%20.55-.47.98-.97%201.21C7.85%2018.75%207%2020.24%207%2022%22%2F%3E%3Cpath%20d%3D%22M14%2014.66V17c0%20.55.47.98.97%201.21C16.15%2018.75%2017%2020.24%2017%2022%22%2F%3E%3Cpath%20d%3D%22M18%202H6v7a6%206%200%200%200%2012%200V2Z%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--bandera { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2015s1-1%204-1%205%202%208%202%204-1%204-1V3s-1%201-4%201-5-2-8-2-4%201-4%201z%22%2F%3E%3Cpath%20d%3D%22M4%2022v-7%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--cohete { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4.5%2016.5c-1.5%201.26-2%205-2%205s3.74-.5%205-2c.71-.84.7-2.13-.09-2.91a2.18%202.18%200%200%200-2.91-.09z%22%2F%3E%3Cpath%20d%3D%22m12%2015-3-3a22%2022%200%200%201%202-3.95A12.88%2012.88%200%200%201%2022%202c0%202.72-.78%207.5-6%2011a22.35%2022.35%200%200%201-4%202z%22%2F%3E%3Cpath%20d%3D%22M9%2012H4s.55-3.03%202-4c1.62-1.08%205%200%205%200%22%2F%3E%3Cpath%20d%3D%22M12%2015v5s3.03-.55%204-2c1.08-1.62%200-5%200-5%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--check { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%206%209%2017l-5-5%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--telefono { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M22%2016.92v3a2%202%200%200%201-2.18%202%2019.79%2019.79%200%200%201-8.63-3.07%2019.5%2019.5%200%200%201-6-6%2019.79%2019.79%200%200%201-3.07-8.67A2%202%200%200%201%204.11%202h3a2%202%200%200%201%202%201.72c.13.96.36%201.9.7%202.81a2%202%200%200%201-.45%202.11L8.09%209.91a16%2016%200%200%200%206%206l1.27-1.27a2%202%200%200%201%202.11-.45c.91.34%201.85.57%202.81.7A2%202%200%200%201%2022%2016.92z%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--correo { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20width%3D%2220%22%20height%3D%2216%22%20x%3D%222%22%20y%3D%224%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22m22%207-8.97%205.7a1.94%201.94%200%200%201-2.06%200L2%207%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--redes { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%225%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%226%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2219%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22m8.59%2013.51%206.83%203.98%22%2F%3E%3Cpath%20d%3D%22m15.41%206.51-6.82%203.98%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--mapa { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2010c0%204.99-5.54%2010.19-7.4%2011.79a1%201%200%200%201-1.2%200C9.54%2020.19%204%2014.99%204%2010a8%208%200%200%201%2016%200%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2210%22%20r%3D%223%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--web { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%2210%22%2F%3E%3Cpath%20d%3D%22M2%2012h20%22%2F%3E%3Cpath%20d%3D%22M12%202a15%2015%200%200%201%204%2010%2015%2015%200%200%201-4%2010%2015%2015%200%200%201-4-10%2015%2015%200%200%201%204-10z%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--instagram { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%222%22%20width%3D%2220%22%20height%3D%2220%22%20rx%3D%225%22%2F%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Ccircle%20cx%3D%2217.5%22%20cy%3D%226.5%22%20r%3D%22.8%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--tienda { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%207h20l-1.5%204.5a2%202%200%200%201-2%201.5H5.5a2%202%200%200%201-2-1.5z%22%2F%3E%3Cpath%20d%3D%22M4%2013v7a1%201%200%200%200%201%201h14a1%201%200%200%200%201-1v-7%22%2F%3E%3Cpath%20d%3D%22M8%207V5a4%204%200%200%201%208%200v2%22%2F%3E%3C%2Fsvg%3E"); }
.plan-ico--curricular { --i: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%207v14%22%2F%3E%3Cpath%20d%3D%22M3%2018a1%201%200%200%201-1-1V4a1%201%200%200%201%201-1h5a4%204%200%200%201%204%204%204%204%200%200%201%204-4h5a1%201%200%200%201%201%201v13a1%201%200%200%201-1%201h-6a3%203%200%200%200-3%203%203%203%200%200%200-3-3z%22%2F%3E%3C%2Fsvg%3E"); }
.plan-mas, .plan-nav { --i-mas: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%209%206%206%206-6%22%2F%3E%3C%2Fsvg%3E"); }

/* Portada */
.plan-hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: linear-gradient(135deg, var(--p-deep) 0%, var(--p-navy) 62%, #2a5a9e 100%);
	border-radius: var(--r-xl); padding: clamp(26px, 4.4vw, 56px); margin: 0 0 clamp(28px, 4vw, 48px);
	color: #dfe8f7; box-shadow: var(--shadow-lg);
}
.plan-hero::before, .plan-hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.plan-hero::before { width: 560px; height: 560px; right: -160px; top: -240px; background: radial-gradient(circle, color-mix(in srgb, var(--p-cyan) 55%, transparent), transparent 68%); opacity: .5; }
.plan-hero::after { width: 420px; height: 420px; left: -180px; bottom: -240px; background: radial-gradient(circle, color-mix(in srgb, var(--p-orange) 50%, transparent), transparent 70%); opacity: .3; }
.plan-hero__txt { max-width: 800px; }
.entry-content .plan-hero__eyebrow { margin: 0 0 14px; font-size: 14.5px; font-weight: 600; color: var(--p-sky); }
.entry-content .plan-hero__t { margin: 0 0 16px; padding: 0; border: 0; color: #fff; font-size: clamp(1.6rem, 3.1vw, 2.45rem); letter-spacing: -.03em; }
.entry-content .plan-hero__lead { margin: 0; font-size: 1.04rem; line-height: 1.7; color: #d3def2; max-width: 72ch; }
.plan-ejes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(24px, 3.4vw, 38px); }
.entry-content a.plan-eje {
	display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--r-lg);
	background: #fff; color: var(--text); text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.entry-content a.plan-eje:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(6, 15, 40, .35); color: var(--text); }
.plan-eje .plan-ico { margin-bottom: 10px; }
.plan-eje__n { font-size: 13px; font-weight: 600; color: var(--eje); }
.plan-eje strong { font-size: 1.12rem; color: var(--ink); line-height: 1.3; }
.plan-eje__d { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* Índice lateral + contenido */
.plan-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(24px, 3.4vw, 48px); align-items: start; }
.entry-content .plan-nav.dae-secnav {
	position: sticky; top: calc(var(--hdr, 78px) + 20px); display: flex; flex-direction: column; flex-wrap: nowrap; gap: 2px;
	margin: 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
/* wpautop envuelve los enlaces del índice en un <p> */
.entry-content .plan-nav > p:not(.plan-nav__t) { display: contents; }
.entry-content .plan-nav__t { margin: 0 0 6px 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.entry-content .plan-nav.dae-secnav .btn {
	display: flex; align-items: center; gap: 10px; justify-content: flex-start; text-align: left;
	padding: 9px 10px; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--text);
	font-size: 14.5px; font-weight: 600; line-height: 1.3; text-decoration: none; box-shadow: none;
}
.entry-content .plan-nav.dae-secnav .btn span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 18px; }
.entry-content .plan-nav.dae-secnav .btn:hover { background: var(--bg); color: var(--ink); }
.entry-content .plan-nav.dae-secnav .btn.is-current { background: var(--brand-soft); color: var(--p-navy); }
.entry-content .plan-nav.dae-secnav .btn.is-current span { color: var(--p-navy); }
.plan-nav__toggle { display: none; }

.plan-main { display: grid; gap: 22px; min-width: 0; }
.entry-content .plan-sec {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
	padding: clamp(22px, 3.4vw, 42px); scroll-margin-top: 24px; /* se suma al scroll-padding-top del html */ box-shadow: var(--shadow-sm);
}
.plan-sec__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.plan-sec__num {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0;
	background: var(--brand-soft); color: var(--p-navy); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.entry-content .plan-sec__head h2 { margin: 0; padding: 0; border: 0; font-size: clamp(1.3rem, 2.1vw, 1.65rem); }
.entry-content .plan-sec p { max-width: 74ch; }
.entry-content .plan-h3 { margin: 1.8em 0 14px; font-size: 1.12rem; }
.entry-content .plan-nota {
	max-width: none; padding: 18px 22px; border-radius: var(--r-lg); margin: 1.4em 0 0;
	background: color-mix(in srgb, var(--p-sky) 18%, #fff); color: var(--ink); font-size: 15.5px;
}

/* Cifras */
.plan-cifras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 1.6em 0; }
.plan-cifra { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--r-lg); background: var(--tone-bg, var(--bg)); border: 1px solid var(--tone-line, var(--line)); }
.plan-cifra strong { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1; letter-spacing: -.03em; color: var(--tone-ink, var(--p-navy)); }
.plan-cifra span { font-size: 14px; line-height: 1.45; color: var(--text); }
.plan-cifra small { margin-top: auto; padding-top: 6px; font-size: 12px; color: var(--muted); }

/* Texto largo plegado */
.plan-mas { margin: 0 0 1.4em; }
.plan-mas summary {
	display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
	padding: 10px 18px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface);
	font-size: 14.5px; font-weight: 600; color: var(--p-navy); transition: background .2s;
}
.plan-mas summary::-webkit-details-marker { display: none; }
.plan-mas summary:hover { background: var(--bg); }
.plan-mas summary::after { content: ""; width: 16px; height: 16px; background: currentColor; transition: transform .25s var(--ease); -webkit-mask: var(--i-mas) center / contain no-repeat; mask: var(--i-mas) center / contain no-repeat; }
.plan-mas[open] summary::after { transform: rotate(180deg); }
.plan-mas__cerrar, .plan-mas[open] .plan-mas__abrir { display: none; }
.plan-mas[open] .plan-mas__cerrar { display: inline; }
.plan-mas__body { padding-top: 1.2em; }

/* Objetivos */
.plan-objetivo { display: flex; gap: 18px; align-items: flex-start; margin: 1.8em 0 0; padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r-lg); background: var(--eje-bg); border: 1px solid var(--eje-line); }
.plan-objetivo .plan-ico { background: #fff; }
.entry-content .plan-objetivo__t { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: var(--p-navy); }
.entry-content .plan-objetivo__d { margin: 0; font-size: 1.1rem; line-height: 1.55; color: var(--ink); font-weight: 600; }
.entry-content ol.plan-objs { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0; max-width: none; }
.entry-content ol.plan-objs > li { margin: 0; padding: 54px 18px 18px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.entry-content ol.plan-objs > li:hover { background: #fff; border-color: color-mix(in srgb, var(--p-navy) 25%, #fff); }
.entry-content ol.plan-objs > li::before { left: 18px; top: 16px; background: var(--p-navy); color: #fff; }
.entry-content ol.plan-objs > li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.entry-content ol.plan-objs p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }

/* Unidades */
.entry-content ul.plan-unidades { list-style: none; padding: 0; margin: 0 0 1.6em; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.entry-content ul.plan-unidades li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.plan-unidades .plan-ico { width: 38px; height: 38px; border-radius: 11px; }
.plan-unidades .plan-ico::after { width: 19px; height: 19px; }

.plan-figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 1.6em; }
.entry-content .plan-fig { margin: 0; padding: 14px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.plan-fig a { display: grid; place-items: center; flex: 1; background: #fff; border-radius: var(--r-md); padding: 10px; }
.plan-fig img { max-height: 340px; width: auto; object-fit: contain; }
.plan-fig figcaption { font-size: 13.5px; color: var(--muted); text-align: center; }

/* Ejes de implementación */
.plan-ejecols { display: grid; gap: 14px; margin-top: 1.6em; }
.plan-ejecol { border-radius: var(--r-lg); border: 1px solid var(--eje-line); background: var(--eje-bg); overflow: hidden; scroll-margin-top: 24px; /* se suma al scroll-padding-top del html */ }
.plan-ejecol > header { display: flex; flex-direction: column; gap: 4px; padding: 20px 20px 16px; }
.plan-ejecol > header .plan-ico { background: #fff; margin-bottom: 8px; }
.entry-content .plan-ejecol h3 { margin: 0; font-size: 1.2rem; color: var(--ink); }
.plan-ejecol__body { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; padding: 0 10px 10px; align-items: stretch; }
.plan-ejecol > header { flex-direction: row !important; align-items: center; gap: 14px !important; }
.plan-ejecol > header .plan-ico { margin-bottom: 0 !important; }
.plan-ejecol > header .plan-eje__n { order: 2; margin-left: auto; padding: 3px 12px; border-radius: 999px; background: #fff; }
.entry-content .plan-ejecol__body > p, .entry-content .plan-ejecol__body > ul.plan-list { grid-column: 1 / -1; }
.plan-sub { background: #fff; border-radius: var(--r-md); padding: 14px 16px; }
.entry-content .plan-sub h4 { margin: 0 0 6px; font-size: 15px; color: var(--eje); }
.entry-content .plan-sub p, .entry-content .plan-ejecol__body > p { font-size: 14.5px; line-height: 1.55; margin: 0 0 .6em; max-width: none; }
.entry-content .plan-ejecol__body > p { margin: 0; padding: 4px 10px 6px; }
.entry-content .plan-sub > :last-child { margin-bottom: 0; }
.entry-content .plan-ejecol ul.plan-list { list-style: none; padding: 0; margin: 0 0 .6em; display: grid; gap: 6px; }
.entry-content .plan-ejecol ul.plan-list li { margin: 0; padding: 8px 12px; border-radius: var(--r-sm); background: #fff; font-size: 14px; font-weight: 600; color: var(--ink); }
.entry-content .plan-sub ul.plan-list li { background: var(--eje-bg); }
.entry-content .plan-ejecol__body > ul.plan-list { margin: 0; }

/* Colaboración externa */
.entry-content ul.plan-entidades { list-style: none; padding: 0; margin: 0 0 1.6em; max-width: none; display: flex; flex-wrap: wrap; gap: 10px; }
.entry-content ul.plan-entidades li { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 6px 16px 6px 6px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.plan-entidades .plan-ico { width: 32px; height: 32px; border-radius: 50%; }
.plan-entidades .plan-ico::after { width: 16px; height: 16px; }
.plan-lineas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 1.4em 0 0; }
.plan-linea { padding: clamp(18px, 2.4vw, 26px); border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.plan-linea .plan-ico { background: #fff; margin-bottom: 14px; }
.entry-content .plan-linea h3 { margin: 0 0 10px; font-size: 1.15rem; }
.entry-content .plan-linea p { font-size: 15px; line-height: 1.6; margin: 0 0 .8em; }
.entry-content .plan-linea > :last-child { margin-bottom: 0; }

@media (max-width: 1080px) {
	.plan-cifras { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
	.plan-layout { grid-template-columns: 1fr; }
	/* las anclas quedan bajo la cabecera y la barra del índice */
	html:has(.plan-nav) { scroll-padding-top: 150px; }
	/* en móvil el índice es una barra pegajosa con la sección actual que se despliega */
	.entry-content .plan-nav.dae-secnav {
		top: 76px; z-index: 20; flex-direction: column; overflow: visible; /* cabecera móvil (67px) + aire; --hdr incluye la barra superior que se va al bajar */
		padding: 6px; border-radius: var(--r-md); box-shadow: var(--shadow);
	}
	.entry-content .plan-nav__t { display: none; }
	.entry-content .plan-nav.dae-secnav > p:not(.plan-nav__t) { display: none; }
	.entry-content .plan-nav.dae-secnav.is-open > p:not(.plan-nav__t) { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
	.plan-nav__toggle {
		display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-sm);
		background: var(--bg); font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); text-align: left; cursor: pointer;
	}
	.plan-nav__toggle > span:not(.plan-nav__lbl) { display: grid; place-items: center; min-width: 30px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--p-navy); font-size: 12.5px; font-weight: 800; }
	.plan-nav__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.plan-nav__toggle::after {
		content: ""; margin-left: auto; width: 18px; height: 18px; flex-shrink: 0; background: var(--muted); transition: transform .25s var(--ease);
		-webkit-mask: var(--i-mas) center / contain no-repeat; mask: var(--i-mas) center / contain no-repeat;
	}
	.plan-nav.is-open .plan-nav__toggle::after { transform: rotate(180deg); }
	.plan-ejes, .plan-figs, .plan-lineas { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.plan-cifras { gap: 8px; }
	.plan-cifra { padding: 14px; }
	.plan-objetivo { flex-direction: column; }
}

/* ---------- Proyectos Estudiantiles (dae-tools/proyectos.py) ---------- */
.dae-proy { --eje: var(--p-navy); --eje-bg: color-mix(in srgb, var(--p-sky) 22%, #fff); }
.proy-card--ubo { --eje: #4b3a8f; --eje-bg: color-mix(in srgb, #6c5ad6 10%, #fff); --eje-line: color-mix(in srgb, #6c5ad6 24%, #fff); }
.proy-card--fdi { --eje: #0d6f93; --eje-bg: color-mix(in srgb, var(--p-cyan) 13%, #fff); --eje-line: color-mix(in srgb, var(--p-cyan) 36%, #fff); }
.proy-card--iniciativas { --eje: #c2540f; --eje-bg: color-mix(in srgb, var(--p-orange) 9%, #fff); --eje-line: color-mix(in srgb, var(--p-orange) 24%, #fff); }

.proy-intro {
	display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center;
	padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); margin-bottom: clamp(32px, 5vw, 56px);
	background: linear-gradient(135deg, color-mix(in srgb, var(--p-sky) 30%, #fff), color-mix(in srgb, var(--p-sky) 10%, #fff));
	border: 1px solid color-mix(in srgb, var(--p-sky) 60%, #fff);
}
.entry-content .proy-intro__lead { margin: 0; max-width: none; font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.6; color: var(--ink); font-weight: 500; }
.entry-content ul.proy-datos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: none; }
.entry-content ul.proy-datos li { margin: 0; display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm); }
.proy-datos strong { font-size: 2rem; line-height: 1; font-weight: 800; color: var(--p-navy); min-width: 34px; letter-spacing: -.03em; }
.proy-datos span { font-size: 14.5px; line-height: 1.4; color: var(--text); }

.entry-content .proy-h2 { margin: 0 0 18px; padding: 0; border: 0; font-size: clamp(1.4rem, 2.3vw, 1.8rem); }

.proy-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: clamp(36px, 5vw, 60px); }
.proy-card {
	display: flex; flex-direction: column; padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r-xl);
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.proy-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 110px; background: linear-gradient(180deg, var(--eje-bg), transparent); z-index: 0; }
.proy-card > * { position: relative; }
.proy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.proy-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.proy-card .plan-ico { width: 52px; height: 52px; border-radius: 16px; background: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--eje) 18%, transparent); }
.proy-card .plan-ico::after { width: 25px; height: 25px; }
.proy-card__badge { padding: 4px 12px; border-radius: var(--pill); background: #fff; border: 1px solid var(--eje-line); color: var(--eje); font-size: 12.5px; font-weight: 600; }
.entry-content .proy-card h3 { margin: 0 0 10px; font-size: 1.35rem; color: var(--ink); }
.proy-card__body { flex: 1; }
.entry-content .proy-card__body p { max-width: none; font-size: 15px; line-height: 1.6; margin: 0 0 .8em; }
.entry-content .proy-card__sub { font-weight: 600; color: var(--eje) !important; font-size: 13.5px !important; margin: 1em 0 8px !important; }
.entry-content ul.proy-areas { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 6px; max-width: none; }
.entry-content ul.proy-areas li { margin: 0; padding: 8px 12px; border-radius: var(--r-sm); background: var(--eje-bg); color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.proy-card__meta { display: grid; gap: 10px; margin: 16px 0 0; padding-top: 16px; border-top: 1px dashed var(--line); }
.proy-card__meta div { display: flex; justify-content: space-between; gap: 12px; }
.proy-card__meta dt { font-size: 13px; color: var(--muted); }
.proy-card__meta dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); text-align: right; }

.proy-pasos { margin-bottom: clamp(36px, 5vw, 60px); }
.entry-content ol.proy-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; max-width: none; counter-reset: paso; position: relative; }
.entry-content ol.proy-steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.entry-content ol.proy-steps > li { counter-increment: paso; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; position: relative; }
.entry-content ol.proy-steps > li::before {
	content: counter(paso); position: static; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 8px;
	display: grid; place-items: center; background: var(--p-navy); color: #fff; font-size: 17px; font-weight: 800;
	box-shadow: 0 0 0 6px var(--bg);
}
.proy-steps strong { font-size: 1.05rem; color: var(--ink); }
.proy-steps span { font-size: 14.5px; line-height: 1.55; color: var(--text); }

.proy-cta {
	display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding: clamp(22px, 3.4vw, 40px); border-radius: var(--r-xl); margin-bottom: clamp(36px, 5vw, 60px);
	background: color-mix(in srgb, var(--p-orange) 8%, #fff); border: 1px solid color-mix(in srgb, var(--p-orange) 22%, #fff);
}
.entry-content .proy-cta h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.entry-content .proy-cta p { margin: 0; max-width: 60ch; }
.entry-content .proy-cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }

.entry-content .proy-noticias__sub { margin: -8px 0 20px; color: var(--muted); }
.proy-noticias .dae-noticias { margin: 0; }

@media (max-width: 1080px) {
	.proy-cards { grid-template-columns: 1fr 1fr; }
	.proy-card--iniciativas { grid-column: 1 / -1; }
	.entry-content ol.proy-steps { grid-template-columns: 1fr 1fr; row-gap: 24px; }
	.entry-content ol.proy-steps::before { display: none; }
}
@media (max-width: 760px) {
	.proy-intro, .proy-cards { grid-template-columns: 1fr; }
	.entry-content ol.proy-steps { grid-template-columns: 1fr; }
}

/* ---------- Cultura y Arte (dae-tools/cultura.py): reutiliza el esquema del plan ---------- */
.plan-eje--rosa { --eje: #a3336f; --eje-bg: color-mix(in srgb, #c2418f 9%, #fff); --eje-line: color-mix(in srgb, #c2418f 24%, #fff); }
.plan-eje--naranjo { --eje: #c2540f; --eje-bg: color-mix(in srgb, var(--p-orange) 8%, #fff); --eje-line: color-mix(in srgb, var(--p-orange) 24%, #fff); }
.plan-eje--celeste { --eje: #0d6f93; --eje-bg: color-mix(in srgb, var(--p-cyan) 12%, #fff); --eje-line: color-mix(in srgb, var(--p-cyan) 35%, #fff); }
.plan-eje--morado { --eje: #4b3a8f; --eje-bg: color-mix(in srgb, #6c5ad6 9%, #fff); --eje-line: color-mix(in srgb, #6c5ad6 24%, #fff); }

.plan-hero--cultura { background: linear-gradient(135deg, var(--p-deep) 0%, #3b1a5e 55%, #7a2a64 100%); }
.plan-hero--cultura::before { background: radial-gradient(circle, color-mix(in srgb, #ff7ab8 55%, transparent), transparent 68%); opacity: .4; }
.plan-hero--cultura::after { background: radial-gradient(circle, color-mix(in srgb, var(--p-orange) 60%, transparent), transparent 70%); opacity: .35; }
.plan-hero--cultura .plan-hero__eyebrow { color: #ffc9e2 !important; }
.plan-ejes--4 { grid-template-columns: repeat(4, 1fr); }
.plan-ejes--4 .plan-eje strong { font-size: 1.04rem; }

.plan-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plan-duo .plan-objetivo { margin: 0; flex-direction: column; gap: 14px; }
.plan-objetivo--mision { --eje: #a3336f; --eje-bg: color-mix(in srgb, #c2418f 8%, #fff); --eje-line: color-mix(in srgb, #c2418f 22%, #fff); }
.plan-objetivo--mision .plan-objetivo__t { color: #a3336f !important; }
.entry-content .plan-objetivo__d--sm { font-size: 1rem; font-weight: 500; }
.entry-content ol.plan-objs--metas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-content ol.plan-objs--metas > li::before { background: #a3336f; }
.entry-content ol.plan-objs--metas > li:last-child:nth-child(3n+1) { grid-column: auto; }

.plan-ejecols--grid { grid-template-columns: 1fr 1fr; }

/* Agenda del año ([dae_eventos]) */
.plan-agenda { margin: 1.4em 0 0; }
/* columnas tipo mosaico: un mes corto no deja hueco al lado de uno largo */
.dae-agenda { columns: 2; column-gap: 24px; }
.dae-agenda__mes { break-inside: avoid; padding-bottom: 12px; }
.entry-content .dae-agenda__mes h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.entry-content .dae-agenda ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; max-width: none; }
.entry-content .dae-agenda__ev {
	margin: 0; display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px;
	border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line);
}
.dae-agenda__dia {
	display: grid; place-items: center; width: 50px; height: 52px; flex-shrink: 0; border-radius: 14px; line-height: 1.05;
	background: color-mix(in srgb, #c2418f 9%, #fff); color: #a3336f; font-size: 11.5px; font-weight: 600; text-transform: lowercase;
}
.dae-agenda__dia strong { font-size: 19px; font-weight: 800; }
.dae-agenda__txt { display: grid; gap: 2px; min-width: 0; }
.dae-agenda__txt strong { font-size: 14.5px; color: var(--ink); line-height: 1.35; }
.dae-agenda__txt span { font-size: 13px; color: var(--muted); }
.dae-agenda__ev.is-pasado { opacity: .55; }
.dae-agenda__ev.is-pasado .dae-agenda__dia { background: var(--bg); color: var(--muted); }
.dae-agenda__ev.is-proximo { border-color: color-mix(in srgb, #c2418f 45%, #fff); box-shadow: 0 6px 20px color-mix(in srgb, #c2418f 14%, transparent); }
.dae-agenda__ev.is-proximo .dae-agenda__dia { background: #a3336f; color: #fff; }
.dae-agenda__tag { margin-left: auto; flex-shrink: 0; padding: 3px 10px; border-radius: var(--pill); background: color-mix(in srgb, #c2418f 10%, #fff); color: #a3336f; font-size: 12px; font-weight: 600; }
.entry-content .plan-agenda__mas { margin: 1.2em 0 0; }

/* Normas */
.plan-normas { columns: 2; column-gap: 12px; margin-top: 1.4em; }
.plan-norma { break-inside: avoid; margin-bottom: 12px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); }
.entry-content .plan-norma h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 1.05rem; }
.plan-norma .plan-ico { width: 36px; height: 36px; border-radius: 11px; background: #fff; }
.plan-norma .plan-ico::after { width: 18px; height: 18px; }
.entry-content .plan-norma p, .entry-content .plan-norma li { font-size: 14.5px; line-height: 1.6; max-width: none; }
.entry-content .plan-norma p:last-child, .entry-content .plan-norma ul:last-child { margin-bottom: 0; }
.entry-content .plan-norma ul { padding-left: 1.1em; }

@media (max-width: 1080px) {
	.plan-ejes--4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	.plan-duo, .entry-content ol.plan-objs--metas { grid-template-columns: 1fr; }
	.dae-agenda, .plan-normas { columns: 1; }
	.plan-ejes--4 { grid-template-columns: 1fr; }
}

/* Sub-tarjetas de cada área o eje: grilla según cuántas hay, filas simétricas */
@media (min-width: 761px) {
	.plan-ejecol__body[class*="plan-subs-"] { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.plan-ejecol__body[class*="plan-subs-"] > * { grid-column: 1 / -1; }
	.plan-ejecol__body[class*="plan-subs-"] > .plan-sub { grid-column: span 2; }       /* 3 por fila */
	.plan-subs-2 > .plan-sub, .plan-subs-4 > .plan-sub { grid-column: span 3 !important; } /* 2 por fila */
	.plan-subs-1 > .plan-sub { grid-column: 1 / -1 !important; }
	.plan-subs-5 > .plan-sub ~ .plan-sub ~ .plan-sub ~ .plan-sub { grid-column: span 3; } /* 3 + 2 */
}
@media (max-width: 760px) {
	.plan-ejecol__body { grid-template-columns: 1fr; }
}

/* ---------- Programas de Talento (dae-tools/talento.py) ---------- */
.tal-hero {
	position: relative; overflow: hidden; isolation: isolate; padding: clamp(26px, 4.4vw, 56px); margin-bottom: clamp(28px, 4vw, 44px);
	border-radius: var(--r-xl); background: linear-gradient(135deg, var(--p-deep), var(--p-navy) 70%); color: #d3def2; box-shadow: var(--shadow-lg);
}
.tal-hero::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--p-cyan) 50%, transparent), transparent 68%); opacity: .45; }
.tal-hero__txt { max-width: 720px; }
.entry-content .tal-hero__k { margin: 0 0 12px; font-size: 14.5px; font-weight: 600; color: var(--p-sky); }
.entry-content .tal-hero h2 { margin: 0 0 12px; padding: 0; border: 0; color: #fff; font-size: clamp(1.6rem, 3.1vw, 2.4rem); }
.entry-content .tal-hero__txt p:last-child { margin: 0; color: #d3def2; font-size: 1.05rem; max-width: none; }
.tal-tarjetas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(22px, 3vw, 34px); }
.entry-content a.tal-tarjeta {
	display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: var(--r-lg); background: #fff; color: var(--text);
	text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.entry-content a.tal-tarjeta:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(6, 15, 40, .35); color: var(--text); }
.tal-tarjeta .plan-ico { margin-bottom: 8px; }
.tal-tarjeta strong { font-size: 1.1rem; color: var(--ink); }
.tal-tarjeta > span:not(.plan-ico):not(.tal-tarjeta__ver) { font-size: 14px; line-height: 1.5; color: var(--muted); flex: 1; }
.tal-tarjeta__ver { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--eje); }
.tal-tarjeta__ver::after { content: " \2192"; }

/* Pestañas de programas */
.entry-content .tal-tabs { max-width: none; scroll-margin-top: calc(var(--hdr-fijo, 77px) + 18px); } /* al cambiar de programa se vuelve aquí */
.entry-content ol.tal-objs.tal-objs--par { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-content .tal-tabs > .dae-tabs__nav {
	position: sticky; top: calc(var(--hdr-fijo, 77px) + 18px); z-index: 6; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
	padding: 6px; margin: 0 0 22px; border-radius: 20px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--line); box-shadow: var(--shadow-sm); width: 100%;
}
.entry-content .tal-tabs > .dae-tabs__nav button {
	display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 14px;
	background: transparent; font: inherit; font-weight: 700; font-size: 15px; color: var(--text); cursor: pointer; transition: background .2s, color .2s;
}
.entry-content .tal-tabs > .dae-tabs__nav button .plan-ico { width: 32px; height: 32px; border-radius: 10px; }
.entry-content .tal-tabs > .dae-tabs__nav button .plan-ico::after { width: 17px; height: 17px; }
.entry-content .tal-tabs > .dae-tabs__nav button:hover { background: var(--bg); }
.entry-content .tal-tabs > .dae-tabs__nav button[aria-selected="true"] { background: var(--eje-bg); color: var(--eje); box-shadow: inset 0 0 0 1px var(--eje-line); }
.entry-content .tal-tabs > .dae-tabs__nav button[aria-selected="true"] .plan-ico { background: #fff; }

.tal-prog { scroll-margin-top: 160px; }
.tal-prog__head {
	display: flex; gap: 20px; align-items: center; padding: clamp(20px, 3vw, 32px); border-radius: var(--r-xl); margin-bottom: 20px;
	background: linear-gradient(135deg, var(--eje-bg), #fff 80%); border: 1px solid var(--eje-line);
}
.tal-prog__head .plan-ico { width: 68px; height: 68px; border-radius: 20px; background: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--eje) 18%, transparent); }
.tal-prog__head .plan-ico::after { width: 32px; height: 32px; }
.entry-content .tal-prog__k { margin: 0 0 2px; font-size: 14px; font-weight: 600; color: var(--eje); }
.entry-content .tal-prog__head h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.entry-content .tal-prog__lead { margin: 0; font-size: 1.05rem; line-height: 1.6; color: var(--ink); max-width: 80ch; }

.tal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.tal-main { display: grid; gap: 20px; min-width: 0; }
.tal-bloque { padding: clamp(20px, 2.8vw, 30px); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.entry-content .tal-bloque > h3 { margin: 0 0 16px; font-size: 1.3rem; }
.entry-content .tal-nota { max-width: none; color: var(--muted); font-size: 15px; }
.entry-content .tal-objetivo { max-width: none; padding: 16px 20px; border-radius: var(--r-md); background: var(--eje-bg); color: var(--ink); font-weight: 600; line-height: 1.55; }
.entry-content ol.tal-objs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 14px 0 0; max-width: none; }
.entry-content ol.tal-objs > li { margin: 0; padding: 48px 16px 16px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.entry-content ol.tal-objs > li::before { left: 16px; top: 14px; background: var(--eje); color: #fff; }
.entry-content ul.tal-beneficios { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: none; }
.entry-content ul.tal-beneficios li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px; border-radius: var(--r-md); background: var(--eje-bg); border: 1px solid var(--eje-line); font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.tal-beneficios .plan-ico { width: 30px; height: 30px; border-radius: 9px; background: #fff; }
.tal-beneficios .plan-ico::after { width: 16px; height: 16px; }
.tal-lineas { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.tal-linea { padding: 18px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); }
.tal-linea__n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--eje); color: #fff; font-weight: 800; margin-bottom: 12px; }
.entry-content .tal-linea h4 { margin: 0 0 8px; font-size: 1.02rem; color: var(--ink); }
.entry-content .tal-linea p { font-size: 14.5px; line-height: 1.55; margin: 0 0 .6em; max-width: none; }
.entry-content .tal-linea > :last-child { margin-bottom: 0; }
.entry-content ul.tal-acts { list-style: none; padding: 0; margin: 0; display: grid; max-width: none; }
.entry-content ul.tal-acts li { position: relative; margin: 0; padding: 0 0 18px 30px; }
.entry-content ul.tal-acts li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--eje); }
.entry-content ul.tal-acts li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 24px; bottom: 2px; width: 2px; background: var(--eje-line); }
.entry-content ul.tal-acts strong { display: block; color: var(--ink); margin-bottom: 4px; }
.entry-content ul.tal-acts p { margin: 0 0 .4em; font-size: 14.5px; max-width: none; }
.entry-content ul.tal-no { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.entry-content ul.tal-no li { margin: 0; padding: 6px 14px 6px 32px; border-radius: 999px; background: #fdf1f1; color: #9b2c2c; font-size: 14px; font-weight: 600; position: relative; }
.entry-content ul.tal-no li::before { content: "\2715"; position: absolute; left: 13px; top: 6px; font-size: 12px; }

.tal-side { display: grid; gap: 14px; position: sticky; top: calc(var(--hdr-fijo, 77px) + 110px); }
.tal-card { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.entry-content .tal-card h3 { margin: 0 0 12px; font-size: 1.1rem; }
.entry-content .tal-card p { font-size: 14.5px; line-height: 1.6; max-width: none; }
.entry-content .tal-card > :last-child { margin-bottom: 0; }
.tal-card--ins { background: var(--eje-bg); border-color: var(--eje-line); }
.entry-content ol.tal-pasos { margin: 0 0 12px; max-width: none; }
.entry-content ol.tal-pasos > li { font-size: 14.5px; line-height: 1.55; }
.entry-content ol.tal-pasos > li::before { background: var(--eje); color: #fff; }
.entry-content .tal-card__btns { display: grid; gap: 8px; margin: 14px 0 0; }
.entry-content .tal-card__btns .btn { justify-content: center; font-size: 14px; white-space: normal; text-align: center; }
.entry-content ul.tal-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: none; }
.entry-content ul.tal-check li { margin: 0; padding-left: 28px; position: relative; font-size: 14.5px; line-height: 1.5; }
.entry-content ul.tal-check li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 6px; background: var(--eje); }
.entry-content ul.tal-check li::after { content: ""; position: absolute; left: 5px; top: 6px; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg); }

.tal-mas { margin-top: 20px; }
.entry-content .tal-mas > h3 { font-size: 1.2rem; margin: 0 0 12px; }

@media (max-width: 1080px) {
	.tal-tarjetas { grid-template-columns: 1fr 1fr; }
	.tal-grid { grid-template-columns: 1fr; }
	.tal-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 760px) {
	.tal-tarjetas, .entry-content ul.tal-beneficios, .entry-content ol.tal-objs.tal-objs--par { grid-template-columns: 1fr; }
	.entry-content .tal-tabs > .dae-tabs__nav { grid-template-columns: 1fr 1fr; top: 85px; }
	.entry-content .tal-tabs { scroll-margin-top: 85px; }
	.entry-content .tal-tabs > .dae-tabs__nav button { justify-content: flex-start; font-size: 14px; padding: 8px; }
	.tal-prog__head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Agrupaciones estudiantiles (dae-tools/agrupaciones.py) ---------- */
.plan-eje--verde { --eje: #16835f; --eje-bg: color-mix(in srgb, #1fbf85 10%, #fff); --eje-line: color-mix(in srgb, #1fbf85 28%, #fff); }

.agr-hero {
	position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding: clamp(26px, 4.4vw, 52px); margin-bottom: 18px; border-radius: var(--r-xl);
	background: linear-gradient(135deg, #3b1a5e 0%, var(--p-navy) 60%, #1f5f9e 100%); color: #d3def2; box-shadow: var(--shadow-lg);
}
.agr-hero::before { content: ""; position: absolute; z-index: -1; right: -140px; top: -180px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, #ff7ab8 45%, transparent), transparent 68%); opacity: .4; }
.agr-hero::after { content: ""; position: absolute; z-index: -1; left: -120px; bottom: -220px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--p-cyan) 50%, transparent), transparent 70%); opacity: .35; }
.agr-hero__txt { max-width: 640px; }
.entry-content .agr-hero__k { margin: 0 0 12px; font-size: 14.5px; font-weight: 600; color: var(--p-sky); }
.entry-content .agr-hero h2 { margin: 0 0 12px; padding: 0; border: 0; color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -.03em; }
.entry-content .agr-hero__txt p:last-child { margin: 0; max-width: none; color: #d3def2; font-size: 1.05rem; }
.entry-content .agr-hero__n { margin: 0; display: flex; align-items: baseline; gap: 10px; max-width: none; }
.agr-hero__n strong { font-size: clamp(3rem, 6vw, 4.6rem); line-height: 1; font-weight: 800; color: #fff; letter-spacing: -.04em; }
.agr-hero__n span { font-size: 15px; color: var(--p-sky); font-weight: 600; }

/* Buscador + filtros */
.agr-filtros {
	position: sticky; top: calc(var(--hdr-fijo, 77px) + 18px); z-index: 6; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
	padding: 8px; margin-bottom: 22px; border-radius: 20px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.agr-q {
	flex: 1 1 240px; min-width: 0; height: 44px; padding: 0 16px 0 42px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
	font: inherit; font-size: 15px; color: var(--ink);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7489' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: 14px center; background-size: 18px;
}
.agr-q:focus { outline: none; border-color: var(--brand); background-color: #fff; }
.agr-chips { display: flex; flex-wrap: wrap; gap: 6px; order: 2; }
.agr-chips button {
	border: 0; padding: 9px 15px; border-radius: 12px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; transition: background .2s, color .2s;
}
.agr-chips button:hover { background: var(--bg); }
.agr-chips button.is-on { background: var(--p-navy); color: #fff; }
.entry-content .agr-count { order: 3; margin: 0 8px 0 auto; font-size: 13.5px; color: var(--muted); white-space: nowrap; max-width: none; }

/* Tarjetas: cabecera en una fila y descripción recortada, así todas quedan del mismo alto */
.agr-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.agr-card {
	display: flex; flex-direction: column; padding: 20px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line);
	box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.agr-card[hidden] { display: none; }
.agr-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--eje-line, var(--line)); }
.agr-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
/* recuadro fijo para todos los logos: mismo tamaño y forma aunque la imagen sea ancha o alta */
.agr-card__logo {
	display: grid; place-items: center; width: 84px; height: 84px; flex-shrink: 0; padding: 8px; border-radius: 20px;
	background: #fff; border: 1px solid var(--eje-line, var(--line)); box-shadow: 0 6px 16px color-mix(in srgb, var(--eje, #000) 12%, transparent); overflow: hidden;
}
.agr-card__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.agr-card__tipo { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: var(--eje-bg); color: var(--eje); font-size: 12px; font-weight: 700; }
.entry-content .agr-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.entry-content .agr-card__desc {
	margin: 0; max-width: none; font-size: 14.5px; line-height: 1.6; color: var(--text);
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.agr-card.is-open .agr-card__desc { display: block; }
.agr-card__mas {
	align-self: flex-start; margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer;
	font: inherit; font-size: 13.5px; font-weight: 700; color: var(--eje, var(--brand));
}
.agr-card__mas:hover { text-decoration: underline; }
.agr-card__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.agr-card__desc + .agr-card__pie, .agr-card__mas + .agr-card__pie { margin-top: 14px; }
.agr-card > .agr-card__pie:last-child { margin-top: auto; }
.entry-content .agr-card__enc { margin: 0; display: grid; gap: 1px; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; max-width: none; }
.agr-card__enc span { font-size: 12px; font-weight: 500; color: var(--muted); }
.entry-content .agr-card__enc a { display: block; font-size: 13px; font-weight: 500; color: var(--eje, var(--brand)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* una sola línea: todas las tarjetas del mismo alto */
.agr-card__pie { align-items: flex-end; }
.entry-content .agr-card__enc { min-width: 0; }
.entry-content a.agr-card__mail {
	flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px;
	background: var(--eje, var(--brand)); color: #fff; font-size: 14px; font-weight: 700; transition: filter .2s;
}
.entry-content a.agr-card__mail:hover { filter: brightness(1.1); color: #fff; }
.entry-content .agr-vacio { margin: 20px 0 0; padding: 24px; text-align: center; border-radius: var(--r-lg); background: var(--surface); border: 1px dashed var(--line); color: var(--muted); max-width: none; }

/* Crear una agrupación: franja horizontal */
.agr-nueva {
	display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 20px; padding: clamp(20px, 3vw, 28px);
	border-radius: var(--r-xl); background: color-mix(in srgb, var(--p-orange) 7%, #fff); border: 1px solid color-mix(in srgb, var(--p-orange) 22%, #fff);
	--eje: #c2540f; --eje-bg: #fff;
}
.agr-nueva .plan-ico { width: 56px; height: 56px; border-radius: 18px; }
.agr-nueva .plan-ico::after { width: 26px; height: 26px; }
.agr-nueva__txt { flex: 1 1 320px; }
.entry-content .agr-nueva h2 { margin: 0 0 4px; padding: 0; border: 0; font-size: 1.25rem; }
.entry-content .agr-nueva p { margin: 0; max-width: none; font-size: 15px; }
.entry-content .agr-nueva__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* En esta página ningún enlace va subrayado: todos son botones o tarjetas */
.dae-agr a { text-decoration: none !important; }

/* Más organizaciones */
.agr-mas { margin-top: clamp(40px, 6vw, 64px); }
.entry-content .agr-mas h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.entry-content .agr-mas__sub { margin: 0 0 18px; color: var(--muted); max-width: none; }
.agr-mas__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.entry-content a.agr-mini {
	display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
	color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s var(--ease);
}
.entry-content a.agr-mini:hover { border-color: color-mix(in srgb, var(--brand) 30%, #fff); transform: translateY(-2px); color: var(--text); }
.agr-mini__logo { display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; background: var(--bg); overflow: hidden; }
.agr-mini__logo img { width: 100%; height: 100%; object-fit: contain; }
.agr-mini__logo.is-vacio { background: color-mix(in srgb, var(--p-navy) 10%, #fff); color: var(--p-navy); font-weight: 800; font-size: 17px; letter-spacing: .02em; }
.agr-mini__txt { display: grid; gap: 3px; min-width: 0; }
.agr-mini__txt strong { color: var(--ink); font-size: 15px; }
.agr-mini__txt span { font-size: 13px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1080px) {
	.agr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.agr-filtros { top: 85px; }
	.agr-chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; width: 100%; }
	.agr-chips button { flex-shrink: 0; }
	.entry-content .agr-count { display: none; }
	.agr-grid { grid-template-columns: 1fr; }
	.agr-nueva__btns .btn { width: 100%; justify-content: center; }
}

/* ---------- Contacto (dae-tools/contacto.py) ---------- */
.dae-con a { text-decoration: none !important; }

/* Canales directos */
.con-canales { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.con-canal {
	display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--r-xl); color: #dfe8f7 !important;
	background: linear-gradient(145deg, var(--p-navy), var(--p-deep)); box-shadow: var(--shadow); position: relative; overflow: hidden; isolation: isolate;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.con-canal::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--p-cyan) 45%, transparent), transparent 70%); opacity: .5; }
.con-canal:nth-child(2)::after { background: radial-gradient(circle, color-mix(in srgb, var(--p-orange) 50%, transparent), transparent 70%); }
.con-canal:nth-child(3)::after { background: radial-gradient(circle, color-mix(in srgb, #ff7ab8 45%, transparent), transparent 70%); }
a.con-canal:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.con-canal .plan-ico { --eje: var(--p-navy); --eje-bg: #fff; margin-bottom: 12px; }
.con-canal__k { font-size: 13.5px; font-weight: 600; color: var(--p-sky); }
.con-canal strong { font-size: 1.35rem; line-height: 1.2; color: #fff; letter-spacing: -.02em; overflow-wrap: anywhere; }
.con-canal > span:last-child:not(.dae-redes) { font-size: 14px; color: #c3cfe6; }
a.con-canal:hover strong { color: var(--p-sky); }

/* Redes (shortcode [dae_redes]) */
.dae-redes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dae-red {
	display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700;
	background: rgba(255, 255, 255, .12); color: #fff !important; border: 1px solid rgba(255, 255, 255, .2); transition: background .2s;
}
.dae-red:hover { background: rgba(255, 255, 255, .22); }

/* Campus */
.entry-content .con-h2 { margin: 0 0 18px; padding: 0; border: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.con-campus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: clamp(40px, 6vw, 64px); }
.con-camp { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.con-camp__mapa { height: 240px; background: var(--brand-soft); }
.con-camp__mapa iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.9); }
.con-camp__body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; }
.con-camp__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.entry-content .con-camp__k { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.entry-content .con-camp h3 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.con-estado { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #f1f3f7; color: var(--muted); }
.con-estado:empty { display: none; }
.con-estado.is-abierto { background: color-mix(in srgb, #1fbf85 14%, #fff); color: #16835f; }
.con-estado.is-abierto::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #1fbf85; box-shadow: 0 0 0 3px color-mix(in srgb, #1fbf85 25%, transparent); vertical-align: 1px; }
.entry-content .con-camp__dir { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; max-width: none; font-weight: 600; color: var(--ink); }
.con-camp__dir .plan-ico { width: 38px; height: 38px; border-radius: 12px; --eje: var(--p-navy); --eje-bg: var(--brand-soft); }
.con-camp__dir .plan-ico::after { width: 19px; height: 19px; }
.entry-content a.con-llegar { margin-left: auto; padding: 8px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--p-navy); font-size: 13.5px; font-weight: 700; transition: background .2s; }
.entry-content a.con-llegar:hover { background: color-mix(in srgb, var(--p-navy) 16%, #fff); }
.entry-content .con-camp h4 { margin: 4px 0 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.entry-content ul.con-horario { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: none; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; }
.entry-content ul.con-horario li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 11px 16px; font-size: 14.5px; }
.entry-content ul.con-horario li + li { border-top: 1px solid var(--line); }
.entry-content ul.con-horario li:nth-child(odd) { background: var(--bg); }
.con-horario strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Formulario */
.con-form { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(22px, 4vw, 48px); align-items: start; padding: clamp(22px, 4vw, 44px); border-radius: var(--r-xl); background: color-mix(in srgb, var(--p-sky) 18%, #fff); border: 1px solid color-mix(in srgb, var(--p-sky) 55%, #fff); }
.entry-content .con-form h2 { margin: 0 0 10px; padding: 0; border: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.entry-content .con-form__txt > p { margin: 0 0 18px; max-width: none; color: var(--ink); }
.entry-content ul.con-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: none; }
.entry-content ul.con-tips li { margin: 0; padding: 12px 14px 12px 40px; border-radius: var(--r-md); background: #fff; position: relative; font-size: 14.5px; }
.entry-content ul.con-tips li::before { content: ""; position: absolute; left: 14px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--p-navy); box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--p-navy); }
.con-form__box .dae-form { margin: 0; padding: clamp(18px, 2.6vw, 26px); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-sm); border: 0; }
.con-form__box .dae-form .btn { width: 100%; justify-content: center; }

@media (max-width: 1000px) {
	.con-canales { grid-template-columns: 1fr 1fr; }
	.con-canal--redes { grid-column: 1 / -1; }
	.con-campus, .con-form { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.con-canales { grid-template-columns: 1fr; }
	.con-camp__mapa { height: 200px; }
	.entry-content a.con-llegar { margin-left: 0; }
}

/* ==================== Becas y convenios (/becas/) ==================== */
.plan-hero--becas { background: linear-gradient(135deg, var(--p-deep) 0%, #16325f 52%, #0e5f6b 100%); }
.plan-hero--becas::before { background: radial-gradient(circle, color-mix(in srgb, #2fd0a5 55%, transparent), transparent 68%); opacity: .38; }
.plan-hero--becas::after { background: radial-gradient(circle, color-mix(in srgb, var(--p-cyan) 60%, transparent), transparent 70%); opacity: .35; }
.plan-hero--becas .plan-hero__eyebrow { color: #9fe9d4 !important; }

/* Becas internas: la misma tarjeta de los ejes, con el porcentaje destacado */
.plan-becas { --eje: var(--p-navy); --eje-bg: color-mix(in srgb, var(--p-cyan) 12%, #fff); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.plan-beca { border: 1px solid var(--line); }
.entry-content .plan-beca h4 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-beca__pct { flex-shrink: 0; padding: 3px 9px; border-radius: var(--pill); background: color-mix(in srgb, #1fbf85 16%, #fff); color: #16835f; font-size: 12.5px; font-weight: 700; }

.plan-formularios { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.4em; }
.entry-content .plan-formularios .btn { flex: 1 1 260px; justify-content: center; }

/* Convenios de arancel: institución + descuento, en columnas */
.entry-content ul.plan-convenios { list-style: none; margin: 0 0 1.6em; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.entry-content ul.plan-convenios li { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 11px 14px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.35; }
.plan-convenio__n { font-weight: 600; color: var(--ink); }
.plan-convenio__p { flex-shrink: 0; font-weight: 700; font-size: 13px; color: #4b3a8f; }

/* Comercios en convenio: logo + nombre */
.plan-comercios { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 1.4em; }
.entry-content a.plan-comercio { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .25s var(--ease); }
.entry-content a.plan-comercio:hover { border-color: color-mix(in srgb, var(--p-orange) 45%, #fff); transform: translateY(-2px); }
.plan-comercio__img { display: grid; place-items: center; height: 92px; border-radius: var(--r-md); background: #fff; overflow: hidden; }
.plan-comercio__img img { max-width: 86%; max-height: 76px; object-fit: contain; }
.entry-content a.plan-comercio strong { font-size: 14.5px; line-height: 1.3; text-align: center; }

@media (max-width: 600px) {
	.entry-content ul.plan-convenios { grid-template-columns: 1fr; }
	.plan-comercios { grid-template-columns: 1fr 1fr; }
}

/* ============ Páginas de beneficios (becas-ubo, convenios, convenios-dae) ============ */
/* Becas internas: una ficha por beca, con el texto completo */
.conv-becas { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 1.6em; }
.conv-beca { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.conv-beca > header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.entry-content .conv-beca h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; flex: 1; }
.conv-beca .plan-ico { width: 40px; height: 40px; border-radius: 12px; background: #fff; }
.entry-content .conv-beca p, .entry-content .conv-beca li { font-size: 14.5px; line-height: 1.6; max-width: none; }
.entry-content .conv-beca > :last-child { margin-bottom: 0; }
.conv-pct { flex-shrink: 0; padding: 4px 10px; border-radius: var(--pill); background: color-mix(in srgb, #1fbf85 16%, #fff); color: #16835f; font-size: 12.5px; font-weight: 700; white-space: nowrap; }

/* Convenios: documentación en dos fichas */
.conv-docs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 1.4em; }
.conv-doc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.conv-doc > header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.entry-content .conv-doc h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.conv-doc .plan-ico { width: 40px; height: 40px; border-radius: 12px; background: #fff; }
.entry-content .conv-doc ul { margin: 0; padding-left: 1.1em; }
.entry-content .conv-doc li { font-size: 14.5px; line-height: 1.6; max-width: none; }

/* Convenios: una ficha por institución */
/* sin align-items: start, para que cada fila cierre pareja */
.conv-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; margin-bottom: 1.4em; }
.conv-inst { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.conv-inst > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.entry-content .conv-inst h3 { margin: 0; font-size: 15.5px; line-height: 1.35; color: var(--p-navy); }
.conv-inst .conv-pct { background: color-mix(in srgb, #6c5ad6 14%, #fff); color: #4b3a8f; }
.entry-content .conv-inst ul { margin: 0; padding-left: 1.1em; }
.entry-content .conv-inst li { font-size: 14px; line-height: 1.55; max-width: none; margin: 0 0 4px; }
.entry-content .conv-inst li:last-child { margin-bottom: 0; }
.entry-content .conv-inst em { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--muted); font-style: normal; }
.entry-content .conv-inst br { display: none; }

/* Comercios en convenio: el logo cabe en su caja, no ocupa media pantalla */
.conv-com { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.conv-com__card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); }
.conv-com__img { display: grid; place-items: center; height: 150px; padding: 18px; background: #fff; border-bottom: 1px solid var(--line); }
.conv-com__img img { max-width: 78%; max-height: 114px; width: auto; object-fit: contain; border-radius: 0; }
.conv-com__txt { padding: 18px 22px 20px; }
.entry-content .conv-com__txt h3 { margin: 0 0 10px; font-size: 1.05rem; line-height: 1.3; }
.entry-content .conv-com__txt h3 a { color: var(--ink); text-decoration: none; }
.entry-content .conv-com__txt h3 a:hover { color: var(--p-sky); }
.conv-com__txt .dae-docs { margin: 0 0 .8em; }
.entry-content .conv-com__txt p { font-size: 14.5px; line-height: 1.6; max-width: none; margin: 0 0 .7em; }
.entry-content .conv-com__txt > :last-child { margin-bottom: 0; }

@media (max-width: 760px) {
	.conv-docs { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.conv-becas, .conv-lista, .conv-com { grid-template-columns: 1fr; }
	.conv-com__img { height: 120px; }
}

/* Contactos de cada convenio: misma plantilla y siempre al pie de la tarjeta,
   con la burbuja del ícono igual a la de los submenús. */
.conv-com__card { --eje: var(--p-navy); --eje-bg: var(--brand-soft); }
.conv-com__txt { display: flex; flex-direction: column; flex: 1; }
.conv-com__contacto { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 14px 22px 18px; border-top: 1px solid var(--line); background: var(--bg); }
.entry-content a.conv-chip { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 6px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none; max-width: 100%; transition: border-color .2s, color .2s; }
.entry-content a.conv-chip:hover { border-color: color-mix(in srgb, var(--p-navy) 35%, #fff); color: var(--p-navy); }
.conv-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-chip .plan-ico { width: 28px; height: 28px; border-radius: 9px; }
.conv-chip .plan-ico::after { width: 15px; height: 15px; }

/* Retención: el par Misión/Objetivo fuera de .dae-plan no hereda el tono, así
   que la ficha genérica se quedaba sin fondo ni ícono. */
.ret-duo .plan-objetivo:not(.plan-objetivo--mision) { --eje: var(--p-navy); --eje-bg: color-mix(in srgb, var(--p-cyan) 12%, #fff); --eje-line: color-mix(in srgb, var(--p-cyan) 32%, #fff); }

/* ---------- Noticias: listado + columna lateral (index.php, inc/noticias-lateral.php) ---------- */
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.news-layout .act-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-side { display: grid; gap: 16px; }
/* fija al bajar solo si cabe entera en la pantalla */
@media (min-width: 961px) and (min-height: 1040px) { .news-side { position: sticky; top: calc(var(--hdr, 80px) + 20px); } }
.news-side__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.news-side__box h2 { font-size: 1.05rem; letter-spacing: -.01em; margin: 0 0 14px; color: var(--ink); }
.news-side__box p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--muted); }

.news-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: mini; }
.news-mini a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px; margin: 0 -6px; border-radius: var(--r-sm); color: inherit; transition: background .2s; }
.news-mini a:hover { background: var(--bg); }
.news-mini__img { position: relative; width: 64px; height: 50px; border-radius: 10px; overflow: hidden; background: var(--brand-soft); }
.news-mini__img img { width: 100%; height: 100%; object-fit: cover; }
.news-mini__txt strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.news-mini a:hover strong { color: var(--brand); }
.news-mini__txt time { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }

.news-evs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.news-evs li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; }
.news-evs__dia { display: grid; place-items: center; align-content: center; height: 50px; border-radius: 12px; background: color-mix(in srgb, var(--ev) 12%, #fff); color: var(--ev); font-size: 11.5px; font-weight: 700; text-transform: capitalize; line-height: 1.1; }
.news-evs__dia strong { font-size: 18px; font-weight: 800; }
.news-evs__txt strong { display: block; font-size: 14px; line-height: 1.35; color: var(--ink); }
.news-evs__txt span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.news-side__mas { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--brand); }
.news-side__mas:hover { gap: 10px; }

.news-side__box--redes { background: var(--brand-soft); border-color: transparent; }
.news-redes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.news-redes a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--pill); background: var(--surface); color: var(--brand); font-size: 13.5px; font-weight: 700; transition: background .2s, color .2s; }
.news-redes a:hover { background: var(--brand); color: #fff; }

@media (max-width: 1180px) {
	.news-layout .act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.news-layout { grid-template-columns: 1fr; }
	.news-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 560px) {
	.news-layout .act-grid { grid-template-columns: 1fr; }
}

/* ---------- Portada: Calendario DAE (inc/agenda-portada.php) ---------- */
.home-agenda__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.home-agenda__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 30px); }
.home-agenda__col--hechas { background: var(--bg); border-color: transparent; }
.home-agenda__t { font-size: 1.1rem; letter-spacing: -.01em; margin: 0 0 18px; color: var(--ink); }
.home-agenda__vacio { color: var(--muted); margin: 0 0 14px; }

.agenda-next { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; padding: 18px; margin-bottom: 14px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--ev) 9%, #fff); color: inherit; transition: transform .25s var(--ease), box-shadow .25s; }
.agenda-next:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.agenda-next__dia { display: grid; place-items: center; align-content: center; aspect-ratio: 1; border-radius: var(--r-md); background: var(--ev); color: #fff; font-size: 13px; font-weight: 700; text-transform: capitalize; line-height: 1.1; }
.agenda-next__dia strong { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; }
.agenda-next__txt { display: grid; gap: 5px; min-width: 0; }
.agenda-next__cuando { justify-self: start; padding: 3px 11px; border-radius: var(--pill); background: #fff; color: var(--ev); font-size: 12.5px; font-weight: 700; }
.agenda-next__txt strong { font-size: 1.2rem; line-height: 1.3; color: var(--ink); letter-spacing: -.01em; }
.agenda-next__desc { font-size: 14.5px; line-height: 1.55; color: var(--text); }
.agenda-next__meta { font-size: 13.5px; color: var(--muted); }

.agenda-list { list-style: none; margin: 0; padding: 0; display: grid; }
.agenda-list li { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.agenda-list li:first-child { border-top: 0; }
.agenda-list__dia { display: grid; place-items: center; align-content: center; height: 50px; border-radius: 12px; background: color-mix(in srgb, var(--ev) 12%, #fff); color: var(--ev); font-size: 11.5px; font-weight: 700; text-transform: capitalize; line-height: 1.1; }
.agenda-list__dia strong { font-size: 18px; font-weight: 800; }
.agenda-list__txt { display: grid; gap: 2px; min-width: 0; }
.agenda-list__txt strong { font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.agenda-list__txt span { font-size: 13px; color: var(--muted); }
.agenda-list__cuando { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }

.agenda-list--hechas { margin-bottom: 16px; }
.agenda-list--hechas li { border-color: #e1e6ef; }
.agenda-list--hechas .agenda-list__dia { background: #fff; color: var(--muted); }
.agenda-list--hechas .agenda-list__txt strong { color: var(--text); font-weight: 600; }
.agenda-list__ok { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e3f5ee; color: #16a37f; }

.agenda-avance { margin-bottom: 14px; }
.agenda-avance p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.agenda-avance p strong { font-size: 1.35rem; color: var(--ink); margin-right: 2px; }
.agenda-avance__barra { display: block; height: 8px; border-radius: var(--pill); background: #dfe5ef; overflow: hidden; }
.agenda-avance__barra span { display: block; height: 100%; border-radius: inherit; background: var(--p-navy); }

@media (max-width: 900px) {
	.home-agenda__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.agenda-next { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px; }
	.agenda-next__dia strong { font-size: 1.6rem; }
	.agenda-list li { grid-template-columns: 46px minmax(0, 1fr); }
	.agenda-list__cuando { grid-column: 2; margin-top: -8px; }
	.agenda-list--hechas .agenda-list__ok { display: none; }
}
.agenda-list__cuando.is-en-curso { color: var(--ev); }
