/* ════════════════════════════════════════════════════════════════════════════
   UNESCOWFUCA – Hoja de estilos principal
   Color primario: #132278
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  --primary:      #132278;
  --primary-dark: #0c1858;
  --primary-mid:  #1a2e9e;
  --accent:       #e8b400;
  --accent-dark:  #c9a000;
  --text:         #333333;
  --text-muted:   #666666;
  --bg-light:     #f5f7fa;
  --bg-white:     #ffffff;
  --border:       #dde3ee;
  --footer-bg:    #0d1a5c;
  --font-sans:    'Source Sans 3', sans-serif;
  --font-serif:   'Merriweather', serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-white);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Barra superior ─────────────────────────────────────────────────────── */
.topbar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  padding: .35rem 0;
  border-bottom: 2px solid var(--accent);
}
.topbar-tagline { letter-spacing: .02em; }
.social-link, .admin-link {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}
.social-link:hover, .admin-link:hover { color: var(--accent); }
.admin-link { font-size: .78rem; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(19,34,120,.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo-link { color: var(--primary); }
.logo-text-mark {
  width: 52px; height: 52px;
  background: var(--primary);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-serif);
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}
.logo-text-mark--sm {
  width: 36px; height: 36px;
  font-size: 1.1rem;
}
.logo-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.01em;
  line-height: 1.1;
}
.logo-subtitle {
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-logo { height: 52px; width: auto; object-fit: contain; }

/* Búsqueda */
.search-form { position: relative; }
.search-input {
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: .4rem 2.4rem .4rem 1rem;
  font-size: .88rem;
  outline: none;
  width: 220px;
  transition: border-color .2s, box-shadow .2s;
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(19,34,120,.12);
}
.search-btn {
  position: absolute; right: .5rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--primary); cursor: pointer; font-size: 1rem;
  padding: 0;
}

/* ── Navegación principal ─────────────────────────────────────────────── */
.main-nav {
  background: var(--primary);
  padding: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.main-nav .navbar-nav { gap: .1rem; }
.main-nav .nav-link {
  color: rgba(255,255,255,.88) !important;
  font-size: .92rem;
  font-weight: 600;
  padding: .85rem 1.1rem !important;
  letter-spacing: .02em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: color .2s, border-color .2s, background .2s;
}
.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.1);
  border-bottom-color: var(--accent);
}
.navbar-toggler { border: none; background: none; }

/* ── Botón hamburguesa ── */
.mobile-menu-btn {
  background: none;
  border: none;
  padding: .6rem .4rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}

