/* ============================
   VARIABLES / BASE
   ============================ */
:root{
  --site-max: 1200px;
  --site-pad: 20px;

  --bg: #ffffff;
  --text: #111;
  --muted: #666;

  --menu-bg: #0277BD;
  --menu-text: #fff;

  --shadow-1: 0 10px 24px rgba(0,0,0,.35);
}

*,
*::before,
*::after{ box-sizing: border-box; }

html, body{
  max-width: 100%;
  overflow-x: hidden;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

/* ============================
   NAVBAR (AZUL + ESTAMPILLA)
   ============================ */
header.navbar-frozen{
  background: transparent;
  box-shadow: none;
  padding-top: 18px;
}

header.navbar-frozen .navbar{
  background: var(--menu-bg);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding-top: 30px;
  padding-bottom: 30px;
  overflow: visible;
}

header.navbar-frozen .navbar .container{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: visible;
}

header.navbar-frozen .navbar-brand{
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2000;

  background: #fff;
  border-radius: 0px;
  padding: 12px;

  border: 1px solid rgba(0,0,0,.22);
  outline: 3px solid rgba(255,255,255,.70);
  outline-offset: 0;

  box-shadow:
    0 22px 55px rgba(0,0,0,.45),
    0 6px 14px rgba(0,0,0,.22),
    0 0 0 1px rgba(0,0,0,.10);

  text-decoration: none;
}

header.navbar-frozen .navbar-brand img{
  height: 100px;
  width: auto;
  display: block;
}

.main-menu{
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
  justify-content: center;

  margin: 0 auto;
  padding: 0;
  list-style: none;

  padding-left: 160px;
}

.main-menu .nav-link{
  color: rgba(255,255,255,.95) !important;
  font-weight: 700;
  letter-spacing: .2px;
  padding: 10px 12px;
  margin: 0 2px;
  line-height: 1;
}

.main-menu .nav-link:hover,
.main-menu .nav-link:focus{
  background: rgba(255,255,255,.10);
}

.dropdown-menu{
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
}

.dropdown-item{
  color: rgba(255,255,255,.92);
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 10px;
}

.dropdown-item:hover,
.dropdown-item:focus{
  background: rgba(255,255,255,.10);
  color: #fff;
}

.nav-actions{
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  padding-left: 16px;
}

.nav-action-link{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
}

.nav-action-link i{
  font-size: 18px;
  line-height: 1;
}

/* ============================
   TOGGLER + OVERLAY MOBILE  (MODELO CELESTE + SLIDE-IN)
   Reemplaza tu sección anterior completa
   ============================ */

/* === Toggler (se mantiene tu animación) === */
.custom-toggler{
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  z-index: 3001;
  margin-left: 12px;
}

.custom-toggler .bar{
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 2px;
  transition: all .3s ease;
}

.custom-toggler.active .bar:nth-child(1){
  transform: rotate(45deg) translateY(8px);
}
.custom-toggler.active .bar:nth-child(2){
  opacity: 0;
}
.custom-toggler.active .bar:nth-child(3){
  transform: rotate(-45deg) translateY(-8px);
}

/* === Overlay: NO usamos display none para poder animar === */
.menu-overlay{
  position: fixed;
  inset: 0;
  z-index: 3000;

  /* backdrop */
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);

  /* animación */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;

  /* panel a la derecha */
  display: block;
}

