/*
Theme Name: Theme Custom Cátedra Nelson Mandela
Theme URI: https://entornodeproduccion.com/
Author: Germinal Campos Bravo
Description: Theme custom para la Cátedra Nelson Mandela.
Version: 6.4.3
Text Domain: catedra-mandela-v6
*/


/* =========================================================
   1. BASE / RESET
========================================================= */

html,
body {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Replica', sans-serif;
  color: #111111;
  background: #f3f1eb;
}

.site,
.wrapper,
.main,
#page,
#content,
.site-content,
.content-area,
.entry-content,
.page,
.page-template,
.page-template-default,
main.home,
.home {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.container,
.home > .container {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 40px 20px !important;
  box-sizing: border-box !important;
  background: #f3f1eb !important;
}

header,
.site-header {
  margin-top: 0 !important;
}

footer.mandela-footer {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.container,
.home > .container {
  background: #f3f1eb !important;
}

html,
body,
#page,
.site,
.wrapper,
.main,
main.home,
.home {
  background: #f3f1eb !important;
}
/* =========================================================
   2. HEADER
========================================================= */

.site-header {
  width: 100%;
  height: 130px;
  background: #000000;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 100;
}

.header-inner {
  position: relative;
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 58px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 32px;
  box-sizing: border-box;
}

/* ==========================================
   LEFT / LOGOS
========================================== */

.header-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-width: 0;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.header-brand__link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.header-logo--cultura {
  height: 120px;
}

.header-logo--catedra {
  height: 90px;
}

/* ==========================================
   NAV
========================================== */

.header-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 42px;
  min-width: 0;
}

.header-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Replica', sans-serif;
  font-size: 14px;
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.header-nav a:hover {
  color: #f1b60c;
}

.header-nav a.is-current {
  color: #f1b60c;
}

/* ==========================================
   RIGHT
========================================== */

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #ffffff;
}

/* ==========================================
   LANGUAGE SWITCH
========================================== */

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  color: #ffffff;
  font-family: 'Replica', sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    background 0.25s ease;
}

.lang-switch:hover {
  color: #f1b60c;
  border-color: #f1b60c;
  background: rgba(241,182,12,0.08);
}

/* ==========================================
   SEARCH
========================================== */

.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.search-icon-svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
  transition:
    stroke 0.25s ease,
    transform 0.25s ease;
}

.search-toggle:hover .search-icon-svg {
  stroke: #f1b60c;
  transform: scale(1.05);
}

/* ==========================================
   HAMBURGER
========================================== */

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  margin: 3px 0;
  background: #ffffff;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================================================
   TABLET / MOBILE
========================================================= */

@media (max-width: 1024px) {

  .site-header {
    height: 76px;
  }

  .header-inner {
    min-height: 76px;
    padding: 0 16px;
    column-gap: 10px;
  }

  .header-brand {
    gap: 10px;
  }

  .header-logo--cultura {
    height: 26px;
  }

  .header-logo--catedra {
    height: 42px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-nav {
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 16px 20px;
    background: #282522;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.25s ease;
  }

  .header-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .header-nav a {
    width: 100%;
    padding: 16px 0;
    font-size: 17px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

@media (max-width: 640px) {

  .header-inner {
    padding: 0 14px;
  }

  .header-brand {
    gap: 8px;
  }

  .header-logo--cultura {
    height: 22px;
  }

  .header-logo--catedra {
    height: 34px;
  }

  .header-nav a {
    font-size: 16px;
  }
}

/* =========================================================
   3. HOME SLIDER
========================================================= */

.home-hero.home-slider,
.home .home-slider,
.home .home-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  background: #d9d3e3;
}

.home-slider__track,
.home-slider__media,
.home-slider__media picture,
.home-slider__media img {
  width: 100%;
  height: 100%;
}

.home-slider__track,
.home-slider__media,
.home-slider__media picture,
.home-slider__media img,
.hero-placeholder {
  display: block;
}

.home-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.home-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.home-slider__media img {
  object-fit: cover;
  object-position: center center;
}

.home-slider__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 300px 80px 0;
  box-sizing: border-box;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.12) 28%,
    rgba(0, 0, 0, 0) 55%
  );
}

.home-slider__content {
  max-width: 640px;
  margin-left: 40px;
  color: #ffffff;
}

.home-slider__eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.home-slider__title {
  margin: 0 0 18px;
  font-size: 70px;
  line-height: 0.94;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.home-slider__text {
  margin: 0 0 28px;
  max-width: 34ch;
  font-size: 28px;
  line-height: 1.45;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
}

.home-slider__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border-radius: 6px;
  background: #027748;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.25s ease;
}

.home-slider__button:hover {
  background: #035632;
}

.home-slider__dots {
  position: absolute;
  left: 58px;
  bottom: 28px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.home-slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.home-slider__dot.is-active {
  background: #ffffff;
}

.hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d9d3e3;
  color: #6c4385;
  font-size: 36px;
}

/* =========================
   SLIDER RESPONSIVE
========================= */

@media (max-width: 767px) {
  .home-slider__overlay {
    align-items: flex-end;
    padding: 20px;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.36) 0%,
      rgba(0, 0, 0, 0.12) 38%,
      rgba(0, 0, 0, 0) 72%
    );
  }

  .home-slider__content {
    max-width: 100%;
    margin-left: 0;
  }

  .home-slider__title {
    margin-bottom: 12px;
    font-size: 32px;
    line-height: 1;
  }

  .home-slider__text {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.35;
  }

  .home-slider__button {
    width: 100%;
  }

  .home-slider__dots {
    left: 20px;
    bottom: 16px;
  }
}

/* =========================================================
   4. CTA CÃTEDRA
========================================================= */

.cta-catedra {
  margin: 64px 0 88px;
}

.cta-inner {
  width: 100%;
  padding: 42px 44px;
  display: grid;
  grid-template-columns: 200px 1fr;
  column-gap: 40px;
  align-items: center;
  box-sizing: border-box;

  background: #ffffff;
  border: 0px solid #e4e4e4;
  border-radius: 12px;
  box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.05);

  transition: transform 0.2s ease;
}