/* ── Overlay ── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1040;
  backdrop-filter: blur(2px);
}
.mobile-overlay.is-visible { display: block; }

/* ── Drawer off-canvas ── */
.mobile-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 290px;
  height: 100%;
  background: var(--primary);
  z-index: 1050;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
  flex-shrink: 0;
}
.mobile-drawer-title {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
}
.mobile-drawer-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.3rem;
  cursor: pointer;
  padding: .25rem;
  line-height: 1;
  transition: color .2s;
}
.mobile-drawer-close:hover { color: #fff; }
.mobile-drawer-search {
  padding: .9rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.mobile-search-wrap {
  display: flex;
  background: rgba(255,255,255,.12);
  border-radius: 6px;
  overflow: hidden;
}
.mobile-search-input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  padding: .5rem .8rem;
  font-size: .88rem;
  outline: none;
}
.mobile-search-input::placeholder { color: rgba(255,255,255,.5); }
.mobile-search-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  padding: .5rem .75rem;
  cursor: pointer;
  font-size: 1rem;
}
.mobile-search-btn:hover { color: #fff; }
.mobile-nav-list {
  list-style: none;
  padding: .5rem 0;
  margin: 0;
  flex: 1;
}
.mobile-nav-list li { margin: 0; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.25rem;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .03em;
  border-left: 3px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
}
.mobile-nav-link i { font-size: .85rem; opacity: .7; flex-shrink: 0; }
.mobile-nav-link:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.mobile-nav-link.is-active {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-left-color: var(--accent);
}
.mobile-drawer-lang {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.mobile-lang-btn {
  display: block;
  padding: .45rem .8rem;
  border-radius: 6px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: background .18s, color .18s;
}
.mobile-lang-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.mobile-lang-btn.is-active {
  background: var(--accent);
  color: #111;
}

/* FAB styles moved inline to footer.php */

/* ── Hero banner ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 480px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 60%, #0f3d8c 100%);
  display: flex; align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .18;
}
.hero-content { position: relative; z-index: 2; padding: 4rem 1.25rem; }
.hero-pretitle {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: .6rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  max-width: 700px;
}
.hero-sub {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 580px;
  margin-bottom: 2rem;
}
.btn-hero-primary {
  background: var(--accent);
  color: #111;
  border: none;
  padding: .75rem 2rem;
  font-weight: 700;
  border-radius: 2px;
  text-decoration: none;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s, transform .15s;
  display: inline-block;
}
.btn-hero-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  color: #111;
}
.btn-hero-secondary {
  border: 2px solid rgba(255,255,255,.5);
  color: #fff;
  padding: .75rem 2rem;
  font-weight: 600;
  border-radius: 2px;
  text-decoration: none;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s, border-color .2s;
  display: inline-block;
}
.btn-hero-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: #fff;
  color: #fff;
}

/* ── Sección de noticias / tarjetas ─────────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-light); }
.section-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .4rem;
}
.section-line {
  width: 50px; height: 4px;
  background: var(--accent);
  border: none; margin: 0 0 2rem;
}
.section-link-all {
  color: var(--primary);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.section-link-all:hover { color: var(--primary-dark); }

/* Tarjeta de noticia */
.news-card {
  border: none;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(19,34,120,.07);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
  background: #fff;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(19,34,120,.13);
}
.news-card-img {
  width: 100%; height: 200px;
  object-fit: cover;
  display: block;
}
.news-card-img-placeholder {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  display: flex; align-items: center; justify-content: center;
}
.news-card-img-placeholder i { font-size: 3rem; color: rgba(255,255,255,.3); }
.news-card-body { padding: 1.25rem; }
.news-card-date {
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}
.news-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .6rem;
  line-height: 1.3;
}
.news-card-title a { color: inherit; text-decoration: none; }
.news-card-title a:hover { color: var(--primary-mid); text-decoration: underline; }
.news-card-excerpt { font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; }
.news-card-read {
  font-size: .82rem; font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
.news-card-read:hover { color: var(--primary-dark); }

/* ── Contenido de página ─────────────────────────────────────────────── */
.page-hero {
  background: var(--primary);
  color: #fff;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--accent);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: .4rem;
}
.page-hero .breadcrumb { font-size: .82rem; }
.page-hero .breadcrumb-item, .page-hero .breadcrumb-item a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}
.page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item a:hover { color: #fff; }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

.page-content {
  padding: 3rem 0;
}
.page-content-body h1, .page-content-body h2,
.page-content-body h3, .page-content-body h4,
.page-content-body h5, .page-content-body h6 { color: var(--primary); }
.page-content-body h2 { font-family: var(--font-serif); margin-top: 2rem; }
.page-content-body h3 { margin-top: 1.5rem; }
.page-content-body a  { color: var(--primary); }
.page-content-body img { max-width: 100%; height: auto; border-radius: 4px; }
.page-content-body p  { margin-bottom: 1.2rem; }
.page-content-body ul, .page-content-body ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }

/* Cita destacada */
blockquote,
.article-body blockquote,
.page-content-body blockquote,
.note-editable blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  border-left: 4px solid var(--accent);
  background: var(--bg-light);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Credenciales / Asamblea General ────────────────────────────────── */
/* ── Credenciales – grid de personas ─────────────────────────────────── */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 575px) {
  .credentials-grid { grid-template-columns: 1fr; }
}
.cred-person-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(19,34,120,.06);
  transition: box-shadow .2s, transform .15s;
  text-align: center;
}
.cred-person-card:hover {
  box-shadow: 0 6px 22px rgba(19,34,120,.12);
  transform: translateY(-2px);
}
.cred-person-img {
  width: 100%;
  overflow: hidden;
  background: var(--bg-light);
  border-radius: 9px 9px 0 0;
}
.cred-person-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 9px 9px 0 0;
}
.cred-person-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 3.5rem;
}
.cred-person-info {
  padding: .75rem .6rem .9rem;
}
.cred-person-name {
  font-weight: 700;
  font-size: .92rem;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: .25rem;
}
.cred-person-role {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: .2rem;
}
.cred-person-dates {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: .3rem;
}

