/* =========================================================
   BAUSEN — NOTICIAS (LIGHT ONLY) — UI refresh
   Paleta:
   - Morning cloud: #DCE2EF
   - Silver lake blue: #5B75B6
   - Azul real: #003DA5
   - Azul marino: #182389
   Tipografías:
   - Body: Inter
   - Subtitles: Manrope
   - Titles: Space Grotesk (tracking -0.091em)
========================================================= */

:root{
  --mc:#DCE2EF;
  --slb:#5B75B6;
  --ar:#003DA5;
  --am:#182389;

  /* bridge tokens used by stylebeca.css */
  --primary: var(--ar);
  --primary-2: var(--am);

  --bg:#F7F9FF;
  --page:#FFFFFF;
  --surface: rgba(255,255,255,.78);

  --text:#0B1535;
  --muted: rgba(11,21,53,.72);
  --border: rgba(24,35,137,.16);

  --shadow: 0 18px 55px rgba(24,35,137,.14);
  --shadow-soft: 0 10px 26px rgba(24,35,137,.10);

  --radius: 18px;
  --radius2: 26px;

  --ff-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --ff-sub: "Manrope", var(--ff-body);
  --ff-title: "Space Grotesk", var(--ff-body);
  --title-track: -0.091em;

  --container: 1240px;
  --section-pad: clamp(56px, 6vw, 96px);
}

/* fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap");

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: var(--ff-body);
  color: var(--text);
  background:
    radial-gradient(1200px 650px at 20% 8%, rgba(0,61,165,.10), transparent 60%),
    radial-gradient(1200px 650px at 80% 0%, rgba(91,117,182,.12), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fbfcff 55%, var(--bg) 100%);
  line-height:1.65;
  overflow-x:hidden;
}

.container{
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.muted{ color: var(--muted); }

/* Buttons (match BAUSEN look) */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.72);
  box-shadow: var(--shadow-soft);
  font-family: var(--ff-sub);
  font-weight: 800;
  font-size: 14px;
  cursor:pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--primary{
  background: linear-gradient(135deg, var(--ar), var(--am));
  border-color: rgba(255,255,255,.18);
  color:#fff;
}
.btn--soft{
  background: rgba(220,226,239,.55);
}

/* =========================
   HERO
========================= */
.hero{
  padding: calc(var(--section-pad) - 28px) 0 14px;
  position: relative;
  overflow:hidden;
}
.hero--news::before{
  content:"";
  position:absolute;
  inset:-180px -120px auto -120px;
  height: 520px;
  background:
    radial-gradient(480px 320px at 20% 40%, rgba(0,61,165,.22), transparent 60%),
    radial-gradient(520px 340px at 80% 20%, rgba(91,117,182,.22), transparent 62%);
  pointer-events:none;
}
.hero__inner{ position: relative; z-index: 2; }

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(24,35,137,.16);
  background: rgba(220,226,239,.55);
  font-family: var(--ff-sub);
  font-weight: 800;
  font-size: 12px;
  color: rgba(24,35,137,.86);
}

.hero__title{
  margin: 14px 0 10px;
  font-family: var(--ff-title);
  letter-spacing: var(--title-track);
  font-weight: 700;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
}
.hero__subtitle{
  margin: 0;
  max-width: 72ch;
  color: rgba(11,21,53,.74);
  font-size: 16px;
  line-height: 1.75;
  font-family: var(--ff-body);
}
.hero__actions{
  margin-top: 18px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero__curve{
  height: 32px;
  margin-top: 16px;
  background: linear-gradient(90deg, rgba(0,61,165,.12), rgba(91,117,182,.10), rgba(24,35,137,.10));
  border-top: 1px solid rgba(24,35,137,.10);
  border-bottom: 1px solid rgba(24,35,137,.10);
}

/* =========================
   SECTIONS
========================= */
.section{ padding: 38px 0; }
.section--alt{ background: rgba(220,226,239,.22); border-top: 1px solid rgba(24,35,137,.08); border-bottom: 1px solid rgba(24,35,137,.08); }

.title-block{
  margin-bottom: 16px;
}
.title-block__title{
  margin: 0;
  font-family: var(--ff-title);
  letter-spacing: var(--title-track);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 34px);
}
.title-accent{
  color: var(--ar);
}
.title-block__sub{
  margin: 10px 0 0;
  color: rgba(11,21,53,.70);
  font-family: var(--ff-sub);
  font-weight: 650;
}
.title-block__line{
  display:block;
  height: 1px;
  margin-top: 16px;
  background: linear-gradient(90deg, rgba(0,61,165,.28), rgba(24,35,137,.10), transparent);
}