.cta-inner:hover {
  transform: translateY(-2px);
}

/* LEFT */

.cta-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-left img {
  display: block;
  max-width: 180px;
  width: 100%;
  height: auto;
}

/* TEXT */

.cta-text p {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
  color: #000;
  text-align: justify;
}

/* CTA */

.cta-link {
  display: inline-block;
  margin-top: 6px;

  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;

  color: #027748;
  text-decoration: none;
  border-bottom: 1px solid #027748;
  padding-bottom: 2px;

  transition: opacity 0.25s ease;
}

.cta-link:hover {
  opacity: 0.7;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .cta-inner {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 32px;
    text-align: center;
  }

  .cta-left img {
    max-width: 100px;
  }

  .cta-text p {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .cta-catedra {
    margin: 48px 0 64px;
  }

  .cta-inner {
    padding: 24px 20px;
    row-gap: 20px;
  }

  .cta-left img {
    max-width: 80px;
  }

  .cta-text p {
    font-size: 15px;
    line-height: 1.4;
  }
}

/* =========================================================
   5. GRID / CARDS / BOTONES
========================================================= */

.cards-grid,
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 40px;
  align-items: start;
}

.cards-grid > *,
.grid > * {
  min-width: 0;
}

.cards-section,
section {
  margin-bottom: 56px;
}

.grid-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  background: #ffffff;
  border: 1px solid #e4e4e4;
  border-radius: 13px;
  overflow: hidden;
  box-shadow: 5.48px 5.48px 8.6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 14px rgba(0, 0, 0, 0.06);
}

.card__link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.card__image {
  width: calc(100% - 40.44px);
  margin: 20.22px 20.22px 25.6px 20.22px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f2f2f2;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0 22.22px 16.2px 22.22px;
}

.card__type {
  margin: 0 0 10px 0;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111111;
}

.card__title {
  margin: 0 0 10px 0;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #111111;
  text-wrap: balance;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: 44px;
}

.card__participants {
  margin: 0 0 10px 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.58);

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-height: 32px;
}
.card__divider {
  width: 100%;
  height: 1px;
  margin: auto 0 16.2px 0;
  background: #e4e4e4;
}

.card__meta {
  font-size: 15px;
  line-height: 1.1;
  font-weight: 400;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.68);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 24px;
  min-height: 56px;
  padding: 16px 28px;

  border: 0;
  border-radius: 6px;

  background: #027748;
  color: #ffffff;
  text-decoration: none;

  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;

  transition: background 0.25s ease, transform 0.15s ease;
}

.btn:hover {
  background: #035632;
  transform: translateY(-1px);
}

/* =========================================================
   6. HOME TITLES
========================================================= */

.cards-section {
  margin-top: 80px;
}

.cards-section h2 {
  margin-bottom: 24px;
  margin-left: 4px;
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000000;
}

@media (max-width: 1024px) {
  .cards-section h2 {
    font-size: 36px;
  }
}

@media (max-width: 767px) {
  .cards-section h2 {
    font-size: 28px;
  }
}

/* =========================================================
   7. RESPONSIVE GLOBAL DE GRID / CARDS
========================================================= */

@media (max-width: 1100px) {
  .cards-grid,
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 28px;
  }

  .home-slider__overlay {
    padding: 0 32px;
  }

  .home-slider__title {
    font-size: 48px;
    max-width: 8ch;
  }

  .home-slider__text {
    font-size: 18px;
  }

  .home-slider__dots {
    left: 32px;
    bottom: 22px;
  }
}

@media (max-width: 767px) {
  .cards-grid,
  .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card__title {
    font-size: 14px;
    line-height: 24px;
    min-height: 48px;
  }

  .card__participants {
    font-size: 14px;
    line-height: 16px;
    min-height: 32px;
  }

  .card__meta {
    font-size: 15px;
  }
}

/* =========================================================
   FOOTER
========================================================= */

.mandela-footer {
  background: #f2bd04;
  color: #111111;
  margin-top: 0;
  padding: 0;
}

.mandela-footer__inner {
  max-width: 1520px;
  margin: 0 auto;
  padding: 42px 152px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  box-sizing: border-box;
}

.mandela-footer__left,
.mandela-footer__right {
  min-width: 0;
}

.mandela-footer__social-title {
  margin: 0 0 16px;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 700;
  color: #f1b60c;
  text-transform: uppercase;
}

.mandela-footer__social-links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.mandela-footer__social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.mandela-footer__social-links a:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.mandela-footer__social-links img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.mandela-footer__privacy {
  display: inline-block;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
  color: #111111;
  text-decoration: none;
  text-transform: uppercase;
}

.mandela-footer__privacy:hover {
  text-decoration: underline;
}

.mandela-footer__title {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 700;
  color: #c00000;
  text-transform: uppercase;
}

.mandela-footer__subtitle {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  color: #111111;
}

.mandela-footer__form {
  max-width: 430px;
}

/* =========================
   WPFORMS FOOTER
========================= */

.mandela-footer__form--wpforms .wpforms-container {
  margin: 0 !important;
}

.mandela-footer__form--wpforms .wpforms-form {
  margin: 0 !important;
}

