:root {
  --bg-main: #FCFBF9;
  --bg-lepadis: #F9F8F4;
  --navy-dark: #1A2432;
  --navy-slate: #273443;
  --navy-slate-light: #324252;
  --accent-orange: #E57C23;
  --bg-card-accent: #FFF6EB;
  --text-body: #545E6B;
  --text-contact: #D1D5DB;
  --white: #ffffff;
  --border-light: #e5e7eb;
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.04);
  --container: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin: 0 auto; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-40 { margin-bottom: 40px; }
.text-white { color: var(--white) !important; }
.muted { color: #9CA3AF; font-size: 0.9em; }

/* ========================================== HEADER ========================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-light);
}
.nav-wrap { min-height: 80px; display: flex; align-items: center; justify-content: space-between; }
.brand-title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700; font-size: 1.8rem;
  color: var(--navy-dark); line-height: 1;
}
.brand-subtitle { font-size: 0.75rem; color: var(--text-body); margin-top: 4px; }
.main-nav { display: flex; gap: 36px; align-items: center; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.main-nav a { font-size: 0.9rem; font-weight: 500; color: var(--navy-dark); transition: color 0.2s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--accent-orange); }

.nav-num {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  color: var(--accent-orange);
  margin-right: 4px; vertical-align: 1px;
}

/* ========================================== LANG SWITCHER ========================================== */
.lang-switcher {
  display: flex; gap: 6px; align-items: center;
  margin-left: 10px; padding-left: 12px;
  border-left: 1px solid var(--border-light);
}
.lang-switcher a, .lang-switcher .lang-link {
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; color: var(--text-body);
  padding: 4px 6px; border-radius: 4px;
  letter-spacing: 0.5px; transition: all 0.2s;
}
.lang-switcher a:hover, .lang-switcher .lang-link:hover,
.lang-switcher a.active, .lang-switcher .lang-link.active,
.lang-switcher .current-lang a {
  color: var(--accent-orange); background: var(--bg-lepadis);
}
.lang-switcher ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.lang-switcher-mobile {
  margin: 12px 0 0; padding: 10px 0 0;
  border-left: 0; border-top: 1px solid var(--border-light);
  justify-content: center;
}

/* ========================================== NAV TOGGLE / MOBILE ========================================== */
.nav-toggle {
  display: none; width: 46px; height: 46px;
  border: 1px solid var(--border-light); border-radius: 10px;
  background: var(--white); color: var(--navy-dark);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  width: 18px; height: 2px; background: currentColor; display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; border-top: 1px solid var(--border-light); background: rgba(255, 255, 255, 0.99); }
.mobile-nav.is-open { display: block; }
.mobile-nav-inner { display: grid; gap: 10px; padding: 18px 0 22px; }
.mobile-nav-inner > a, .mobile-submenu summary {
  display: block; padding: 12px 0;
  font-size: 0.98rem; font-weight: 600; color: var(--navy-dark);
}
.mobile-submenu { border-top: 1px solid var(--border-light); padding-top: 6px; }
.mobile-submenu summary { list-style: none; cursor: pointer; position: relative; padding-right: 26px; }
.mobile-submenu summary::-webkit-details-marker { display: none; }
.mobile-submenu summary::after {
  content: "+"; position: absolute; right: 0; top: 50%;
  transform: translateY(-50%); color: var(--accent-orange);
  font-size: 1.2rem; font-weight: 500;
}
.mobile-submenu[open] summary::after { content: "-"; }
.mobile-submenu-links { display: grid; gap: 8px; padding: 2px 0 10px 14px; }
.mobile-submenu-links a { color: var(--text-body); font-size: 0.94rem; }
.btn-header-mobile {
  margin-top: 8px; width: 100%;
  background: var(--accent-orange);
  color: #f8fbff !important;
  border: 1px solid var(--accent-orange);
  text-align: center; font-size: 1rem; font-weight: 700;
  box-shadow: 0 10px 24px rgba(208, 118, 32, 0.18);
}
.btn-header-mobile:visited, .btn-header-mobile:hover, .btn-header-mobile:focus { color: #f8fbff !important; }
.btn-header-mobile:hover { opacity: 1; background: #c86d14; border-color: #c86d14; }
.mobile-nav-inner > a.is-active { color: var(--accent-orange); }

/* ========================================== DROPDOWN ========================================== */
.dropdown { position: relative; display: inline-block; height: 100%; }
.dropdown-menu {
  position: absolute; top: calc(100% + 15px); left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--white); min-width: 220px;
  box-shadow: var(--shadow-card); border: 1px solid var(--border-light);
  border-radius: 8px; padding: 8px 0;
  opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 100;
}
.dropdown-menu::before {
  content: ""; position: absolute; top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px; background-color: var(--white);
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
}
.dropdown::after { content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 20px; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-menu a {
  display: block; padding: 10px 20px;
  font-size: 0.9rem; color: var(--text-body) !important;
  font-weight: 400 !important; text-align: left;
  transition: background-color 0.2s, color 0.2s !important;
}
.dropdown-menu a.dropdown-highlight {
  font-weight: 600 !important; color: var(--navy-dark) !important;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 4px; padding-bottom: 12px;
}
.dropdown-menu a:hover { background-color: var(--bg-lepadis); color: var(--accent-orange) !important; }

/* ========================================== HEADINGS / BUTTONS ========================================== */
.btn-header {
  background: var(--navy-dark); color: var(--white);
  padding: 8px 20px; border-radius: 6px;
  font-weight: 600; font-size: 0.9rem; transition: opacity 0.2s;
}
.btn-header:hover { opacity: 0.9; }

h1, h2, h3, h4, .section-title {
  font-family: "Cormorant Garamond", serif;
  color: var(--navy-dark); margin-top: 0; font-weight: 600;
}
.section-title {
  font-size: 2.5rem; margin-bottom: 15px;
  position: relative; display: inline-block; padding-bottom: 15px;
}
.section-title::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 50px; height: 3px; background: var(--accent-orange);
}
.section-title-left { display: inline-block; }
.section-title-left::after { left: 0; transform: none; }

.subtitle-text {
  font-size: 1.05rem; color: var(--text-body);
  max-width: 700px; margin: 0 auto 30px;
}
.subtitle-text.narrow { max-width: 600px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 8px; font-weight: 600;
  border: 1px solid transparent; transition: all 0.2s;
}
.btn-primary { background: var(--accent-orange); color: var(--white); }
.btn-primary:hover { background: #d36e1a; }
.btn-secondary { background: transparent; border-color: var(--border-light); color: var(--navy-dark); }
.btn-secondary:hover { border-color: var(--text-body); }
.btn-outline { background: transparent; border-color: var(--border-light); color: var(--text-body); padding: 8px 16px; font-size: 0.9rem; }
.btn-outline:hover { background: var(--border-light); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ========================================== HERO ========================================== */
.hero { padding: 80px 0; background: var(--bg-main); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.hero-copy h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
.hero-actions { display: flex; gap: 15px; margin: 30px 0; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 15px; padding: 0; list-style: none; }
.tag { font-size: 0.85rem; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.tag-gold::before { background: #b99755; }
.tag-purple::before { background: #8550ba; }
.tag-charcoal::before { background: #525965; }
.tag-green::before { background: #4fa75a; }
.hero-card {
  background: var(--white); padding: 30px;
  border-radius: 12px; box-shadow: var(--shadow-card);
  border-left: 4px solid var(--accent-orange);
}
.hero-card ul { padding-left: 20px; margin-bottom: 0; }
.hero-card li { margin-bottom: 10px; }

/* ========================================== SECTIONS PADDING ========================================== */
.quienes-section, .historia-section, .enfoque-section,
.equipo-section, .difusion-section, .cta-cards-section {
  padding: 70px 0;
}

/* ========================================== A. QUIENES SOMOS ========================================== */
.quienes-section { background: var(--bg-main); }
.quienes-intro { max-width: 820px; margin: 0 auto 40px; font-size: 1.05rem; color: var(--text-body); }
.quienes-intro p { margin-bottom: 18px; }

/* Tabla Mision/Vision (PDF la pinta como tabla, lo replicamos) */
.mv-table {
  width: 100%; max-width: 820px; margin: 0 auto 40px;
  border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--border-light);
  border-radius: 14px; overflow: hidden;
  background: var(--white); box-shadow: var(--shadow-card);
}
.mv-table th, .mv-table td {
  padding: 22px 24px; vertical-align: top;
  border-right: 1px solid var(--border-light);
}
.mv-table th:last-child, .mv-table td:last-child { border-right: 0; }
.mv-table th {
  width: 50%; background: var(--bg-lepadis);
  font-size: 1.05rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--navy-dark);
  border-bottom: 2px solid var(--accent-orange);
  text-align: left;
}
.mv-table td { font-size: 0.95rem; color: var(--text-body); line-height: 1.7; }

.proposito-block, .objetivos-block { max-width: 820px; margin: 0 auto 30px; }
.block-heading {
  font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--navy-dark);
  border-left: 3px solid var(--accent-orange);
  padding-left: 12px; margin-bottom: 14px;
}
.proposito-text { font-size: 1.05rem; color: var(--text-body); }

/* ========================================== C / D — SPLIT TEXT + IMAGE ========================================== */
.historia-section { background: var(--bg-lepadis); }
.enfoque-section  { background: var(--bg-main); }
.split-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
.split-grid-reverse .split-text  { order: 2; }
.split-grid-reverse .split-media { order: 1; }
.split-text p { font-size: 1rem; color: var(--text-body); margin-bottom: 16px; line-height: 1.7; }
.split-image {
  width: 100%; height: auto;
  border-radius: 18px; box-shadow: var(--shadow-card);
  display: block; background: var(--white);
}

/* ========================================== E. EQUIPO ========================================== */
.equipo-section { background: var(--bg-lepadis); }
.equipo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.equipo-card {
  background: var(--white); border-radius: 14px;
  padding: 24px 22px; box-shadow: var(--shadow-card);
  border-top: 4px solid var(--accent-orange);
  min-width: 0; /* permite que el grid encoja correctamente */
}
.equipo-card h3 { font-size: 1.25rem; margin-bottom: 16px; color: var(--navy-dark); }
.equipo-list { list-style: none; padding: 0; margin: 0; }
.equipo-list li {
  padding: 8px 0; font-size: 0.95rem;
  color: var(--text-body); border-bottom: 1px solid var(--border-light);
}
.equipo-list li:last-child { border-bottom: none; }

/* ========================================== F. DIFUSION ========================================== */
.difusion-section { background: var(--bg-main); }
.difusion-list { max-width: 820px; margin: 0 auto; font-size: 1rem; }
.difusion-list li { padding: 12px 0; border-bottom: 1px dashed var(--border-light); }
.difusion-list li:last-child { border-bottom: none; }

/* ========================================== LISTAS NARANJAS GENERICAS ========================================== */
.orange-bullets, .orange-list { padding-left: 20px; margin: 0; }
.orange-bullets li, .orange-list li { margin-bottom: 10px; font-size: 0.95rem; }
.orange-bullets li::marker, .orange-list li::marker { color: var(--accent-orange); }

/* ========================================== CTA CARDS (3 / 4 / 5) ========================================== */
/* Bloque grande de tres cards-boton para Investigacion / Actividades / Contenidos */
.cta-cards-section {
  background: linear-gradient(180deg, var(--bg-lepadis) 0%, var(--bg-main) 100%);
}
.cta-cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; margin-top: 30px;
}
.cta-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 36px 28px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative; overflow: hidden;
  text-align: left;
}
.cta-card::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 6px; height: 100%; background: var(--accent-orange);
  transform: translateX(-6px); transition: transform 0.25s ease;
}
.cta-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--accent-orange);
}
.cta-card:hover::before { transform: translateX(0); }
.cta-card-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--bg-card-accent);
  color: var(--accent-orange);
  font-weight: 700; font-size: 1.2rem;
  border-radius: 50%; font-family: "Cormorant Garamond", serif;
}
.cta-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem; color: var(--navy-dark);
  margin: 0;
}
.cta-card p {
  font-size: 0.95rem; color: var(--text-body);
  margin: 0; line-height: 1.65;
}
.cta-card-link {
  margin-top: auto;
  font-weight: 700; color: var(--accent-orange);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap 0.2s ease;
}
.cta-card:hover .cta-card-link { gap: 12px; }

