/* =============================================================
   CUIDADORAS EN RED — sitio estatico
   Sistema visual unificado (rojo corporativo + Inter)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --ae-red: #CC071E;
  --ae-red-dark: #a30518;
  --ae-red-soft: rgba(204,7,30,0.07);
  --ae-red-soft-2: rgba(204,7,30,0.14);
  --ae-text: #0f172a;
  --ae-text-soft: #475569;
  --ae-muted: #64748b;
  --ae-border: #e8e8ec;
  --ae-card-bg: #ffffff;
  --ae-bg-soft: #fafafb;
  --ae-bg: #ffffff;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ae-bg);
  color: var(--ae-text);
  font-family: 'Inter', 'Roboto', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* =============================================================
   HEADER (sticky, dos filas: brand blanca + menu rojo corporativo)
   ============================================================= */
.ae-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 16px rgba(15,23,42,0.06);
}

/* Fila 1: brand bar (fondo blanco, logo Alt-Eco grande + sello del proyecto) */
.ae-brandbar {
  background: #fff;
  border-bottom: 4px solid var(--ae-red);
}
.ae-brandbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.ae-brand-publisher {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.ae-brand-publisher img {
  height: 64px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}
.ae-brand-publisher:hover img { transform: scale(1.03); }

.ae-brand-secondary {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ae-brand-funder {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.ae-brand-funder img {
  height: 50px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}
.ae-brand-funder:hover img { transform: scale(1.04); }

.ae-brand-project {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 8px 16px 8px 8px;
  border-radius: 14px;
  background: var(--ae-red-soft);
  border: 1px solid rgba(204,7,30,0.18);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.ae-brand-project:hover {
  background: rgba(204,7,30,0.12);
  border-color: rgba(204,7,30,0.30);
  transform: translateY(-1px);
}
.ae-brand-project-mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: block;
  border-radius: 10px;
  overflow: hidden;
}
.ae-brand-project-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.ae-brand-project-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.ae-brand-project-text strong {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--ae-red);
  text-transform: none;
}
.ae-brand-project-text small {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ae-red);
  opacity: 0.72;
  margin-top: 2px;
}

/* Fila 2: menu bar (fondo rojo corporativo) */
.ae-menubar {
  background: linear-gradient(180deg, var(--ae-red) 0%, var(--ae-red-dark) 100%);
}
.ae-menubar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.ae-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.ae-nav li { display: flex; }
.ae-nav a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding: 16px 20px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
}
.ae-nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.14);
}
.ae-nav a.is-external::after {
  content: "";
  display: inline-block;
  width: 11px; height: 11px;
  margin-left: 7px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M14 5h5v5M19 5L10 14M5 5h5v14H5z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M14 5h5v5M19 5L10 14M5 5h5v14H5z'/></svg>") no-repeat center / contain;
  opacity: 0.85;
}
/* Active state por pagina (pildora blanca con texto rojo) */
body.page-inicio   .nav-inicio,
body.page-curso    .nav-curso,
body.page-galeria  .nav-galeria,
body.page-campana  .nav-campana,
body.page-campanya .nav-campana,
body.page-debate   .nav-debate,
body.page-revista  .nav-revista {
  color: var(--ae-red) !important;
  background: #fff !important;
  font-weight: 800;
}

/* Burger (mobile) */
.ae-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--ae-border);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ae-burger:hover { border-color: var(--ae-red); background: var(--ae-red-soft); }
.ae-burger::before, .ae-burger::after, .ae-burger span {
  content: ""; position: absolute; left: 12px; right: 12px; height: 2px;
  background: var(--ae-text); transition: transform 0.3s, opacity 0.2s, top 0.3s, background 0.2s;
}
.ae-burger::before { top: 14px; }
.ae-burger span    { top: 50%; margin-top: -1px; }
.ae-burger::after  { bottom: 14px; }
.ae-burger:hover::before, .ae-burger:hover::after, .ae-burger:hover span { background: var(--ae-red); }
.ae-burger.is-open::before { top: 50%; transform: rotate(45deg); margin-top: -1px; }
.ae-burger.is-open::after  { bottom: auto; top: 50%; transform: rotate(-45deg); margin-top: -1px; }
.ae-burger.is-open span    { opacity: 0; }

/* =============================================================
   FOOTER (rojo corporativo, una sola fila, 3 logos)
   ============================================================= */
