/*
Theme Name:  El Tercer Día
Theme URI:   https://eltercerdia.cl
Author:      El Tercer Día
Description: Tema oficial de la Fundación El Tercer Día – educación de inglés gratuita.
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: eltercerdia
*/

/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       oklch(32% 0.09 232);
  --blue-mid:   oklch(42% 0.10 232);
  --blue-light: oklch(92% 0.04 232);
  --orange:     oklch(68% 0.14 48);
  --orange-lt:  oklch(94% 0.05 48);
  --green:      oklch(58% 0.11 172);
  --green-lt:   oklch(94% 0.04 172);
  --taupe:      oklch(54% 0.04 22);
  --cream:      oklch(98% 0.008 75);
  --cream2:     oklch(96% 0.010 75);
  --dark:       oklch(18% 0.02 240);
  --mid:        oklch(42% 0.02 240);
  --light:      oklch(72% 0.02 240);

  --font-body:    'Roboto', sans-serif;
  --font-display: 'Roboto', sans-serif;

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 4px 32px oklch(18% 0.02 240 / 0.08);
  --shadow-lg: 0 12px 56px oklch(18% 0.02 240 / 0.14);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: oklch(68% 0.14 48 / 0.25); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream2); }
::-webkit-scrollbar-thumb { background: var(--light); border-radius: 99px; }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 72px;
  display: flex; align-items: center;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
#nav > .container-xl {
  display: flex; align-items: center; justify-content: space-between;
}
#nav.scrolled {
  background: oklch(98% 0.008 75 / 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 oklch(18% 0.02 240 / 0.07);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--dark);
}
.nav-logo img { height: 44px; width: auto; filter: brightness(0) invert(1); transition: filter 0.4s; }
#nav.scrolled .nav-logo img { filter: none; }
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 600;
  color: var(--blue); line-height: 1.1;
}
.nav-logo-name span { display: block; font-size: 0.6rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid); }
.nav-links {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.2rem);
  list-style: none; margin-bottom: 0;
}
.nav-links a {
  font-size: 0.88rem; font-weight: 500; text-decoration: none;
  color: oklch(95% 0.01 240); letter-spacing: 0.01em;
  transition: color 0.2s;
  position: relative;
}
#nav.scrolled .nav-links a { color: var(--mid); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--orange); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.nav-links a:hover { color: #fff; }
#nav.scrolled .nav-links a:hover { color: var(--dark); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--orange); color: #fff !important;
  padding: 0.5rem 1.2rem; border-radius: 99px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s !important;
  box-shadow: 0 2px 12px oklch(68% 0.14 48 / 0.30);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: oklch(62% 0.14 48) !important; transform: translateY(-1px); box-shadow: 0 4px 20px oklch(68% 0.14 48 / 0.40) !important; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
#nav.scrolled .nav-hamburger span { background: var(--dark); }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--cream);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 2rem; font-weight: 600;
  text-decoration: none; color: var(--dark);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu .nav-cta {
  background: var(--orange); color: #fff !important;
  padding: 0.7rem 2rem; border-radius: 99px;
  font-family: var(--font-body) !important; font-size: 1rem !important;
}

/* ── HERO ── */
#hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  background: url('assets/bg.png') center/cover no-repeat;
}
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, oklch(18% 0.02 240 / 0.72) 0%, oklch(18% 0.02 240 / 0.45) 55%, oklch(18% 0.02 240 / 0.10) 100%);
  z-index: 0;
}
.hero-bg-circle { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-bg-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, oklch(68% 0.14 48 / 0.10) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.hero-bg-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, oklch(32% 0.09 232 / 0.08) 0%, transparent 70%);
  bottom: 0; left: -80px;
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: oklch(100% 0 0 / 0.15); color: #fff;
  padding: 0.4rem 1rem; border-radius: 99px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero-eyebrow-dot { width: 6px; height: 6px; background: var(--orange); border-radius: 50%; }