/* ========================================== UNETE / CONTACT ========================================== */
.contact-section {
  background: var(--navy-slate);
  padding: 70px 0 90px;
}
.contact-section p, .contact-section li, .direct-contact { color: var(--text-contact); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 30px; margin-top: 40px;
}
.contact-card { background: var(--navy-slate-light); padding: 35px; border-radius: 12px; }
.contact-card h2 { font-size: 1.6rem; margin-bottom: 20px; color: var(--white); }
.orange-heading {
  color: var(--accent-orange) !important;
  font-family: "Inter", sans-serif;
  font-size: 1.05rem; margin-top: 25px; margin-bottom: 10px;
}
.contact-block { margin-top: 20px; }

/* ========================================== FORMULARIO ========================================== */
.contact-form { margin-top: 20px; display: block; }
.contact-form label {
  display: block;
  margin: 0 0 18px 0;
  width: 100%;
}
.contact-form span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 500;
}
.form-row {
  display: block;
  margin-bottom: 18px;
}
.form-row.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-row.two-cols label { margin-bottom: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--navy-slate);
  background: var(--white);
  color: var(--navy-dark);
  display: block;
  box-sizing: border-box;
}
.contact-form textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--accent-orange);
}
.btn-submit {
  background-color: var(--accent-orange);
  color: var(--white);
  border: none; border-radius: 6px;
  padding: 14px; font-size: 1rem;
  margin-top: 10px; font-weight: 600;
  width: 100%;
  display: block;
}
.btn-submit:hover { background-color: #d36e1a; }
.form-feedback { color: var(--accent-orange); margin-top: 10px; font-size: 0.9rem; }
.direct-contact { margin-top: 24px; font-size: 0.92rem; }

/* ========================================== FOOTER ========================================== */
.site-footer {
  background: #1B2631;
  color: #9CA3AF;
  text-align: center;
  padding: 25px 0;
  font-size: 0.85rem;
}

/* ========================================== ANIMACIONES ========================================== */
.js-ready .reveal { opacity: 0; transform: translateY(20px); transition: 0.6s ease; }
.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.2s; }