.ae-footer {
  margin-top: 80px;
  background: linear-gradient(180deg, var(--ae-red) 0%, var(--ae-red-dark) 100%);
  color: #fff;
  position: relative;
}
.ae-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.28), rgba(255,255,255,0.05));
}
.ae-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.ae-footer-publisher {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.ae-footer-publisher img {
  height: 80px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}
.ae-footer-publisher:hover img { transform: scale(1.04); }

.ae-footer-project-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.ae-footer-project {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.ae-footer-project:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.34);
  transform: translateY(-1px);
}
.ae-footer-project-mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 10px;
  overflow: hidden;
}
.ae-footer-project-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ae-footer-project-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.ae-footer-project-text strong {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.005em;
}
.ae-footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.005em;
  padding-left: 6px;
}

.ae-footer-funder {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
  line-height: 1;
}
.ae-footer-funder-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
  line-height: 1;
  margin-bottom: -2px;
}
.ae-footer-funder a {
  display: inline-flex;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.ae-footer-funder a:hover { transform: scale(1.04); }
.ae-footer-funder img {
  height: 76px;
  width: auto;
  display: block;
}

/* =============================================================
   COMUNES de pagina
   ============================================================= */
.ae-section { padding: 64px 0; }
.ae-section-tight { padding: 36px 0; }
.ae-section-header { text-align: center; margin: 0 auto 36px; max-width: 760px; }
.ae-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ae-red);
  background: var(--ae-red-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.ae-eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ae-red);
  box-shadow: 0 0 0 3px rgba(204,7,30,0.18);
}
.ae-section-header h1,
.ae-section-header h2 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ae-text);
}
.ae-section-header h2 { font-size: 38px; }
.ae-section-header p {
  margin: 14px auto 0;
  color: var(--ae-red);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.35;
  max-width: 640px;
}

/* =============================================================
   HERO de Inicio
   ============================================================= */
.ae-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(204,7,30,0.10), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(204,7,30,0.05), transparent 60%),
    var(--ae-card-bg);
  border: 1px solid var(--ae-border);
  border-radius: 32px;
  padding: 56px;
  overflow: hidden;
}
.ae-hero::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--ae-red), var(--ae-red-dark));
}
.ae-hero .ae-text { position: relative; z-index: 1; }
.ae-hero h1 {
  font-size: 60px;
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 18px 0;
  color: var(--ae-text);
}
.ae-hero h1 b {
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--ae-red);
  font-weight: 900;
}
.ae-hero .ae-lema {
  font-size: 28px;
  font-weight: 700;
  color: var(--ae-red);
  margin: 0 0 30px;
  letter-spacing: -0.018em;
  line-height: 1.2;
}
.ae-hero blockquote {
  position: relative;
  border-left: 4px solid var(--ae-red);
  background: linear-gradient(90deg, var(--ae-red-soft), transparent);
  padding: 18px 24px 18px 26px;
  margin: 0 0 26px;
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: var(--ae-text);
  line-height: 1.45;
  border-radius: 0 14px 14px 0;
}
.ae-hero blockquote::before {
  content: "\201C";
  position: absolute; top: -16px; left: 12px;
  font-size: 64px; line-height: 1;
  color: var(--ae-red); opacity: 0.22;
  font-family: Georgia, serif; font-style: normal;
}
.ae-hero p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ae-text-soft);
  margin: 0 0 18px;
}
.ae-hero .ae-callout {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  color: #fff;
  padding: 20px 26px;
  border-radius: 16px;
  margin: 8px 0 26px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  box-shadow: 0 14px 32px rgba(204,7,30,0.32);
}
.ae-hero .ae-callout::before {
  content: "";
  flex: 0 0 auto;
  width: 24px; height: 24px;
  background-color: #fff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2L2 22h20L12 2z' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/><line x1='12' y1='10' x2='12' y2='14' stroke='black' stroke-width='2.2' stroke-linecap='round'/><circle cx='12' cy='17.5' r='1.2' fill='black'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2L2 22h20L12 2z' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'/><line x1='12' y1='10' x2='12' y2='14' stroke='black' stroke-width='2.2' stroke-linecap='round'/><circle cx='12' cy='17.5' r='1.2' fill='black'/></svg>") no-repeat center / contain;
}
.ae-hero .ae-photo {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  box-shadow: 0 30px 60px rgba(15,23,42,0.20);
}
.ae-hero .ae-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-hero .ae-photo-tag {
  position: absolute; top: 18px; left: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(204,7,30,0.35);
}
.ae-hero .ae-photo-tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.30);
}

/* =============================================================
   CTA pill (rojo)
   ============================================================= */
