/*
Theme Name: Fundación Compartamos
Theme URI: https://fundacioncompartamos.org/
Author: Fundación Compartamos
Description: Tema personalizado y moderno para Fundación Compartamos Ecuador. Diseño limpio con paleta morada y acentos lima, inspirado en un estilo social contemporáneo. Contenido enfocado en el empoderamiento de la mujer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: compartamos
*/

/* ====================== TOKENS ====================== */
:root {
	/* Paleta tomada del logo: gradiente rosa fucsia -> morado */
	--purple-900: #4e1a5e;
	--purple-700: #7a2a8c;
	--purple-500: #a02d8f;
	--purple-300: #b06aa8;
	--purple-100: #f7ecf5;
	--magenta: #e0218a;
	--magenta-dark: #c71e79;
	--magenta-bright: #ff3d9a;
	--pink: #d6246e;
	--ink: #2a1730;
	--body: #4f4556;
	--muted: #6f6577;
	--bg: #ffffff;
	--bg-soft: #fcf6fb;
	--white: #ffffff;
	--line: #f0e6f0;

	--radius: 16px;
	--radius-lg: 28px;
	--shadow-sm: 0 4px 16px rgba(78, 26, 94, .08);
	--shadow: 0 18px 44px rgba(122, 42, 140, .16);
	--container: 1160px;
	--font-head: 'Poppins', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, sans-serif;
}

/* ====================== BASE ====================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: #4b4552;
	background: var(--bg);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip; /* evita scroll horizontal sin romper position:sticky */
}
/* Los ítems de grid/flex no deben crecer más allá de su columna */
.hero-inner > *, .two-col > *, .contacto-inner > *, .mv-grid > *,
.cards > *, .stats > *, .footer-grid > * { min-width: 0; }
/* Palabras largas nunca desbordan */
h1, h2, h3, p, a, li, blockquote { overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-700); text-decoration: none; }
a:hover { color: var(--purple-500); }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.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;
}
.skip-link { position: absolute; left: -9999px; z-index: 999; }
.skip-link:focus { left: 16px; top: 16px; background: var(--white); padding: 10px 16px; border-radius: 8px; }

/* ====================== BOTONES ====================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	font-family: var(--font-head); font-weight: 600; font-size: .98rem;
	padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
	cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
	line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--magenta); color: #fff; box-shadow: 0 10px 24px rgba(224,33,138,.35); }
.btn-accent:hover { background: var(--magenta-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-light { background: #fff; color: var(--purple-700); }
.btn-light:hover { background: var(--purple-100); color: var(--purple-700); }

/* ====================== HEADER ====================== */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.site-logo, .footer-logo { display: inline-flex; align-items: center; gap: 10px; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { height: 60px; width: auto; }
@media (max-width: 560px) { .custom-logo { height: 48px; } }
.logo-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
	background: linear-gradient(135deg, var(--magenta) 0%, var(--purple-500) 55%, var(--purple-700) 100%); color: #fff; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--font-head); }
.logo-text strong { color: var(--purple-700); font-size: 1.05rem; font-weight: 700; }
.logo-text span { color: var(--muted); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }

.main-navigation { display: flex; align-items: center; gap: 28px; }
.nav-menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { font-family: var(--font-head); font-weight: 500; color: var(--ink); font-size: .98rem; position: relative; }
.nav-menu a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--magenta); transition: width .2s ease; }
.nav-menu a:hover::after { width: 100%; }
/* Ítem activo: resalta la sección/página actual */
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a,
.nav-menu .current-page-ancestor > a { color: var(--magenta); font-weight: 600; }
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after,
.nav-menu .current-menu-ancestor > a::after,
.nav-menu .current-page-ancestor > a::after { width: 100%; }
.nav-cta { padding: 10px 22px; font-size: .92rem; }

.menu-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; position: relative; }
.menu-toggle-bar, .menu-toggle-bar::before, .menu-toggle-bar::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: var(--ink);
	transform: translate(-50%,-50%); transition: .2s ease;
}
.menu-toggle-bar::before { top: -7px; } .menu-toggle-bar::after { top: 7px; }