/* ── Videos grid ─────────────────────────────────────────────────────── */
.video-card {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(19,34,120,.08);
  background: #fff;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}
.video-info { padding: 1rem; }
.video-title { font-weight: 700; color: var(--primary); margin-bottom: .3rem; }
.video-desc  { font-size: .88rem; color: var(--text-muted); }

/* ── Contacto ────────────────────────────────────────────────────────── */
.contact-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
}
.contact-card h5 { color: var(--primary); font-weight: 700; }
.contact-icon { color: var(--accent); font-size: 1.4rem; }
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(19,34,120,.12);
}
.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  padding: .65rem 2rem;
  font-weight: 700;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background .2s, color .2s;
  cursor: pointer;
  font-size: .9rem;
}
.btn-primary-custom:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

/* ── Artículo de noticia completo ────────────────────────────────────── */
.article-header { background: var(--bg-light); padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.article-category {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: .5rem;
}
.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--primary);
  font-weight: 700;
}
.article-meta { font-size: .82rem; color: var(--text-muted); }
.article-img {
  width: 100%; max-height: 420px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 2rem;
}
.article-body { font-size: 1.02rem; line-height: 1.75; }
.article-body h1, .article-body h2,
.article-body h3, .article-body h4,
.article-body h5, .article-body h6 { color: var(--primary); }
.article-body h2 { font-family: var(--font-serif); }
.article-body a { color: var(--primary); }

/* ── Paginación ──────────────────────────────────────────────────────── */
.page-link { color: var(--primary); }
.page-link:hover { color: var(--primary-dark); background: var(--bg-light); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ── Destacados / Pilares ────────────────────────────────────────────── */
.pillar-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--border);
  transition: transform .25s, box-shadow .25s;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(19,34,120,.1); }
.pillar-icon {
  width: 64px; height: 64px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem;
  margin: 0 auto 1.2rem;
}
.pillar-title { font-weight: 700; color: var(--primary); margin-bottom: .5rem; }
.pillar-desc { font-size: .9rem; color: var(--text-muted); }
.pillar-btn {
  display: inline-block;
  margin-top: .9rem;
  padding: .32rem .95rem;
  border-radius: 20px;
  background: var(--primary);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .18s, transform .15s;
}
.pillar-btn:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }

/* ── Separador de sección ────────────────────────────────────────────── */
.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  border: none;
  margin: 0;
}