.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700; line-height: 1.12;
  color: #fff; margin-bottom: 1.4rem; text-wrap: pretty;
}
.hero-h1 em { font-style: normal; color: var(--orange); font-weight: 700; }
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: oklch(88% 0.02 240); line-height: 1.75;
  max-width: 500px; margin-bottom: 2.4rem; font-weight: 400;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn-primary {
  background: var(--orange); color: #fff;
  padding: 0.85rem 2rem; border-radius: 99px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 20px oklch(68% 0.14 48 / 0.35);
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px oklch(68% 0.14 48 / 0.45); background: oklch(62% 0.14 48); }
.btn-secondary {
  color: var(--blue); font-size: 0.95rem; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 1.5rem; border-radius: 99px;
  border: 1.5px solid oklch(100% 0 0 / 0.6);
  background: oklch(100% 0 0 / 0.90);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.btn-secondary:hover { background: #fff; border-color: #fff; transform: translateY(-1px); }

/* ── SECTION COMMON ── */
section { padding-top: 0; padding-bottom: 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange);
}
.section-label::before {
  content: ''; display: block; width: 20px; height: 2px;
  background: var(--orange); border-radius: 2px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; line-height: 1.2; color: var(--dark);
  text-wrap: pretty;
}
.section-title em { font-style: normal; color: var(--blue); font-weight: 700; }
.section-lead {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  color: var(--mid); line-height: 1.8; max-width: 580px;
}
.section-header { max-width: 640px; }
.section-header-center { text-align: center; margin: 0 auto; max-width: 640px; }

/* ── MISIÓN Y VISIÓN ── */
#mision { background: var(--blue); }
.mv-section-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.mv-section-card {
  border-radius: var(--radius); padding: 3rem 2.8rem;
  position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.mv-section-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.mv-section-card.mision-card { background: var(--blue); color: #fff; }
.mv-section-card.vision-card {
  background: #fff;
  border: 1.5px solid oklch(18% 0.02 240 / 0.08);
  box-shadow: var(--shadow);
}
.mv-section-deco {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.mision-card .mv-section-deco {
  width: 280px; height: 280px;
  background: radial-gradient(circle, oklch(100% 0 0 / 0.06) 0%, transparent 70%);
  bottom: -80px; right: -60px;
}
.vision-card .mv-section-deco {
  width: 240px; height: 240px;
  background: radial-gradient(circle, oklch(68% 0.14 48 / 0.07) 0%, transparent 70%);
  top: -60px; left: -60px;
}
.mv-section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.4rem 1rem;
  border-radius: 99px; margin-bottom: 1.8rem;
}
.mision-card .mv-section-badge { background: oklch(100% 0 0 / 0.12); color: oklch(88% 0.08 48); }
.vision-card .mv-section-badge { background: var(--orange-lt); color: oklch(52% 0.14 48); }
.mv-section-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 700; line-height: 1.2; margin-bottom: 1.2rem;
}
.mision-card h3 { color: #fff; }
.vision-card h3 { color: var(--dark); }
.mv-section-card p { font-size: 1rem; line-height: 1.8; position: relative; z-index: 1; }
.mision-card p { color: oklch(82% 0.04 232); }
.vision-card p { color: var(--mid); }
.mv-section-values {
  display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem;
  position: relative; z-index: 1;
}
.mv-value-chip {
  font-size: 0.78rem; font-weight: 600; padding: 0.35rem 0.9rem;
  border-radius: 99px; letter-spacing: 0.03em;
}
.mision-card .mv-value-chip { background: oklch(100% 0 0 / 0.12); color: oklch(90% 0.04 232); }
.vision-card .mv-value-chip { background: var(--blue-light); color: var(--blue-mid); }

/* ── QUÉ HACEMOS ── */
#que-hacemos { background: var(--cream2); }
.que-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.que-card {
  background: #fff; border-radius: var(--radius); padding: 2.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.que-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.que-card.blue::before  { background: var(--blue); }
.que-card.orange::before { background: var(--orange); }
.que-card.green::before  { background: var(--green); }
.que-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.que-card-num {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1;
  opacity: 0.08; position: absolute; top: 1.2rem; right: 1.5rem;
}
.que-card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.4rem;
}
.que-card.blue   .que-card-icon { background: var(--blue-light); }
.que-card.orange .que-card-icon { background: var(--orange-lt); }
.que-card.green  .que-card-icon { background: var(--green-lt); }
.que-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 0.7rem; }
.que-card p  { font-size: 0.92rem; color: var(--mid); line-height: 1.75; }

/* ── DONACIONES ── */
#donaciones { background: var(--cream2); }
.donaciones-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem); align-items: center;
}
.donaciones-text p { color: var(--mid); line-height: 1.8; margin-bottom: 1.2rem; font-size: 0.98rem; }
.donaciones-impacto { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.donacion-item {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.donacion-item:hover { transform: translateX(4px); }
.donacion-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.donacion-icon.blue   { background: var(--blue-light); }
.donacion-icon.orange { background: var(--orange-lt); }
.donacion-icon.green  { background: var(--green-lt); }
.donacion-desc strong { display: block; font-size: 0.88rem; font-weight: 700; color: var(--dark); }
.donacion-desc span   { font-size: 0.8rem; color: var(--light); }

/* ── DONACIONES ── */
#donaciones { background: var(--cream2); }
.donaciones-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem); align-items: start;
}
.donaciones-subtitle { font-size: 0.98rem; color: var(--mid); line-height: 1.8; }