.menu-overlay.active{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* === Panel (overlay-menu): entra desde la derecha === */
.overlay-menu{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(92vw, 420px);

  /* colores modelo celeste */
  background: #2f6ea4; /* base */
  border-left: 1px solid rgba(255,255,255,.14);

  /* slide-in */
  transform: translateX(110%);
  transition: transform .35s cubic-bezier(.2,.9,.2,1);

  /* layout */
  padding: 56px 0 12px; /* deja lugar a barra superior tipo "Close" */
  border-radius: 0;
  overflow: auto;

  box-shadow: -22px 0 50px rgba(0,0,0,.45);
}

.menu-overlay.active .overlay-menu{
  transform: translateX(0);
}

/* Barra superior tipo "Close" (sin tocar HTML) */
.overlay-menu::before{
  content: "Close";
  position: sticky;
  top: 0;
  z-index: 5;
  display: block;

  padding: 16px 18px;
  color: rgba(255,255,255,.95);
  font-weight: 700;

  background: #2a6393;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

/* Lista base */
.overlay-menu ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Items como filas (no píldoras) */
.overlay-menu a{
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 18px;
  margin: 0;

  color: rgba(255,255,255,.96);
  text-decoration: none;
  font-weight: 700;

  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.overlay-menu a:hover{
  background: rgba(0,0,0,.10);
}

/* === Toggle de items con submenú: + / − por aria-expanded === */
/* IMPORTANTE: tu HTML debe tener class="overlay-toggle" en el link/botón que abre submenú */
.overlay-toggle::after{
  content: "+";
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  opacity: .95;
}

.overlay-toggle[aria-expanded="true"]::after{
  content: "−";
}

/* === Submenu: bloque un poco más oscuro + indent === */
.submenu-mobile{
  padding: 0;
  margin: 0;
  background: #2a6393;
}

.submenu-mobile a{
  display: block;
  padding: 14px 18px 14px 34px;
  margin: 0;

  font-weight: 650;
  background: transparent;
  border-radius: 0;

  color: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.submenu-mobile a:hover{
  background: rgba(0,0,0,.10);
}

/* ==========================================================
   FIX: quitar X izquierda + panel full-width + search junto a hamburguesa
   ========================================================== */

/* 1) Evitar que el botón close quede en el flow (X izquierda) */
.menu-overlay{ position: fixed; inset: 0; } /* seguridad */

.menu-overlay .overlay-close{
  position: fixed;            /* o absolute, pero fixed es más robusto */
  top: 10px;
  right: 12px;
  z-index: 3002;

  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;

  background: transparent;    /* sin cuadrado blanco */
  color: rgba(255,255,255,.95);
  display: grid;
  place-items: center;
}

.menu-overlay .overlay-close:hover{
  background: rgba(255,255,255,.10);
}

/* 2) Panel ocupa TODO el ancho y alto (como tu captura) */
.menu-overlay .overlay-menu{
  width: 100vw !important;
  max-width: none !important;
  height: 100vh !important;
  right: 0;
  top: 0;
  border-radius: 0 !important;
  padding-bottom: 88px; /* deja espacio para redes abajo */
}

/* 3) Mobile: dejar SOLO la lupita al lado de la hamburguesa
      - Ocultamos redes al lado del toggler
      - Mostramos nav-actions pero solo con la búsqueda */
@media (max-width: 991.98px){
  .menu-social--mobile{ display: none !important; } /* fuera del header */
  .nav-actions{
    display: inline-flex !important;     /* volvemos a mostrar */
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: 10px;
  }
  .nav-actions .menu-social--desktop{ display:none !important; } /* solo lupita */
}
/* =========================================
   ELIMINAR BARRA "Close" Y X SUPERIOR
   ========================================= */

/* 1) Ocultar la barra generada por ::before */
.overlay-menu::before{
  display: none !important;
  content: none !important;
}

/* 2) Ocultar la X posicionada arriba (la que agregamos antes) */
.menu-overlay > .overlay-close{
  display: none !important;
}

/* 3) Ajustar padding superior del panel ahora que no hay barra */
.overlay-menu{
  padding-top: 18px !important;
}
/* =========================================
   Cerrar (X) arriba derecha sin chocar con +/−
   ========================================= */

/* 1) Posicionar la X en el lugar rojo */
.menu-overlay .overlay-close{
  position: fixed !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 4000 !important;

  width: 44px !important;
  height: 44px !important;
  display: grid !important;
  place-items: center !important;

  border: 0 !important;
  border-radius: 10px !important;
  background: rgba(0,0,0,.18) !important;
  color: rgba(255,255,255,.95) !important;
}

/* 2) Asegurar que NO exista la barra "Close" (si alguna vez vuelve) */
.overlay-menu::before{
  display: none !important;
  content: none !important;
}

/* 3) Reservar espacio arriba para que la X no tape el primer ítem */
.overlay-menu{
  padding-top: 68px !important;  /* 44px del botón + márgenes */
}

/* 4) Asegurar que el +/− quede dentro del ítem y no invada el borde */
.overlay-toggle{
  position: relative;
  padding-right: 56px !important; /* deja espacio al +/− */
}

.overlay-toggle::after{
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

/* ============================
   Redes sociales dentro del overlay
   ============================ */

.overlay-social-wrapper{
  padding: 28px 0 24px;
  border-bottom: none;
  display: flex;
  justify-content: center;
}

.overlay-social-wrapper .menu-social--mobile{
  display: flex !important;
  gap: 22px;
  align-items: center;
}

/* =========================================
   X completamente fija al viewport
   ========================================= */

/* Sacamos la X del contexto transform */
#menuOverlay{
  position: fixed;
}

#menuOverlay .overlay-close{
  position: fixed !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 100000 !important;
}

/* Muy importante: que el panel NO cree stacking context innecesario */
#menuOverlay .overlay-menu{
  transform: none !important;
}

/* En vez de animar el panel con transform,
   animamos el contenedor overlay */
#menuOverlay{
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.2,.9,.2,1);
}