.ae-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(204,7,30,0.36);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
  border: 0;
}
.ae-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(204,7,30,0.46);
  background: linear-gradient(135deg, var(--ae-red-dark), var(--ae-red));
}
.ae-cta--mail::before {
  content: ""; width: 18px; height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z' fill='none' stroke='black' stroke-width='2.2'/><polyline points='22,6 12,13 2,6' fill='none' stroke='black' stroke-width='2.2'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z' fill='none' stroke='black' stroke-width='2.2'/><polyline points='22,6 12,13 2,6' fill='none' stroke='black' stroke-width='2.2'/></svg>") no-repeat center / contain;
}
.ae-cta--download::before {
  content: ""; width: 18px; height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3v12m0 0l-5-5m5 5l5-5M5 21h14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 3v12m0 0l-5-5m5 5l5-5M5 21h14' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat center / contain;
}

/* =============================================================
   INFO CARDS (Inicio "que es / quien financia", reusable)
   ============================================================= */
.ae-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}
.ae-info-card {
  flex: 1 1 360px;
  min-width: 0;
  position: relative;
  background: var(--ae-card-bg);
  border: 1px solid var(--ae-border);
  border-radius: 22px;
  padding: 32px 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.ae-info-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(204,7,30,0.07), transparent 55%);
  pointer-events: none;
}
.ae-info-card:hover {
  border-color: rgba(204,7,30,0.30);
  box-shadow: 0 18px 40px rgba(15,23,42,0.07);
  transform: translateY(-3px);
}
.ae-info-card .ae-icon {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 10px 22px rgba(204,7,30,0.32);
}
.ae-info-card .ae-icon svg { width: 26px; height: 26px; color: #fff; }
.ae-info-card h3 {
  position: relative;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--ae-text);
  line-height: 1.25;
}
.ae-info-card p {
  position: relative;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ae-text-soft);
  margin: 0 0 14px;
}
.ae-info-card p strong { color: var(--ae-red); font-weight: 700; }
.ae-info-card p:last-of-type { margin-bottom: 0; }
.ae-info-card .ae-funder-logo { display: block; margin-top: auto; padding-top: 22px; text-align: center; }
.ae-info-card .ae-funder-logo img { max-width: 220px; height: auto; }

/* =============================================================
   SECTION CARDS (Inicio: 6 secciones con thumb)
   ============================================================= */
.ae-sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ae-section-card {
  position: relative;
  display: block;
  background: var(--ae-card-bg);
  border: 1px solid var(--ae-border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none !important;
  color: #fff;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.ae-section-card:hover {
  border-color: rgba(204,7,30,0.50);
  box-shadow: 0 22px 46px rgba(204,7,30,0.22);
  transform: translateY(-4px);
}
.ae-section-card .ae-thumb-wrap {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: var(--ae-bg-soft);
}
.ae-section-card .ae-thumb-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.ae-section-card:hover .ae-thumb-wrap img { transform: scale(1.06); }
.ae-section-card .ae-thumb-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(204,7,30,0) 40%, rgba(204,7,30,0.45) 100%);
  pointer-events: none;
  transition: background 0.3s;
}
.ae-section-card:hover .ae-thumb-wrap::after {
  background: linear-gradient(180deg, rgba(204,7,30,0) 30%, rgba(204,7,30,0.65) 100%);
}
.ae-section-card .ae-card-tag {
  position: absolute; top: 14px; left: 14px;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.96);
  color: var(--ae-red);
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 11px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(15,23,42,0.18);
}
.ae-section-card .ae-card-tag::before {
  content: ""; width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ae-red);
  box-shadow: 0 0 0 3px rgba(204,7,30,0.18);
}
.ae-section-card .ae-card-body {
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  padding: 18px 20px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  transition: background 0.3s;
}
.ae-section-card h3 {
  font-size: 18px; font-weight: 700; letter-spacing: -0.015em;
  margin: 0; color: #fff; line-height: 1.3;
  transition: transform 0.3s;
}
.ae-section-card:hover h3 { transform: translateX(2px); }
.ae-section-card .ae-arrow {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s, transform 0.3s;
}
.ae-section-card .ae-arrow::before {
  content: ""; width: 10px; height: 10px;
  border-right: 2.5px solid #fff;
  border-top: 2.5px solid #fff;
  transform: rotate(45deg) translate(-1px, 1px);
}
.ae-section-card:hover .ae-arrow { background: #fff; transform: translateX(3px); }
.ae-section-card:hover .ae-arrow::before { border-color: var(--ae-red); }

/* =============================================================
   GALERIA — grid uniforme con aspect ratio fijo
   ============================================================= */
.ae-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.ae-gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: var(--ae-bg-soft);
  border: 1px solid var(--ae-border);
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.ae-gallery-item img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.ae-gallery-item:hover {
  border-color: rgba(204,7,30,0.50);
  box-shadow: 0 18px 36px rgba(204,7,30,0.18);
  transform: translateY(-3px);
}
.ae-gallery-item:hover img { transform: scale(1.07); }
.ae-gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(204,7,30,0.55) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.ae-gallery-item:hover::after { opacity: 1; }
.ae-gallery-item::before {
  content: "";
  position: absolute; bottom: 14px; right: 14px;
  width: 42px; height: 42px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='11' cy='11' r='6.5' fill='none' stroke='%23CC071E' stroke-width='2.2'/><line x1='15.6' y1='15.6' x2='20' y2='20' stroke='%23CC071E' stroke-width='2.4' stroke-linecap='round'/><line x1='8' y1='11' x2='14' y2='11' stroke='%23CC071E' stroke-width='2' stroke-linecap='round'/><line x1='11' y1='8' x2='11' y2='14' stroke='%23CC071E' stroke-width='2' stroke-linecap='round'/></svg>") no-repeat center / 22px 22px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 18px rgba(15,23,42,0.30);
  z-index: 2;
  pointer-events: none;
}
.ae-gallery-item:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox basico */
.ae-lightbox {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.92);
  z-index: 1000;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.ae-lightbox.is-open { display: flex; animation: ae-fade-in 0.25s ease; }
.ae-lightbox img { max-width: 96%; max-height: 92vh; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.ae-lightbox-close {
  position: absolute; top: 22px; right: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.ae-lightbox-close::before, .ae-lightbox-close::after {
  content: ""; position: absolute;
  width: 18px; height: 2px; background: #fff; border-radius: 1px;
}
.ae-lightbox-close::before { transform: rotate(45deg); }
.ae-lightbox-close::after  { transform: rotate(-45deg); }

/* =============================================================
   VIDEO embed responsive (16:9 a ancho completo del contenedor)
   ============================================================= */
.ae-video-frame {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15,23,42,0.18);
  border: 1px solid var(--ae-border);
  background: #000;
}
.ae-video-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* =============================================================
   Reader (fliphtml5)
   ============================================================= */
.ae-reader-frame {
  position: relative;
  width: 100%;
  margin: 0 auto;
  height: 760px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15,23,42,0.18);
  border: 1px solid var(--ae-border);
  background: #f1f1f3;
}
.ae-reader-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  display: block;
}