/* Banco card */
.banco-card {
  background: #fff; border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
  border: 1px solid oklch(18% 0.02 240 / 0.07);
  margin-bottom: 1.5rem;
}
.banco-card-header {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 1.5rem;
}
.banco-datos {
  list-style: none; display: flex; flex-direction: column; gap: 0.8rem;
  margin-bottom: 1.6rem;
}
.banco-datos li {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid oklch(18% 0.02 240 / 0.07);
}
.banco-datos li:last-child { border-bottom: none; padding-bottom: 0; }
.banco-label { font-size: 0.82rem; color: var(--light); font-weight: 500; }
.banco-valor { font-size: 0.95rem; font-weight: 700; color: var(--dark); }
.banco-copiar {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.8rem 1.2rem; border-radius: 99px;
  background: var(--blue-light); color: var(--blue);
  border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.banco-copiar:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }
.banco-copiar.copiado { background: var(--green-lt); color: var(--green); }

/* Contacto donaciones */
.donaciones-contacto { background: var(--blue); border-radius: var(--radius); padding: 1.8rem 2rem; }
.donaciones-contacto-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: oklch(70% 0.04 232); margin-bottom: 1rem;
}
.donaciones-contacto-items { display: flex; flex-direction: column; gap: 0.75rem; }
.donacion-contacto-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 0.85rem 1.2rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.donacion-contacto-btn--wa  { background: oklch(100% 0 0 / 0.10); color: #fff; }
.donacion-contacto-btn--mail { background: oklch(100% 0 0 / 0.10); color: #fff; }
.donacion-contacto-btn:hover { background: oklch(100% 0 0 / 0.18); transform: translateX(4px); }

/* ── CONTACTO ── */
#contacto { background: var(--cream); }
.contacto-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem); align-items: start;
}
.contacto-info-cards { display: flex; flex-direction: column; gap: 1.2rem; }
.contacto-item-card {
  display: flex; align-items: center; gap: 1.2rem;
  background: #fff; border-radius: var(--radius);
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; color: var(--dark);
  cursor: pointer;
}
.contacto-item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-icon {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.contact-icon.orange { background: var(--orange-lt); color: var(--orange); }
.contact-icon.blue   { background: var(--blue-light); color: var(--blue); }
.contact-item-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); margin-bottom: 4px; }
.contact-item-value { font-size: 1rem; font-weight: 700; color: var(--dark); }