#menuOverlay.active{
  transform: translateX(0);

}

.custom-toggler{ z-index: 2999 !important; }
#menuOverlay .overlay-close{ position: fixed !important; top:16px !important; right:16px !important; z-index:100000 !important; }

/* =========================================
   Redes perfectamente centradas
   ========================================= */

.overlay-social-wrapper{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 32px 0 24px !important;
}

.overlay-social-wrapper .menu-social--mobile{
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 25px !important;
  width: 100% !important;
}

.overlay-social-wrapper .menu-social--mobile a{
  border-bottom: none !important;
  display: inline-flex;
}

/* =========================================
   Redes overlay – versión más elegante
   ========================================= */

.overlay-social-wrapper i{
  font-size: 30px;
  transition: transform .2s ease, opacity .2s ease;
}

.overlay-social-wrapper a{
  border-bottom: none !important;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;
  border-radius: 50%;

  background: rgba(255,255,255,.08);
}

.overlay-social-wrapper a:hover{
  transform: scale(1.08);
  background: rgba(255,255,255,.15);
}

/* ============================
   BASE HOME
   ============================ */
:root{
  --tm-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --tm-head: Georgia, "Times New Roman", Times, serif;
  --tm-text: #141414;
  --tm-muted: rgba(20,20,20,.65);
  --tm-line: rgba(20,20,20,.10);
  --tm-radius: 12px;
}

body{
  font-family: var(--tm-body);
  color: var(--tm-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{
  color: inherit;
  text-decoration: none;
}
a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ============================
   HERO PRINCIPAL (RP al día)
   ============================ */
.nd-main-thumb {
  position: relative;
  display: block;
  height: 450px;
  overflow: hidden;
  border-radius: 6px;
}

.nd-main-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nd-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 30px;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.55) 40%,
    rgba(0,0,0,0.2) 70%,
    rgba(0,0,0,0) 100%
  );
  color: #fff;
}

.nd-main-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.2;
  color: #fff;
}

.nd-main-date {
  font-size: 0.9rem;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .nd-main-thumb { height: 260px; }
  .nd-main-overlay { padding: 20px; }
  .nd-main-title { font-size: 1.3rem; }
}

.nd-badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin: 0 0 12px 0;
  border-radius: 999px;
  background: rgba(2, 119, 189, 0.95);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.nd-badge::before{
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.9;
}

/* =========================
   RP AL DÍA - 3 TARJETAS
   ========================= */
#nd-list{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.nd-card{
  border: 1px solid var(--tm-line, rgba(20,20,20,.10));
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}

.nd-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.nd-card-thumb{
  display: block;
}

.nd-card-thumb img{
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.nd-card-body{
  padding: 12px 12px 14px;
}

.nd-card-title{
  margin: 0 0 8px;
  font-family: var(--tm-head, Georgia);
  font-weight: 800;
  line-height: 1.1;
  font-size: 18px;
}

.nd-card-date{
  color: var(--tm-muted, rgba(20,20,20,.65));
  font-size: 12px;
}

@media (max-width: 991px){
  #nd-list{ grid-template-columns: 1fr; }
  .nd-card-title{ font-size: 17px; }
}

/* =========================
   SIDEBAR: LO MÁS RECIENTE
   (versión única corregida)
   ========================= */
#latestPosts{
  border-left: 1px solid var(--tm-line);
  padding-left: 16px;
}