.mandela-footer__form--wpforms .wpforms-field-container {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.mandela-footer__form--wpforms .wpforms-field {
  padding: 0 !important;
  margin: 0 !important;
  flex: 1 1 auto;
}

/* input */
.mandela-footer__form--wpforms input[type="email"],
.mandela-footer__form--wpforms input[type="text"] {
  width: 100% !important;
  height: 42px !important;
  padding: 0 12px !important;
  border: 2px solid #c00000 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #111111 !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
}

/* botÃ³n */
.mandela-footer__form--wpforms .wpforms-submit-container {
  padding: 0 !important;
  margin: 0 !important;
}

.mandela-footer__form--wpforms .wpforms-submit,
.mandela-footer__form--wpforms button[type="submit"] {
  height: 42px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #111111 !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer;
  text-transform: lowercase;
  transition: opacity 0.2s ease;
}

.mandela-footer__form--wpforms .wpforms-submit:hover,
.mandela-footer__form--wpforms button[type="submit"]:hover {
  opacity: 0.9;
}

/* ocultar labels y extras */
.mandela-footer__form--wpforms .wpforms-field-label,
.mandela-footer__form--wpforms .wpforms-description {
  display: none !important;
}

/* pleca inferior */
.mandela-footer__bottom {
  max-width: 1520px;
  margin: 0 auto;
  padding: 8px 152px 28px;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.mandela-footer__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.mandela-footer__brand-image {
  display: block;
  width: auto;
  max-width: 320px;
  height: auto;
}

/* responsive */
@media (max-width: 1024px) {
  .mandela-footer__inner {
    padding: 36px 32px 16px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mandela-footer__bottom {
    padding: 4px 32px 24px;
  }

  .mandela-footer__form {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .mandela-footer__social-title {
    font-size: 18px;
  }

  .mandela-footer__title {
    font-size: 24px;
  }

  .mandela-footer__subtitle,
  .mandela-footer__privacy {
    font-size: 14px;
  }

  .mandela-footer__social-links img,
  .mandela-footer__social-links a {
    width: 38px;
    height: 38px;
  }

  .mandela-footer__form--wpforms .wpforms-field-container {
    flex-direction: column;
    gap: 10px;
  }

  .mandela-footer__form--wpforms .wpforms-submit-container,
  .mandela-footer__form--wpforms .wpforms-submit,
  .mandela-footer__form--wpforms button[type="submit"] {
    width: 100% !important;
  }

  .mandela-footer__brand-image {
    max-width: 260px;
  }
}

/* =========================================================
   9. LA CÃTEDRA / INTERNAS
========================================================= */

.catedra-page {
  background: #f3f1eb;
}

.catedra-container {
  width: 100%;
  max-width: 1520px;
  margin: 0 auto;
  padding-left: 152px;
  padding-right: 152px;
  box-sizing: border-box;
}

.catedra-container--text {
  max-width: 1520px;
}

/* =========================
   HERO INTERNAS UNIFICADO
   La CÃ¡tedra / Actividades / Acervo / Single
========================= */

.catedra-hero {
  width: 100%;
  margin: 0;
  padding: 0;
}

.catedra-hero__slider {
  position: relative;
  width: 100%;
  aspect-ratio: 24 / 5;
  overflow: hidden;
  background: #f3f1eb;
}

.catedra-hero__slide,
.catedra-hero__slider > img {
  width: 100%;
  height: 100%;
}

.catedra-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.catedra-hero__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.catedra-hero__slide img,
.catedra-hero__slider > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* TEMP: congelar hero internas sin parpadeo */
.catedra-hero__slide {
  opacity: 1 !important;
  transition: none !important;
}

.catedra-hero__slide:not(:first-child) {
  display: none !important;
}

.catedra-hero__slider > img {
  opacity: 1 !important;
  transition: none !important;
  animation: none !important;
}

/* =========================
   ESPACIADO POST-HERO
========================= */

.catedra-intro,
.catedra-actividades,
.catedra-acervo,
.single-contenido {
  padding-top: 50px !important;
}

/* =========================
   INTRO
========================= */

.catedra-intro {
  padding-bottom: 120px;
}

.catedra-title {
  margin: 0 0 54px;
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000000;
}

.catedra-intro__text {
  max-width: 1380px;
  margin: 0 auto;
  color: #000000;
}

.catedra-intro__text p {
  margin: 0 0 34px;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.catedra-intro__text p:last-child {
  margin-bottom: 0;
}

/* =========================
   TITULOS
========================= */

.catedra-section-title {
  margin: 0 0 42px;
  font-size: 50px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
  color: #222222;
}

.catedra-section-title--left {
  text-align: left;
}

.catedra-section-title--center {
  text-align: center;
}

/* =========================
   EQUIPO
========================= */

.catedra-equipo {
  padding-bottom: 52px;
}

.catedra-equipo__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.equipo-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.equipo-card__image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e4e4e4;
}

.equipo-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.equipo-card__content {
  padding: 14px 16px 18px;
}

.equipo-card__name {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.05;
  color: #111111;
}

.equipo-card__role {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #dddddd;
  font-size: 19px;
  line-height: 1.3;
  color: #b7b7b7;
}

/* =========================
   CONTACTO
========================= */

.catedra-contacto {
  padding-top: 0;
  padding-bottom: 96px;
}

.catedra-contacto__inner {
  display: flex;
  justify-content: center;
}

.catedra-contacto__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 18px 34px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: #0a7f45;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.catedra-contacto__button:hover {
  background: #066c3a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* =========================
   DIRECTORIO
========================= */

.catedra-directorio {
  padding: 80px 0 110px;
}

.catedra-directorio__bloque {
  margin-bottom: 42px;
}

.catedra-directorio__bloque:last-child {
  margin-bottom: 0;
}

.catedra-directorio__institucion {
  margin: 0 0 16px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: #c60000;
}

.catedra-directorio__texto {
  max-width: 1380px;
}

.catedra-directorio__texto p {
  margin: 0;
  font-size: 24px;
  line-height: 1.45;
  color: #696969;
}

.catedra-directorio__texto strong {
  color: #111111;
  font-weight: 700;
}

.catedra-directorio__cargo {
  margin-left: 6px;
}

.catedra-directorio__sep {
  display: inline-block;
  margin: 0 10px;
  color: #c60000;
  font-weight: 700;
}

/* =========================
   LOGOS INSTITUCIONALES
========================= */

.catedra-logos {
  padding: 28px 0 56px;
  background: transparent;
}

.catedra-logos__grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  align-items: center;
  column-gap: 48px;
}

.catedra-logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.catedra-logos__item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  filter: grayscale(100%) brightness(0.68);
}

.catedra-logos__item--sudafrica img {
  width: 66px;
}

.catedra-logos__item--unam img {
  width: 82px;
}

.catedra-logos__item--mandela img {
  width: 220px;
}

.catedra-logos__item--santander img {
  width: 128px;
}

/* =========================================================
   10. ACTIVIDADES
========================================================= */

main.catedra-actividades-page {
  background: #f3f1eb;
  margin-bottom: 0;
  padding-bottom: 0;
}

.catedra-actividades {
  padding-bottom: 48px;
  margin-bottom: 0;
}

.catedra-actividades__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.catedra-actividades__more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.catedra-actividades__more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0px;
  padding: 16px 28px;
  background: #027748;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease;
}

.catedra-actividades__more-button:hover {
  background: #035632;
  transform: translateY(-1px);
}

/* =========================================================
   11. ACERVO
========================================================= */

main.catedra-acervo-page {
  background: #f3f1eb;
  margin-bottom: 0;
  padding-bottom: 0;
}

.catedra-acervo {
  padding-bottom: 48px;
  margin-bottom: 0;
}

.catedra-acervo__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.catedra-acervo__more {
  display: flex;
  justify-content: center;
  margin-top: 34px;
  margin-bottom: 0;
  padding-bottom: 0;
}

.catedra-acervo__more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 0px;
  padding: 16px 28px;
  background: #027748;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.15s ease;
}

