/* ===========================
   TOKENS + RESET SUAVE
=========================== */
:root {
  /* Marca */
  --color-primary: #C62828;   /* Rojo Ibero */
  --color-secondary: #212121; /* Casi negro */
  --color-white: #FFFFFF;
  --color-accent: #F9A825;    /* Amarillo cálido */
  --color-neutral: #F5F5F5;   /* Fondo suave */

  /* Layout */
  --container: min(1100px, 92vw);
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --elev: 0 8px 24px rgba(0,0,0,.12);
  --fx: 220ms cubic-bezier(.2,.7,.2,1);

  /* Tipografía fluida */
  --step-1: clamp(1rem, 0.6vw + 0.9rem, 1.125rem); /* base */
  --step-2: clamp(1.5rem, 2vw + .6rem, 2rem);      /* h2 */
  --step-3: clamp(1.125rem, .8vw + .9rem, 1.35rem);/* sub */
  --step-4: clamp(1.75rem, 2.5vw + 1rem, 2.5rem);  /* h1/hero */

  --transition: all 0.3s ease;

  /* Header / Nav */
  --ibx-bg: #ffffff;
  --ibx-text: #3a3f4a;
  --ibx-primary: #B7003C;
  --ibx-grad: linear-gradient(90deg, #B7003C, #ff6a95);
  --shadow-xl: 0 30px 60px rgba(0,0,0,.18);
  --shadow-sm: 0 10px 24px rgba(0,0,0,.10);
}

*,
*::before,
*::after { box-sizing: border-box; }

html:focus-within { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--color-secondary);
  background: #fff;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0 0 .5rem 0;
  line-height: 1.2;
}

a { color: inherit; }

.skip-link{
  position:absolute; left:-9999px; top:auto;
}
.skip-link:focus{
  left:1rem; top:1rem; background:#fff; color:#000;
  padding:.5rem .75rem; border-radius:8px; z-index:10000;
}

/* ===========================
   CONTENEDORES GENERALES
=========================== */
.container { width: var(--container); margin-inline: auto; }

.section { padding-block: clamp(2rem, 4vw, 4rem); }
.section--light { background: #fff; }

.section__head { text-align:center; margin-bottom: clamp(1rem,2vw,2rem); }
.section__title { font-size: var(--step-2); color: var(--color-primary); font-weight: 800; }
.section__title .highlight { color: var(--color-accent); }
.section__sub { font-size: var(--step-3); color:#555; max-width: 70ch; margin-inline:auto; }

/* ===========================
   HEADER / NAV
=========================== */

/* Contenedor base */
.ibx-wrap {
  width: min(1220px, 92%);
  margin-inline: auto;
}

/* Header general */
.ibx-head {
  position: sticky;    /* header fijo al hacer scroll */
  top: 0;
  z-index: 9999;       /* por encima del hero/carrusel */
  background: var(--ibx-bg);
}

/* ----- CINTILLO SUPERIOR ----- */
.ibx-top {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ibx-top .ibx-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .45rem 0;
}

/* Logo */
.ibx-logo img {
  height: 64px;
  transition: transform 0.2s ease;
}

.ibx-logo:hover img {
  transform: translateY(-1px);
}

/* Bloque de contacto (escritorio) */
.ibx-top-info {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--ibx-text);
}

.ibx-top-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.ibx-top-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #888;
}

.ibx-top-item a {
  text-decoration: none;
  font-weight: 600;
  color: var(--ibx-text);
}

.ibx-top-item a:hover {
  color: var(--ibx-primary);
}

/* Separador vertical */
.ibx-top-sep {
  width: 1px;
  height: 28px;
  background: rgba(0,0,0,0.08);
}

/* Utilidades responsive */
.hide-sm { display: none; }
.hide-md { display: none; }

@media (min-width: 640px) {
  .hide-sm { display: inline-flex; }
}

@media (min-width: 980px) {
  .hide-md { display: inline-flex; }
}

/* ----- NAVBAR ----- */
.ibx-nav {
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--shadow-sm);
}

.ibx-nav .ibx-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .35rem 0;
}