/* ====================== HERO ====================== */
.hero {
	position: relative; overflow: hidden;
	background: radial-gradient(130% 130% at 85% 5%, var(--magenta) 0%, var(--purple-500) 42%, var(--purple-700) 72%, var(--purple-900) 100%);
	color: #fff; padding: clamp(60px, 9vw, 110px) 0 clamp(80px, 10vw, 130px);
}
.hero-photo {
	position: absolute; inset: 0; z-index: 0; pointer-events: none;
	background-image: linear-gradient(120deg, rgba(78,26,94,.9) 0%, rgba(122,42,140,.78) 55%, rgba(224,33,138,.62) 100%), var(--hero-photo, none);
	background-size: cover; background-position: center; background-attachment: fixed;
}
.hero .container { position: relative; z-index: 2; }
.hero-blob { position: absolute; z-index: 1; border-radius: 50%; filter: blur(10px); opacity: .5; pointer-events: none; }
.hero-blob--1 { width: 360px; height: 360px; background: rgba(255,61,154,.4); top: -80px; right: -60px; }
.hero-blob--2 { width: 300px; height: 300px; background: rgba(255,255,255,.12); bottom: -120px; left: -80px; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-content h1 { color: #fff; }
.hero .hl { color: #ffb3d9; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.9); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-logo-panel {
	position: relative; z-index: 1; background: #fff; border-radius: var(--radius-lg);
	padding: 34px 40px; box-shadow: var(--shadow); display: grid; place-items: center;
}
.hero-logo-panel img { width: 100%; max-width: 420px; height: auto; }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.hero-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 20px 24px; backdrop-filter: blur(6px); }
.hero-stat strong { display: block; font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: #ffb3d9; }
.hero-stat span { color: rgba(255,255,255,.85); font-size: .95rem; }

/* ====================== EYEBROW / SECCIONES ====================== */
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 14px; }
.eyebrow--accent { color: var(--magenta); }
.eyebrow--light { color: #ffb3d9; }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }
.section--purple { background: linear-gradient(135deg, var(--magenta) 0%, var(--purple-500) 55%, var(--purple-700) 100%); color: #fff; }
.section--purple h2 { color: #fff; }
.section--photo { position: relative; color: #fff; background-image: linear-gradient(rgba(78,26,94,.88), rgba(122,42,140,.82)), var(--sec-photo, none); background-size: cover; background-position: center; background-attachment: fixed; }
.section--photo h2 { color: #fff; }

/* Secciones con fondo de foto fijo (efecto scroll tipo "ventana") */
.px-section { position: relative; overflow: hidden; isolation: isolate; color: #fff; }
.px-bg { position: absolute; inset: 0; z-index: -2;
	background-size: cover; background-position: center; background-attachment: fixed; }
.px-veil { position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(130deg, rgba(78,26,94,.92) 0%, rgba(122,42,140,.86) 50%, rgba(224,33,138,.78) 100%); }
.px-section .container { position: relative; }
.px-section h2, .px-section .section-sub, .px-section p, .px-section blockquote { color: #fff; }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head--light h2, .section-head--light .section-sub { color: #fff; }
.section-sub { color: var(--muted); font-size: 1.08rem; }
.section-head--light .section-sub { color: rgba(255,255,255,.9); }

/* ====================== DOS COLUMNAS ====================== */
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.media-card {
	aspect-ratio: 4/3; border-radius: var(--radius-lg); display: grid; place-items: center;
	background: linear-gradient(135deg, var(--purple-100), #fff); border: 1px solid var(--line);
	box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.media-card::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(224,33,138,.18); }
.media-emoji { font-size: clamp(4rem, 10vw, 7rem); position: relative; z-index: 1; }
.media-card--photo { aspect-ratio: auto; background: none; border: none; box-shadow: none; padding: 0; }
.media-card--photo::after { display: none; }
.media-card--photo img { width: 100%; height: auto; border-radius: 0; }
.value-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.value-list li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--ink); font-family: var(--font-head); }
.value-list span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--purple-100); }

/* ====================== MISIÓN ====================== */
.mission-inner { text-align: center; max-width: 900px; margin: 0 auto; }
.mission blockquote { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.35; color: #fff; }

/* ====================== CARDS ====================== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px;
	box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; font-size: 1.7rem; margin-bottom: 16px;
	background: linear-gradient(135deg, var(--purple-100), #fff); border: 1px solid var(--line); }
.card h3 { color: var(--ink); }
.card p { color: var(--muted); margin: 0; }
.card--photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-photo { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card--photo:hover .card-photo img { transform: scale(1.06); }
.card-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(78,26,94,.35) 100%); }
.card-body { padding: 24px 26px 28px; }
.card-body h3 { color: var(--ink); margin-bottom: 8px; }
.card-body p { color: var(--muted); margin: 0; }
.card--on-purple { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.card--on-purple h3 { color: #fff; }
.card--on-purple p { color: rgba(255,255,255,.85); margin-bottom: 20px; }
.card--on-purple .card-icon { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); }

/* ====================== ACTIVITY CARDS (Qué hacemos, diseño moderno) ====================== */
.act-grid { display: grid; gap: 24px; }
.act-grid--4 { grid-template-columns: repeat(4, 1fr); }
.act-grid--2 { grid-template-columns: repeat(2, 1fr); }
.act-card {
	position: relative; overflow: hidden; border-radius: var(--radius-lg);
	aspect-ratio: 3 / 4.1; box-shadow: var(--shadow-sm); isolation: isolate;
	transition: transform .3s ease, box-shadow .3s ease;
}
.act-card--wide { aspect-ratio: 16 / 10; }
.act-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.act-card-media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .55s ease; }
.act-card:hover .act-card-media { transform: scale(1.08); }
.act-card-veil { position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(to top, rgba(60,18,74,.94) 0%, rgba(74,26,90,.72) 38%, rgba(74,26,90,.15) 68%, rgba(74,26,90,0) 100%); }
.act-card-body { position: absolute; inset: auto 0 0 0; padding: 26px 26px 28px; color: #fff; }
.act-card-num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; line-height: 1;
	color: var(--magenta-bright); opacity: .9; margin-bottom: 6px; letter-spacing: -.02em; }
.act-card h3 { color: #fff; font-size: 1.25rem; margin: 0 0 4px; }
.act-card--wide h3 { font-size: 1.5rem; }
.act-card p { color: rgba(255,255,255,.92); margin: 0; font-size: .95rem;
	max-height: 0; opacity: 0; overflow: hidden; transform: translateY(6px);
	transition: max-height .4s ease, opacity .35s ease, transform .35s ease, margin-top .35s ease; }
.act-card:hover p, .act-card:focus-within p { max-height: 16em; opacity: 1; transform: translateY(0); margin-top: 8px; }

@media (max-width: 900px) {
	.act-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (hover: none) { /* En táctiles/móvil la descripción se muestra siempre */
	.act-card p { max-height: 16em; opacity: 1; transform: none; margin-top: 8px; }
}
@media (max-width: 560px) {
	.act-grid--4, .act-grid--2 { grid-template-columns: 1fr; }
	.act-card { aspect-ratio: 4 / 3.4; }
	.act-card--wide { aspect-ratio: 4 / 3.4; }
}

/* ====================== STATS ====================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 18px; box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem);
	background: linear-gradient(135deg, var(--magenta), var(--purple-500)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ====================== CONTACTO ====================== */
.contacto-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contacto-list, .footer-contact { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.contacto-list li { display: flex; gap: 12px; align-items: center; color: var(--ink); font-weight: 500; }
.contacto-form-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.fallback-form, .wpcf7-form { display: grid; gap: 16px; }
.fallback-form label, .wpcf7-form label { display: grid; gap: 6px; font-family: var(--font-head); font-weight: 500; color: var(--ink); font-size: .95rem; }
.fallback-form input, .fallback-form textarea, .wpcf7-form input:not([type=submit]), .wpcf7-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--bg-soft); color: var(--ink);
}
.fallback-form input:focus, .fallback-form textarea:focus, .wpcf7-form input:focus, .wpcf7-form textarea:focus {
	outline: none; border-color: var(--purple-500); box-shadow: 0 0 0 3px rgba(138,55,155,.15); background: #fff;
}
.wpcf7-form input[type=submit] { background: var(--magenta); color: #fff; border: none; padding: 13px 26px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; cursor: pointer; }
.wpcf7-form input[type=submit]:hover { background: var(--magenta-dark); }

/* ====================== FOOTER ====================== */
.site-footer { background: var(--purple-900); color: rgba(255,255,255,.8); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { color: #fff; margin-bottom: 18px; }
.footer-logo strong { font-family: var(--font-head); font-size: 1.1rem; }
.footer-logo .logo-mark { background: rgba(255,255,255,.14); }
.footer-logo-badge { display: inline-block; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.footer-logo-badge img { display: block; width: 110px; height: auto; }
.footer-about p { color: rgba(255,255,255,.7); max-width: 38ch; }
.footer-col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.75); }
.footer-col a:hover { color: var(--magenta-bright); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; }
.footer-social a:hover { background: var(--magenta); color: #fff; }
.footer-motto { border-top: 1px solid rgba(255,255,255,.12); padding: 26px 0; text-align: center; }
.footer-motto p { margin: 0; font-family: var(--font-head); font-weight: 500; font-style: italic; font-size: 1.15rem; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; }
.footer-bottom p { margin: 0; font-size: .9rem; color: rgba(255,255,255,.6); text-align: center; }

/* ====================== BLOG / PÁGINAS INTERNAS ====================== */
.content-narrow { max-width: 800px; }
.post-item { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.post-thumb { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.post-title { margin-bottom: 8px; }
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.pagination a, .pagination .current { display: inline-block; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); margin: 2px; }
.pagination .current { background: var(--purple-700); color: #fff; border-color: var(--purple-700); }

/* ====================== PAGE HERO (cabecera de páginas internas) ====================== */
.page-hero { background: linear-gradient(135deg, var(--magenta) 0%, var(--purple-500) 55%, var(--purple-700) 100%); color: #fff; padding: clamp(60px, 9vw, 96px) 0 clamp(50px, 7vw, 80px); text-align: center; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255,255,255,.9); max-width: 60ch; margin: 0 auto; font-size: 1.1rem; }

/* ====================== GALERÍA ====================== */
.gallery-grid { columns: 3; column-gap: 18px; }
.gallery-item {
	display: block; width: 100%; margin: 0 0 18px; padding: 0; border: none; background: none;
	border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative;
	break-inside: avoid; box-shadow: var(--shadow-sm); line-height: 0;
}
.gallery-item img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; text-align: left;
	font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: #fff; line-height: 1.2;
	background: linear-gradient(180deg, transparent, rgba(78,26,94,.85)); opacity: 0; transition: opacity .25s ease;
}
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
	background: rgba(30,12,38,.92); padding: 24px; }
.lightbox.is-open { display: flex; }
.lightbox-figure { margin: 0; max-width: 90vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-figure img { max-width: 100%; max-height: 78vh; width: auto; height: auto; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-figure figcaption { color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 1rem; }
.lightbox-close { position: absolute; top: 18px; right: 24px; width: 48px; height: 48px; border-radius: 50%; border: none;
	background: rgba(255,255,255,.12); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: var(--magenta); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
	border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox-nav:hover { background: var(--magenta); }
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }
@media (max-width: 900px) { .gallery-grid { columns: 2; } }
@media (max-width: 560px) { .gallery-grid { columns: 1; } .lightbox-nav { width: 42px; height: 42px; font-size: 1.5rem; } }

/* ====================== PÁGINAS INTERNAS (Quiénes somos, Apóyanos) ====================== */
/* Misión y Visión con parallax */
.mv-section { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 110px) 0; color: #fff; isolation: isolate; }
.mv-parallax { position: absolute; inset: 0; z-index: -2;
	background-size: cover; background-position: center; background-attachment: fixed; }
.mv-veil { position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(130deg, rgba(78,26,94,.94) 0%, rgba(122,42,140,.9) 50%, rgba(224,33,138,.82) 100%); }
.mv-inner { position: relative; }
.mv-section .section-head { margin-bottom: 40px; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.mv-card {
	position: relative; overflow: hidden;
	background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
	border-radius: var(--radius-lg); padding: 40px 36px 36px;
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	box-shadow: 0 20px 50px rgba(30,12,38,.28); transition: transform .3s ease, background .3s ease;
}
.mv-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.14); }
.mv-num { position: absolute; top: 14px; right: 24px; font-family: var(--font-head); font-weight: 800;
	font-size: 4.5rem; line-height: 1; color: rgba(255,255,255,.12); letter-spacing: -.03em; }
.mv-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; font-size: 1.8rem; margin-bottom: 20px;
	background: linear-gradient(135deg, var(--magenta), var(--lime, var(--magenta-bright))); box-shadow: 0 10px 24px rgba(224,33,138,.4); }
.mv-card h3 { font-size: 1.6rem; color: #fff; margin-bottom: 12px; }
.mv-card h3::after { content: ""; display: block; width: 46px; height: 3px; border-radius: 3px; margin-top: 12px;
	background: var(--magenta-bright); }
.mv-card p { color: rgba(255,255,255,.9); margin: 0; }

/* Valores 4 columnas */
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.value-card { text-align: center; }
.value-card h3 { font-size: 1.1rem; margin: 0; }

/* Reconocimientos */
.recon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.recon-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); text-align: center; }
.recon-item img { width: 100%; height: 340px; object-fit: contain; border-radius: 8px; background: var(--bg-soft); }
.recon-item figcaption { margin-top: 12px; font-family: var(--font-head); font-weight: 600; color: var(--purple-700); font-size: .95rem; }

/* Tags de donación */
.dona-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 24px; }
.dona-tags span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 8px 16px; font-size: .92rem; font-family: var(--font-head); font-weight: 500; }
.section--purple .two-col-text p, .section--purple .eyebrow--light { color: rgba(255,255,255,.92); }

@media (max-width: 900px) {
	.mv-grid, .recon-grid { grid-template-columns: 1fr; }
	.cards--4 { grid-template-columns: repeat(2, 1fr); }
	.recon-item img { height: 260px; }
}
@media (max-width: 560px) { .cards--4 { grid-template-columns: 1fr; } }

/* ====================== BLOG ====================== */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.blog-card-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--purple-100); }
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.blog-card:hover .blog-card-thumb img { transform: scale(1.05); }
.blog-card-thumb--ph { display: grid; place-items: center; height: 100%; font-size: 2.6rem; }
.blog-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.blog-card-title { font-size: 1.2rem; margin: 0; }
.blog-card-title a { color: var(--ink); }
.blog-card-title a:hover { color: var(--magenta); }
.blog-card-body p { color: var(--muted); margin: 4px 0 8px; font-size: .96rem; }
.blog-card-link { font-family: var(--font-head); font-weight: 600; color: var(--magenta); font-size: .95rem; margin-top: auto; }

/* Entrada individual */
.single-hero { text-align: center; }
.single-meta { color: rgba(255,255,255,.85); font-family: var(--font-head); }
.single-thumb { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; box-shadow: var(--shadow); }
.single-content { font-size: 1.08rem; color: #453d4d; }
.single-content h2, .single-content h3 { margin-top: 1.6em; }
.single-content h3 { color: var(--purple-700); }
.single-content p { margin-bottom: 1.2rem; }
.single-content a { color: var(--magenta); text-decoration: underline; }
.single-footer { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }

@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

/* ====================== CURSOS (carrusel + modal) ====================== */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 900px) { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .courses-grid { grid-template-columns: 1fr; } }
.courses-slider { position: relative; }
.courses-viewport { overflow: hidden; }
.courses-track { display: flex; gap: 26px; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.course-card { flex: 0 0 calc((100% - 52px) / 3); background: #fff; border: 1px solid var(--line);
	border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.course-media { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--purple-100), #fff); background-size: cover; background-position: center; }
.course-badge { position: absolute; top: 14px; left: 14px; background: var(--magenta); color: #fff;
	font-family: var(--font-head); font-weight: 600; font-size: .78rem; padding: 6px 14px; border-radius: 999px; }
.course-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--ink); }
.course-meta { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 7px; }
.course-meta li { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.course-body p { color: var(--muted); font-size: .95rem; margin: 0 0 20px; }
.course-body .btn { margin-top: auto; align-self: flex-start; }

.courses-nav { position: absolute; top: calc(50% - 40px); transform: translateY(-50%); width: 48px; height: 48px;
	border-radius: 50%; border: none; background: #fff; color: var(--purple-700); font-size: 1.7rem; line-height: 1;
	cursor: pointer; box-shadow: var(--shadow); z-index: 3; transition: background .2s ease, color .2s ease; }
.courses-nav:hover { background: var(--magenta); color: #fff; }
.courses-nav[disabled] { opacity: .35; cursor: default; }
.courses-prev { left: -16px; } .courses-next { right: -16px; }
.courses-dots { display: flex; justify-content: center; gap: 9px; margin-top: 26px; }
.courses-dots button { width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
	background: var(--purple-300); opacity: .5; transition: opacity .2s ease, transform .2s ease; }
.courses-dots button.is-active { opacity: 1; background: var(--magenta); transform: scale(1.25); }

/* Aviso de inscripción */
.notice-inscrito { padding: 15px 20px; border-radius: 14px; margin: 0 auto 30px; max-width: 640px; text-align: center;
	font-family: var(--font-head); font-weight: 500; }
.notice-ok { background: #e9f8ec; color: #237a35; border: 1px solid #b7e3c1; }
.notice-err { background: #fdecec; color: #b32a2a; border: 1px solid #f2c4c4; }

/* Modal de inscripción */
.course-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center;
	background: rgba(30,12,38,.9); padding: 24px; }
.course-modal.is-open { display: flex; }
.course-modal-box { background: #fff; border-radius: var(--radius-lg); padding: 34px 34px 36px; max-width: 460px; width: 100%;
	position: relative; box-shadow: 0 24px 60px rgba(0,0,0,.4); max-height: 90vh; overflow-y: auto; }
.course-modal-box h3 { margin: 6px 0 6px; }
.course-modal-curso { color: var(--muted); margin-bottom: 20px; }
.course-modal-curso strong { color: var(--purple-700); }
.course-modal-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: none;
	background: var(--bg-soft); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.course-modal-close:hover { background: var(--magenta); color: #fff; }
.course-form { display: grid; gap: 15px; }
.course-form label { display: grid; gap: 6px; font-family: var(--font-head); font-weight: 500; color: var(--ink); font-size: .95rem; }
.course-form input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--bg-soft); color: var(--ink); }
.course-form input:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(224,33,138,.15); background: #fff; }
.course-form .btn { margin-top: 6px; justify-content: center; }

@media (max-width: 900px) {
	.course-card { flex: 0 0 calc((100% - 26px) / 2); }
	.courses-prev { left: 4px; } .courses-next { right: 4px; }
}
@media (max-width: 560px) {
	.course-card { flex: 0 0 100%; }
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 900px) {
	.hero-inner, .two-col, .contacto-inner { grid-template-columns: 1fr; }
	.cards, .cards--3 { grid-template-columns: repeat(2, 1fr); }
	.stats { grid-template-columns: repeat(2, 1fr); }
	.hero-stats { grid-template-columns: repeat(3, 1fr); }

	.menu-toggle { display: block; }
	.main-navigation {
		position: fixed; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
		gap: 0; padding: 12px 20px 24px; box-shadow: var(--shadow); border-top: 1px solid var(--line);
		max-height: calc(100vh - 76px); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-10px);
		transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s; z-index: 95;
	}
	.main-navigation.is-open { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .22s ease, transform .22s ease, visibility 0s; }
	.nav-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.nav-menu li { border-bottom: 1px solid var(--line); }
	.nav-menu a { display: block; padding: 14px 4px; }
	.nav-menu a::after { display: none; }
	.nav-cta { margin-top: 14px; text-align: center; }
}
@media (max-width: 560px) {
	.cards, .cards--3, .stats, .hero-stats, .footer-grid { grid-template-columns: 1fr; }
	.hero-actions { flex-direction: column; }
	.hero-actions .btn { width: 100%; }
}