/* News grid placeholder */
.news-grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

/* =========================
   NEWS CARDS (para "Noticias disponibles")
========================= */
.news-card{
  border-radius: var(--radius2);
  border: 1px solid rgba(24,35,137,.12);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-soft);
  padding: 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  overflow:hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.news-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }

.news-card__meta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.news-pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(24,35,137,.14);
  background: rgba(220,226,239,.55);
  font-family: var(--ff-sub);
  font-weight: 900;
  font-size: 12px;
  color: rgba(24,35,137,.90);
}

.news-date{
  font-family: var(--ff-sub);
  font-weight: 900;
  font-size: 12px;
  color: rgba(11,21,53,.62);
  white-space: nowrap;
}

.news-card__title{
  margin: 0;
  font-family: var(--ff-sub);
  font-weight: 950;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.news-card__text{
  margin: 0;
  color: rgba(11,21,53,.72);
  line-height: 1.7;
  /* Mostrar TODO el texto (sin recorte) */
  display: block;
  overflow: visible;
}

.empty-state{
  margin-top: 18px;
  border-radius: var(--radius2);
  border: 1px solid rgba(24,35,137,.12);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}
.empty-icon{
  width: 44px; height: 44px;
  border-radius: 16px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(0,61,165,.14), rgba(24,35,137,.12));
  border: 1px solid rgba(24,35,137,.14);
  color: rgba(24,35,137,.90);
}
.empty-title{
  margin: 12px 0 6px;
  font-family: var(--ff-sub);
  font-weight: 900;
}
.empty-sub{
  margin: 0;
  color: rgba(11,21,53,.70);
}
.empty-future{
  margin-top: 14px;
  height: 100px;
  border-radius: 22px;
  border: 1px dashed rgba(24,35,137,.20);
  background:
    radial-gradient(700px 260px at 40% 20%, rgba(0,61,165,.10), transparent 60%),
    radial-gradient(700px 260px at 80% 0%, rgba(91,117,182,.12), transparent 55%),
    rgba(220,226,239,.18);
}

/* =========================
   EVENTOS — 4 galerías
========================= */
.gallery-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}
.gallery-card{
  border-radius: var(--radius2);
  border: 1px solid rgba(24,35,137,.12);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.gallery-media{
  position: relative;
  height: 190px;
  background:
    radial-gradient(420px 180px at 25% 30%, rgba(0,61,165,.14), transparent 60%),
    radial-gradient(420px 180px at 85% 20%, rgba(91,117,182,.18), transparent 62%),
    rgba(220,226,239,.25);
}
.gallery-media.is-empty .gallery-empty{
  display:block;
}
.gallery-empty{
  display:none;
  position:absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(24,35,137,.22);
  background: rgba(255,255,255,.35);
}
.gallery-body{
  padding: 14px;
}
.gallery-title{
  margin: 0;
  font-family: var(--ff-sub);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.gallery-sub{
  margin: 8px 0 0;
  color: rgba(11,21,53,.70);
  line-height: 1.6;
}

/* =========================
   CTA SOCIAL + NEWSLETTER (abajo)
========================= */
.section--newsletter{
  padding: 46px 0 64px;
}
.cta{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  border-radius: 32px;
  border: 1px solid rgba(24,35,137,.12);
  background: linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,255,255,.70));
  box-shadow: var(--shadow);
  overflow:hidden;
}
.cta__left{ padding: 22px; }
.cta__pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(24,35,137,.16);
  background: rgba(220,226,239,.58);
  font-family: var(--ff-sub);
  font-weight: 900;
  font-size: 12px;
  color: rgba(24,35,137,.86);
}
.cta__title{
  margin: 14px 0 8px;
  font-family: var(--ff-title);
  letter-spacing: var(--title-track);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.08;
}
.cta__sub{
  margin: 0;
  color: rgba(11,21,53,.72);
  line-height: 1.7;
}
.cta__actions{
  margin-top: 16px;
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta__right{
  position: relative;
  min-height: 240px;
  background:
    radial-gradient(520px 260px at 30% 40%, rgba(0,61,165,.22), transparent 60%),
    radial-gradient(520px 260px at 90% 15%, rgba(91,117,182,.22), transparent 62%),
    rgba(220,226,239,.18);
  border-left: 1px solid rgba(24,35,137,.10);
}
.cta__blob{
  position:absolute;
  width: 220px;
  height: 220px;
  border-radius: 70px;
  right: -60px;
  top: 30px;
  background: linear-gradient(135deg, rgba(0,61,165,.38), rgba(24,35,137,.30));
  filter: blur(0.0px);
  opacity: .85;
}
.cta__grid{
  position:absolute;
  inset: 16px;
  border-radius: 26px;
  border: 1px dashed rgba(24,35,137,.22);
  background:
    linear-gradient(rgba(24,35,137,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,35,137,.06) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .55;
}

/* =========================
   MODAL (newsletter)
========================= */
.modal{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 9999;
}
.modal.is-open{ display:block; }

.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(11,21,53,.42);
  backdrop-filter: blur(10px);
}

.modal__panel{
  position: relative;
  width: min(560px, calc(100% - 28px));
  margin: 9vh auto 0;
  border-radius: 28px;
  border: 1px solid rgba(24,35,137,.16);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  overflow:hidden;
}

.modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(0,61,165,.10), rgba(91,117,182,.12));
  border-bottom: 1px solid rgba(24,35,137,.12);
}
.modal__title{
  margin:0;
  font-family: var(--ff-sub);
  font-weight: 900;
}
.icon-btn{
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(24,35,137,.16);
  background: rgba(255,255,255,.85);
  cursor:pointer;
}
.icon-btn:hover{ box-shadow: var(--shadow-soft); }