.catedra-acervo__more-button:hover {
  background: #035632;
  transform: translateY(-1px);
}

/* =========================================================
   12. SINGLE CONTENIDO
========================================================= */

body.wp-singular.contenido-template-default.single.single-contenido {
  padding: 0 !important;
  margin: 0 !important;
}

main.catedra-single-contenido-page {
  background: #f3f1eb;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.single-contenido {
  background: #f3f1eb;
  padding-bottom: 72px !important;
  margin-bottom: 0 !important;
}

.single-contenido .catedra-container {
  max-width: 1120px;
  margin: 0 auto;
}

.single-contenido__type-wrap {
  margin-bottom: 14px;
}

.single-contenido__type {
  display: block;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #575757;
}

.single-contenido__title {
  max-width: 30ch;
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.05;
  color: #000000;
  text-wrap: balance;
}

.single-contenido__participantes-inline {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.3;
  color: #575757;
}

/* MEDIA */

.single-contenido__media {
  width: 100%;
  max-width: 760px;
  margin: 0 0 24px;
  aspect-ratio: 16 / 9;
  background: #dddddd;
  overflow: hidden;
}

.single-contenido__media-link,
.single-contenido__image {
  display: block;
  width: 100%;
  height: 100%;
}

.single-contenido__image {
  object-fit: cover;
}

/* INFO */

.single-contenido__info {
  max-width: 760px;
  margin: 0 0 30px;
}

.single-contenido__meta {
  margin: 0 0 4px;
  font-size: 18px;
  color: #575757;
}

.single-contenido__sede {
  margin: 0;
  font-size: 18px;
  color: #575757;
}

/* DESCRIPCIÓN */

.single-contenido__descripcion {
  max-width: 760px;
  margin: 0 0 32px;
  color: #000000;
}

.single-contenido__descripcion p {
  margin: 0 0 1.2em;
  font-size: 18px;
  line-height: 1.55;
  text-align: justify;
}

/* CTA */

.single-contenido__cta-wrap {
  max-width: 760px;
  margin: 0 0 40px;
}

.single-contenido__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  background: #b60000;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s;
}

.single-contenido__cta:hover {
  background: #8f0000;
  transform: translateY(-1px);
}

/* =========================================================
   PARTICIPANTES (NUEVO)
========================================================= */

.single-contenido__participantes {
  max-width: 760px;
  margin: 0 0 40px;
}

.single-contenido__participantes-title {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 700;
  text-transform: none;
  color: #c00000;
}

/* contenedor */
.single-contenido__participantes-list {
  width: 100%;
}

/* card */
.participante-accordion {
  width: 100%;
  margin-bottom: 14px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* header */
.participante-accordion__summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 48px 0 18px;
  cursor: pointer;
  list-style: none;
}

.participante-accordion__summary::-webkit-details-marker {
  display: none;
}

/* texto */
.participante-accordion__name {
  font-weight: 700;
  color: #000000;
}

.participante-accordion__cargo {
  margin-left: 6px;
  color: #575757;
}

/* flecha */
.participante-accordion__icon {
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #575757;
  border-bottom: 2px solid #575757;
  transform: translateY(-65%) rotate(45deg);
  transition: 0.2s;
}

.participante-accordion[open] .participante-accordion__icon {
  transform: translateY(-35%) rotate(225deg);
}

/* contenido */
.participante-accordion__content {
  padding: 0 18px 20px;
}

.participante-accordion__content p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.5;
}

/* BACK */

.single-contenido__back {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.single-contenido__back-link {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #c00000;
  text-decoration: none;
}

/* Animación / hover participantes */

.participante-accordion {
  transition:
    box-shadow 0.22s ease,
    transform 0.18s ease,
    border-color 0.22s ease;
}

.participante-accordion:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.10);
  border-color: rgba(0,0,0,0.12);
}

.participante-accordion__summary {
  transition: background 0.22s ease;
}

.participante-accordion:hover .participante-accordion__summary {
  background: #ffffff;
}

.participante-accordion__content {
  animation: participanteFadeDown 0.22s ease both;
}

@keyframes participanteFadeDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESPONSIVE INTERNAS
========================================================= */

@media (max-width: 1200px) {
  .catedra-hero__slider {
    aspect-ratio: 16 / 6.4;
  }

  .catedra-section-title {
    font-size: 44px;
  }

  .catedra-directorio__institucion {
    font-size: 38px;
  }

  .catedra-directorio__texto p {
    font-size: 21px;
  }

  .equipo-card__name {
    font-size: 22px;
  }

  .equipo-card__role {
    font-size: 17px;
  }
}

@media (max-width: 1024px) {
  .catedra-container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .catedra-hero__slider {
    aspect-ratio: 16 / 7;
  }

  .catedra-intro,
  .catedra-actividades,
  .catedra-acervo,
  .single-contenido {
    padding-top: 20px !important;
  }

  .catedra-equipo__grid,
  .catedra-actividades__grid,
  .catedra-acervo__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catedra-logos__grid {
    grid-template-columns: repeat(2, auto);
    justify-content: center;
    row-gap: 28px;
    column-gap: 56px;
  }

  .catedra-logos__item--mandela img {
    width: 200px;
  }

  .catedra-logos__item--santander img {
    width: 112px;
  }
}