.latest-item{
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tm-line);
  align-items: start;
}

.latest-item:last-child{ border-bottom: 0; }

/* contenedor fijo del thumb */
.latest-thumb{
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 10px;
  display: block;
  background: #f2f2f2;
}

/* ✅ imagen siempre dentro del cuadrado */
.latest-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0; /* el radio lo maneja .latest-thumb */
}

.latest-title{
  margin: 0 0 4px 0;
  font-weight: 650;
  line-height: 1.15;
  font-size: 14.5px;
}

.latest-date{
  color: var(--tm-muted);
  font-size: 11.5px;
}

@media (max-width: 991px){
  #latestPosts{
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--tm-line);
    padding-top: 12px;
  }
}

/* =========================
   NUESTRA VOZ
   ========================= */
#nuestraVozGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 10px;
}

.voz-card{
  border: 1px solid var(--tm-line);
  border-radius: var(--tm-radius);
  overflow: hidden;
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease;
}

.voz-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.voz-thumb img{
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0;
}

.voz-title{
  font-family: var(--tm-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  margin: 10px 12px 12px;
}

.voz-card.is-hidden{ display: none; }

@media (max-width: 991px){
  #nuestraVozGrid{ grid-template-columns: 1fr; }
}

/* ==========================================================
   TITULOS DE SECCION – Barra editorial (FIX REAL)
   - Ahora sí define font-size y line-height
   - Scopeado a la landing para no tocar newsletter/footer
   ========================================================== */

/* Escalas globales para la landing */
.home-runrun{
  --sec-title-size: clamp(18px, 1.6vw, 22px);
  --sec-title-line: 1.1;

  --card-title-size: clamp(16px, 1.25vw, 18px);
  --card-title-line: 1.18;

  --pv-feature-title-size: 22px;   /* TITULO GRANDE (izquierda) */
  --pv-side-title-size: 18px;      /* TITULOS DERECHA */
}

/* Barra azul (secciones) */
.home-runrun .rp-al-dia-title,
.home-runrun .noticias-dia-title{
  font-family: 'Merriweather', Georgia, "Times New Roman", Times, serif !important;
  font-weight: 700 !important;               /* 300 + uppercase se siente “gigante” */
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;

  font-size: var(--sec-title-size) !important;
  line-height: var(--sec-title-line) !important;

  background: var(--menu-bg) !important;
  color: var(--menu-text) !important;

  display: block !important;
  width: 100% !important;

  padding: 10px 16px !important;             /* un poco más compacto */
  border-radius: 10px !important;

  margin: 0 !important;
  margin-bottom: 14px !important;

  box-shadow: 0 10px 22px rgba(0,0,0,.10) !important;
}

/* Rayita editorial */
.home-runrun .rp-al-dia-title::after,
.home-runrun .noticias-dia-title::after{
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: rgba(255,255,255,.92);
  margin-top: 8px;
  border-radius: 999px;
}

/* Reducir títulos internos (cards) en la landing */
.home-runrun .nd-card-title{
  font-size: var(--card-title-size) !important;
  line-height: var(--card-title-line) !important;
}

/* PV feature title (si lo querés más compacto) */
.home-runrun .pv-title{
  font-size: clamp(18px, 1.35vw, 20px) !important;
  line-height: 1.18 !important;
}

/* Latest sidebar titles */
.home-runrun .latest-title{
  font-size: 14px !important;
  line-height: 1.2 !important;
}

/* Responsive */
@media (max-width: 768px){
  .home-runrun .rp-al-dia-title,
  .home-runrun .noticias-dia-title{
    padding: 9px 14px !important;
    letter-spacing: 0.6px !important;
    --pv-feature-title-size: 20px;
    --pv-side-title-size: 16px;
  }
}

/* ==========================================================
   PUNTOS DE VISTA – CONTROL DE TAMAÑO DE TITULOS
   ========================================================== */

/* Titulo principal (columna izquierda) */
#pvFeature .pv-title{
  font-size: var(--pv-feature-title-size) !important;
  line-height: 1.15;
}