.modal__text{
  padding: 14px 18px 0;
  color: rgba(11,21,53,.72);
  line-height: 1.7;
}

.modal__form{
  padding: 14px 18px 18px;
  display:grid;
  gap: 12px;
}

.field__label{
  display:block;
  font-family: var(--ff-sub);
  font-weight: 800;
  font-size: 12px;
  color: rgba(24,35,137,.86);
  margin-bottom: 8px;
}
.field input{
  width:100%;
  border-radius: 16px;
  border: 1px solid rgba(24,35,137,.16);
  background: rgba(220,226,239,.22);
  padding: 12px 12px;
  font: inherit;
}
.form-status{
  font-size: 13px;
  color: rgba(11,21,53,.70);
}

/* Responsive */
@media (max-width: 980px){
  .news-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr 1fr; }
  .cta{ grid-template-columns: 1fr; }
  .cta__right{ min-height: 200px; border-left: 0; border-top: 1px solid rgba(24,35,137,.10); }
}
@media (max-width: 560px){
  .gallery-grid{ grid-template-columns: 1fr; }
  .modal__panel{ margin-top: 12vh; }
}

/* =========================================================
   HEADER / NAV / LANGUAGE — REFRESH (Noticias)
========================================================= */

.header{
  background: rgba(247,249,255,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(24,35,137,.14);
}

.header-container{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.logo{
  display:flex;
  align-items:center;
}
.logo-img{
  height: 42px;
  width: auto;
  display:block;
  filter: drop-shadow(0 10px 18px rgba(24,35,137,.12));
}

/* Colaborador */
.header-controls{
  display:flex;
  align-items:center;
  gap: 12px;
}

.header-controls .btn.btn-primary{
  background: linear-gradient(135deg, var(--ar), var(--am));
  border-color: rgba(255,255,255,.18);
  color:#fff;
  font-family: var(--ff-sub);
  font-weight: 900;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-soft);
}
.header-controls .btn.btn-primary:hover{
  box-shadow: var(--shadow);
}

/* Selector de idioma */
.language-selector{
  position: relative;
}

.language-btn{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(24,35,137,.16);
  background: rgba(220,226,239,.55);
  box-shadow: var(--shadow-soft);
  cursor:pointer;
  font-family: var(--ff-sub);
  font-weight: 900;
  color: rgba(11,21,53,.88);
}

.language-btn i{
  font-size: 12px;
  opacity: .8;
}

/* Dropdown */
.language-dropdown{
  position:absolute;
  right: 0;
  top: calc(100% + 10px);
  width: 220px;
  margin: 0;
  padding: 10px;
  list-style:none;
  border-radius: 20px;
  border: 1px solid rgba(24,35,137,.16);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  display:none;
  z-index: 80;
}
.language-dropdown.show{ display:block; }

.language-option{
  width:100%;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 16px;
  border: 1px solid rgba(24,35,137,.10);
  background: rgba(220,226,239,.35);
  cursor:pointer;
  font-family: var(--ff-sub);
  font-weight: 900;
  color: rgba(11,21,53,.84);
}
.language-option:hover{
  background: rgba(220,226,239,.62);
}

/* Hamburguesa */
.menu-toggle{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(24,35,137,.16);
  background: rgba(255,255,255,.78);
  box-shadow: var(--shadow-soft);
  cursor:pointer;
  display:grid;
  place-items:center;
}
.menu-toggle i{
  font-size: 18px;
  color: rgba(11,21,53,.88);
}

/* Mobile menu (panel) */
.mobile-menu-overlay{
  background: rgba(11,21,53,.28);
  backdrop-filter: blur(10px);
}

.mobile-menu{
  border-radius: 26px 0 0 26px;
  border-left: 1px solid rgba(24,35,137,.14);
  background: rgba(255,255,255,.92);
}

.mobile-menu-header{
  background: linear-gradient(135deg, rgba(0,61,165,.10), rgba(91,117,182,.12));
  border-bottom: 1px solid rgba(24,35,137,.12);
}

.mobile-nav-link,
.mobile-sub-link,
.mobile-summary-link{
  font-family: var(--ff-sub);
  font-weight: 900;
  color: rgba(11,21,53,.84);
}

.mobile-nav-link:hover,
.mobile-sub-link:hover,
.mobile-summary-link:hover{
  background: rgba(220,226,239,.55);
}

.mobile-nav-link[aria-current="page"],
.mobile-nav-link.is-active{
  background: linear-gradient(135deg, rgba(0,61,165,.14), rgba(24,35,137,.10));
  border-color: rgba(0,61,165,.26);
  color: rgba(11,21,53,.92);
}

@media (max-width: 860px){
  .header-controls .btn.btn-primary{
    display:none;
  }
  .language-btn{
    padding: 10px 10px;
  }
  .language-code{ display:none; }
}

/* ===== FIX #1: Cursor visible (force) ===== */
html, body { cursor: auto !important; }
a, button, summary, input, select, textarea { cursor: pointer; }
input, textarea { cursor: text; }

/* ===== FIX #2 (PRO): Flags iguales tipo referencia (SVG badges, NO emojis) ===== */
.language-flag,
.lang-option-flag{
  width: 22px;
  height: 16px;
  display: inline-block;
  border-radius: 4px;
  border: 1px solid rgba(24,35,137,.22);
  box-shadow: 0 6px 14px rgba(24,35,137,.10);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  flex: 0 0 auto;
}

/* Flag ES (España) */
.language-flag[data-flag="ES"],
.lang-option-flag[data-flag="ES"]{
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='22' height='16' viewBox='0 0 22 16'>\
<rect width='22' height='16' fill='%23AA151B'/>\
<rect y='4' width='22' height='8' fill='%23F1BF00'/>\
</svg>");
}

/* Flag EN (USA por defecto) */
.language-flag[data-flag="EN"],
.lang-option-flag[data-flag="EN"]{
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='22' height='16' viewBox='0 0 22 16'>\
<rect width='22' height='16' fill='%23B22234'/>\
<g fill='%23FFFFFF'>\
<rect y='2' width='22' height='2'/>\
<rect y='6' width='22' height='2'/>\
<rect y='10' width='22' height='2'/>\
<rect y='14' width='22' height='2'/>\
</g>\
<rect width='9.2' height='7.2' fill='%233C3B6E'/>\
</svg>");
}

/* ===== Ajuste: noticias dentro del recuadro (empty-state) ===== */
.empty-state .news-grid{
  margin-top: 14px;
}

/* ===== Menú: flecha rota cuando el submenu está abierto ===== */
#mobile-menu details.menu-details > summary i.fa-chevron-right{
  transition: transform .18s ease;
}
#mobile-menu details.menu-details[open] > summary i.fa-chevron-right{
  transform: rotate(90deg);
}