/* =============================================================
   ANIMACIONES
   ============================================================= */
@keyframes ae-fade-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* =============================================================
   RESPONSIVE
   ============================================================= */
/* ----- TABLET (<=900) ----- */
@media (max-width: 900px) {
  .ae-section { padding: 44px 0; }
  .ae-section-header h2 { font-size: 30px; }
  .ae-section-header p { font-size: 19px; }

  /* Header tablet */
  .ae-brandbar-inner { padding: 14px 16px; gap: 14px; }
  .ae-brand-publisher img { height: 52px; }
  .ae-brand-secondary { gap: 12px; }
  .ae-brand-funder img { height: 38px; }
  .ae-brand-project { padding: 6px 12px 6px 6px; gap: 10px; }
  .ae-brand-project-mark { width: 38px; height: 38px; }
  .ae-brand-project-text strong { font-size: 13px; }
  .ae-brand-project-text small { display: none; }
  .ae-burger { display: inline-flex; align-items: center; justify-content: center; }

  /* Menubar oculta por defecto, despliega con burger */
  .ae-menubar { display: none; box-shadow: 0 8px 14px rgba(15,23,42,0.10); }
  .ae-menubar.is-open { display: block; animation: ae-fade-in 0.25s ease; }
  .ae-menubar-inner { padding: 0; display: block; }
  .ae-nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 4px 0 8px;
  }
  .ae-nav li { width: 100%; display: block; }
  .ae-nav a {
    padding: 14px 22px;
    font-size: 15.5px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    width: 100%;
    text-align: left;
  }
  .ae-nav li:last-child a { border-bottom: 0; }

  /* Hero */
  .ae-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 28px;
  }
  .ae-hero h1 { font-size: 40px; }
  .ae-hero .ae-lema { font-size: 22px; margin-bottom: 22px; }
  .ae-hero blockquote { font-size: 16.5px; padding: 14px 18px 14px 22px; }
  .ae-hero .ae-callout { font-size: 17px; padding: 16px 20px; }
  .ae-hero .ae-photo { aspect-ratio: 16 / 11; order: -1; }

  .ae-sections-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Galeria tablet */
  .ae-gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .ae-gallery-item { border-radius: 14px; }

  /* Footer tablet */
  .ae-footer-inner { padding: 22px 24px; gap: 22px; justify-content: center; }
  .ae-footer-publisher img { height: 64px; }
  .ae-footer-project { padding: 9px 14px 9px 9px; }
  .ae-footer-project-mark { width: 40px; height: 40px; }
  .ae-footer-project-text strong { font-size: 14px; }
  .ae-footer-funder img { height: 60px; }

  .ae-reader-frame { height: 560px; }
}