/* Titulos de la columna derecha */
#pvSide .pv-side-title{
  font-size: var(--pv-side-title-size) !important;
  line-height: 1.2;
}

/* ==========================================================
   FIX PUNTOS DE VISTA (feature)
   ========================================================== */
#pvFeature .pv-feature-inner{
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

#pvFeature .pv-feature-inner > div{
  min-width: 0;
}

#pvFeature .pv-feature-media{
  display: block;
  width: 360px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background: #f2f2f2;
}

#pvFeature .pv-feature-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  transform: translateZ(0);
}

@media (max-width: 991.98px){
  #pvFeature .pv-feature-inner{
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
  }
  #pvFeature .pv-feature-media{ width: 280px; }
}

@media (max-width: 575.98px){
  #pvFeature .pv-feature-inner{ grid-template-columns: 1fr; }
  #pvFeature .pv-feature-media{
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================
   OCIO – 4 Cards estilo “bordes violeta”
   ========================================================== */
#ocioCards .ocio-card{
  display: block;
  background: #fff;
  border: 3px solid #5a58c9;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

#ocioCards .ocio-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0,0,0,.12);
}

#ocioCards .ocio-thumb{
  position: relative;
  background: #f2f2f2;
}

#ocioCards .ocio-thumb img{
  width: 100%;
  height: 240px;          /* un poco más compacto */
  object-fit: cover;
  display: block;
}

#ocioCards .ocio-body{
  padding: 14px 16px 12px; /* compacto */
}

#ocioCards .ocio-title{
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  font-size: 22px;        /* reducido */
  line-height: 1.18;      /* reduce altura */
  color: #1d1d1f;
}

#ocioCards .ocio-meta{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #111;
}

#ocioCards .ocio-date{
  font-weight: 700;
  color: rgba(0,0,0,.55);
}

.ocio-header{
  margin-left: calc(var(--bs-gutter-x) * -0.5);
  margin-right: calc(var(--bs-gutter-x) * -0.5);
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

/* Responsivo ocio */
@media (max-width: 991.98px){
  #ocioCards .ocio-thumb img{ height: 220px; }
  #ocioCards .ocio-title{ font-size: 20px; }
}

@media (max-width: 575.98px){
  #ocioCards .ocio-thumb img{ height: 210px; }
  #ocioCards .ocio-title{ font-size: 19px; }
}

/* ==========================================================
   OCIO/CULTURA – Etiqueta tipo “carpeta” con lengüeta
   (usa aria-label del link .ocio-card)
   ========================================================== */

#ocioCards .ocio-card{
  position: relative;
  display: block;
}

/* La “carpeta” (rectángulo) */
#ocioCards .ocio-card::before{
  content: attr(aria-label);
  position: absolute;
  top: -14px;
  left: 14px;
  z-index: 5;

  padding: 7px 12px 6px;
  border-radius: 10px 10px 8px 8px;

  /* palette institucional: azul del menú + blanco */
  background: #2f6ea4;
  color: #fff;

  font-weight: 800;
  letter-spacing: .2px;
  font-size: 12px;
  text-transform: uppercase;

  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.18);

  max-width: calc(100% - 28px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* La “lengüeta” (pestaña) */
#ocioCards .ocio-card::after{
  content: "";
  position: absolute;
  top: -14px;
  left: 14px;
  z-index: 4;

  width: 34px;
  height: 14px;

  background: #2a6393; /* un tono apenas más oscuro */
  border-radius: 10px 10px 0 0;

  transform: translateX(10px);
  border: 1px solid rgba(255,255,255,.14);
  border-bottom: 0;
}

/* Para que no “pise” el borde superior de la imagen */
#ocioCards .ocio-thumb{
  overflow: hidden;
}

/* Hover sutil */
#ocioCards .ocio-card:hover::before{
  transform: translateY(-1px);
}

/* =========================================
   Ajuste vertical para etiqueta tipo carpeta
   ========================================= */

#ocioCards .col-12.col-md-6.col-lg-3{
  margin-top: 22px; /* crea espacio real arriba */
}

#ocioCards .ocio-card::before{
  top: 15px; /* la subimos un poco más */
}

#ocioCards .ocio-card::after{
  top: 15px;
}

