/*
Theme Name: VERIDATO
Theme URI: https://veridato.org/
Author: Sofosy
Description: Tema institucional de VERIDATO: verificación, formación y ciudadanía digital. Modo oscuro por defecto, carrusel de hasta cinco noticias, método VOCES, Aula VERIDATO y acceso al asistente Veri. Al activarlo crea las páginas internas y los menús.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: veridato
Tags: one-column, custom-menu, custom-logo, featured-images, translation-ready, dark
*/

/* ---------- Tokens: modo oscuro por defecto ---------- */
:root {
	--bg: #0a1530;
	--bg-alt: #112654;
	--surface: #13264b;
	--surface-2: #182e5a;
	--line: #29406d;
	--text: #eef3fc;
	--muted: #aebcd5;
	--blue: #2865df;
	--blue-strong: #1f56c9;
	--sky: #80b8ff;
	--navy: #0f1f45;
	--deep: #081129;
	--band-blue: #2865df;
	--header-bg: rgba(10, 21, 48, .92);
	--pill-bg: #13264b;
	--shadow: 0 18px 40px rgba(0, 0, 0, .35);
	/* nombres heredados de la maqueta (páginas internas) */
	--ink: var(--text);
	--wash: var(--surface-2);
	--white: #fff;
	color-scheme: dark;
}
:root[data-theme="light"] {
	--bg: #ffffff;
	--bg-alt: #eef3fc;
	--surface: #ffffff;
	--surface-2: #f4f7fc;
	--line: #dee5ef;
	--text: #162644;
	--muted: #5d6c84;
	--header-bg: rgba(255, 255, 255, .95);
	--pill-bg: #f2f6fd;
	--shadow: 0 18px 40px rgba(16, 30, 62, .1);
	--ink: #162644;
	--wash: #f4f7fc;
	color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4, .vd-h1 { font-family: Manrope, 'DM Sans', sans-serif; line-height: 1.2; letter-spacing: -.03em; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.vd-skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 6px; }
.vd-skip:focus { top: 12px; }
.vd-icon { flex-shrink: 0; }
[hidden] { display: none !important; }

/* Utilidades heredadas por las páginas internas */
.btn, .vd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--blue); background: var(--blue); color: #fff; padding: 14px 22px; border-radius: 8px; font-weight: 700; font-size: 15px; transition: background .2s, transform .2s; }
.btn:hover, .vd-btn:hover { background: var(--blue-strong); }
.btn.outline { background: transparent; color: var(--sky); border: 2px solid var(--blue); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; display: flex; align-items: center; gap: 11px; color: #b5c9e9; }
.eyebrow.blue { color: var(--blue); }
[data-theme="dark"] .eyebrow.blue { color: var(--sky); }
.text-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 0; background: none; padding: 0; margin-top: 23px; color: var(--blue); font-size: 13px; font-weight: 700; }
[data-theme="dark"] .text-button { color: var(--sky); }
.text-button span { font-size: 21px; }
.status { font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 4px; }
.amber { color: #8b580c; background: #fff0d6; }
.red { color: #ab3543; background: #fcebee; }
.blue-status { color: #285ca9; background: #eaf1fd; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 35px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #d0ddf1; }

/* ---------- Bandas alternas ---------- */
.band-a { background: var(--bg); }
.band-b { background: var(--bg-alt); }
.band-navy { background: var(--navy); color: #fff; }
.band-blue { background: var(--band-blue); color: #fff; }
:root[data-theme="light"] .band-navy { background: #0f1f45; }

/* ---------- Barra superior ---------- */
.vd-topbar { background: var(--deep); color: #d7e2f4; font-size: 13px; font-weight: 700; letter-spacing: .01em; }
.vd-topbar .wrap { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.vd-topbar-text { display: flex; align-items: center; gap: 8px; }
.vd-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--sky); }
.vd-sep { color: #5e74a0; margin: 0 4px; }
.vd-social { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.vd-social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #d7e2f4; transition: background .2s, color .2s; }
.vd-social a:hover { background: var(--blue); color: #fff; }
.vd-social .vd-icon { width: 16px; height: 16px; }

/* ---------- Encabezado robusto ---------- */
.vd-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.admin-bar .vd-header { top: 32px; }
.vd-header .wrap, .vd-topbar .wrap { max-width: 1440px; }
.vd-nav { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.vd-brand { display: block; flex-shrink: 0; }
.vd-brand img, .custom-logo { width: 190px; height: auto; }
.vd-logo-light { display: none !important; }
:root[data-theme="light"] .vd-header .vd-logo-dark { display: none !important; }
:root[data-theme="light"] .vd-header .vd-logo-light { display: block !important; }
.vd-menu-wrap { flex: 1; display: flex; justify-content: center; }
.vd-menu { list-style: none; margin: 0; padding: 6px; display: flex; align-items: center; gap: 2px; background: var(--pill-bg); border: 1px solid var(--line); border-radius: 999px; }
.vd-menu > li { position: relative; display: flex; align-items: center; }
.vd-menu a { display: block; font-weight: 800; font-size: 14.5px; letter-spacing: -.005em; padding: 11px 14px; border-radius: 999px; white-space: nowrap; transition: background .2s, color .2s; }
.vd-menu > li > a:hover, .vd-menu > li:focus-within > a { color: var(--sky); }
:root[data-theme="light"] .vd-menu > li > a:hover { color: var(--blue); }
.vd-menu > .current-menu-item > a, .vd-menu > .current-menu-ancestor > a, .vd-menu > .current_page_item > a { background: var(--blue); color: #fff !important; }
.vd-menu .menu-item-has-children > a { padding-right: 6px; }
.vd-sub-toggle { border: 0; background: none; padding: 6px 10px 6px 2px; color: var(--sky); display: grid; place-items: center; }
:root[data-theme="light"] .vd-sub-toggle { color: var(--blue); }
.vd-menu .sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 10; }
.vd-menu .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.vd-menu > li:hover > .sub-menu, .vd-menu > li:focus-within > .sub-menu, .vd-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.vd-menu .sub-menu a { border-radius: 8px; font-weight: 700; font-size: 14px; padding: 10px 14px; }
.vd-menu .sub-menu a:hover { background: var(--blue); color: #fff; }
.vd-tools { display: flex; align-items: center; gap: 8px; }
.vd-tool { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--pill-bg); display: grid; place-items: center; color: var(--text); }
.vd-tool:hover { border-color: var(--blue); color: var(--sky); }
.vd-when-light { display: none; }
:root[data-theme="light"] .vd-when-light { display: inline; }
:root[data-theme="light"] .vd-when-dark { display: none; }
.vd-when-dark, .vd-when-light { line-height: 0; }
.vd-cta { border-radius: 999px; padding: 13px 22px; box-shadow: 0 10px 24px rgba(40, 101, 223, .35); white-space: nowrap; }
.vd-menu-toggle { display: none; }

/* ---------- Carrusel de noticias ---------- */
.vd-hero { position: relative; min-height: 620px; background: var(--deep); color: #fff; overflow: hidden; }
.vd-slide { position: absolute; inset: 0; display: flex; align-items: center; }
.vd-slide.is-active { position: relative; min-height: 620px; animation: vd-fade .7s ease; }
@keyframes vd-fade { from { opacity: .3; } to { opacity: 1; } }
.vd-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vd-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 17, 41, .95) 0%, rgba(8, 17, 41, .78) 45%, rgba(8, 17, 41, .25) 100%); }
.vd-slide-content { position: relative; z-index: 1; width: 100%; padding-top: 70px; padding-bottom: 130px; }
.vd-slide-content > * { max-width: 680px; }
.vd-slide h1, .vd-slide .vd-h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; line-height: 1.08; letter-spacing: -.045em; margin: 18px 0 20px; }
.vd-slide p { font-size: 18px; color: #d2def0; margin-bottom: 30px; }
.vd-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #b5c9e9; }
.vd-eyebrow::before { content: ""; width: 22px; height: 4px; border-radius: 4px; background: var(--sky); }
.vd-eyebrow.vd-blue { color: var(--blue); }
[data-theme="dark"] .vd-eyebrow.vd-blue { color: var(--sky); }
.vd-slide-controls { position: absolute; left: 0; right: 0; bottom: 92px; z-index: 2; display: flex; align-items: center; gap: 10px; }
.vd-dots { display: flex; gap: 8px; margin-right: 12px; }
.vd-dots button { width: 34px; height: 5px; border-radius: 5px; border: 0; padding: 0; background: rgba(255, 255, 255, .35); }
.vd-dots button[aria-current] { background: var(--sky); width: 54px; }
.vd-slide-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(8, 17, 41, .4); color: #fff; display: grid; place-items: center; }
.vd-slide-btn:hover { background: var(--blue); border-color: var(--blue); }
.vd-slide-count { font-weight: 700; font-size: 13px; letter-spacing: .1em; min-width: 62px; text-align: center; }
.vd-when-paused { display: none; line-height: 0; }
.vd-when-playing { line-height: 0; }
.vd-hero.is-paused .vd-when-paused { display: inline; }
.vd-hero.is-paused .vd-when-playing { display: none; }

/* ---------- Accesos rápidos ---------- */
.vd-services { padding-bottom: 34px; }
.vd-category-grid { position: relative; z-index: 3; margin-top: -60px; display: grid; grid-template-columns: repeat(6, 1fr); background: var(--navy); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px rgba(5, 12, 30, .45); }
.vd-category-grid > a, .vd-category-grid > button { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 30px 12px 28px; text-align: center; font-size: 14px; font-weight: 700; line-height: 1.35; color: #fff; border: 0; background: none; border-right: 1px solid rgba(255, 255, 255, .08); transition: background .2s; }
.vd-category-grid > :last-child { border-right: 0; }
.vd-category-grid .vd-icon { color: var(--sky); }
.vd-category-grid > a:hover, .vd-category-grid > button:hover { background: var(--blue); }
.vd-category-grid > a:hover .vd-icon, .vd-category-grid > button:hover .vd-icon { color: #fff; }
.vd-services-note { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; padding-top: 30px; text-align: center; font-weight: 500; }
.vd-btn-dark { background: var(--navy); border-color: var(--navy); padding: 11px 18px; font-size: 14px; }
.vd-btn-dark:hover { background: #07102a; }
.vd-btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.vd-btn-ghost:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Secciones ---------- */
.vd-section { padding: 92px 0; }
.vd-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 38px; flex-wrap: wrap; }
.vd-head h2, .vd-title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; }
.vd-head p, .vd-subtitle { color: var(--muted); font-size: 17px; margin-top: 10px; }
.vd-title { margin-top: 12px; }
.vd-subtitle { margin-bottom: 38px; max-width: 820px; }
.vd-oneline { font-size: clamp(22px, 2.6vw, 36px) !important; }
@media (min-width: 900px) { .vd-oneline { white-space: nowrap; } }
.vd-note { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.vd-kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.vd-kicker.vd-blue { color: var(--blue); }
[data-theme="dark"] .vd-kicker.vd-blue { color: var(--sky); }
.vd-text-link, .vd-inline-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 800; font-size: 14px; }
[data-theme="dark"] .vd-text-link, [data-theme="dark"] .vd-inline-link { color: var(--sky); }
.vd-text-link:hover, .vd-inline-link:hover { text-decoration: underline; }

/* Ejes de acción */
.vd-photo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vd-photo-cards a { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .25s, border-color .25s; }
.vd-photo-cards a:hover { transform: translateY(-4px); border-color: var(--blue); }
.vd-photo-cards img { width: 100%; height: 240px; object-fit: cover; }
.vd-photo-cards div { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; }
.vd-photo-cards h3 { font-size: 22px; }
.vd-photo-cards .vd-icon { color: var(--sky); }

/* Quiénes somos */
.vd-mission { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.vd-mission-photo { position: relative; display: block; border-radius: 16px; overflow: hidden; }
.vd-mission-photo img { width: 100%; height: 520px; object-fit: cover; }
.vd-mission-photo div { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px; background: linear-gradient(0deg, rgba(15, 31, 69, .97), rgba(15, 31, 69, .85)); color: #fff; display: grid; gap: 14px; }
.vd-mission-photo strong { font-family: Manrope, sans-serif; font-size: 28px; line-height: 1.2; letter-spacing: -.03em; }
.vd-mission-photo span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #b5c9e9; font-weight: 700; }
.vd-mission-copy h2 { font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; margin: 16px 0 22px; }
.vd-mission-copy p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.vd-mission-copy blockquote { margin: 26px 0; padding-left: 20px; border-left: 4px solid var(--blue); font-family: Manrope, sans-serif; font-size: 24px; font-weight: 700; line-height: 1.35; color: var(--text); }

/* VOCES */
.vd-voces { padding: 58px 0; background: linear-gradient(180deg, #0d1c48, #0a1638); }
.vd-voces-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.vd-voces-grid a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 14px 10px; border-radius: 12px; transition: background .2s; }
.vd-voces-grid a:hover { background: rgba(255, 255, 255, .06); }
.vd-voces-grid .vd-icon { color: #4d8dff; margin-bottom: 6px; }
.vd-letter { font-family: Manrope, sans-serif; font-weight: 800; font-size: 34px; line-height: 1.1; }
.vd-voces-grid strong { font-size: 16px; }
.vd-voces-grid a > span:last-child { color: #c9d6ee; font-size: 15px; max-width: 220px; }

/* Talleres */
.vd-events { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.vd-events article { display: grid; grid-template-columns: 220px 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.vd-events img { width: 100%; height: 100%; object-fit: cover; }
.vd-events article > div { padding: 26px; display: grid; gap: 10px; align-content: start; }
.vd-events h3 { font-size: 21px; }
.vd-events p { color: var(--muted); font-size: 15px; }
.vd-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

/* Aula VERIDATO */
.vd-filters { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px; overflow-x: auto; }
.vd-filters button { border: 0; background: none; padding: 0 0 12px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.vd-filters button[aria-pressed="true"] { color: var(--text); border-color: var(--blue); }
.vd-aula-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.vd-aula-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.vd-aula-card:hover { transform: translateY(-4px); border-color: var(--blue); }
.vd-aula-top { position: relative; min-height: 190px; padding: 18px 20px; background: linear-gradient(135deg, #0f1f45, #142c63); color: #fff; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.vd-aula-top::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(120deg, transparent 0 46px, rgba(128, 184, 255, .05) 46px 47px); }
.vd-aula-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 18px; }
.vd-aula-top strong { font-family: Manrope, sans-serif; font-size: 18px; line-height: 1.25; max-width: 55%; position: relative; z-index: 1; }
.vd-aula-top small { font-size: 12px; color: #c9d6ee; max-width: 55%; position: relative; z-index: 1; }
.vd-aula-art { position: absolute; right: 14px; top: 50%; transform: translateY(-40%); z-index: 1; }
.vd-aula-art > span:first-child { width: 92px; height: 92px; display: grid; place-items: center; border-radius: 18px; background: #e9f1ff; color: var(--blue); box-shadow: 0 10px 24px rgba(0, 0, 0, .3); transform: rotate(-6deg); }
.vd-aula-art > span:last-child { position: absolute; right: -6px; bottom: -10px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; border: 3px solid #e9f1ff; }
.vd-aula-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vd-aula-body h3 { font-size: 20px; }
.vd-aula-body p { color: var(--muted); font-size: 14.5px; }
.vd-aula-body .vd-text-link { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); justify-content: space-between; }

/* Herramientas + Veri */
.vd-resources { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.vd-resources-intro h2 { font-size: clamp(30px, 3.2vw, 42px); font-weight: 800; }
.vd-resources-intro > p { color: var(--muted); font-size: 17px; margin: 16px 0 26px; max-width: 460px; }
.vd-veri { position: relative; margin: 30px 0 0; max-width: 470px; }
.vd-veri img { position: relative; z-index: 1; width: 78%; margin: 0 auto; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .35)); }
.vd-veri-glow { position: absolute; inset: 14% 4% 2%; border-radius: 50%; background: radial-gradient(circle, rgba(40, 101, 223, .45), rgba(40, 101, 223, 0) 70%); }
.vd-bubble-say { position: absolute; z-index: 2; background: #eef4ff; color: #12224a; border-radius: 22px; padding: 14px 18px; font-weight: 700; box-shadow: 0 12px 26px rgba(0, 0, 0, .25); line-height: 1.3; }
.vd-say-1 { left: -6px; top: 22%; font-family: Manrope, sans-serif; font-size: 20px; transform: rotate(-6deg); }
.vd-say-2 { right: -30px; top: 30%; max-width: 180px; font-size: 13px; font-weight: 600; }
.vd-say-3 { right: 0; top: 62%; display: flex; gap: 6px; padding: 14px 18px; }
.vd-say-3 i { width: 9px; height: 9px; border-radius: 50%; background: #5b7bd6; animation: vd-typing 1.2s infinite; }
.vd-say-3 i:nth-child(2) { animation-delay: .2s; }
.vd-say-3 i:nth-child(3) { animation-delay: .4s; }
@keyframes vd-typing { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }
.vd-questions details { position: relative; border-bottom: 1px solid var(--line); padding: 30px 110px 30px 0; }
.vd-questions summary { list-style: none; cursor: pointer; font-family: Manrope, sans-serif; font-size: 20px; font-weight: 800; }
.vd-questions summary::-webkit-details-marker { display: none; }
.vd-questions p { color: var(--muted); margin-top: 12px; }
.vd-q-icon { position: absolute; right: 0; top: 24px; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: rgba(40, 101, 223, .14); color: var(--sky); border: 1px dashed rgba(128, 184, 255, .45); }
:root[data-theme="light"] .vd-q-icon { color: var(--blue); }

/* Comunidad */
.vd-community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 34px; }
.vd-community-grid article { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 30px; display: grid; gap: 12px; }
.vd-community-grid .vd-icon { color: var(--sky); }
:root[data-theme="light"] .vd-community-grid .vd-icon { color: var(--blue); }
.vd-community-grid h3 { font-size: 22px; }
.vd-community-grid p { color: var(--muted); }

/* Participación */
.vd-participa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vd-participa-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.vd-participa-card h3 { font-size: 21px; margin: 10px 0; }
.vd-participa-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.vd-participa-art { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: rgba(40, 101, 223, .15); color: var(--sky); }
:root[data-theme="light"] .vd-participa-art { color: var(--blue); background: #e7effd; }

/* Voluntariado */
.vd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.vd-split img { width: 100%; height: 380px; object-fit: cover; border-radius: 16px; }
.vd-split h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; margin: 14px 0 16px; }
.vd-split p { color: var(--muted); font-size: 17px; margin-bottom: 26px; }

/* Historias (videos) */
.vd-stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vd-story { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.vd-story-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.vd-story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.vd-story-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 17, 41, .55), rgba(8, 17, 41, .05)); }
.vd-story:hover .vd-story-media img { transform: scale(1.04); }
.vd-play { position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .35); }
.vd-play .vd-icon { margin-left: 3px; fill: currentColor; }
.vd-story-chip { position: absolute; z-index: 1; right: 14px; top: 14px; width: 46px; height: 46px; border-radius: 12px; background: rgba(238, 244, 255, .92); color: var(--blue); display: grid; place-items: center; }
.vd-story-brands { position: absolute; z-index: 1; left: 14px; bottom: 12px; display: flex; gap: 10px; color: #fff; align-items: center; }
.vd-story-body { padding: 22px 24px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vd-story-body h3 { font-size: 21px; }
.vd-story-body p { color: var(--muted); font-size: 14.5px; }
.vd-story-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.vd-story-foot > span { display: inline-flex; align-items: center; gap: 6px; padding-left: 14px; border-left: 1px solid var(--line); }

/* Sé nuestro aliado */
.vd-ally { padding: 64px 0; background: linear-gradient(100deg, #081129, #102457); }
.vd-ally-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.vd-ally-icon { color: #fff; }
.vd-ally-icon .vd-icon { stroke-width: 1.4; }
.vd-ally h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; margin: 12px 0; max-width: 640px; }
.vd-ally p { color: #c9d6ee; max-width: 620px; }

/* Aliados */
.vd-partners { text-align: center; position: relative; overflow: hidden; }
.vd-partners::before { content: ""; position: absolute; left: 50%; top: 40px; width: 1200px; height: 1200px; transform: translateX(-50%); border-radius: 50%; border: 1px solid rgba(128, 184, 255, .18); pointer-events: none; }
.vd-arc { display: flex; justify-content: center; align-items: flex-end; gap: 30px; margin-bottom: 34px; position: relative; }
.vd-arc span { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--sky); box-shadow: 0 0 0 8px rgba(40, 101, 223, .08); }
.vd-arc span:nth-child(2), .vd-arc span:nth-child(4) { margin-bottom: 26px; }
.vd-arc .vd-arc-main { width: 112px; height: 112px; margin-bottom: 40px; }
:root[data-theme="light"] .vd-arc span { color: var(--blue); background: #eef4ff; }
.vd-partners h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; position: relative; }
.vd-partners-lead { color: var(--muted); font-size: 17px; max-width: 760px; margin: 16px auto 34px; position: relative; }
.vd-partner-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.vd-partner-slots span { display: grid; place-items: center; min-height: 92px; border: 1.5px dashed rgba(128, 184, 255, .5); border-radius: 10px; color: var(--muted); font-weight: 600; background: var(--surface); }
.vd-small { font-size: 12px; color: var(--muted); margin-top: 16px; position: relative; }

/* ---------- Consulta a Veri + boletín ---------- */
.vd-ask { padding: 54px 0; }
.vd-ask-grid { display: grid; grid-template-columns: 250px 1fr minmax(280px, 400px); gap: 40px; align-items: center; }
.vd-ask h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; }
.vd-ask p { color: #e0eaff; margin-top: 10px; }
.vd-ask-art { position: relative; height: 170px; }
.vd-bot { position: absolute; left: 70px; top: 40px; width: 104px; height: 104px; border-radius: 28px; background: #fff; color: var(--blue); display: grid; place-items: center; box-shadow: 0 16px 30px rgba(8, 17, 41, .35); }
.vd-float { position: absolute; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .9); color: var(--blue); box-shadow: 0 8px 18px rgba(8, 17, 41, .25); }
.vd-f1 { left: 12px; top: 6px; } .vd-f2 { left: 150px; top: 0; } .vd-f3 { right: 0; top: 60px; } .vd-f4 { left: 0; bottom: 4px; } .vd-f5 { right: 22px; bottom: -6px; }
.vd-f1 { background: #25d366; color: #fff; border-radius: 50%; }
.vd-searchbox { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 6px 6px 6px 14px; }
.vd-searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #162644; height: 46px; }
.vd-searchbox button { width: 48px; height: 48px; border: 0; border-radius: 8px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.vd-newsletter { padding: 54px 0; }
.vd-newsletter-grid { display: grid; grid-template-columns: 200px 1fr minmax(280px, 400px); gap: 40px; align-items: center; }
.vd-newsletter h2 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.4; margin-top: 12px; }
.vd-nl-art { position: relative; height: 130px; }
.vd-envelope { position: absolute; left: 20px; top: 10px; width: 120px; height: 110px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(160deg, #3d7bf0, #2155c4); color: #fff; box-shadow: 0 16px 30px rgba(0, 0, 0, .35); transform: rotate(-6deg); }
.vd-plane { position: absolute; right: 0; top: 0; color: var(--sky); }
.vd-nl-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.vd-inline-form { display: flex; background: #fff; border-radius: 10px; overflow: hidden; }
.vd-inline-form input { flex: 1; min-width: 0; border: 0; background: #fff; padding: 0 16px; height: 54px; color: #162644; outline: 0; }
.vd-inline-form button { border: 0; background: var(--blue); color: #fff; font-weight: 700; padding: 0 22px; }
.vd-inline-form button:hover { background: var(--blue-strong); }
.form-result { font-size: 13px; color: #c9d6ee; margin-top: 8px; min-height: 1em; }

/* ---------- Pie ---------- */
.vd-footer { background: var(--deep); color: #d7e2f4; padding-top: 18px; position: relative; overflow: hidden; }
.vd-footer::after { content: ""; position: absolute; right: -180px; top: 60px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(128, 184, 255, .14); pointer-events: none; }
.vd-footer-top { border-bottom: 1px solid rgba(255, 255, 255, .1); padding: 10px 0 18px; }
.vd-inline-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 34px; font-size: 14px; font-weight: 600; }
.vd-inline-menu a:hover, .vd-list-menu a:hover { color: var(--sky); }
.vd-footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; padding: 44px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.vd-footer-cols > div { padding: 0 34px; border-left: 1px solid rgba(255, 255, 255, .1); }
.vd-footer-cols > div:first-child { padding-left: 0; border-left: 0; }
.vd-footer-brand strong { display: block; font-family: Manrope, sans-serif; font-size: 18px; color: #fff; margin: 18px 0 10px; }
.vd-footer-brand p { font-size: 14px; color: #b9c7de; }
.vd-footer h3 { font-size: 18px; color: #fff; margin-bottom: 18px; }
.vd-list-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.vd-manifesto { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 34px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); flex-wrap: wrap; }
.vd-rule { display: block; width: 46px; height: 4px; border-radius: 4px; background: var(--blue); margin-bottom: 16px; }
.vd-manifesto h2 { font-size: 22px; color: #fff; }
.vd-word-veri { color: #fff; }
.vd-manifesto .vd-dato { color: #4d8dff; }
.vd-manifesto p { color: #b9c7de; margin: 8px 0 12px; }
.vd-domain { display: inline-flex; align-items: center; gap: 6px; color: var(--sky); font-weight: 700; }
.vd-footer-social { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.vd-social-round a { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .25); }
.vd-footer-social p { display: flex; gap: 12px; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .2); font-size: 14px; }
.vd-footer-social p a:hover { color: var(--sky); }
.vd-copy { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0 30px; font-size: 13px; color: #9fb0cc; }
.vd-copy a:hover { color: #fff; }

/* ---------- Chat ---------- */
.vd-chat-launch { position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--navy); color: #fff; text-align: left; box-shadow: var(--shadow); font-size: 14px; }
.vd-chat-launch small { display: block; font-size: 11px; color: #a9b8d0; }
.vd-chat-symbol { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); }
.vd-chat-panel { position: fixed; right: 22px; bottom: 90px; z-index: 61; width: min(380px, calc(100vw - 32px)); max-height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.vd-chat-panel[hidden] { display: none !important; }
.vd-chat-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--navy); color: #fff; }
.vd-chat-header img { width: 40px; height: 50px; object-fit: cover; object-position: top; border-radius: 10px; background: #1b3470; }
.vd-chat-header div { flex: 1; }
.vd-chat-header small { display: block; font-size: 12px; color: #a9b8d0; }
.vd-chat-header button { border: 0; background: none; color: #fff; }
.vd-chat-note { font-size: 10px; letter-spacing: .12em; font-weight: 700; text-align: center; padding: 6px; background: var(--surface-2); color: var(--muted); }
.vd-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.vd-bubble { white-space: pre-line; padding: 11px 14px; border-radius: 14px; font-size: 14px; max-width: 88%; }
.vd-bubble.bot { background: var(--surface-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.vd-bubble.user { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.vd-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.vd-suggestions button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 6px 12px; font-size: 12px; }
.vd-suggestions button:hover { border-color: var(--blue); }
#vd-chat-form { display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
#vd-chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 0 12px; height: 44px; }
#vd-chat-form button { width: 44px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; }

/* ---------- Diálogo de búsqueda y formularios ---------- */
#vd-search-dialog { width: min(720px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 18px; padding: 44px; background: var(--surface); color: var(--text); }
#vd-search-dialog::backdrop { background: rgba(5, 10, 25, .7); backdrop-filter: blur(3px); }
#vd-search-dialog h2 { font-size: 30px; margin-bottom: 20px; }
.vd-dialog-close { position: absolute; right: 16px; top: 16px; border: 0; background: none; color: var(--text); }
.vd-search-form { display: flex; gap: 10px; }
.vd-search-form input { flex: 1; min-width: 0; height: 52px; border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; background: var(--bg); }
.vd-search-inline { max-width: 720px; margin-bottom: 40px; }

/* ---------- Plantillas genéricas ---------- */
.vd-entry { max-width: 860px; padding-top: 60px; padding-bottom: 80px; }
.vd-entry-cover { margin: 0 0 30px; }
.vd-entry-cover img { width: 100%; border-radius: 14px; }
.vd-entry-content { font-size: 17px; line-height: 1.85; }
.vd-entry-content > * + * { margin-top: 1.1em; }
.vd-entry-content h2 { font-size: 30px; margin-top: 1.6em; }
.vd-entry-content h3 { font-size: 23px; margin-top: 1.4em; }
.vd-entry-content a { color: var(--sky); text-decoration: underline; }
:root[data-theme="light"] .vd-entry-content a { color: var(--blue); }
.vd-entry-content blockquote { margin-left: 0; padding-left: 20px; border-left: 4px solid var(--blue); font-weight: 600; }
.vd-entry-content .alignwide { max-width: 1100px; }
.vd-entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.vd-post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 700; color: var(--sky); }
.vd-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vd-post-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.vd-post-card img { width: 100%; height: 210px; object-fit: cover; }
.vd-post-card > div { padding: 22px; }
.vd-post-card h2 { font-size: 21px; margin: 10px 0; }
.vd-post-card p { color: var(--muted); font-size: 14.5px; }
.vd-pagination, .pagination { margin-top: 40px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; }
.page-numbers.current { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Páginas internas en modo claro/oscuro: superficies coherentes */
.portal-banner, .article-banner { color: #fff; }
.portal-content, .article-layout { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1400px) {
	.vd-cta { display: none; }
}
@media (max-width: 1240px) {
	.vd-menu a { padding: 10px 12px; font-size: 14px; }
}
@media (max-width: 1100px) {
	.vd-menu-toggle { display: grid; }
	.vd-menu-wrap { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 20px 24px; max-height: calc(100vh - 140px); overflow-y: auto; }
	.vd-menu-wrap.is-open { display: block; }
	.vd-menu { flex-direction: column; align-items: stretch; border-radius: 14px; padding: 8px; }
	.vd-menu > li { flex-wrap: wrap; justify-content: space-between; }
	.vd-menu > li > a { flex: 1; }
	.vd-menu .sub-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; width: 100%; margin: 4px 0 8px; }
	.vd-menu > li:hover > .sub-menu, .vd-menu > li:focus-within > .sub-menu { display: none; }
	.vd-menu > li.is-open > .sub-menu { display: block; }
	.vd-category-grid { grid-template-columns: repeat(3, 1fr); }
	.vd-category-grid > a, .vd-category-grid > button { border-bottom: 1px solid rgba(255, 255, 255, .08); }
	.vd-photo-cards, .vd-community-grid, .vd-participa-grid, .vd-stories, .vd-post-grid { grid-template-columns: 1fr 1fr; }
	.vd-aula-grid { grid-template-columns: 1fr 1fr; }
	.vd-voces-grid { grid-template-columns: repeat(3, 1fr); }
	.vd-mission, .vd-resources, .vd-split, .vd-events { grid-template-columns: 1fr; }
	.vd-ask-grid, .vd-newsletter-grid { grid-template-columns: 1fr 1fr; }
	.vd-ask-art, .vd-nl-art { display: none; }
	.vd-ally-grid { grid-template-columns: 1fr; }
	.vd-ally-icon { display: none; }
	.vd-footer-cols { grid-template-columns: 1fr 1fr; gap: 30px 0; }
	.vd-footer-cols > div:nth-child(3) { padding-left: 0; border-left: 0; }
	.vd-veri { max-width: 420px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 782px) {
	.admin-bar .vd-header { top: 46px; }
}
@media (max-width: 700px) {
	.wrap { padding: 0 16px; }
	.vd-topbar-text { display: none; }
	.vd-topbar .wrap { justify-content: center; }
	.vd-nav { min-height: 72px; }
	.vd-brand img, .custom-logo { width: 150px; }
	.vd-tool { width: 38px; height: 38px; }
	.vd-hero, .vd-slide.is-active { min-height: 560px; }
	.vd-slide-content { padding-top: 50px; padding-bottom: 150px; }
	.vd-slide-controls { bottom: 84px; flex-wrap: wrap; }
	.vd-dots { width: 100%; margin: 0 0 6px; }
	.vd-category-grid { grid-template-columns: repeat(2, 1fr); }
	.vd-section { padding: 64px 0; }
	.vd-photo-cards, .vd-community-grid, .vd-participa-grid, .vd-stories, .vd-post-grid, .vd-aula-grid, .vd-partner-slots { grid-template-columns: 1fr; }
	.vd-voces-grid { grid-template-columns: 1fr 1fr; }
	.vd-events article { grid-template-columns: 1fr; }
	.vd-events img { height: 200px; }
	.vd-mission-photo img { height: 380px; }
	.vd-questions details { padding-right: 70px; }
	.vd-q-icon { width: 54px; height: 54px; }
	.vd-q-icon .vd-icon { width: 22px; height: 22px; }
	.vd-say-2 { right: -4px; max-width: 150px; }
	.vd-arc { gap: 10px; }
	.vd-arc span { width: 52px; height: 52px; }
	.vd-arc span .vd-icon { width: 22px; height: 22px; }
	.vd-arc .vd-arc-main { width: 76px; height: 76px; }
	.vd-ask-grid, .vd-newsletter-grid, .vd-footer-cols { grid-template-columns: 1fr; }
	.vd-footer-cols > div { padding: 0; border-left: 0; }
	.vd-participa-card { grid-template-columns: 1fr; }
	.vd-participa-art { display: none; }
	.vd-footer-social p { border-left: 0; padding-left: 0; }
	.vd-chat-launch { right: 12px; bottom: 12px; }
	.vd-chat-panel { right: 12px; bottom: 80px; }
	#vd-search-dialog { padding: 30px 20px; }
	.vd-search-form { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