@media (max-width: 767px) {
  .catedra-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .catedra-hero__slider {
    aspect-ratio: 16 / 9;
  }

  .catedra-intro,
  .catedra-actividades,
  .catedra-acervo,
  .single-contenido {
    padding-top: 16px !important;
  }

  .catedra-intro {
    padding-bottom: 76px;
  }

  .catedra-title {
    margin-bottom: 34px;
    font-size: 42px;
  }

  .catedra-section-title {
    margin-bottom: 28px;
    font-size: 32px;
  }

  .catedra-intro__text p {
    font-size: 18px;
    line-height: 1.5;
  }

  .catedra-equipo__grid,
  .catedra-actividades__grid,
  .catedra-acervo__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .catedra-contacto {
    padding-bottom: 72px;
  }

  .catedra-contacto__button {
    width: 100%;
    font-size: 18px;
  }

  .catedra-directorio {
    padding: 56px 0 76px;
  }

  .catedra-directorio__bloque {
    margin-bottom: 30px;
  }

  .catedra-directorio__institucion {
    margin-bottom: 12px;
    font-size: 28px;
  }

  .catedra-directorio__texto p {
    font-size: 18px;
    line-height: 1.5;
  }

  .catedra-directorio__sep {
    margin: 0 6px;
  }

  .catedra-logos__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 20px;
  }

  .catedra-logos__item--sudafrica img {
    width: 56px;
  }

  .catedra-logos__item--unam img {
    width: 68px;
  }

  .catedra-logos__item--mandela img {
    width: 190px;
  }

  .catedra-logos__item--santander img {
    width: 104px;
  }

  .single-contenido {
    padding-bottom: 56px !important;
  }

  .single-contenido__title {
    font-size: 28px;
  }

  .single-contenido__participantes-inline,
  .single-contenido__meta,
  .single-contenido__sede,
  .single-contenido__descripcion p {
    font-size: 16px;
  }

  .single-contenido__participantes-title {
    font-size: 22px;
  }

  .participante-card__avatar-wrap {
    width: 120px;
    height: 120px;
  }

  .participante-modal__dialog {
    width: min(100vw - 20px, 820px);
    margin: 10px auto;
    padding: 12px 12px 24px;
  }

  .participante-modal__name {
    font-size: 22px;
  }

  .participante-modal__semblanza {
    font-size: 16px;
  }
}
/* ==========================================
   ACTIVE MENU FIX (ACTIVIDADES / ACERVO)
========================================== */

.catedra-actividades-page .header-nav a[href*="/actividades/"],
.catedra-acervo-page .header-nav a[href*="/acervo/"] {
  color: #f1b60c;
  opacity: 1;
}

/* =========================
   WPFORMS FOOTER INLINE
========================= */

.mandela-footer__form,
.mandela-footer__form .wpforms-container,
.mandela-footer__form .wpforms-form {
  width: 100%;
  max-width: 520px;
}

/* quita márgenes default */
.mandela-footer__form .wpforms-container,
.mandela-footer__form .wpforms-field,
.mandela-footer__form .wpforms-submit-container {
  margin: 0 !important;
  padding: 0 !important;
}

/* pone input + botón en el mismo renglón */
.mandela-footer__form .wpforms-form {
  display: flex !important;
  align-items: flex-end;
  gap: 0;
}

/* contenedor del campo */
.mandela-footer__form .wpforms-field-container {
  flex: 1 1 auto;
  width: auto !important;
}