/* ----- MOVIL (<=560) ----- */
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .ae-section-header h2 { font-size: 24px; }
  .ae-section-header p { font-size: 17px; }

  .ae-brandbar-inner { padding: 12px 14px; gap: 10px; }
  .ae-brand-publisher img { height: 42px; }
  .ae-brand-funder { display: none; }
  .ae-brand-project-text strong { display: none; }
  .ae-brand-project { padding: 5px; gap: 0; border-radius: 10px; }
  .ae-brand-project-mark { width: 34px; height: 34px; border-radius: 7px; }
  .ae-burger { width: 40px; height: 40px; border-radius: 10px; }
  .ae-burger::before, .ae-burger::after, .ae-burger span {
    left: 10px; right: 10px;
  }
  .ae-burger::before { top: 13px; }
  .ae-burger::after  { bottom: 13px; }

  .ae-nav a { padding: 13px 20px; font-size: 15px; }

  .ae-hero { padding: 26px 22px; border-radius: 22px; }
  .ae-hero h1 { font-size: 32px; }
  .ae-hero .ae-lema { font-size: 19px; }
  .ae-hero .ae-callout { font-size: 15.5px; padding: 14px 16px; }
  .ae-cta { font-size: 14px; padding: 13px 22px; }

  .ae-sections-grid { grid-template-columns: 1fr; }
  .ae-section-card .ae-card-body { padding: 14px 16px 16px; }
  .ae-section-card h3 { font-size: 16px; }

  .ae-gallery { grid-template-columns: 1fr; }
  .ae-gallery-item { aspect-ratio: 4 / 3; }
  .ae-info-card { padding: 26px 22px; }

  .ae-footer { margin-top: 50px; }
  .ae-footer-inner {
    padding: 22px 18px;
    gap: 18px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .ae-footer-publisher img { height: 56px; }
  .ae-footer-project-block { align-items: center; }
  .ae-footer-project-text strong { font-size: 13.5px; }
  .ae-footer-funder { align-items: center; }
  .ae-footer-funder img { height: 50px; }
  .ae-footer-funder-eyebrow { font-size: 10px; }

  .ae-reader-frame { height: 460px; }
}

/* =============================================================
   NOTICIAS — grid de tarjetas con thumb + entradilla
   ============================================================= */
.ae-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ae-news-card {
  position: relative;
  background: var(--ae-card-bg);
  border: 1px solid var(--ae-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.ae-news-card:hover {
  border-color: rgba(204,7,30,0.45);
  box-shadow: 0 18px 36px rgba(204,7,30,0.16);
  transform: translateY(-4px);
}
.ae-news-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ae-bg-soft);
}
.ae-news-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.ae-news-card:hover .ae-news-thumb img { transform: scale(1.06); }
.ae-news-source {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.96);
  color: var(--ae-red);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(15,23,42,0.18);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.ae-news-source::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ae-red);
}
.ae-news-lang {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 4px 9px;
  border-radius: 6px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(204,7,30,0.30);
}
.ae-news-body {
  padding: 20px 22px 22px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.ae-news-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.012em;
  margin: 0 0 10px;
  color: var(--ae-text);
}
.ae-news-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ae-text-soft);
  margin: 0;
  flex: 1 1 auto;
}
.ae-news-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ae-red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.ae-news-link::after {
  content: "";
  width: 11px; height: 11px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M14 5h5v5M19 5L10 14M5 5h5v14H5z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round' d='M14 5h5v5M19 5L10 14M5 5h5v14H5z'/></svg>") no-repeat center / contain;
  transition: transform 0.3s ease;
}
.ae-news-card:hover .ae-news-link::after { transform: translate(3px, -3px); }

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

/* =============================================================
   CTA secundario (Instagram)
   ============================================================= */
.ae-cta--secondary {
  background: #fff !important;
  color: var(--ae-red) !important;
  border: 2px solid var(--ae-red);
  box-shadow: 0 8px 18px rgba(204,7,30,0.10);
}
.ae-cta--secondary:hover {
  background: var(--ae-red-soft);
  border-color: var(--ae-red-dark);
  box-shadow: 0 12px 24px rgba(204,7,30,0.18);
}
.ae-cta--instagram::before {
  content: ""; width: 18px; height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='black' stroke-width='2'/><circle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/><circle cx='17.5' cy='6.5' r='1.1' fill='black'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='black' stroke-width='2'/><circle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/><circle cx='17.5' cy='6.5' r='1.1' fill='black'/></svg>") no-repeat center / contain;
}
.ae-contact-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 12px;
}