/* Form */
.contact-form {
  background: #fff; border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--dark); margin-bottom: 0.4rem; letter-spacing: 0.01em; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid oklch(18% 0.02 240 / 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.92rem;
  color: var(--dark); background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px oklch(32% 0.09 232 / 0.10);
  background: #fff;
}
.form-input.error, .form-textarea.error { border-color: oklch(55% 0.18 25); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { font-size: 0.78rem; color: oklch(55% 0.18 25); margin-top: 4px; min-height: 1.1em; }
.form-submit {
  width: 100%; padding: 0.9rem;
  background: var(--blue); color: #fff;
  border: none; border-radius: 99px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  cursor: pointer; margin-top: 0.4rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px oklch(32% 0.09 232 / 0.25);
}
.form-submit:hover { background: var(--blue-mid); transform: translateY(-1px); box-shadow: 0 8px 30px oklch(32% 0.09 232 / 0.35); }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.form-success {
  background: var(--green-lt);
  border: 1px solid oklch(58% 0.11 172 / 0.30);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  align-items: center; gap: 10px;
  color: oklch(38% 0.11 172); font-size: 0.9rem; font-weight: 500;
  margin-top: 1rem; display: none;
}
.form-success.visible { display: flex; }

/* ── FOOTER ── */
footer {
  background: var(--dark); color: oklch(80% 0.02 240);
  padding-top: 4rem; padding-bottom: 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid oklch(100% 0 0 / 0.08);
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { width: 150px; height: auto; filter: brightness(0) invert(1) brightness(0.8); }
.footer-logo-name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: oklch(90% 0.02 240); }
.footer-desc { font-size: 0.88rem; line-height: 1.75; color: oklch(60% 0.02 240); max-width: 260px; }
.footer-socials { display: flex; gap: 10px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: oklch(100% 0 0 / 0.07); border: none; cursor: pointer;
  color: oklch(70% 0.02 240);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.social-btn:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }
.footer-col h4 {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: oklch(90% 0.02 240);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; padding: 0; }
.footer-col ul li a { color: oklch(60% 0.02 240); font-size: 0.88rem; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-copy { font-size: 0.82rem; color: oklch(50% 0.02 240); }

/* ── NOTICIAS HERO ── */
.noticias-hero {
  background: var(--blue);
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 5vw, 5rem);
}
.noticias-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700; line-height: 1.15; color: #fff;
  margin-bottom: 1rem; text-wrap: pretty;
}
.noticias-hero-title em { font-style: normal; color: var(--orange); }
.noticias-hero-lead {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  color: oklch(80% 0.04 232); line-height: 1.8; max-width: 620px;
}
.noticias-section { padding: 3rem 0; }

/* ── NOTICIAS PAGE LAYOUT ── */
.noticias-page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

/* Grid con aside: 2 columnas, featured ocupa las 2 */
.noticias-grid-aside {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem;
}
.noticias-grid-aside .noticia-card--featured { grid-column: span 2; }
.noticias-grid-aside .noticia-card--featured .noticia-card-thumb { height: 300px; }

/* ── ASIDE FILTROS ── */
.noticias-aside {
  display: flex; flex-direction: column; gap: 1.5rem;
  position: sticky; top: 88px;
}
.filtros-widget {
  background: #fff; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
  border: 1px solid oklch(18% 0.02 240 / 0.07);
}
.filtros-widget-title {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--light);
  margin-bottom: 1rem;
}
.filtros-lista { list-style: none; display: flex; flex-direction: column; gap: 4px; padding: 0; }
.filtros-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.55rem 0.8rem; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; color: var(--mid);
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.filtros-item:hover { background: var(--cream2); color: var(--dark); }
.filtros-item--activo { background: var(--blue-light); color: var(--blue); font-weight: 700; }
.filtros-item--activo:hover { background: var(--blue-light); color: var(--blue); }
.filtros-count {
  font-size: 0.75rem; font-weight: 700;
  background: var(--cream2); color: var(--light);
  padding: 0.15rem 0.5rem; border-radius: 99px;
}
.filtros-item--activo .filtros-count { background: var(--blue); color: #fff; }

/* Recientes en aside */
.filtros-recientes { list-style: none; display: flex; flex-direction: column; gap: 1rem; padding: 0; }
.filtros-reciente-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.filtros-reciente-thumb {
  display: block; width: 56px; height: 56px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
}
.filtros-reciente-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.filtros-reciente-thumb:hover img { transform: scale(1.08); }
.filtros-reciente-titulo {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--dark); text-decoration: none; line-height: 1.4;
  margin-bottom: 4px; transition: color 0.2s;
}
.filtros-reciente-titulo:hover { color: var(--blue); }