/* campo */
.mandela-footer__form input[type="email"] {
  width: 100% !important;
  max-width: none !important;
  height: 48px !important;
  padding: 0 16px !important;
  border: none !important;
  border-bottom: 1px solid #000000 !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

/* botón */
.mandela-footer__form .wpforms-submit-container {
  flex: 0 0 auto;
}

.mandela-footer__form button[type="submit"],
.mandela-footer__form input[type="submit"] {
  height: 48px !important;
  padding: 0 22px !important;
  border: none !important;
  border-radius: 0 !important;
  background: #0a7f3f !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.mandela-footer__form button[type="submit"]:hover,
.mandela-footer__form input[type="submit"]:hover {
  background: #066532 !important;
}
/* HOVER */
.mandela-footer__form button:hover,
.mandela-footer__form input[type="submit"]:hover {
  background: #066532;
}

/* placeholder */
.mandela-footer__form input::placeholder {
  color: rgba(0,0,0,0.5);
}
/* =========================
   WPFORMS FOOTER INLINE
========================= */

.mandela-footer__form,
.mandela-footer__form .wpforms-container,
.mandela-footer__form .wpforms-form {
  width: 100%;
  max-width: 520px;
}

.mandela-footer__form .wpforms-container,
.mandela-footer__form .wpforms-field,
.mandela-footer__form .wpforms-submit-container {
  margin: 0 !important;
  padding: 0 !important;
}

.mandela-footer__form .wpforms-form {
  display: flex !important;
  align-items: stretch;
  gap: 0;
}

.mandela-footer__form .wpforms-field-container {
  flex: 1 1 auto;
  width: auto !important;
}

.mandela-footer__form input[type="email"] {
  width: 100% !important;
  max-width: none !important;
  height: 48px !important;
  padding: 0 16px !important;
  border: none !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-size: 14px !important;
  box-shadow: none !important;
}

.mandela-footer__form .wpforms-submit-container {
  flex: 0 0 auto;
}

.mandela-footer__form button[type="submit"],
.mandela-footer__form input[type="submit"] {
  height: 48px !important;
  padding: 0 24px !important;
  border: none !important;
  border-radius: 0 !important;
  background: #0a7f3f !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
}

.mandela-footer__form button[type="submit"]:hover,
.mandela-footer__form input[type="submit"]:hover {
  background: #066532 !important;
}

/* =========================================================
   MOBILE FINAL FIX
   Solo mobile: ancho, hero home, botones y footer
========================================================= */

@media (max-width: 767px) {

  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    position: relative;
  }

  #page,
  .site,
  .wrapper,
  .main,
  main,
  .home,
  .page,
  .page-template,
  .site-content,
  .content-area,
  .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* FULL BLEED SECTIONS */
  .site-header,
  .home-hero.home-slider,
  .home .home-slider,
  .home .home-hero,
  .catedra-hero,
  .mandela-footer {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }

  /* HEADER */
  .site-header {
    height: 76px;
  }

  .header-inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    box-sizing: border-box;
  }

  /* HOME HERO FULL MOBILE */
  .home-hero.home-slider,
  .home .home-slider,
  .home .home-hero {
    height: calc(100svh - 76px);
    min-height: 560px;
    aspect-ratio: auto !important;
  }

  .home-slider__track,
  .home-slider__slide,
  .home-slider__media,
  .home-slider__media picture,
  .home-slider__media img {
    width: 100% !important;
    height: 100% !important;
  }

  .home-slider__media img {
    object-fit: cover !important;
    object-position: center center !important;
  }

  .home-slider__overlay {
    align-items: flex-end !important;
    justify-content: flex-start !important;
    padding: 0 28px 72px !important;
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.70) 0%,
      rgba(0, 0, 0, 0.45) 36%,
      rgba(0, 0, 0, 0.10) 72%,
      rgba(0, 0, 0, 0) 100%
    ) !important;
  }

  .home-slider__content {
    max-width: 100% !important;
    margin: 0 !important;
  }

  .home-slider__title {
    max-width: 7ch;
    margin-bottom: 14px;
    font-size: 58px !important;
    line-height: 0.9 !important;
    letter-spacing: -0.04em;
  }

  .home-slider__text {
    max-width: 12em;
    margin-bottom: 0;
    font-size: 22px !important;
    line-height: 1.22 !important;
    font-weight: 500;
  }

  .home-slider__dots {
    left: 28px !important;
    bottom: 34px !important;
  }

  /* CONTAINERS */
  .container,
  .home > .container,
  .catedra-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
  }

  /* BOTONES VERDES */
  .btn,
  .catedra-actividades__more-button,
  .catedra-acervo__more-button {
    width: auto !important;
    max-width: calc(100vw - 80px);
    min-height: 64px !important;
    padding: 16px 28px !important;
    font-size: 18px !important;
    line-height: 1.12 !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .grid-footer,
  .catedra-actividades__more,
  .catedra-acervo__more {
    justify-content: center !important;
  }

  /* FOOTER */
  .mandela-footer {
    overflow: hidden !important;
  }

  .mandela-footer__inner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 44px 32px 28px !important;
    grid-template-columns: 1fr !important;
    gap: 36px !important;
    box-sizing: border-box !important;
  }

  .mandela-footer__bottom {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 32px 36px !important;
    box-sizing: border-box !important;
  }

  /* NEWSLETTER: input grande / botón chico */
  .mandela-footer__form,
  .mandela-footer__form .wpforms-container,
  .mandela-footer__form .wpforms-form {
    width: 100% !important;
    max-width: 100% !important;
  }

  .mandela-footer__form .wpforms-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  .mandela-footer__form .wpforms-field-container {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }

  .mandela-footer__form .wpforms-field {
    width: 100% !important;
  }

  .mandela-footer__form input[type="email"],
  .mandela-footer__form input[type="text"] {
    width: 100% !important;
    height: 58px !important;
    padding: 0 14px !important;
    background: #ffffff !important;
    border: 0 !important;
    box-sizing: border-box !important;
  }

  .mandela-footer__form .wpforms-submit-container {
    flex: 0 0 132px !important;
    width: 132px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .mandela-footer__form button[type="submit"],
  .mandela-footer__form input[type="submit"] {
    width: 100% !important;
    height: 58px !important;
    padding: 0 18px !important;
    font-size: 15px !important;
    text-align: center !important;
    background: #0a7f3f !important;
  }
}


/* =========================================================
   SEARCH PAGE
========================================================= */

.catedra-search {
  padding-top: 72px;
  padding-bottom: 96px;
  background: #f3f1eb;
}

.catedra-search__form {
  max-width: 760px;
  margin: 0 auto 32px;
  display: flex;
  align-items: stretch;
}

.catedra-search__input {
  flex: 1;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #111111;
  border-right: 0;
  background: #ffffff;
  font-family: 'Replica', sans-serif;
  font-size: 16px;
  color: #111111;
  box-sizing: border-box;
}

.catedra-search__button {
  height: 54px;
  padding: 0 24px;
  border: 0;
  background: #027748;
  color: #ffffff;
  font-family: 'Replica', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.catedra-search__summary {
  max-width: 760px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: #575757;
}

.catedra-search__empty {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.45;
  color: #575757;
}

@media (max-width: 767px) {
  .catedra-search {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .catedra-search__form {
    flex-direction: column;
    gap: 10px;
  }

  .catedra-search__input {
    border: 1px solid #111111;
    border-right: 1px solid #111111;
  }

  .catedra-search__button {
    width: 100%;
  }
}

/* =========================
   HEADER SEARCH
========================= */

.header-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-search__input {
  width: 0;
  height: 36px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: #ffffff;
  font-family: 'Replica', sans-serif;
  font-size: 14px;
  outline: none;
  opacity: 0;
  transition: width 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}

.header-search:hover .header-search__input,
.header-search__input:focus {
  width: 160px;
  padding: 0 4px;
  opacity: 1;
  border-color: rgba(255,255,255,0.45);
}

.header-search__input::placeholder {
  color: rgba(255,255,255,0.6);
}

.header-search__button {
  flex: 0 0 auto;
}

@media (max-width: 1024px) {
  .header-search:hover .header-search__input,
  .header-search__input:focus {
    width: 110px;
  }
}

/* =========================================================
   LANG SWITCH SIMPLE
========================================================= */

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #ffffff;
  font-family: 'Replica', sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lang-switch a {
  color: #ffffff;
  text-decoration: none;
}

.lang-switch span {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.75);
}

.lang-switch a:hover {
  color: #f1b60c;
}

/* =========================================================
   CNM AJUSTES 29 ABR
   Capa final reversible para cambios solicitados por cliente
========================================================= */

.home-slider__overlay {
  background:
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.34) 34%,
      rgba(0, 0, 0, 0.10) 64%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.34) 0%,
      rgba(0, 0, 0, 0) 48%
    );
}