/* =============================================================
   DEBATE — entradilla larga y cuerpo editorial
   ============================================================= */
.ae-section-header p.ae-lead {
  font-size: 20px;
  font-weight: 500;
  color: var(--ae-text);
  line-height: 1.5;
  letter-spacing: -0.005em;
  max-width: 760px;
  margin: 18px auto 0;
}
.ae-debate-body {
  max-width: 760px;
  margin: 48px auto 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ae-text);
}
.ae-debate-body p {
  margin: 0 0 22px;
}
.ae-debate-body p:last-child { margin: 0; }

@media (max-width: 560px) {
  .ae-section-header p.ae-lead { font-size: 17px; }
  .ae-debate-body { font-size: 16px; margin-top: 32px; }
  .ae-debate-body p { margin-bottom: 18px; }
}

/* =============================================================
   CONTACTO (Home) — etiqueta + 2 iconos
   ============================================================= */
.ae-contact-block {
  margin-top: 18px;
}
.ae-contact-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ae-text);
  letter-spacing: -0.005em;
  margin-bottom: 12px;
}
.ae-contact-icons {
  display: flex;
  gap: 12px;
}
.ae-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(204,7,30,0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
}
.ae-contact-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(204,7,30,0.42);
  background: linear-gradient(135deg, var(--ae-red-dark), var(--ae-red));
}
.ae-contact-icon::before {
  content: "";
  display: block;
  width: 26px; height: 26px;
  background-color: #fff;
}
.ae-contact-icon--mail::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z' fill='none' stroke='black' stroke-width='2.2'/><polyline points='22,6 12,13 2,6' fill='none' stroke='black' stroke-width='2.2'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z' fill='none' stroke='black' stroke-width='2.2'/><polyline points='22,6 12,13 2,6' fill='none' stroke='black' stroke-width='2.2'/></svg>") no-repeat center / contain;
}
.ae-contact-icon--ig::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='black' stroke-width='2'/><circle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/><circle cx='17.5' cy='6.5' r='1.2' fill='black'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect x='3' y='3' width='18' height='18' rx='5' fill='none' stroke='black' stroke-width='2'/><circle cx='12' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/><circle cx='17.5' cy='6.5' r='1.2' fill='black'/></svg>") no-repeat center / contain;
}

/* =============================================================
   CONTACTO (Home) — reubicado bajo la imagen + encabezado moderno
   ============================================================= */
.ae-hero {
  grid-template-areas:
    "text photo"
    "text contact" !important;
  row-gap: 26px !important;
  align-items: start !important;
}
.ae-hero .ae-text { grid-area: text; }
.ae-hero .ae-photo { grid-area: photo; }
.ae-hero .ae-contact-block { grid-area: contact; }

.ae-contact-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--ae-text);
  margin: 0 0 14px 0;
  text-transform: none;
  line-height: 1.2;
}
.ae-contact-title::before {
  content: "";
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--ae-red), var(--ae-red-dark));
  border-radius: 2px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .ae-hero {
    grid-template-areas:
      "photo"
      "text"
      "contact" !important;
    row-gap: 28px !important;
  }
  .ae-hero .ae-photo { order: 0 !important; }
  .ae-contact-title { font-size: 17px; }
}

/* =============================================================
   DEBATE — capa de modernización (solo visual, sin tocar textos)
   ============================================================= */
body.page-debate .ae-section { padding-top: 56px; padding-bottom: 36px; }

/* Eyebrow más contundente */
body.page-debate .ae-section-header .ae-eyebrow {
  font-size: 13px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(204,7,30,0.30);
}
body.page-debate .ae-section-header .ae-eyebrow::before {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.40);
}

/* Título mucho más grande con un toque de gradiente sutil */
body.page-debate .ae-section-header h2 {
  font-size: 54px;
  letter-spacing: -0.035em;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--ae-text) 0%, #1a2a40 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Entradilla en estilo magazine, con barra superior decorativa */
body.page-debate .ae-section-header p.ae-lead {
  font-size: 22px;
  font-weight: 500;
  color: var(--ae-text);
  line-height: 1.45;
  letter-spacing: -0.008em;
  max-width: 820px;
  margin: 28px auto 0;
  padding-top: 22px;
  position: relative;
}
body.page-debate .ae-section-header p.ae-lead::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, var(--ae-red), var(--ae-red-dark));
  border-radius: 3px;
}