/* Lista principal */
.ibx-menu {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.ibx-menu, .ibx-menu li { list-style: none; margin:0; padding:0; }

/* Links */
.ibx-link {
  position: relative;
  text-decoration: none;
  color: var(--ibx-text);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: .2px;
  padding: .7rem .1rem;
  display: inline-flex;
  align-items: center;
}

.ibx-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: .35rem;
  width: 0;
  height: 2px;
  border-radius: 3px;
  background: var(--ibx-grad);
  transition: width .22s ease;
}

.ibx-link:hover {
  color: var(--ibx-primary);
}

.ibx-link:hover::after {
  width: 100%;
}

.caret {
  margin-left: .25rem;
  font-size: .7rem;
}

/* CTA (desktop) */
.ibx-cta { display: inline-flex; }

.btn-grad {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  border-radius: 999px;
  background: var(--ibx-grad);
  box-shadow: var(--shadow-sm);
}

.btn-grad:hover {
  filter: saturate(1.05) brightness(1.02);
  transform: translateY(-1px);
}

/* Barra de acento */
.ibx-accent {
  height: 4px;
  background: var(--ibx-grad);
  width: 100%;
}

/* ----- Dropdowns ----- */
.ibx-dd { position: relative; }
.ibx-dd-btn { background: none; border: 0; cursor: pointer; }