/* ========================================== EYEBROW (badges A-F) — OCULTO en v4 ========================================== */
.eyebrow {
  display: inline-block;
  padding: 5px 12px; border-radius: 999px;
  background: var(--bg-lepadis);
  color: var(--accent-orange);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow-light { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ========================================== PAGINA MANIFIESTO ========================================== */
.archive-hero { padding: 64px 0 42px; }
.archive-hero--manifesto {
  background: linear-gradient(180deg, var(--bg-lepadis) 0%, var(--white) 100%);
  text-align: center;
  padding: 70px 0 50px;
}
.archive-hero--manifesto h1 { font-size: 3.2rem; }
.archive-hero--manifesto .post-lead { margin: 0 auto; max-width: 760px; font-size: 1.1rem; }
.manifesto-body { padding: 30px 0 84px; background: var(--bg-main); }
.manifesto-narrow { max-width: 760px; margin: 0 auto; }
.manifesto-block { margin-bottom: 38px; }
.manifesto-block p { font-size: 1.02rem; color: var(--text-body); line-height: 1.75; margin-bottom: 16px; }
.manifesto-h2 {
  font-size: 1.8rem; color: var(--navy-dark);
  margin: 30px 0 18px; padding-bottom: 8px;
  border-bottom: 2px solid var(--accent-orange);
  display: inline-block;
}
.manifesto-affirmations {
  margin: 30px 0;
  background: var(--bg-lepadis);
  padding: 24px 28px;
  border-radius: 14px;
  border-left: 4px solid var(--accent-orange);
}
.manifesto-affirmations .muted-intro { font-weight: 700; color: var(--navy-dark); margin-bottom: 12px; }
.manifesto-callout {
  margin: 30px 0; padding: 28px;
  background: var(--bg-card-accent);
  border-radius: 14px;
  border-left: 4px solid var(--accent-orange);
  font-size: 1.05rem;
}
.manifesto-quote {
  margin: 40px 0; padding: 28px 32px;
  background: var(--navy-slate); color: #fff;
  border-radius: 14px; font-style: italic;
  font-size: 1.05rem; line-height: 1.7;
}
.manifesto-quote cite {
  display: block; margin-top: 16px;
  font-style: normal; font-size: 0.85rem;
  color: var(--text-contact); letter-spacing: 0.5px;
}
.manifesto-cta {
  display: flex; gap: 14px; justify-content: center;
  flex-wrap: wrap; margin-top: 50px;
}

/* ========================================== ARCHIVOS / POSTS (CPT) ========================================== */
.archive-hero--research, .archive-hero--activities, .archive-hero--contents {
  background: linear-gradient(180deg, #faf7f2 0%, #ffffff 100%);
}
.archive-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; }
.archive-hero h1, .post-main h1 { font-size: 3rem; line-height: 1.08; margin-bottom: 16px; }
.archive-hero p, .post-lead { font-size: 1.05rem; max-width: 62ch; }
.archive-hero-image, .post-cover {
  width: 100%; border-radius: 18px;
  display: block; box-shadow: var(--shadow-card);
}
.archive-section, .post-layout { padding: 14px 0 84px; }
.archive-filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.archive-filter-btn {
  border: 1px solid var(--border-light); background: var(--white);
  color: var(--navy-dark); border-radius: 999px;
  padding: 10px 16px; font-weight: 600;
}
.archive-filter-btn.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange); color: var(--white);
}
.featured-post {
  display: grid; grid-template-columns: 1.08fr 1fr;
  gap: 28px; border-radius: 22px; padding: 24px;
  background: var(--white); border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card); margin-bottom: 28px;
}
.featured-post-media img, .archive-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; border-radius: 16px;
}
.featured-post-copy, .archive-card-copy { display: flex; flex-direction: column; }
.featured-post h2 { font-size: 2.35rem; margin-bottom: 14px; }
.meta-row { color: #6b7280; font-size: 0.95rem; font-weight: 600; margin-bottom: 12px; }
.meta-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; margin-bottom: 16px; }
.meta-tag {
  display: inline-flex; align-items: center;
  padding: 6px 10px; border-radius: 999px;
  background: var(--bg-lepadis); color: var(--navy-dark);
  font-size: 0.8rem; font-weight: 600;
}
.btn-group-left { justify-content: flex-start; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.archive-card {
  background: var(--white); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border-light); box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.archive-card-media { aspect-ratio: 16 / 10; }
.archive-card-copy { padding: 20px; gap: 10px; height: 100%; }
.archive-card h3 { font-size: 1.55rem; line-height: 1.1; margin-bottom: 4px; }
.archive-card-actions { margin-top: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.text-link { color: var(--accent-orange); font-weight: 700; }
.text-link:hover { text-decoration: underline; }
[data-item].is-hidden { display: none !important; }
.post-layout-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) 360px; gap: 28px; }
.post-main, .sidebar-panel {
  border: 1px solid var(--border-light);
  border-radius: 18px; background: var(--white);
  box-shadow: var(--shadow-card);
}
.post-main { padding: 32px; }
.post-content h2 { font-size: 2rem; margin-top: 26px; }
.post-sidebar { display: grid; gap: 18px; align-content: start; }
.sidebar-panel { padding: 22px; }
.plain-list { padding-left: 18px; margin: 0; }
.plain-list li { margin-bottom: 10px; }