/* ── NOTICIAS GRID ── */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.noticia-card--featured { grid-column: span 2; }

/* Card base */
.noticia-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid oklch(18% 0.02 240 / 0.07);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.noticia-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Thumbnail */
.noticia-card-thumb {
  display: block; position: relative; overflow: hidden;
  height: 200px; text-decoration: none; flex-shrink: 0;
}
.noticia-card--featured .noticia-card-thumb { height: 300px; }
.noticia-card-img-real {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s; display: block;
}
.noticia-card:hover .noticia-card-img-real { transform: scale(1.04); }

/* Placeholder */
.noticia-card-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.stripe-blue   { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%); }
.stripe-orange { background: linear-gradient(135deg, oklch(72% 0.12 48) 0%, var(--orange) 100%); }

/* Badge */
.noticia-card-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--orange);
  color: #fff; padding: 0.25rem 0.7rem; border-radius: 99px;
  z-index: 1; pointer-events: none;
}

/* Body */
.noticia-card-body {
  flex: 1; display: flex; flex-direction: column;
  padding: 1.4rem 1.5rem 1.5rem;
}
.noticia-fecha { font-size: 0.78rem; color: var(--light); font-weight: 500; }
.noticia-cat {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--blue-light);
  color: var(--blue-mid); padding: 0.2rem 0.6rem; border-radius: 99px;
  text-decoration: none;
}
.noticia-card-title {
  font-family: var(--font-display); font-size: 1.08rem;
  font-weight: 700; line-height: 1.3; margin: 0.5rem 0 0.6rem;
}
.noticia-card--featured .noticia-card-title { font-size: 1.3rem; }
.noticia-card-title a { color: var(--dark); text-decoration: none; transition: color 0.2s; }
.noticia-card-title a:hover { color: var(--blue); }
.noticia-card-excerpt { font-size: 0.9rem; color: var(--mid); line-height: 1.7; flex: 1; margin-bottom: 0; }
.noticia-leer {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; font-weight: 600; color: var(--orange);
  text-decoration: none; margin-top: 1.2rem;
  transition: gap 0.2s;
}
.noticia-leer:hover { gap: 10px; color: var(--orange); }

/* Empty state */
.noticias-empty {
  text-align: center; padding: 5rem 2rem; color: var(--mid);
}
.noticias-empty-icon {
  width: 72px; height: 72px; border-radius: var(--radius);
  background: var(--cream2); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 1.4rem; color: var(--light);
}