/* ── Búsqueda ────────────────────────────────────────────────────────── */
.search-results .result-item {
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
}
.search-results .result-item h4 a { color: var(--primary); text-decoration: none; }
.search-results .result-item h4 a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,.8); }
.footer-top { padding: 3.5rem 0 2.5rem; }
.footer-brand { font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer-desc { font-size: .88rem; color: rgba(255,255,255,.65); line-height: 1.6; }
.footer-heading {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}
.footer-nav, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-nav li, .footer-contact li { margin-bottom: .5rem; font-size: .88rem; }
.footer-nav a, .footer-contact a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact li i { color: var(--accent); margin-top: .18rem; flex-shrink: 0; }
.footer-social { display: flex; gap: .8rem; }
.footer-social a {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.footer-social a:hover { background: var(--accent); color: #111; }
.footer-bottom {
  background: rgba(0,0,0,.2);
  padding: 1rem 0;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer-powered { color: rgba(255,255,255,.3); }

/* ── Año badge ───────────────────────────────────────────────────────── */
.year-badge {
  display: inline-block;
  background: var(--bg-light);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .2rem .9rem;
  font-size: .82rem;
  font-weight: 700;
  margin-right: .4rem;
  margin-bottom: .4rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.year-badge:hover, .year-badge.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Responsive ──────────────────────────────────────────────────────── */

/* Tablets pequeñas / escritorio pequeño */
@media (max-width: 992px) {
  .logo-name    { font-size: 1.15rem; }
  .logo-subtitle{ display: none; }
}

/* Tablets + teléfonos */
@media (max-width: 768px) {
  /* Topbar */
  .topbar-tagline { display: none; }
  .topbar .container { justify-content: flex-end !important; }

  /* Header */
  .logo-name      { font-size: 1.05rem; }
  .logo-subtitle  { display: none; }
  .logo-text-mark { width: 40px; height: 40px; font-size: 1.2rem; }
  .site-logo      { height: 40px; }

  /* Navegación: el drawer lo maneja su propio JS */

  /* Hero */
  .hero         { min-height: 300px; }
  .hero-content { padding: 2.5rem 1.25rem; }
  .hero h1      { font-size: 1.5rem; }
  .hero-sub     { font-size: .95rem; margin-bottom: 1.5rem; }
  .btn-hero-primary,
  .btn-hero-secondary { padding: .65rem 1.4rem; font-size: .85rem; }

  /* Secciones */
  .section       { padding: 2.5rem 0; }
  .section-title { font-size: 1.4rem; }

  /* Pillar cards */
  .pillar-card  { padding: 1.2rem .8rem; }
  .pillar-icon  { width: 52px; height: 52px; font-size: 1.3rem; margin-bottom: .8rem; }
  .pillar-title { font-size: .88rem; }
  .pillar-desc  { font-size: .8rem; }

  /* Hero de página interior */
  .page-hero    { padding: 1.75rem 0; }
  .page-hero h1 { font-size: 1.4rem; }

  /* Contenido de página */
  .page-content { padding: 2rem 0; }

  /* Credenciales */
  .credential-card { flex-wrap: wrap; gap: .75rem; }
  .credential-download { margin-left: 0; }

  /* Artículo */
  .article-header { padding: 1.5rem 0; }
  .article-title  { font-size: 1.35rem; }
  .article-img    { max-height: 260px; }
  .article-body   { font-size: .97rem; }

  /* Footer */
  .footer-top { padding: 2.5rem 0 2rem; }
  .footer-bottom .container { flex-direction: column; text-align: center; gap: .4rem; }

  /* Búsqueda */
  .search-results .result-item { padding: 1rem 0; }

  /* Botón de contacto: ancho completo en móvil */
  .btn-primary-custom {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
  }
}

/* Teléfonos */
@media (max-width: 576px) {
  /* Topbar: compacto */
  .topbar     { font-size: .72rem; }
  .social-link{ font-size: .82rem; }
  .lang-divider { display: none; }
  .topbar .d-flex { gap: .35rem !important; }

  /* Header */
  .site-header .container { padding-top: .5rem; padding-bottom: .5rem; }

  /* Navegación */
  .main-nav .nav-link { padding: .6rem .85rem !important; font-size: .83rem; }

  /* Hero */
  .hero         { min-height: 250px; }
  .hero-content { padding: 1.75rem 1.25rem; }
  .hero h1      { font-size: 1.25rem; }
  .hero-sub     { font-size: .88rem; margin-bottom: 1.2rem; }
  .hero-pretitle{ font-size: .7rem; }

  /* Pillar cards: icon más pequeño, sin descripción */
  .pillar-card  { padding: 1rem .6rem; }
  .pillar-icon  { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: .6rem; }
  .pillar-title { font-size: .82rem; }
  .pillar-desc  { display: none; }

  /* Noticias: imágenes más bajas */
  .news-card-img,
  .news-card-img-placeholder { height: 170px; }
  .news-card-body { padding: 1rem; }

  /* Títulos de sección */
  .section-title { font-size: 1.25rem; }

  /* Credenciales */
  .credential-card { padding: .9rem 1rem; }
  .credential-name { font-size: .88rem; }

  /* Videos */
  .video-info { padding: .75rem; }

  /* Year badges */
  .year-badge { font-size: .75rem; padding: .15rem .7rem; }

  /* Footer */
  .footer-social a     { width: 30px; height: 30px; font-size: .9rem; }
  .logo-text-mark--sm  { width: 30px; height: 30px; font-size: .9rem; }
  .footer-brand        { font-size: .95rem; }
  .lang-btn-footer     { font-size: .74rem; padding: .25rem .6rem; }

  /* Paginación */
  .pagination { flex-wrap: wrap; justify-content: center; }
}

/* ── Selector de idioma (topbar) ─────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: .25rem;
  background: rgba(255,255,255,.08);
  border-radius: 20px;
  padding: .15rem .5rem;
}
.lang-btn {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .1rem .3rem;
  border-radius: 4px;
  transition: color .2s, background .2s;
}
.lang-btn:hover { color: #fff; }
.lang-btn--active {
  color: var(--accent);
  background: rgba(232,180,0,.15);
}
.lang-divider {
  color: rgba(255,255,255,.3);
  font-size: .65rem;
}

/* ── Selector de idioma (footer) ─────────────────────────────────────── */
.lang-switcher-footer {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.lang-btn-footer {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.15);
  transition: background .2s, color .2s, border-color .2s;
}
.lang-btn-footer:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.lang-btn-footer--active {
  background: rgba(232,180,0,.15);
  color: var(--accent);
  border-color: rgba(232,180,0,.3);
}

/* ── Utilidades ──────────────────────────────────────────────────────── */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom   { background: var(--primary) !important; }
.border-primary-custom { border-color: var(--primary) !important; }

/* ── Hero Slider / Carousel ──────────────────────────────────────────── */
.hero-slider-wrap {
  position: relative;
  overflow: hidden;
}

/* Cada slide reutiliza estilos .hero existentes */
.carousel-item.hero {
  min-height: 480px;
  /* La transición de Bootstrap carousel maneja animación */
}

/* Indicadores personalizados */
#heroCarousel .carousel-indicators [data-bs-slide-to] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,.5);
  border: 2px solid rgba(255,255,255,.5);
  margin: 0 4px;
  transition: background .25s, transform .25s;
}
#heroCarousel .carousel-indicators .active {
  background-color: var(--accent);
  border-color: var(--accent);
  transform: scale(1.25);
}

/* Flechas prev/next */
.hero-carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(19,34,120,.55);
  border-radius: 50%;
  color: #fff;
  font-size: 1.1rem;
  transition: background .2s, transform .15s;
  border: 2px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
}
.hero-carousel-arrow:hover {
  background: var(--primary);
  transform: scale(1.08);
}
.carousel-control-prev,
.carousel-control-next {
  width: 56px;
  opacity: 1;
}

/* Animación: fade suave entre slides */
#heroCarousel.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity .7s ease-in-out;
}
#heroCarousel.carousel-fade .carousel-item.active {
  opacity: 1;
}

/* Responsive */
@media (max-width: 576px) {
  .carousel-item.hero { min-height: 250px; }
  .hero-carousel-arrow { width: 32px; height: 32px; font-size: .9rem; }
  .carousel-control-prev,
  .carousel-control-next { width: 44px; }
}