/* ========================================== RESPONSIVE ========================================== */
@media (max-width: 900px) {
  .hero-grid, .contact-grid, .archive-hero-grid, .post-layout-grid,
  .split-grid, .equipo-grid, .cta-cards-grid { grid-template-columns: 1fr; }
  .split-grid-reverse .split-text  { order: 1; }
  .split-grid-reverse .split-media { order: 2; }
  .nav-wrap { min-height: 72px; }
  .main-nav, .nav-actions .btn-header, .nav-actions .lang-switcher { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .archive-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .archive-hero h1, .post-main h1 { font-size: 2.4rem; }
  .mv-table th, .mv-table td { display: block; width: 100%; border-right: 0; }
  .mv-table th { border-bottom: 2px solid var(--accent-orange); }
  .mv-table td { border-bottom: 1px solid var(--border-light); }
}
@media (max-width: 600px) {
  .form-row.two-cols { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 2.8rem; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .brand-title { font-size: 1.6rem; }
  .brand-subtitle { max-width: 180px; }
  .archive-hero { padding: 48px 0 32px; }
  .featured-post, .post-main { padding: 20px; }
}

/* ========================================== v4.2 — LINEAS / TIPOS (paginas dedicadas) ========================================== */
.lineas-section {
  padding: 60px 0 30px;
  background: var(--bg-lepadis);
}
.lineas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 520px));
  justify-content: center;
  gap: 22px;
  margin-top: 20px;
}
.lineas-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 350px)); }