/* Pagination */
.noticias-paginacion .nav-links { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.noticias-paginacion .page-numbers {
  padding: 0.5rem 1rem; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600;
  color: var(--mid); background: var(--cream2); text-decoration: none; transition: background 0.2s, color 0.2s;
}
.noticias-paginacion .page-numbers.current,
.noticias-paginacion .page-numbers:hover { background: var(--orange); color: #fff; }

/* ── SINGLE ARTICLE HERO ── */
.single-hero {
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}
.single-hero--sin-img {
  background: var(--blue);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.single-hero--con-img {
  min-height: 68vh;
  display: flex; align-items: flex-end;
  padding-bottom: clamp(3rem, 5vw, 4rem);
}
.single-hero-bg { position: absolute; inset: 0; }
.single-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.single-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    oklch(10% 0.02 240 / 0.88) 0%,
    oklch(10% 0.02 240 / 0.55) 40%,
    oklch(10% 0.02 240 / 0.25) 100%);
}
.single-hero-inner { position: relative; z-index: 1; padding-top: 2rem; }

/* Back link */
.single-volver {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; color: oklch(70% 0.04 232);
  text-decoration: none; margin-bottom: 1rem;
  transition: color 0.2s, gap 0.2s;
}
.single-volver:hover { color: #fff; gap: 10px; }

/* Categories */
.single-cats { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Title */
.single-titulo {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  font-weight: 700; line-height: 1.15; color: #fff;
  max-width: 820px; text-wrap: pretty; margin-bottom: 1rem;
}

/* Meta row */
.single-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.85rem; color: oklch(72% 0.04 232);
}
.single-meta time { font-weight: 500; }
.single-meta-sep { opacity: 0.5; }

/* ── ARTICLE BODY ── */
.single-body { padding: 3rem 0; }
.single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem; align-items: start;
}
.single-content-col { min-width: 0; }

/* Entry content typography */
.single-content { max-width: 72ch; }
.single-content p  { font-size: 1.05rem; color: var(--mid); line-height: 1.9; margin-bottom: 1.5rem; }
.single-content h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--dark); margin: 2.4rem 0 0.8rem; }
.single-content h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--dark); margin: 1.8rem 0 0.6rem; }
.single-content h4 { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 1.4rem 0 0.5rem; }
.single-content img { max-width: 100%; border-radius: var(--radius-sm); margin: 1.5rem 0; display: block; }
.single-content a { color: var(--blue); }
.single-content blockquote {
  border-left: 3px solid var(--orange); padding-left: 1.4rem;
  margin: 2rem 0; color: var(--mid); font-style: italic;
}
.single-content ul, .single-content ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.single-content li { font-size: 1.02rem; color: var(--mid); line-height: 1.8; margin-bottom: 0.3rem; }

/* Tags */
.single-tags {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  padding-top: 1.5rem; margin-top: 2rem;
  border-top: 1px solid oklch(18% 0.02 240 / 0.08);
}
.single-tags-label { font-size: 0.82rem; font-weight: 700; color: var(--light); }
.articulo-tag {
  font-size: 0.78rem; font-weight: 600; padding: 0.3rem 0.8rem;
  border-radius: 99px; background: var(--cream2); color: var(--mid);
  text-decoration: none; transition: background 0.2s, color 0.2s;
}
.articulo-tag:hover { background: var(--orange); color: #fff; }

/* Prev/Next nav */
.single-nav { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid oklch(18% 0.02 240 / 0.08); }
.single-nav-inner { display: flex; justify-content: space-between; gap: 2rem; }
.single-nav-item {
  display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; max-width: 46%;
  transition: transform 0.2s;
}
.single-nav-item:hover { transform: translateY(-2px); }
.single-nav-item--next { text-align: right; }
.single-nav-dir {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--orange);
}
.single-nav-item--next .single-nav-dir { justify-content: flex-end; }
.single-nav-titulo { font-size: 0.9rem; font-weight: 600; color: var(--dark); line-height: 1.4; }
.single-nav-item:hover .single-nav-titulo { color: var(--blue); }