/* FIX: quitar barra/fondo raro en CTA colaborador dentro del menú */
#mobile-menu .mobile-cta{
  margin-top: 10px;
  padding-top: 0;
  border-top: 0 !important;
  background: transparent !important;
}
#mobile-menu .mobile-cta .btn{
  width: 100%;
}

/* =========================
   FOOTER (responsive + texto justificado)
========================= */
.site-footer .footer__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.site-footer .footer__text{
  text-align: justify;
  text-justify: inter-word;
}

.site-footer .footer__bottom{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer .footer__legal{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 900px){
  .site-footer .footer__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px){
  .site-footer .footer__grid{
    grid-template-columns: 1fr;
  }
  .site-footer .footer__bottom{
    justify-content: center;
    text-align: center;
  }
  .site-footer .footer__legal{
    justify-content: center;
  }
  .site-footer .footer__text{
    text-align: justify;
  }
}

/* =========================================================
   FOOTER — ajustes solicitados
========================================================= */

/* Social icons layout */
/* --- Footer Social Row --- */
.footer__social .footer-social-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__social .label {
  font-weight: 600;
  line-height: 1.2;
}

.footer__social .icons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer__social .social-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.18); /* ajusta según tu theme */
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}

.footer__social .social-mini:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.28);
}

.footer__social .social-mini svg {
  display: block;
  fill: currentColor; /* X usa fill */
}