.ibx-dd-menu,
.ibx-dd-menu li,
.ibx-mega {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ibx-dd-menu {
  position: absolute;
  top: 100%;
  margin-top: .4rem;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: var(--shadow-xl);
  padding: .5rem;
  display: none;
}

.ibx-dd-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.ibx-dd.active .ibx-dd-menu { display: block; }

.ibx-dd-menu a {
  display: block;
  padding: .6rem .8rem;
  border-radius: .6rem;
  color: #3a3f4a;
  text-decoration: none;
  font-weight: 700;
}

.ibx-dd-menu a:hover {
  background: #f6f6f6;
  color: var(--ibx-primary);
}

/* ----- Mega menú ----- */
.ibx-dd.mega .ibx-mega {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: .6rem;
  display: none;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 1rem 1.25rem;
  min-width: 760px;
  grid-template-columns: repeat(3, 1fr) 280px;
  gap: 1rem;
}

.ibx-dd.mega.active .ibx-mega { display: grid; }

.ibx-mega::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.ibx-mega h4 {
  margin: .25rem 0 .4rem;
  color: var(--ibx-primary);
  font-size: .95rem;
}

.ibx-mega a {
  display: block;
  padding: .5rem .6rem;
  border-radius: .55rem;
  text-decoration: none;
  color: #3a3f4a;
  font-weight: 700;
}

.ibx-mega a:hover {
  background: #f6f6f6;
  color: var(--ibx-primary);
}

.ibx-mega-cta {
  background: linear-gradient(180deg, #fff, #fff 40%, #ffe6ee);
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid #f3d0db;
}

/* ----- Toggle (hamburger) ----- */
.ibx-toggle {
  margin-left: .75rem;
  display: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.ibx-toggle span,
.ibx-toggle span::before,
.ibx-toggle span::after {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--ibx-text);
  content: "";
  transition: .3s;
}

.ibx-toggle span { top: 50%; transform: translateY(-50%); }
.ibx-toggle span::before { top: -8px; }
.ibx-toggle span::after  { top: 8px; }

.ibx-toggle.active span {
  background: transparent;
}

.ibx-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.ibx-toggle.active span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Bloque de contacto dentro del menú (defecto: oculto) */
.ibx-mobile-contact {
  display: none;
}

/* ===== VERSIÓN CORREGIDA Y REFORZADA PARA MÓVIL ===== */
@media (max-width: 768px) {

  /* Logo y toggle */
  .ibx-top .ibx-wrap {
    padding: .45rem .75rem !important;
    justify-content: space-between !important;
  }

  .ibx-toggle {
    display: inline-flex !important;
    margin-left: auto !important;
  }

  /* Ocultar elementos de escritorio */
  .ibx-top-info,
  .ibx-cta {
    display: none !important;
  }

  /* Overlay oscuro */
  .ibx-nav::before {
    content: "" !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.35s ease !important;
    z-index: 9997 !important;
  }

  .ibx-nav.open::before {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

   /* ====== PANEL LATERAL ====== */
  .ibx-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    bottom: 0 !important;
    width: min(86vw, 340px) !important;

    /* Fondo sólido forzado */
    background: #ffffff !important;
    background-color: #ffffff !important;

    z-index: 9999 !important;
    box-shadow: -6px 0 25px rgba(0,0,0,0.25) !important;

    /* ALTURA Y SCROLL */
    height: 100vh !important;               /* ocupa toda la pantalla */
    overflow-y: auto !important;            /* solo scroll si es necesario */
    -webkit-overflow-scrolling: touch !important;

    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 3.5rem 1.5rem 2.5rem !important; /* antes era 5rem, ahora menos */
    gap: 0.4rem !important;
    transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) !important;

    transform: translateZ(0); /* nuevo stacking context */
  }

  .ibx-nav.open .ibx-menu {
    right: 0 !important;
  }


  /* Items internos del panel */
  .ibx-menu > li {
    width: 100%;
  }

  .ibx-menu > li > .ibx-link,
  .ibx-menu > li > button.ibx-link {
    width: 100%;
    justify-content: space-between;
    padding: .8rem 0;
  }

  /* Dropdowns dentro del panel (estilo acordeón) */
  .ibx-dd-menu,
  .ibx-dd.mega .ibx-mega {
    position: static !important;
    display: none !important;
    background: rgba(0,0,0,0.04) !important;
    border-radius: 12px !important;
    margin: 0.5rem 0 0 0 !important;
    padding: 0.5rem !important;
    box-shadow: none !important;
  }

  .ibx-dd.active .ibx-dd-menu,
  .ibx-dd.mega.active .ibx-mega {
    display: block !important;
  }

  /* Contacto móvil */
  .ibx-mobile-contact {
    display: block !important;
    margin-top: 1.5rem !important;      /* ya no es auto, queda justo después del menú */
    padding-top: 1rem !important;
    padding-bottom: 1.5rem !important;  /* espacio para que quepa todo cómodo */
    border-top: 1px solid #eee !important;
    font-size: 0.95rem !important;
    color: #444 !important;
  }
}

/* Evita scroll al abrir menú móvil */
.no-scroll { overflow: hidden; }


/* === HERO / CAROUSEL === */
.hero {
  position: relative;
  overflow: hidden; /* evita que flechas o imágenes sobresalgan */
}

.hero-media {
  position: relative;
  width: 100%;
  height: clamp(480px, 62vh, 880px);
  background: #111;
  overflow: hidden;
}

.carousel {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.carousel-images {
  height: 100%;
  width: 100%;
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  transition: transform .6s ease;
}

/* base (desktop/tablet) */
.carousel-item{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center center;
  transform:translateY(var(--shift, 0%));     /* solo desktop */
  transition:transform .35s ease, object-position .25s ease;
  will-change:transform;
}

/* móvil: NO desplazamos con transform para evitar huecos */
@media (max-width: 640px){
  .carousel-item{
    transform:none !important;                /* evita el “hueco negro” */
  }
}

/* Overlay degradado */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.10) 0%, rgba(0,0,0,.35) 65%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

/* Contenido alineado a la izquierda */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;      /* texto en la parte baja */
  align-items: flex-start;        /* alineado a la izquierda */
  padding: 2rem 1.5rem 3.5rem 3rem; /* espacio lateral izquierdo */
  color: #fff;
  text-align: left !important;
  max-width: 800px;
  z-index: 2;
}

/* Títulos y texto */
.hero-title {
  font-size: clamp(1.8rem, 3.2vw + .5rem, 3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 .5rem 0;
  text-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.hero-subtitle {
  font-size: clamp(1rem, 1.4vw + .4rem, 1.25rem);
  opacity: .95;
  max-width: 50ch;
  margin: 0 0 1rem 0;
  text-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.hero-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Botones */
.btn-cta {
  background: #C62828;
  color: #fff;
  padding: .75rem 1.1rem;
  border-radius: .8rem;
  font-weight: 800;
  box-shadow: 0 14px 28px -10px rgba(198,40,40,.45);
  transition: transform .15s ease, filter .2s ease;
}
.btn-cta:hover { transform: translateY(-1px); filter: brightness(1.05); }

.btn-ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  padding: .75rem 1rem;
  border-radius: .8rem;
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.18); }

/* Flechas de navegación */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  cursor: pointer;
  z-index: 3;
  transition: background .2s ease;
}
.carousel-btn:hover { background: rgba(0,0,0,.5); }
.carousel-btn img { width: 18px; height: 18px; }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