/* ── SIDEBAR ── */
.single-sidebar {
  display: flex; flex-direction: column; gap: 1.5rem;
  position: sticky; top: 88px;
}
.sidebar-widget {
  background: #fff; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
  border: 1px solid oklch(18% 0.02 240 / 0.07);
}
.sidebar-volver {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 600; color: var(--blue);
  text-decoration: none; transition: gap 0.2s, color 0.2s;
}
.sidebar-volver:hover { gap: 12px; color: var(--orange); }
.sidebar-widget-title {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--light); margin-bottom: 1.2rem;
}
.sidebar-recientes { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.sidebar-reciente-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.sidebar-reciente-thumb {
  display: block; width: 62px; height: 62px; flex-shrink: 0;
  border-radius: var(--radius-sm); overflow: hidden;
}
.sidebar-reciente-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.sidebar-reciente-thumb:hover img { transform: scale(1.08); }
.sidebar-reciente-info { flex: 1; min-width: 0; }
.sidebar-reciente-titulo {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--dark); text-decoration: none; line-height: 1.4;
  margin-bottom: 4px; transition: color 0.2s;
}
.sidebar-reciente-titulo:hover { color: var(--blue); }
.sidebar-cta { background: var(--blue) !important; color: #fff; border: none !important; }
.sidebar-cta-inner { text-align: center; }
.sidebar-cta-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem; }
.sidebar-cta-text { font-size: 0.88rem; color: oklch(80% 0.04 232); line-height: 1.7; }
.sidebar-cta .btn-primary { justify-content: center; }

/* ── TRANSPARENCIA ── */
.balances-grid { display: flex; flex-direction: column; gap: 1rem; }
.balance-card {
  display: flex; align-items: center; gap: 1.4rem;
  background: #fff; border-radius: var(--radius);
  padding: 1.4rem 1.8rem; box-shadow: var(--shadow);
  border: 1px solid oklch(18% 0.02 240 / 0.07);
  text-decoration: none; color: var(--dark);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.balance-card:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); border-color: oklch(32% 0.09 232 / 0.25); color: var(--dark); }
.balance-icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px;
  background: var(--blue-light); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.balance-info { flex: 1; }
.balance-titulo { display: block; font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.balance-meta { font-size: 0.78rem; color: var(--light); font-weight: 500; }
.balance-dl {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--blue);
  padding: 0.5rem 1rem; border-radius: 99px;
  background: var(--blue-light); transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.balance-card:hover .balance-dl { background: var(--blue); color: #fff; }
.transparencia-contacto-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  background: var(--cream2); border-radius: var(--radius);
  padding: 2rem 2.4rem;
  border: 1px solid oklch(18% 0.02 240 / 0.07);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up   { animation: fadeUp 0.7s cubic-bezier(0.4,0,0.2,1) both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.25s; }
.fade-up-3 { animation-delay: 0.4s; }
.fade-up-4 { animation-delay: 0.55s; }

/* Intersection Observer reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; padding-top: 100px; }
  .mv-section-grid { grid-template-columns: 1fr; }
  .que-grid { grid-template-columns: 1fr 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .donaciones-inner { grid-template-columns: 1fr; }
  .donaciones-grid { grid-template-columns: 1fr; }

  /* Noticias: aside debajo */
  .noticias-page-layout { grid-template-columns: 1fr; }
  .noticias-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .filtros-widget { flex: 1 1 260px; }
  .noticias-grid { grid-template-columns: repeat(2, 1fr); }
  .noticia-card--featured { grid-column: span 2; }
  .noticia-card--featured .noticia-card-thumb { height: 280px; }
  .noticias-grid-aside { grid-template-columns: repeat(2, 1fr); }
  .noticias-grid-aside .noticia-card--featured { grid-column: span 2; }

  /* Single: sidebar drops below */
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-widget { flex: 1 1 260px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .que-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Noticias: single col */
  .noticias-grid { grid-template-columns: 1fr; }
  .noticia-card--featured { grid-column: span 1; }
  .noticia-card--featured .noticia-card-thumb { height: 220px; }
  .noticias-grid-aside { grid-template-columns: 1fr; }
  .noticias-grid-aside .noticia-card--featured { grid-column: span 1; }
  .noticias-aside { flex-direction: column; }

  /* Single hero */
  .single-hero--con-img { min-height: 50vh; }

  /* Single sidebar: stacked */
  .single-sidebar { flex-direction: column; }

  /* Prev/next nav: stack */
  .single-nav-inner { flex-direction: column; gap: 1rem; }
  .single-nav-item { max-width: 100%; }
  .single-nav-item--next { text-align: left; }
  .single-nav-item--next .single-nav-dir { justify-content: flex-start; }
}