.footer__social .social-mini i {
  font-size: 18px;
  line-height: 1;
}

/* Responsive: si tu grid en móvil apila columnas, esto se verá bien igual */

/* EMPRESA + SERVICIOS en horizontal (desktop) */
@media (min-width: 901px){
  .site-footer .footer__grid > .footer__col:nth-child(2),
  .site-footer .footer__grid > .footer__col:nth-child(3){
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-content: flex-start;
  }

  .site-footer .footer__grid > .footer__col:nth-child(2) .footer__title,
  .site-footer .footer__grid > .footer__col:nth-child(3) .footer__title{
    flex: 0 0 100%;
    margin-bottom: 6px;
  }

  .site-footer .footer__grid > .footer__col:nth-child(2) .footer__link,
  .site-footer .footer__grid > .footer__col:nth-child(3) .footer__link{
    flex: 1 1 170px;
    max-width: 220px;
    margin: 0;
    padding: 6px 8px;
    border-radius: 12px;
  }
}

/* En móvil: mantener lectura vertical limpia */
@media (max-width: 900px){
  .site-footer .footer__grid > .footer__col:nth-child(2),
  .site-footer .footer__grid > .footer__col:nth-child(3){
    display: block;
  }
  .site-footer .footer__grid > .footer__col:nth-child(2) .footer__link,
  .site-footer .footer__grid > .footer__col:nth-child(3) .footer__link{
    display: block;
    padding: 6px 0;
  }
}

/* =========================
   TITLE SPLIT
========================= */
.title-split__first{ color: var(--am); }
.title-split__second{ color: #000; }

/* ✅ NUEVO: split royal blue para lo solicitado (Noticias / Conecta) */
.title-split--royal .title-split__first{ color: var(--ar); } /* #003DA5 */
.title-split--royal .title-split__second{ color: #000; }

/* =========================
   EVENT CARDS (4 eventos)
========================= */
.event-card{
  border-radius: var(--radius2);
  border: 1px solid rgba(24,35,137,.14);
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: transform .15s ease, box-shadow .15s ease;
}
.event-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }

/* ✅ AJUSTE CLAVE: imagen ocupa todo el cuadro (cover) y se ve clean */
/* ===== Portadas de eventos: implementación definitiva ===== */
/* DESPUÉS */
.event-card__media{
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  background: #fff;
  overflow: hidden;
  display: block;
}

.event-card__media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: none;
}

.event-card:hover .event-card__media img{ transform: none; }

.event-card__media-empty{
  position:absolute;
  inset: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(24,35,137,.28);
  background:
    radial-gradient(700px 260px at 40% 20%, rgba(0,61,165,.12), transparent 60%),
    radial-gradient(700px 260px at 80% 0%, rgba(91,117,182,.14), transparent 55%),
    rgba(220,226,239,.20);
}

.event-card__body{
  padding: 14px;
  display:flex;
  flex-direction: column;
  gap: 10px;
  color: #0B1535;
  background: rgba(255,255,255,.88);
}

.event-card__meta{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
}