/* ============================
   NEWSLETTER (no tocado por el scope de home-runrun)
   ============================ */

   /* ==========================================================
   NEWSLETTER – versión editorial limpia y consistente
   ========================================================== */

.newsletter-section{
  background: #eef2f7;
  padding: 80px 20px;
}

.newsletter-container{
  max-width: 1100px;
  margin: 0 auto;
}

.newsletter-heading{
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 20px 0;
}

.newsletter-heading i{
  color: #0277BD;
  font-size: 28px;
}

/* FORM */

.newsletter-form{
  display: flex;
  gap: 20px;
  margin: 30px 0 40px 0;
}

.newsletter-form input{
  flex: 1;
  height: 54px;
  border: 1px solid rgba(0,0,0,.15);
  padding: 0 16px;
  font-size: 16px;
  border-radius: 4px;
}

.newsletter-form input:focus{
  outline: none;
  border-color: var(--menu-bg);
  box-shadow: 0 0 0 3px rgba(2,119,189,.15);
}

.newsletter-form button{
  background: #0277BD;
  color: #fff;
  border: 0;
  padding: 0 36px;
  font-weight: 700;
  letter-spacing: .5px;
  border-radius: 6px;
  height: 54px;
  transition: all .2s ease;
}

.newsletter-form button:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,.15);
}

/* TEXTOS INFERIORES */