.home-slider__title {
  max-width: 11ch;
  font-size: clamp(42px, 4.6vw, 64px);
  font-weight: 600;
  letter-spacing: 0;
}

.home-slider__text {
  max-width: 30ch;
  font-size: clamp(18px, 1.8vw, 24px);
}

.home-slider__button,
.btn,
.catedra-contacto__button,
.single-contenido__cta,
.catedra-actividades__more-button,
.catedra-acervo__more-button {
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.btn,
.catedra-contacto__button {
  min-height: 48px;
  padding: 14px 24px;
}

.cards-section h2,
.catedra-title,
.catedra-section-title {
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catedra-title {
  margin-bottom: 42px;
}

.catedra-section-title {
  color: #000000;
}

.card {
  border-radius: 8px;
}

.card__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.single-contenido__back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #c00000;
  border-radius: 4px;
  font-size: 14px;
  color: #c00000;
  transition: background 0.2s ease, color 0.2s ease;
}

.single-contenido__back-link:hover {
  background: #c00000;
  color: #ffffff;
}

.participante-accordion__summary {
  gap: 8px;
}

.participante-accordion__name {
  font-size: 17px;
}

.mandela-footer {
  background: #050505;
  color: #ffffff;
}

.mandela-footer__social-title,
.mandela-footer__subtitle,
.mandela-footer__privacy {
  color: #ffffff;
}

.mandela-footer__title {
  color: #f1b60c;
  font-weight: 600;
}

.mandela-footer__privacy:hover {
  color: #f1b60c;
}

.mandela-footer__form input[type="email"],
.mandela-footer__form input[type="text"],
.mandela-footer__form--wpforms input[type="email"],
.mandela-footer__form--wpforms input[type="text"] {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid rgba(241, 182, 12, 0.75) !important;
}

.mandela-footer__form button[type="submit"],
.mandela-footer__form input[type="submit"],
.mandela-footer__form--wpforms .wpforms-submit,
.mandela-footer__form--wpforms button[type="submit"] {
  background: #f1b60c !important;
  color: #050505 !important;
  text-transform: uppercase !important;
}

.mandela-footer__form button[type="submit"]:hover,
.mandela-footer__form input[type="submit"]:hover,
.mandela-footer__form--wpforms .wpforms-submit:hover,
.mandela-footer__form--wpforms button[type="submit"]:hover {
  background: #ffd25a !important;
  opacity: 1;
}

.mandela-footer__form .wpforms-confirmation-container,
.mandela-footer__form .wpforms-confirmation-container-full {
  background: transparent !important;
  border: 1px solid rgba(241, 182, 12, 0.75) !important;
  color: #ffffff !important;
}

body.cmv6-palette-black,
body.cmv6-palette-black #page,
body.cmv6-palette-black .site,
body.cmv6-palette-black .wrapper,
body.cmv6-palette-black .main,
body.cmv6-palette-black main,
body.cmv6-palette-black .home,
body.cmv6-palette-black .catedra-page,
body.cmv6-palette-black .single-contenido,
body.cmv6-palette-black .container,
body.cmv6-palette-black .home > .container,
body.cmv6-palette-black .catedra-search {
  background: #050505 !important;
  color: #ffffff !important;
}

body.cmv6-palette-black .cta-inner,
body.cmv6-palette-black .card,
body.cmv6-palette-black .equipo-card,
body.cmv6-palette-black .participante-accordion {
  background: #161616 !important;
  border-color: rgba(241, 182, 12, 0.28) !important;
}

body.cmv6-palette-black .cards-section h2,
body.cmv6-palette-black .cta-text p,
body.cmv6-palette-black .card__title,
body.cmv6-palette-black .card__type,
body.cmv6-palette-black .catedra-title,
body.cmv6-palette-black .catedra-section-title,
body.cmv6-palette-black .catedra-intro__text,
body.cmv6-palette-black .single-contenido__title,
body.cmv6-palette-black .single-contenido__descripcion,
body.cmv6-palette-black .participante-accordion__name,
body.cmv6-palette-black .equipo-card__name,
body.cmv6-palette-black .catedra-directorio__texto strong {
  color: #ffffff !important;
}

body.cmv6-palette-black .card__participants,
body.cmv6-palette-black .card__meta,
body.cmv6-palette-black .single-contenido__type,
body.cmv6-palette-black .single-contenido__participantes-inline,
body.cmv6-palette-black .single-contenido__meta,
body.cmv6-palette-black .single-contenido__sede,
body.cmv6-palette-black .equipo-card__role,
body.cmv6-palette-black .catedra-directorio__texto p {
  color: rgba(255, 255, 255, 0.72) !important;
}

body.cmv6-palette-black .single-contenido__participantes-title,
body.cmv6-palette-black .catedra-directorio__institucion,
body.cmv6-palette-black .cta-link {
  color: #f1b60c !important;
}

body.cmv6-palette-black .cta-link {
  border-bottom-color: #f1b60c !important;
}

body.cmv6-palette-black .card__divider,
body.cmv6-palette-black .equipo-card__role {
  border-color: rgba(255, 255, 255, 0.16) !important;
}

@media (max-width: 1024px) {
  .header-logo-main {
    height: 46px;
    max-width: 198px;
  }

  .cards-section h2,
  .catedra-title,
  .catedra-section-title {
    font-size: 34px;
  }
}

@media (max-width: 767px) {
  .header-logo-main {
    height: 40px;
    max-width: 170px;
  }

  .home-slider__overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.52) 42%,
      rgba(0, 0, 0, 0.14) 76%,
      rgba(0, 0, 0, 0) 100%
    ) !important;
  }

  .home-slider__title {
    max-width: 10ch;
    font-size: clamp(36px, 12vw, 52px) !important;
    line-height: 0.95 !important;
    letter-spacing: 0 !important;
  }

  .home-slider__text {
    max-width: 18em;
    font-size: 18px !important;
    line-height: 1.28 !important;
  }

  .cards-section {
    margin-top: 56px;
  }

  .cards-section h2,
  .catedra-title,
  .catedra-section-title {
    font-size: 28px;
    letter-spacing: 0.05em;
  }

  .card__title {
    font-size: 17px;
    line-height: 1.18;
    min-height: 42px;
  }

  .btn,
  .catedra-actividades__more-button,
  .catedra-acervo__more-button {
    min-height: 48px !important;
    padding: 13px 20px !important;
    font-size: 14px !important;
  }

  .single-contenido__back-link {
    min-height: 42px;
    font-size: 14px;
  }

  .mandela-footer__form .wpforms-submit-container {
    flex-basis: 112px !important;
    width: 112px !important;
  }

  .mandela-footer__form button[type="submit"],
  .mandela-footer__form input[type="submit"] {
    font-size: 13px !important;
    padding: 0 12px !important;
  }
}