.linea-card {
  background: var(--white);
  border-radius: 14px;
  padding: 26px 28px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  border-top: 4px solid var(--accent-orange);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.linea-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.06);
}
.linea-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-card-accent);
  color: var(--accent-orange);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 999px;
  align-self: flex-start;
}
.linea-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
}
.linea-card ul { margin: 0; }
.linea-card li {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 10px;
}
.linea-card li:last-child { margin-bottom: 0; }

/* Empty state (cuando no hay CPT publicados) */
.empty-state {
  text-align: center;
  padding: 50px 20px;
  background: var(--bg-lepadis);
  border-radius: 16px;
  border: 1px dashed var(--border-light);
}
.empty-state p { color: var(--text-body); font-size: 1rem; margin: 0; }

/* Responsive: paginas dedicadas */
@media (max-width: 900px) {
  .lineas-grid, .lineas-grid-3 { grid-template-columns: 1fr; }
}

/* ========================================== v4.3 — LIBROS Y POSTERS ========================================== */

/* Libro lateral en hero de pagina dedicada (Investigacion / Contenidos) */
.hero-book-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
}
.hero-book-image {
  max-width: 280px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  display: block;
}
.hero-book-caption {
  font-size: 0.85rem;
  color: var(--text-body);
  font-style: italic;
  text-align: center;
  margin: 0;
  max-width: 280px;
  line-height: 1.5;
}