.event-pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(24,35,137,.16);
  background: rgba(220,226,239,.62);
  font-family: var(--ff-sub);
  font-weight: 900;
  font-size: 12px;
  color: rgba(24,35,137,.92);
}
.event-date{
  font-family: var(--ff-sub);
  font-weight: 900;
  font-size: 12px;
  color: rgba(11,21,53,.62);
  white-space: nowrap;
}

.event-card__title{
  margin: 0;
  font-family: var(--ff-sub);
  font-weight: 950;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.event-card__sub{
  margin: -2px 0 0;
  color: rgba(11,21,53,.72);
  font-family: var(--ff-body);
  font-weight: 600;
}

.event-card__excerpt{
  margin: 0;
  color: rgba(11,21,53,.78);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}

.btn--navy{
  background: var(--am);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.btn--slb{
  background: var(--slb);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.btn--navy:hover, .btn--slb:hover{
  box-shadow: var(--shadow);
}

/* =========================
   EVENT MODAL (Leer más)
========================= */
.event-modal{
  position: fixed;
  inset: 0;
  display:none;
  z-index: 10000;
}
.event-modal.is-open{ display:block; }

.event-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(11,21,53,.46);
  backdrop-filter: blur(10px);
}

.event-modal__panel{
  position: relative;
  width: min(980px, calc(100% - 26px));
  max-height: calc(100vh - 90px);
  margin: 6vh auto 0;
  border-radius: 28px;
  border: 1px solid rgba(24,35,137,.18);
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  overflow: hidden;

  transform: translateY(10px);
  opacity: 0;
  animation: eventIn .18s ease forwards;
}
@keyframes eventIn{
  to{ transform: translateY(0); opacity: 1; }
}

.event-modal__head{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(0,61,165,.12), rgba(91,117,182,.12));
  border-bottom: 1px solid rgba(24,35,137,.12);
}
.event-modal__kicker{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(24,35,137,.16);
  background: rgba(220,226,239,.62);
  font-family: var(--ff-sub);
  font-weight: 900;
  font-size: 12px;
  color: rgba(24,35,137,.92);
}
.event-modal__title{
  margin: 10px 0 0;
  font-family: var(--ff-title);
  letter-spacing: var(--title-track);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 30px);
  line-height: 1.12;
  color: var(--am);
}
.event-modal__meta{
  margin-top: 6px;
  font-family: var(--ff-sub);
  font-weight: 850;
  font-size: 12px;
  color: rgba(11,21,53,.66);
}

.event-modal__content{
  padding: 16px 18px 18px;
  overflow:auto;
  max-height: calc(100vh - 220px);
  color: rgba(11,21,53,.78);
  line-height: 1.75;
}

/* slots de imágenes dentro del modal */
.event-detail__images{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.event-img-slot{
  border-radius: 22px;
  border: 1px solid rgba(24,35,137,.14);
  background: rgba(220,226,239,.22);
  overflow:hidden;
  min-height: 220px;
  position: relative;
}
.event-img-slot img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.slot-empty{
  position:absolute;
  inset: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(24,35,137,.22);
  background:
    radial-gradient(520px 240px at 30% 40%, rgba(0,61,165,.18), transparent 60%),
    radial-gradient(520px 240px at 90% 15%, rgba(91,117,182,.18), transparent 62%),
    rgba(220,226,239,.18);
}

.event-modal__foot{
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(24,35,137,.10);
  display:flex;
  justify-content:flex-end;
}

@media (max-width: 900px){
  .event-detail__images{ grid-template-columns: 1fr; }
}

/* event-card media responsive */
@media (max-width: 560px){
  .event-card__media{ height: 240px; }
}
/* FIX: Portada "Peñón y Colegio Montefalco" (solo evento 2) — que llene el recuadro */
.event-card[data-event="2"] .event-card__media img{
  object-fit: cover;        /* llena el cuadro sin deformar */
  object-position: center;  /* centra el encuadre */
  
}
.event-card[data-event="2"] .event-card__media img{
  object-fit: cover;
  object-position: center 30%; /* sube/baja el encuadre: prueba 20%–60% */
}
@media (max-width: 900px){
  .hero{
    padding: clamp(20px, 5vw, 40px) 0 10px;
  }
  .hero__curve{
    height: 24px;
    margin-top: 10px;
  }
}