/* =========================================================
   FOOTER LOGOS BLANCOS
========================================================= */

.mandela-footer__brand-image {
  filter: brightness(0) invert(1);
  opacity: 1;
}

/* =========================================================
   HOME HERO BELOW HEADER RATIO TEST
========================================================= */

@media (min-width: 768px) {
  .site-header {
    position: relative !important;
    z-index: 100 !important;
  }

  .home-hero.home-slider,
  .home .home-slider,
  .home .home-hero {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    aspect-ratio: 3 / 1.4 !important;
    overflow: hidden !important;
  }

  .home-slider__media img {
    object-fit: cover !important;
    object-position: center top !important;
  }
}
/* =========================================================
   GTRANSLATE HEADER SELECTOR
========================================================= */

/* Oculta el flotante externo que inyecta el plugin */
body > .gt_float_switcher,
body > .gtranslate_wrapper {
  position: fixed !important;
  left: -9999px !important;
  top: auto !important;
  bottom: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Pill del header */
.lang-switch--gtranslate {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  min-width: 112px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #f1b60c;
  border-radius: 999px;
  overflow: visible;
  color: #ffffff;
}

/* Selector dentro del header */
.lang-switch--gtranslate .gt_float_switcher,
.lang-switch--gtranslate .gtranslate_wrapper {
  position: static !important;
  left: auto !important;
  top: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Caja principal del selector */
.lang-switch--gtranslate .gt_float_switcher {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-family: 'Replica', sans-serif !important;
  font-size: 12px !important;
  line-height: 1 !important;
}

/* Estado cerrado */
.lang-switch--gtranslate .gt_float_switcher .gt-selected {
  background: transparent !important;
}

.lang-switch--gtranslate .gt_float_switcher .gt-selected .gt-current-lang {
  height: 34px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

/* Bandera */
.lang-switch--gtranslate .gt_float_switcher img {
  width: 18px !important;
  height: auto !important;
  margin: 0 !important;
}

/* Texto / flecha */
.lang-switch--gtranslate .gt_float_switcher .gt-lang-code,
.lang-switch--gtranslate .gt_float_switcher .gt_float_switcher-arrow {
  color: #ffffff !important;
}

/* Menú desplegado */
.lang-switch--gtranslate .gt_float_switcher .gt_options {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  width: 150px !important;
  max-height: none !important;
  padding: 6px 0 !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18) !important;
  overflow: hidden !important;
  z-index: 9999 !important;
}

/* Opciones */
.lang-switch--gtranslate .gt_float_switcher .gt_options a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  color: #111111 !important;
  font-family: 'Replica', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  background: #ffffff !important;
}

.lang-switch--gtranslate .gt_float_switcher .gt_options a:hover {
  background: #f3f1eb !important;
}

/* Mobile */
@media (max-width: 640px) {
  .lang-switch--gtranslate {
    width: 86px;
    min-width: 86px;
    height: 30px;
    padding: 0 8px;
  }

  .lang-switch--gtranslate .gt_float_switcher .gt-selected .gt-current-lang {
    height: 28px !important;
    gap: 5px !important;
  }

  .lang-switch--gtranslate .gt_float_switcher img {
    width: 15px !important;
  }

  .lang-switch--gtranslate .gt_float_switcher .gt_options {
    right: -8px !important;
    width: 138px !important;
  }
}

/* =========================================================
   HEADER MANUAL LANGUAGE LABELS
========================================================= */

.nav-label-en {
  display: none !important;
}

html.cnm-lang-en .nav-label-es {
  display: none !important;
}

html.cnm-lang-en .nav-label-en {
  display: inline !important;
}

/* =========================================================
   HOME HERO TITLE SINGLE LINE
========================================================= */

@media (min-width: 768px) {
  .home-slider__title {
    max-width: none !important;
    width: auto !important;
    white-space: nowrap !important;
    font-size: clamp(46px, 4vw, 68px) !important;
    line-height: 0.95 !important;
    letter-spacing: 0 !important;
  }

  .home-slider__content {
    max-width: min(900px, calc(100vw - 180px)) !important;
  }
}

/* =========================================================
   HOME HERO TEXT WIDTH
========================================================= */

@media (min-width: 768px) {
  .home-slider__content {
    max-width: min(920px, calc(100vw - 180px)) !important;
  }

  .home-slider__text {
    max-width: 44ch !important;
    font-size: clamp(20px, 1.45vw, 26px) !important;
    line-height: 1.35 !important;
  }
}
/* =========================================================
   FOOTER RRSS — AJUSTE FINAL MAYO 22
========================================================= */

/* Título amarillo correcto */
.mandela-footer__social-title {
  color: #f1b60c !important;
}

/* Estado normal: iconos blancos */
.mandela-footer__social-links img {
  filter: brightness(0) invert(1) !important;
  opacity: 1 !important;
  transition:
    filter 0.25s ease,
    transform 0.2s ease,
    opacity 0.25s ease;
}

/* Hover: amarillo EXACTO del sistema */
.mandela-footer__social-links a:hover img {
  filter:
    brightness(0)
    saturate(100%)
    invert(79%)
    sepia(70%)
    saturate(1108%)
    hue-rotate(358deg)
    brightness(98%)
    contrast(91%) !important;

  transform: translateY(-1px);
}