/* Equipo (home) con libro lateral */
.equipo-with-book {
  display: grid;
  /* Cards (1fr) ocupan todo el espacio disponible. Libro lateral fijo en 240px */
  grid-template-columns: 1fr 240px;
  gap: 40px;
  align-items: start;
}
.equipo-book {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.equipo-book-image {
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  display: block;
}
.equipo-book-caption {
  font-size: 0.85rem;
  color: var(--text-body);
  font-style: italic;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* Posters de actividades */
.posters-section {
  padding: 60px 0;
  background: var(--bg-main);
}
.posters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}
.poster-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 18px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.poster-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.poster-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
.poster-card figcaption {
  font-size: 0.88rem;
  color: var(--text-body);
  text-align: center;
  font-weight: 600;
  line-height: 1.45;
}

/* Responsive */
@media (max-width: 900px) {
  .equipo-with-book { grid-template-columns: 1fr; }
  .equipo-book { position: static; max-width: 320px; margin: 30px auto 0; }
  .posters-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .posters-grid { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------------
   MISION / VISION  -  grid responsive (reemplaza la tabla HTML).
   Escritorio: 2 columnas estilo tabla del PDF.
   Movil: apila MISION+texto y luego VISION+texto.
---------------------------------------------------------------- */
.mv-table-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 820px;
  margin: 0 auto 40px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.mv-cell { display: flex; flex-direction: column; }
.mv-cell + .mv-cell { border-left: 1px solid var(--border-light); }
.mv-cell-head {
  background: var(--bg-lepadis);
  padding: 18px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy-dark);
  border-bottom: 2px solid var(--accent-orange);
}
.mv-cell-body {
  padding: 22px 24px;
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
}
@media (max-width: 760px) {
  .mv-table-grid { grid-template-columns: 1fr; }
  .mv-cell + .mv-cell { border-left: 0; border-top: 1px solid var(--border-light); }
}


/* ---------------------------------------------------------------
   FOOTER SOCIALS  -  iconos condicionales (solo aparecen los
   que tienen URL configurada en SCF de la portada).
---------------------------------------------------------------- */
.footer-socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 0;
  margin: 0 0 18px;
}
.footer-socials li { display: inline-flex; }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.footer-social-link:hover,
.footer-social-link:focus {
  color: #fff;
  background: var(--accent-orange, #E57C23);
  border-color: var(--accent-orange, #E57C23);
  transform: translateY(-2px);
}
.footer-social-link svg { display: block; }





/* ---------------------------------------------------------------
   REDES Y VINCULOS  -  enlaces clickeables en la seccion Unete.
   Aparecen subrayados sutilmente; en hover se ponen naranjas.
---------------------------------------------------------------- */
.redes-list a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
.redes-list a:hover,
.redes-list a:focus {
  color: var(--accent-orange, #E57C23);
  text-decoration-color: var(--accent-orange, #E57C23);
}


/* ---------------------------------------------------------------
   HEADER BRAND  -  logo completo (icono + LEPADIS + subtitle dentro
   de la imagen). Sin texto HTML al lado.
   Altura calibrada para mantener el navbar ~80px como antes.
---------------------------------------------------------------- */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  display: block;
  height: 72px;
  width: auto;
}
/* Por si quedan en HTML cacheado, ocultar texto del bloque marca */
.brand-text, .brand-title, .brand-subtitle { display: none !important; }

@media (max-width: 900px) {
  .brand-logo { height: 58px; }
}
@media (max-width: 480px) {
  .brand-logo { height: 46px; }
}


/* ---------------------------------------------------------------
   LANG-SWITCHER: reset bullets agresivo (Polylang inyecta <ul><li>)
---------------------------------------------------------------- */
/* LANG-SWITCHER: reset bullets */
.lang-switcher ul,
.lang-switcher ol,
.lang-switcher li {
  list-style: none !important;
  list-style-type: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}
.lang-switcher li {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
}
.lang-switcher li::before,
.lang-switcher li::marker {
  content: none !important;
  display: none !important;
}


/* ---------------------------------------------------------------
   v5 — Filtros de archive como enlaces (filtrado server-side)
   + iconos de redes sociales junto al formulario de "Unete".
---------------------------------------------------------------- */
a.archive-filter-btn {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.1;
}
a.archive-filter-btn:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}
a.archive-filter-btn.active,
a.archive-filter-btn.active:hover {
  color: var(--white);
}

.contact-follow { margin-top: 24px; }
.contact-socials {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0;
  margin: 10px 0 0;
}
.contact-socials li { display: inline-flex; }
.contact-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.contact-social-link:hover,
.contact-social-link:focus {
  color: #fff;
  background: var(--accent-orange, #E57C23);
  border-color: var(--accent-orange, #E57C23);
  transform: translateY(-2px);
}
.contact-social-link svg { display: block; }


/* ---------------------------------------------------------------
   v5.1 — ENLACES DENTRO DE TEXTO EDITABLE
   Visibles y clickeables. Mismo comportamiento que en el form
   (.redes-list a): subrayado sutil en reposo y, al pasar el raton,
   color naranja con transicion suave. Adaptado a fondo claro.
---------------------------------------------------------------- */
.post-content a,
.manifesto-prose a,
.manifesto-block a,
.manifesto-callout a,
.manifesto-affirmations a,
.quienes-intro a,
.split-text a,
.proposito-text a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(20, 30, 45, 0.30);
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
.post-content a:hover, .post-content a:focus,
.manifesto-prose a:hover, .manifesto-prose a:focus,
.manifesto-block a:hover, .manifesto-block a:focus,
.manifesto-callout a:hover, .manifesto-callout a:focus,
.manifesto-affirmations a:hover, .manifesto-affirmations a:focus,
.quienes-intro a:hover, .quienes-intro a:focus,
.split-text a:hover, .split-text a:focus,
.proposito-text a:hover, .proposito-text a:focus {
  color: var(--accent-orange);
  text-decoration-color: var(--accent-orange);
}


/* ---------------------------------------------------------------
   v5.2 — CONTENIDO DE EDITOR RICO (.rich)
   Texto editado con el editor WYSIWYG: parrafos, vinetas naranjas,
   vinetas anidadas (indentadas), listas numeradas, citas y enlaces.
---------------------------------------------------------------- */
.rich p { font-size: inherit; color: inherit; margin: 0 0 14px; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich ul, .rich ol { margin: 0 0 14px; padding-left: 1.4em; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { margin-bottom: 8px; }
.rich li::marker { color: var(--accent-orange); }
.rich li > ul, .rich li > ol { margin: 8px 0 0; }      /* vinetas anidadas */
.rich blockquote {
  border-left: 3px solid var(--accent-orange);
  margin: 0 0 14px; padding: 4px 0 4px 16px;
}
.rich a {
  color: var(--accent-orange); text-decoration: underline;
  text-underline-offset: 3px; transition: opacity .18s ease;
}
.rich a:hover, .rich a:focus { opacity: .8; }
/* contenedores que ya traen su propia clase de lista: que solo indente el <ul> interno */
.rich.orange-list, .rich.difusion-list, .rich.equipo-list { padding-left: 0; list-style: none; }
/* en la seccion oscura "Unete", el texto rico va claro */
.contact-section .rich, .contact-section .rich p, .contact-section .rich li { color: var(--text-contact); }
.contact-section .rich a { color: var(--accent-orange); }
/* subtitulo del hero de portada */
.hero-sub { font-size: 1.05rem; color: var(--text-body); margin-bottom: 8px; }
/* "Contacto directo": el correo en texto normal (el titulo va naranja via .orange-heading) */
.contact-section .direct-contact { color: var(--text-contact); margin-top: 6px; }


/* ---------------------------------------------------------------
   v5.2 — Casillas del formulario (Proyecto/nivel y Disciplina)
---------------------------------------------------------------- */
.form-checks { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.form-checks legend {
  display: block; padding: 0; margin-bottom: 8px;
  font-size: 0.9rem; color: var(--white); font-weight: 500;
}
.checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.checks-grid label {
  display: flex; align-items: flex-start; gap: 8px; margin: 0;
  font-weight: 400; line-height: 1.35; cursor: pointer;
}
.checks-grid label span { display: inline; margin: 0; font-size: 0.92rem; color: var(--text-contact); font-weight: 400; }
.checks-grid input[type="checkbox"] {
  width: auto; margin: 2px 0 0; padding: 0;
  background: none; border: 0; box-shadow: none;
  accent-color: var(--accent-orange); flex: 0 0 auto;
}
@media (max-width: 600px) { .checks-grid { grid-template-columns: 1fr; } }

/* ===================================================================
   VISIBILIDAD GUIADA POR CONTENIDO  (v5.2.5)
   -------------------------------------------------------------------
   Los campos SCF ya no traen texto de relleno por defecto. Cuando un
   campo queda vacio, su elemento se renderiza vacio en el HTML y aqui
   lo ocultamos para que no deje huecos. Asi la editora controla que
   se ve: escribe algo -> aparece; borra el campo -> desaparece.
   Usa :empty y :has() (soportados en navegadores actuales).
   =================================================================== */

/* 1. Titulos, parrafos y encabezados vacios dentro del contenido */
main :is(h1, h2, h3, h4, p):empty { display: none !important; }

/* 2. Contenedores de texto/etiquetas con clase, cuando quedan vacios */
.eyebrow:empty,
.section-title:empty,
.subtitle-text:empty,
.post-lead:empty,
.hero-sub:empty,
.mv-cell-head:empty,
.mv-cell-body:empty,
.block-heading:empty,
.proposito-text:empty,
.hero-book-caption:empty,
.equipo-book-caption:empty,
.direct-contact:empty,
.orange-list:empty,
.equipo-list:empty,
.difusion-list:empty,
.linea-badge:empty,
.meta-tags:empty { display: none !important; }

/* 3. Grillas de tarjetas vacias (repeater sin filas) */
.lineas-grid:empty,
.posters-grid:empty { display: none !important; }

/* 4. Wrapper de titulo+subtitulo (archives): colapsa si no queda
      ningun hijo con contenido, para no dejar el margen de 40px */
.text-center.mb-40:not(:has(> :not(:empty))) { display: none !important; }

/* 5. Bandas de seccion de tarjetas: colapsan si no tienen ni tarjetas
      ni titulo/subtitulo con contenido */
.lineas-section:not(:has(.linea-card)):not(:has(.section-title:not(:empty))):not(:has(.subtitle-text:not(:empty))),
.posters-section:not(:has(.poster-card)):not(:has(.section-title:not(:empty))):not(:has(.subtitle-text:not(:empty))) {
  display: none !important;
}

/* ---------------------------------------------------------------
   v5.4.0 — NOTICIAS (listado tipo blog, antes Actividades)
---------------------------------------------------------------- */
.noticia-card h3 a { color: inherit; text-decoration: none; }
.noticia-card h3 a:hover,
.noticia-card h3 a:focus { color: var(--accent-orange); }
.noticia-fecha { display: block; margin-bottom: 4px; }
.archive-hero .noticia-fecha { margin: -4px 0 14px; }

.noticias-pagination { margin-top: 44px; }
.noticias-pagination .nav-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.noticias-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; padding: 10px 16px;
  border: 1px solid var(--border-light); border-radius: 999px;
  background: var(--white); color: var(--navy-dark);
  font-weight: 600; line-height: 1.1; text-decoration: none;
}
.noticias-pagination a.page-numbers:hover,
.noticias-pagination a.page-numbers:focus {
  border-color: var(--accent-orange); color: var(--accent-orange);
}
.noticias-pagination .page-numbers.current {
  background: var(--accent-orange); border-color: var(--accent-orange); color: var(--white);
}
.noticias-pagination .page-numbers.dots { border-color: transparent; background: transparent; }

/* Texto solo para lectores de pantalla (lo usa la paginacion de WordPress) */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; word-wrap: normal !important;
}