/* Indicadores */
.carousel-indicators {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);  /* 👈 centrado exacto */
  display: flex;
  gap: 6px;
  z-index: 3;
}
.carousel-indicators button {
  width: 22px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: background .2s ease, width .2s ease;
}
.carousel-indicators button[aria-current="true"] {
  background: #fff;
  width: 32px;
}

/* Responsivo */
@media (min-width: 768px) {
  .hero-content { padding: 3rem 2.5rem 3.5rem; }
}

@media (min-width: 1280px) {
  .hero-content { padding: 3.5rem 4rem 4rem; }
}


/* ===== Spotlight rows ===== */
.mods-spotlight{ padding: clamp(28px,5vw,56px) 0; background:#fff; }
.mods-spotlight__wrap{ width: var(--container); margin-inline: auto; display: grid; gap: clamp(16px,2vw,22px); }

.spot{
  position: relative; display: grid; grid-template-columns: 1fr; min-height: clamp(260px, 34vw, 380px);
  border-radius: 22px; overflow: clip; isolation: isolate; text-decoration: none; color: inherit;
  box-shadow: 0 14px 44px -18px rgba(0,0,0,.24); transform: translateZ(0);
}
.spot:focus-visible{ outline: 3px solid var(--color-primary); outline-offset: 2px; }

.spot__media, .spot__media img{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.spot:hover .spot__media img{ transform: scale(1.04); }

.spot__overlay{
  position:absolute; inset:0; z-index:0;
  background: linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.06) 100%);
}
.spot--invert .spot__overlay{
  background: linear-gradient(270deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.06) 100%);
}

.spot__content{
  position: relative; z-index: 1; align-self: end; padding: clamp(18px,3vw,28px);
  color:#fff; text-align:left; max-width: 48ch;
}
.spot__eyebrow{ font: 700 12px/1.2 system-ui, sans-serif; letter-spacing:.12em; text-transform: uppercase; opacity:.92; }
.spot__title{ font: 800 clamp(22px, 2.4vw + 10px, 34px)/1.1 Montserrat, system-ui, sans-serif; margin:.25rem 0 .4rem; }
.spot__desc{ font: 400 clamp(14px, .4vw + 12px, 16px)/1.5 Nunito, system-ui, sans-serif; opacity:.96; margin:0 0 .8rem; }

.spot__cta{
  display: inline-block; background: var(--color-primary); color:#fff; font-weight:800;
  padding:.7rem 1.05rem; border-radius:.9rem; box-shadow: 0 14px 28px -12px rgba(198,40,40,.45);
  transition: transform .18s, filter .25s;
}
.spot:hover .spot__cta{ transform: translateY(-1px); filter: brightness(1.06); }


/* ============================================================================
   Sección de noticias / eventos
============================================================================ */
.news-cover-ticker{
  padding: clamp(28px,5vw,56px) 0;
  background:#fff;
}

.news-ct__wrap{
  width: var(--container);
  margin-inline:auto;
  display:flex;
  flex-direction:column;
  gap: clamp(18px,3vw,28px);
}

/* Encabezado */
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:1rem;
}

.section__title{
  font:800 clamp(1.4rem,1.8vw + .6rem,2rem)/1.2 Montserrat,system-ui;
  color:#111827;
  margin:0 0 .15rem;
}

.section__sub{
  margin:0;
  font:400 .98rem/1.4 Nunito,system-ui;
  color:#6b7280;
}