.newsletter-options{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.newsletter-item{
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.newsletter-check{
  width: 26px;
  height: 26px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.newsletter-item p{
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

/* MOBILE */

@media (max-width: 991.98px){

  .newsletter-heading{
    font-size: 24px;
  }

  .newsletter-form{
    flex-direction: column;
  }

  .newsletter-form input{
  
    padding: 0 20px !important;     /* más aire lateral */
    font-size: 18px !important;     /* mejora legibilidad */
    border-radius: 8px !important;  /* más editorial */
  }

  .newsletter-form input::placeholder{
     height: 100px !important;
    font-weight: 500;
}

  .newsletter-form button{
    width: 100%;
  }

  .newsletter-options{
    grid-template-columns: 1fr;
    gap: 24px;
  }

}

/* ============================
   FOOTER
   ============================ */
.site-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 40px 0;
  border-top: 4px solid #123860;
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--site-pad);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-left {
  flex: 1 1 250px;
  display: flex;
  justify-content: flex-start;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  font-size: 1.7rem;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-link:hover { transform: translateY(-3px); }

.social-link.facebook:hover   { color: #1877F2; }
.social-link.instagram:hover  { color: #E4405F; }
.social-link.x-twitter:hover  { color: #1DA1F2; }
.social-link.youtube:hover    { color: #FF0000; }

.footer-center {
  flex: 2 1 400px;
  text-align: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-right {
  flex: 1 1 250px;
  text-align: right;
}

.footer-copy {
  font-size: 0.9rem;
  margin: 0;
}

/* ============================
   RESPONSIVE NAV
   ============================ */
@media (max-width: 991.98px){
  .main-menu{ display: none; }
  .nav-actions{ display: none; }
  .custom-toggler{ display: flex; }

  header.navbar-frozen .navbar-brand{
    left: 12px;
    padding: 8px;
    border-radius: 0px;

  }

  header.navbar-frozen .navbar-brand img{
    height: 86px;
  }

  header.navbar-frozen .navbar .container{
    justify-content: flex-end;
    min-height: 72px;
  }
}

/* Overlay mobile: mostrar redes con estilo del footer */
.menu-overlay .overlay-social{
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
}
/* ==========================================================
   Redes junto a hamburguesa (mobile)
   ========================================================== */

/* Por defecto: oculto (desktop) */
.menu-social--mobile{
  display: none;
}

/* En mobile: visible, alineado */
@media (max-width: 991.98px){
  .menu-social--mobile{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: 10px; /* deja aire antes del toggler */
  }

  /* Ajuste de tamaño para que no invada */
  .menu-social--mobile .social-link{
    font-size: 1.35rem; /* si querés igual al footer exacto, poné el mismo valor que usa el footer */
    line-height: 1;
  }
}
/* ==========================================================
   Redes: desktop en nav-actions / mobile junto a hamburguesa
   ========================================================== */

/* Default (desktop) */
.menu-social--desktop{ display: inline-flex;
  align-items: center;
  gap: 14px; /* ← ajustá este valor */
}
.menu-social--mobile{ display: none; }

/* Mobile */
@media (max-width: 991.98px){
  /* ocultamos acciones desktop (ya lo tenías, lo dejamos) */
  .nav-actions{ display: none; }

}

/* ==========================================================
   FOOTER – MOBILE (ÚNICO) — redes centradas + línea azul + copy abajo
   ========================================================== */
/* ==========================================================
   FOOTER – MOBILE FINAL (centrado + compacto + separador azul)
   ========================================================== */
@media (max-width: 991.98px){

  /* Compactar alto real */
  .site-footer{
    padding: 14px 0 !important;          /* menos alto */
    border-top: 4px solid #123860;
  }

  .site-footer .footer-container{
    padding: 0 16px !important;
    margin: 0 auto !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    text-align: center !important;
  }

  /* IMPORTANTÍSIMO: anular el flex desktop que infla */
  .site-footer .footer-left,
  .site-footer .footer-right{
    flex: 0 0 auto !important;
    width: 100% !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Redes centradas */
  .site-footer .footer-social{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    margin: 0 auto !important;
  }

  .site-footer .social-link{
    font-size: 1.45rem !important;
    line-height: 1 !important;
    transform: none !important; /* evita saltos */
  }

  /* Separador azul editorial (estable) */
  .site-footer .footer-right{
    position: relative;
    padding-top: 5px !important;
  }

  .site-footer .footer-right::before{
    content: "";
    display: block;
    width: 60%;
    height: 2px;
    background: #0277BD;
    margin: 0 auto 10px auto;
    border-radius: 2px;
  }

  /* Copy compacto */
  .site-footer .footer-copy{
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0.92;
  }
}

/* =========================================
   MOBILE: banda azul pegada al top + logo dentro
   (no afecta desktop)
   ========================================= */
@media (max-width: 991.98px){

  /* 1) Quitar cualquier espacio arriba global */
  html, body{
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 2) La barra azul (navbar) pegada al top */
  header,
  .navbar{
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
  }

  /* Bootstrap suele meter padding vertical al navbar */
  .navbar{
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Si usás container dentro del navbar, también puede meter padding */
  .navbar > .container,
  .navbar > .container-fluid{
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* 3) Asegurar que el logo esté dentro y centrado verticalmente */
  .navbar-brand{
    margin: 0 !important;
    padding: 12px 0 !important;     /* ajustá: 10–14px según gusto */
    display: flex;
    align-items: center;
    height: auto;
  }

  .navbar-brand img{
    display: block;
    max-height: 72px;               /* ajustá si querés más grande */
    height: auto;
    width: auto;
  }

  /* 4) Alinear acciones (lupita + redes mobile + hamburguesa) */
  .nav-actions{
    margin-left: auto;
  }

  .menu-social--mobile{
    margin: 0 10px 0 0;
    align-items: center;
  }

  #menuToggler{
    margin-left: 0 !important;
  }
}
/* =========================================
   MOBILE: banda azul más alta + logo 100% dentro
   (sin efecto estampilla)
   ========================================= */
@media (max-width: 991.98px){

  /* 1) Hacemos la barra azul más alta y centramos su contenido */
  .navbar{
    min-height: 132px !important;     /* ajustá 120–140 según gusto */
    display: flex;
    align-items: center;
    padding: 0 14px !important;       /* aire lateral */
  }

  /* Si usás container dentro del navbar, lo alineamos */
  .navbar > .container,
  .navbar > .container-fluid{
    display: flex;
    align-items: center;
    width: 100%;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* 2) Logo: que siempre entre dentro del alto de la barra */
  .navbar-brand{
    display: flex;
    align-items: center;
    padding: 0 !important;
    margin: 0 !important;
  }

  .navbar-brand img{
    display: block;
    height: 108px !important;         /* clave: entra en 132px */
    width: auto !important;
    max-height: none !important;
    object-fit: contain;
  }

  /* 3) Acciones a la derecha bien centradas */
  .nav-actions{
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
  }

  #menuToggler{
    margin-left: 0 !important;
  }
}
.wrap{max-width:1120px;margin:0 auto;padding:24px;}
.muted{opacity:.72}

.cat-hero{padding:18px 0 22px;border-bottom:1px solid rgba(0,0,0,.08);}
.cat-hero h1{font-size:3rem;line-height:1.05;margin:0 0 8px;}

.cat-feature{padding:22px 0 18px;}
.feature-full{
  display:grid;
  grid-template-columns: 1.4fr 1fr;
  gap:22px;
  align-items:stretch;
  padding:18px;
  border-radius:18px;
  background: rgba(0,0,0,.03);
}
.feature-media{
  border-radius:16px;
  overflow:hidden;
  aspect-ratio:16/9;
  background: rgba(0,0,0,.06);
}
.feature-media img{width:100%;height:100%;object-fit:cover;display:block;}
.kicker{display:inline-block;font-size:.85rem;letter-spacing:.06em;text-transform:uppercase;opacity:.75;margin-bottom:10px}
.feature-title{font-size:2.35rem;line-height:1.08;margin:0 0 10px;}
.meta{font-size:.95rem;opacity:.7;margin-bottom:10px}
.excerpt{font-size:1.05rem;line-height:1.5;opacity:.9;margin:0}

#catTriplet{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:16px;
}
.card{
  border-radius:18px;
  overflow:hidden;
  background: rgba(0,0,0,.02);
  border:1px solid rgba(0,0,0,.06);
}
.card-media{aspect-ratio:16/10;background:rgba(0,0,0,.06);}
.card-media img{width:100%;height:100%;object-fit:cover;display:block;}
.card-body{padding:12px 12px 14px;}
.card-title{font-size:1.1rem;line-height:1.2;margin:0 0 8px;}
.card-meta{font-size:.9rem;opacity:.7}

@media (max-width: 980px){
  .feature-full{grid-template-columns:1fr;}
  #catTriplet{grid-template-columns:repeat(2,1fr);}
}
@media (max-width: 560px){
  #catTriplet{grid-template-columns:1fr;}
}

/* =========================
   BOTÓN VOLVER ARRIBA
========================= */

#backToTop {
  position: relative;
  bottom: 50px;
  right: 30px;

  width: 40px;
  height: 40px;
  border-radius: 50%;

  border: none;
  cursor: pointer;

  background: #bdbdbd; /* gris inicial */
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 12px rgba(0,0,0,0.15);

  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 999;
}

/* Flecha */
#backToTop .arrow {
  width: 10px;
  height: 10px;
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  transform: rotate(45deg);
}

/* Hover */
#backToTop:hover {
  background: #3f51b5; /* azul del ejemplo */
}

/* Visible cuando se hace scroll */
#backToTop.show {
  opacity: 1;
  visibility: visible;
}
/* ===== FIX BackToTop en móvil: por encima del overlay + safe area ===== */
#backToTop{
  z-index: 100001 !important; /* > overlay (3000) */
  pointer-events: auto !important;
}

@media (max-width: 991.98px){
  #backToTop{
    right: 16px !important;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    width: 44px !important;
    height: 44px !important;
  }
}
/* =========================
   BACK TO TOP (FIX MOBILE)
   ========================= */
#backToTop{
  position: fixed !important;
  right: 18px !important;
  left: auto !important;
  bottom: calc(18px + env(safe-area-inset-bottom)) !important;

  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;

  background: #bdbdbd; /* gris inicial */
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 6px 18px rgba(0,0,0,.18);

  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, background .2s ease;
  transform: translateY(6px);

  z-index: 2147483647 !important; /* que nada lo tape */
  touch-action: manipulation;
}

#backToTop .arrow{
  width: 10px;
  height: 10px;
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  transform: rotate(45deg);
}

/* “hover” en desktop */
#backToTop:hover{
  background: #0277BD; /* azul revista */
}

/* equivalente a hover en mobile */
#backToTop:active{
  background: #0277BD;
}

#backToTop.show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop{
  z-index: 999999 !important;
  pointer-events: auto !important;
}

@media (max-width: 991.98px){
  #backToTop{
    right: 16px !important;
    left: auto !important;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  }
}