/* Marco del vídeo con un aura rojiza y separación amplia */
body.page-debate .ae-section { overflow: visible; }
body.page-debate .ae-video-frame {
  margin-top: 48px;
  border: 0;
  border-radius: 26px;
  box-shadow:
    0 36px 70px rgba(15,23,42,0.22),
    0 0 0 6px rgba(255,255,255,0.95),
    0 0 0 7px rgba(204,7,30,0.18);
}

/* Cuerpo del texto: tarjeta editorial con acento rojo a la izquierda */
body.page-debate .ae-debate-body {
  position: relative;
  margin-top: 64px;
  background: var(--ae-bg-soft);
  border: 1px solid var(--ae-border);
  border-radius: 24px;
  padding: 44px 48px 40px 56px;
  box-shadow: 0 12px 28px rgba(15,23,42,0.04);
}
body.page-debate .ae-debate-body::before {
  content: "";
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: -2px;
  width: 6px;
  background: linear-gradient(180deg, var(--ae-red), var(--ae-red-dark));
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(204,7,30,0.28);
}

/* Drop cap en el primer párrafo, estilo editorial */
body.page-debate .ae-debate-body p:first-of-type::first-letter {
  float: left;
  font-size: 68px;
  line-height: 0.92;
  font-weight: 800;
  padding: 6px 14px 0 0;
  margin: 2px 0 0 0;
  color: var(--ae-red);
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}

/* Párrafo de cierre con separador y estilo italic discreto */
body.page-debate .ae-debate-body p:last-of-type {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px dashed rgba(204,7,30,0.30);
  font-size: 16px;
  color: var(--ae-text-soft);
  font-style: italic;
}

/* Responsive: ajustes para móvil */
@media (max-width: 900px) {
  body.page-debate .ae-section-header h2 { font-size: 38px; }
  body.page-debate .ae-section-header p.ae-lead { font-size: 18.5px; }
  body.page-debate .ae-debate-body { padding: 32px 28px 30px 34px; margin-top: 44px; }
  body.page-debate .ae-debate-body p:first-of-type::first-letter { font-size: 54px; }
  body.page-debate .ae-video-frame { margin-top: 36px; }
}
@media (max-width: 560px) {
  body.page-debate .ae-section-header h2 { font-size: 30px; }
  body.page-debate .ae-section-header p.ae-lead { font-size: 16.5px; padding-top: 18px; margin-top: 20px; }
  body.page-debate .ae-debate-body { padding: 26px 22px 24px 28px; margin-top: 32px; }
  body.page-debate .ae-debate-body p:first-of-type::first-letter { font-size: 46px; padding-right: 10px; }
  body.page-debate .ae-debate-body p:last-of-type { font-size: 15px; margin-top: 22px; padding-top: 18px; }
}

/* =============================================================
   REVISTA — capa de modernización (mismo lenguaje que Debate)
   ============================================================= */
body.page-revista .ae-section { padding-top: 56px; padding-bottom: 36px; }

body.page-revista .ae-section-header .ae-eyebrow {
  font-size: 13px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(204,7,30,0.30);
}
body.page-revista .ae-section-header .ae-eyebrow::before {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.40);
}

body.page-revista .ae-section-header h2 {
  font-size: 48px;
  letter-spacing: -0.032em;
  margin-top: 4px;
  line-height: 1.12;
  background: linear-gradient(135deg, var(--ae-text) 0%, #1a2a40 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.page-revista .ae-section-header p.ae-lead {
  font-size: 22px;
  font-weight: 500;
  color: var(--ae-text);
  line-height: 1.45;
  letter-spacing: -0.008em;
  max-width: 820px;
  margin: 26px auto 0;
  padding-top: 22px;
  position: relative;
}
body.page-revista .ae-section-header p.ae-lead::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, var(--ae-red), var(--ae-red-dark));
  border-radius: 3px;
}

body.page-revista .ae-reader-frame {
  margin-top: 40px;
  border: 0;
  border-radius: 26px;
  box-shadow:
    0 36px 70px rgba(15,23,42,0.22),
    0 0 0 6px rgba(255,255,255,0.95),
    0 0 0 7px rgba(204,7,30,0.18);
}

/* Tarjeta de creditos: colaboran / coordina */
.ae-credits-body {
  position: relative;
  margin: 56px auto 0;
  max-width: 820px;
  background: var(--ae-bg-soft);
  border: 1px solid var(--ae-border);
  border-radius: 24px;
  padding: 36px 44px 32px 52px;
  box-shadow: 0 12px 28px rgba(15,23,42,0.04);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ae-text);
}
.ae-credits-body::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: -2px;
  width: 6px;
  background: linear-gradient(180deg, var(--ae-red), var(--ae-red-dark));
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(204,7,30,0.28);
}
.ae-credits-body p { margin: 0 0 16px; }
.ae-credits-body p:last-child {
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(204,7,30,0.30);
  font-style: italic;
  color: var(--ae-text-soft);
}
.ae-credits-body strong {
  display: inline-block;
  color: var(--ae-red);
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 12px;
  margin-right: 10px;
  padding: 3px 10px;
  background: var(--ae-red-soft);
  border-radius: 8px;
  vertical-align: 2px;
}