.section__link{
  font:600 .9rem/1 Nunito,system-ui;
  color:var(--color-primary);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:.4rem .75rem;
  border-radius:999px;
  border:1px solid rgba(15,118,192,.15);
  background:rgba(15,118,192,.02);
  transition:background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.section__link:hover{
  background:rgba(15,118,192,.07);
  transform:translateY(-1px);
  box-shadow:0 10px 26px -20px rgba(0,0,0,.4);
}

/* Grid principal */
.news-ct__grid{
  display:grid;
  gap: clamp(16px,2.4vw,26px);
}

/* Portada */
.ct-cover{
  position: relative;
  min-height: clamp(320px,46vw,520px);
  border-radius: 22px;
  overflow: clip;
  box-shadow: 0 16px 46px -20px rgba(0,0,0,.28);
  isolation:isolate;
}

.ct-media,
.ct-media img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.ct-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.65) 80%),
    linear-gradient(120deg, rgba(15,91,169,.45) 0%, transparent 55%);
}

/* Contenido sobre la imagen */
.ct-content{
  position:relative;
  z-index:1;
  height:100%;
  display:flex;
  align-items:flex-end;
  padding: clamp(14px,2.5vw,24px);
  color:#fff;
  text-align:left;
  pointer-events:none;
}

/* ============================================================================
   TARJETA PRINCIPAL (compactada y limitada para que NO cubra toda la imagen)
============================================================================ */
.ct-panel{
  pointer-events:auto;

  /* 🔽 Más pequeña: menos ancha */
  width:auto;
  max-width:min(440px, 58%);  /* antes 520px / 70% */

  /* 🔽 Menos padding */
  padding:.6rem .85rem .8rem;
  border-radius:18px;

  background:linear-gradient(135deg, rgba(15,23,42,.9), rgba(15,23,42,.78));
  backdrop-filter:blur(12px);
  box-shadow:0 16px 36px -24px rgba(0,0,0,.85);

  /* 🔽 Más baja */
  max-height:210px;           /* antes 260px */
  overflow:hidden;
}

/* Ajustes internos */
.ct-panel .ct-tag{
  margin-bottom:.25rem;
}

.ct-panel .ct-title{
  margin:.15rem 0 .3rem;
}

.ct-panel .ct-desc{
  margin-top:.3rem;
}

/* ============================================================================
   Textos reducidos para compactar la tarjeta
============================================================================ */
.ct-tag{
  display:inline-block;
  background:var(--color-primary);
  padding:.35rem .7rem;
  border-radius:999px;
  font:800 .75rem/1 Montserrat,system-ui;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.ct-title{
  font:800 clamp(1.1rem,1.6vw + .4rem,1.6rem)/1.15 Montserrat,system-ui;
}

.ct-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.35rem;
  font:500 .8rem/1.3 Nunito,system-ui;
  opacity:.92;
  margin-top:.1rem;
}

.ct-meta__label{
  padding:.1rem .55rem;
  border-radius:999px;
  background:rgba(17,24,39,.5);
  border:1px solid rgba(255,255,255,.18);
  font-size:.78rem;
}

/* ============================================================================
   Descripción con límite de líneas (evita que la tarjeta crezca demasiado)
============================================================================ */
.ct-desc{
  font:400 clamp(.86rem,.4vw + .72rem,.96rem)/1.4 Nunito,system-ui;
  opacity:.96;
  max-width:40rem;

  display:-webkit-box;
  -webkit-line-clamp:3;   /* antes 4 */
  -webkit-box-orient:vertical;
  overflow:hidden;
}

/* Botón */
.ct-btn{
  margin-top:.4rem;
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  padding:.55rem 1.1rem;
  border-radius:999px;
  font:600 .9rem/1 Nunito,system-ui;
  color:#111827;
  background:#f9fafb;
  text-decoration:none;
  box-shadow:0 14px 40px -22px rgba(15,23,42,.9);
}

/* ============================================================================
   Lateral
============================================================================ */
.ct-side{
  display:flex;
  flex-direction:column;
  gap:.6rem;
}

.ct-side__head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:.5rem;
}

.ct-side__title{
  margin:0;
  font:700 1rem/1.2 Montserrat,system-ui;
}

/* Lista de eventos */
.ct-ticker{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:min(85%,420px);
  gap: clamp(10px,2vw,14px);
  overflow-x:auto;
  padding:.5rem .25rem;
  border-radius:14px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  scroll-snap-type:x mandatory;
}

.ct-item{
  scroll-snap-align:start;
  display:flex;
  align-items:flex-start;
  gap:.7rem;
  background:#fff;
  border-radius:12px;
  padding:.7rem .95rem;
  text-decoration:none;
  color:#111827;
  box-shadow:0 10px 28px -18px rgba(0,0,0,.22);
  white-space:normal;
}

/* Activo */
.ct-item.is-active{
  border:1px solid rgba(15,118,192,.35);
  box-shadow:0 16px 42px -26px rgba(15,23,42,.9);
}

/* ============================================================================
   Desktop
============================================================================ */
@media(min-width:880px){
  .news-ct__grid{
    grid-template-columns:minmax(0,1.8fr) minmax(0,1.1fr);
    align-items:stretch;
  }

  .ct-cover{
    min-height:380px;
  }

  .ct-ticker{
    grid-auto-flow:row;
    grid-auto-columns:unset;
    overflow-x:hidden;
    max-height:100%;
  }
}

/* ============================================================================
   Mobile
============================================================================ */
@media(max-width:640px){
  .ct-cover{
    min-height:320px;
  }

  .ct-panel{
    max-width:90%;
    margin:0 .5rem .25rem;
    max-height:190px;       /* más bajita en móvil */
  }

  .ct-desc{
    -webkit-line-clamp:2;   /* aún más corta en móvil */
  }
}

/* ============================================================================
   Variante visual para sección de eventos (fondo)
============================================================================ */
.news-cover-ticker.eventos{
  background: radial-gradient(circle at top left, #eef2ff 0%, #ffffff 55%, #f9fafb 100%);
}
.news-cover-ticker.eventos .ct-ticker{
  background: linear-gradient(135deg, #f9fafb 0%, #eef2ff 45%, #f9fafb 100%);
}




/* ===========================
   GALERÍA SOCIAL (CURADA)
   (sustituto del iframe de Instagram)
=========================== */
.social .section__title { color:#1a1a1a; }
.link { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.link:hover { filter: brightness(1.05); }

/* ===========================
   “CHIPS” DE ACTIVIDADES
=========================== */
.chips{
  display:flex; flex-wrap: wrap; gap:.75rem; justify-content:center;
}
.chip{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.6rem .9rem; border-radius:999px;
  background:#fff; border:1px solid #e5e5e5; box-shadow: var(--shadow);
  text-decoration:none; color:#222; transition: transform var(--fx), background var(--fx);
}
.chip:hover{ transform: translateY(-1px); background:#fafafa; }
.chip__icon{ width: 20px; height: 20px; object-fit: contain; }

.activities-accordion{ background:#fff; padding: clamp(28px,5vw,56px) 0; }
.accordion{
  display:flex; height:360px; border-radius:20px; overflow:hidden;
}
.panel{
  flex:1; position:relative; background:var(--bg) center/cover no-repeat;
  transition:flex .5s ease, filter .5s ease; cursor:pointer;
  display:flex; align-items:flex-end; justify-content:center;
  filter:brightness(.7);
}
.panel:hover{ flex:2; filter:brightness(1); }
.panel-content{
  background:rgba(0,0,0,.5); width:100%; text-align:center;
  padding:1.5rem; color:#fff;
}
.panel-content h3{ margin:0; font:800 1.3rem/1.1 Montserrat; }

/* Opción B */
.ft--dark{background:#1f1f1f; color:#d7d7d7; border-top:4px solid var(--color-primary); padding:14px 0;}
.ft--dark .container{max-width:var(--container); margin:0 auto; padding:0 1rem;}
.ft__center{text-align:center; display:flex; flex-direction:column; gap:.6rem;}
.ft__links ul{display:flex; flex-wrap:wrap; justify-content:center; gap:.5rem .9rem; list-style:none; margin:0; padding:0;}
.ft__links a{color:#d7d7d7; text-decoration:none; font-size:14px; border-bottom:1px solid transparent;}
.ft__links a:hover{color:#fff; border-color:currentColor;}
.ft__links li+li::before{content:"|"; color:#555; margin:0 .5rem 0 .1rem;}
.ft__social{display:flex; gap:.6rem; justify-content:center;}
.ft__social img{width:22px; height:22px; filter:invert(100%); opacity:.9; transition:opacity .15s, transform .15s;}
.ft__social a:hover img{opacity:1; transform:translateY(-1px);}
.ft__copy{font-size:12px; color:#a9a9a9; margin-top:.2rem;}