@media (max-width: 900px) {
  body.page-revista .ae-section-header h2 { font-size: 36px; }
  body.page-revista .ae-section-header p.ae-lead { font-size: 18.5px; }
  .ae-credits-body { padding: 30px 26px 26px 32px; margin-top: 40px; }
  body.page-revista .ae-reader-frame { margin-top: 30px; }
}
@media (max-width: 560px) {
  body.page-revista .ae-section-header h2 { font-size: 28px; }
  body.page-revista .ae-section-header p.ae-lead { font-size: 16.5px; padding-top: 18px; margin-top: 20px; }
  .ae-credits-body { padding: 24px 20px 22px 26px; margin-top: 32px; font-size: 15px; }
  .ae-credits-body strong { font-size: 11px; padding: 2px 8px; }
}

/* =============================================================
   REVISTA — fix pildoras Colaboran/Coordina (block, no inline)
   ============================================================= */
.ae-credits-body strong {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 12px 0;
  padding: 5px 14px;
  background: var(--ae-red-soft);
  color: var(--ae-red);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 8px;
  vertical-align: baseline;
  border: 1px solid rgba(204,7,30,0.18);
}

/* Revertir grid-template-areas del hero — contacto vuelve a flujo natural del texto */
.ae-hero {
  grid-template-areas: none !important;
  row-gap: 0 !important;
  align-items: center !important;
}
.ae-contact-block {
  margin-top: 22px;
}

/* =============================================================
   FIX HERO — forzar layout 2 columnas simple (texto + foto)
   ============================================================= */
.ae-hero {
  display: grid !important;
  grid-template-columns: 1.1fr 1fr !important;
  grid-template-areas: none !important;
  grid-template-rows: auto !important;
  column-gap: 56px !important;
  row-gap: 0 !important;
  align-items: center !important;
}
.ae-hero > .ae-text,
.ae-hero > .ae-photo {
  grid-area: auto !important;
  grid-column: auto !important;
  grid-row: auto !important;
  position: relative;
}
.ae-hero > .ae-text { grid-column: 1 !important; }
.ae-hero > .ae-photo { grid-column: 2 !important; }

@media (max-width: 900px) {
  .ae-hero {
    grid-template-columns: 1fr !important;
    row-gap: 28px !important;
  }
  .ae-hero > .ae-text { grid-column: 1 !important; }
  .ae-hero > .ae-photo { grid-column: 1 !important; order: -1 !important; }
}

/* =============================================================
   CONTACT TITLE — versión modernizada (gradiente rojo + barra)
   ============================================================= */
.ae-contact-title {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.022em !important;
  margin: 0 0 16px 0 !important;
  line-height: 1.15 !important;
  color: var(--ae-red) !important;
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: none !important;
}
.ae-contact-title::before {
  content: "" !important;
  width: 40px !important;
  height: 4px !important;
  background: linear-gradient(90deg, var(--ae-red), var(--ae-red-dark)) !important;
  border-radius: 3px !important;
  flex-shrink: 0 !important;
  display: block !important;
  transition: width 0.35s ease;
}
.ae-contact-block:hover .ae-contact-title::before {
  width: 60px !important;
}

@media (max-width: 560px) {
  .ae-contact-title { font-size: 19px !important; }
  .ae-contact-title::before { width: 32px !important; }
}

/* =============================================================
   EYEBROW unificado en páginas secundarias
   (Curso, Galería, Noticias se equiparan a Debate/Revista)
   ============================================================= */
body.page-curso    .ae-section-header .ae-eyebrow,
body.page-galeria  .ae-section-header .ae-eyebrow,
body.page-noticias .ae-section-header .ae-eyebrow {
  font-size: 13px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--ae-red), var(--ae-red-dark));
  color: #fff;
  box-shadow: 0 8px 18px rgba(204,7,30,0.30);
}
body.page-curso    .ae-section-header .ae-eyebrow::before,
body.page-galeria  .ae-section-header .ae-eyebrow::before,
body.page-noticias .ae-section-header .ae-eyebrow::before {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.40);
}

/* Fix: estado activo del menú en Noticias */
body.page-noticias .nav-noticias {
  color: var(--ae-red) !important;
  background: #fff !important;
  font-weight: 800;
}
