/* estilos.css (COMPLETO, limpio y sin duplicar secciones) */
:root{
  /* Paleta basada en el logo */
  --brand-blue: #24576e;
  --brand-blue-2: #005f71;
  --brand-dark: #1b1b2c;
  --brand-surface: #262536;
  --brand-surface-2: #00003b;
  --brand-gray: #4d4e50;

  /* Compatibilidad (antes se usaba "brand-red") */
  --brand-red: var(--brand-blue);

  /* Tema CLARO (Home / index) */
  /* Fondo ligeramente gris para look "periódico moderno" */
  /* Fondo un poco más fuerte (aún muy claro) */
  --cp-bg: #cbe6f4;
  --cp-ink: #101114;
  --cp-muted: #6b7280;
  --cp-line: rgba(16,17,20,.10);
  --cp-accent: var(--brand-blue);
  --cp-card: #ffffff;
  --cp-soft: #d7eef8;

  /* Variables legacy usadas en secciones antiguas */
  --bg: var(--cp-bg);
  --surface: var(--cp-card);
  --accent: var(--cp-accent);
  --accent-2: var(--brand-blue-2);
  --accent-3: #1b1b2c;
  --text: var(--cp-ink);
  --muted: var(--cp-muted);
  --border: var(--cp-line);
}

/* Tema OSCURO (categoría/noticia) */
.page-dark{
  --cp-bg: var(--brand-dark);
  --cp-ink: #e5e7eb;
  --cp-muted: #9ca3af;
  --cp-line: rgba(229,231,235,.14);
  --cp-accent: var(--brand-blue);
  --cp-card: var(--brand-surface);
  --cp-soft: var(--brand-surface-2);

  --bg: var(--cp-bg);
  --surface: var(--cp-card);
  --text: var(--cp-ink);
  --muted: var(--cp-muted);
  --border: var(--cp-line);
}

/* Tema OSCURO (categoría / noticia) */

/* (Se eliminó duplicado de .page-dark) */


*{ box-sizing: border-box; }

body{
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}


/* =========================
   COMPONENTES "CP" (Portada / Categoría / Noticia)
   - Sin estilos embebidos en los .php
========================= */
a{ color: inherit; text-decoration: none; }
a:hover{ color: var(--cp-accent); }

.cp-topbar{ background: var(--cp-accent); color:#fff; font-size:.9rem; }
.cp-topbar a{ color: inherit; opacity:.9; }
.cp-topbar a:hover{ opacity: 1; }

.cp-pill{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.2rem .6rem;
  border:1px solid rgba(255,255,255,.25);
  border-radius:999px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:.75rem;
}
.page-dark .cp-pill{ border-color: var(--cp-line); }

.cp-header{ background: var(--cp-card); }

/* Top bar + header fijos (siempre visibles al hacer scroll) */
.cp-sticky{
  position: sticky;
  top: 0;
  z-index: 1030; /* arriba del contenido */
}
.cp-header{
  border-bottom: 1px solid var(--cp-line);
}

.cp-menu-btn{
  border:1px solid var(--cp-line);
  border-radius:12px;
  padding:.4rem .55rem;
  line-height:1;
  background: var(--cp-card);
}
.cp-menu-btn i{ font-size:1.55rem; }
.cp-menu-btn:hover{ border-color: rgba(36,87,110,.35); }

.cp-brand{ display:inline-flex; align-items:center; gap:.5rem; line-height:1; }
.cp-brand .t{ font-weight:900; letter-spacing:.08em; font-size:1.35rem; }
.cp-brand .s{ color:var(--cp-muted); letter-spacing:.35em; font-size:.75rem; margin-top:.25rem; }

.cp-logo{ display:block; height:75px; width:auto; max-width:240px; }
@media (max-width: 576px){
  .cp-logo{ height:60px; max-width:200px; }
}
.cp-offcanvas-logo{ display:block; height:40px; width:auto; max-width:220px; }

/* OFFCANVAS */
.cp-offcanvas{ width:min(320px, 88vw); }
.cp-offcanvas .offcanvas-header{ border-bottom:1px solid var(--cp-line); }
.cp-offcanvas-brand{ font-weight:950; letter-spacing:.08em; }
.cp-offcanvas-nav{ display:flex; flex-direction:column; gap:.1rem; }
.cp-offcanvas-link{
  display:flex; align-items:center;
  padding:.7rem .25rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:.9rem;
  border-radius:10px;
  color:var(--cp-ink);
}
.cp-offcanvas-link:hover{ background: rgba(36,87,110,.10); color:var(--cp-ink); }
.page-dark .cp-offcanvas-link:hover{ background: var(--cp-soft); }
.cp-offcanvas-sep{ height:1px; background:var(--cp-line); margin:.2rem 0 .5rem 0; }

/* BUSCADOR (icono) */
.cp-search-icon{ background: var(--cp-card) !important; color: var(--cp-muted) !important; border-color: var(--cp-line) !important; }
.page-dark .cp-search-icon{ background: var(--cp-soft) !important; color: var(--cp-ink) !important; }

/* TICKER */
.cp-ticker{ background: var(--cp-soft); border-bottom:1px solid var(--cp-line); overflow:hidden; }
.cp-ticker .label{
  background: var(--cp-accent);
  color:#fff;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.78rem;
  padding:.55rem .9rem;
  white-space:nowrap;
}
.cp-ticker .track{
  display:flex;
  gap:2.25rem;
  padding:.55rem 0;
  white-space:nowrap;
  animation: cp-marquee 30s linear infinite;
}
.cp-ticker .track:hover{ animation-play-state: paused; }
.cp-ticker .item{ color: var(--cp-ink); font-weight:600; }
.cp-ticker .dot{ color: var(--cp-accent); font-weight:900; margin-right:.5rem; }
@keyframes cp-marquee { from{ transform:translateX(0);} to{ transform:translateX(-50%);} }
@media (max-width: 991.98px){ .cp-ticker .track{ animation-duration: 22s; } }
@media (prefers-reduced-motion: reduce){ .cp-ticker .track{ animation:none; } }

/* TARJETAS */
.cp-card{
  background: var(--cp-card);
  border:1px solid var(--cp-line);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(17,24,39,.06);
}
.page-dark .cp-card{ box-shadow:0 8px 24px rgba(0,0,0,.35); }

.cp-img{ display:block; background: #e9ecef; }
.page-dark .cp-img{ background: rgba(255,255,255,.06); }
.cp-img img{ width:100%; height:100%; object-fit:cover; display:block; }

.cp-kicker{
  display:inline-flex; align-items:center; gap:.5rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:.72rem;
  color: var(--cp-accent);
}
.cp-kicker::before{ content:""; width:10px; height:2px; background: var(--cp-accent); display:inline-block; }

.cp-hero-title{ font-weight:900; line-height:1.05; font-size:clamp(1.3rem, 2.2vw, 2.1rem); }
.cp-title{ font-weight:900; line-height:1.15; }
.cp-meta{ color: var(--cp-muted); font-size:.9rem; }
.page-dark .cp-meta{ color: var(--cp-muted); }
.cp-excerpt{ color:#3f4350; font-size:1rem; margin:0; }
.page-dark .cp-excerpt{ color: var(--cp-muted); }

.cp-section-title{
  font-weight:950;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:1.05rem;
  border-left:6px solid var(--cp-accent);
  padding-left:.75rem;
  margin:0 0 1rem 0;
}

.cp-list a{ display:block; padding:.85rem .9rem; border-top:1px solid var(--cp-line); }
.cp-list a:hover{ background: rgba(36,87,110,.05); }
.page-dark .cp-list a:hover{ background: rgba(255,255,255,.04); }
.cp-list .smallcat{ font-weight:900; letter-spacing:.08em; text-transform:uppercase; font-size:.7rem; color: var(--cp-muted); }
.cp-list .smalltitle{ font-weight:900; margin-top:.25rem; line-height:1.2;
  display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; -webkit-line-clamp:2;
}
.cp-list .smalldate{ color: var(--cp-muted); font-size:.82rem; margin-top:.25rem; }

/* Lista con miniatura (sidebar) */
.cp-list .cp-list-item{
  display:flex;
  gap:.8rem;
  align-items:flex-start;
}
.cp-list .cp-thumb{
  width:56px;
  height:56px;
  flex:0 0 56px;
  border-radius:12px;
  overflow:hidden;
  background: rgba(16,17,20,.06);
  border:1px solid var(--cp-line);
}
.cp-list .cp-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.cp-list .cp-list-text{ min-width:0; }

.cp-avatar{ width:48px; height:48px; border-radius:999px; overflow:hidden; border:2px solid rgba(36,87,110,.25); flex:0 0 auto; }
.cp-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.cp-footer{ border-top:1px solid rgba(255,255,255,.20); background: var(--cp-accent); color: rgba(255,255,255,.90); }
.cp-footer a{ color: rgba(255,255,255,.90); }
.cp-footer a:hover{ color: #fff; text-decoration: underline; }

/* Utilidades para reemplazar style="..." */
.cp-border-top-line{ border-top: 1px solid var(--cp-line) !important; }
.cp-lh-12{ line-height: 1.2 !important; }

.cp-img--h360{ height:360px; }
.cp-img--h260{ height:260px; }
.cp-img--h210{ height:210px; }
.cp-img--h170{ height:170px; }
.cp-img--h160{ height:160px; }

.cp-excerpt--095{ font-size:.95rem; }

.cp-img--ratio-16x10{ aspect-ratio: 16 / 10; }

.cp-container-980{ max-width: 980px; }
.cp-article-title{ font-weight: 900; line-height: 1.1; }
.cp-lead{ font-weight: 500; }
.cp-article-body{ font-size: 1.1rem; line-height: 1.8; }
.cp-reco-title{ font-weight: 950; letter-spacing: .02em; }
.cp-reco-card-title{ font-weight: 900; line-height: 1.15; }
.cp-reco-meta{ font-size: .95rem; line-height: 1.4; }

/* =========================
   TOP BAR
========================= */
.topbar{ background: var(--brand-red); position: sticky;
  top: 0;
  z-index: 1050;}

.topbar-pill{
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: .95;
  color: var(--bg);
}
.topbar-link{
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
}
.topbar-link:hover{ text-decoration: underline; }
.topbar-brand{
  font-size: 12px;
  letter-spacing: .06em;
  font-weight: 700;
  opacity: .95;
}
.icon-link{
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.icon-link:hover{ color: var(--bg); }

/* =========================
   MASTHEAD
========================= */
.masthead{ background: var(--bg); }
.masthead-btn{
  color: var(--text);
  font-size: 26px;
  line-height: 1;
}
.masthead-btn:hover{ color: #000000; }

.brand{
  text-decoration: none;
  color: var(--brand-red);
  display: inline-block; 
    text-align: center;
    padding-right: 40px;
    

}
.brand-title{
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  letter-spacing: .02em;
  font-size: clamp(34px, 3.3vw, 52px);
  line-height: 1;
}
.brand-subtitle{
  font-size: 11px;
  letter-spacing: .45em;
  text-transform: uppercase;
  margin-top: 2px;
  color: var(--brand-red);
}

/* =========================
   CATEGORY NAV
========================= */
.cats{ background: var(--bg); }
.cats-nav .nav-link{
  color: var(--text);
  font-size: 13px;
  padding: .35rem .55rem;
  font-weight: 600;
}
.cats-nav .nav-link:hover{
  text-decoration: underline;
}

/* =========================
   COMMON
========================= */
.kicker{
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.byline{
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

/* =========================
   LEFT/RIGHT CARDS
========================= */
.news-card{
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.news-card:last-child{
  border-bottom: 0;
  padding-bottom: 0;
}
.news-img{
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: transparent;
}
.news-img img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.news-body{
  padding-top: 10px;
}
.news-title{
  font-size: 18px;
  line-height: 1.2;
  margin: 0;
  font-weight: 800;
}
.news-title a{
  color: var(--text);
  text-decoration: none;
}
.news-title a:hover{ text-decoration: underline; }

/* =========================
   HERO (centro)
========================= */
.hero{
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 18px;
}
@media (max-width: 991.98px){
  .hero{
    border-left: 0;
    border-right: 0;
    padding: 0;
  }
}

.hero-img{
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: transparent;
}
.hero-img img{
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.hero-body{
  padding-top: 14px;
}
.hero-title{
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero-title a{
  color: var(--text);
  text-decoration: none;
}
.hero-title a:hover{ text-decoration: underline; }

.hero-meta{
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.hero-excerpt{
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  max-width: 62ch;
}

/* =========================
   OPINION BOX
========================= */
.opinion{
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.opinion-title{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--text);
}
.opinion-item{
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.opinion-item:first-of-type{
  border-top: 0;
  padding-top: 0;
}

.opinion-avatar{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
.opinion-author{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 2px;
}
.opinion-link{
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
  display: inline-block;
}
.opinion-link:hover{ text-decoration: underline; }

/* =========================
   SECCIONES REUTILIZABLES
   (LO MÁS LEÍDO / TE RECOMENDAMOS / y futuras)
========================= */
.section-block{
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.section-title{
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .02em;
  margin: 0 0 14px 0;
  color: var(--text);
}

.section-bottom-line{
  border-bottom: 1px solid var(--border);
  margin-top: 8px;
}

/* Separadores verticales para grids (3 o 4 columnas) */
.grid-sep > [class*="col-"]{
  padding: 0 16px;
}
@media (min-width: 992px){
  .grid-sep > [class*="col-"]:not(:last-child){
    border-right: 1px solid var(--border);
  }
}

/* Card editorial genérica */
.story-img{
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: transparent;
}
.story-img img{
  width: 100%;
  object-fit: cover;
  display: block;
}

/* Variantes de altura (reutilizables) */
.story--tall .story-img img{ height: 210px; }
.story--short .story-img img{ height: 170px; }

/* Títulos reutilizables */
.story-title{
  margin: 0;
  line-height: 1.2;
  font-weight: 900;
}
.story-title a{
  color: var(--text);
  text-decoration: none;
}
.story-title a:hover{ text-decoration: underline; }

/* Extracto reutilizable (para tarjetas con párrafo) */
.story-excerpt{
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}
/* =========================
   LO DESTACADO (replicado)
========================= */
.featured{
  /* centra el bloque como en tu captura (no full width visual) */
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* separadores verticales (como Heraldo) */
@media (min-width: 992px){
  .featured-top-left,
  .featured-bottom-left{
    border-right: 1px solid var(--border);
  }
}

/* paddings internos (la clave para que se vea igual) */
.featured-top-left{ padding-right: 18px; }
.featured-top-right{ padding-left: 18px; }

.featured-bottom-left{ padding-right: 18px; }
.featured-bottom-right{ padding-left: 18px; }

/* espacios entre bloque 1 y 2 */
.featured-bottom{ margin-top: 44px; }

/* HERO dentro de destacado */
.featured-hero-title{
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(22px, 2.2vw, 32px);
}
.featured-hero-title a{
  color: var(--text);
  text-decoration: none;
}
.featured-hero-title a:hover{ text-decoration: underline; }

.featured-hero-excerpt{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;           /* como en la captura (más compacto) */
  line-height: 1.35;
  max-width: 68ch;
}

/* Imagen hero: altura “cuadrada” como en tu screenshot */
.featured-hero-img img{
  height: 255px;
}
@media (min-width: 992px){
  .featured-hero-img img{ height: 270px; }
}
/* la de abajo suele verse un poco más baja */
.featured-hero-img--bottom img{
  height: 240px;
}
@media (min-width: 992px){
  .featured-hero-img--bottom img{ height: 260px; }
}

/* Lista derecha */
.featured-list{
  border-top: 1px solid var(--border);
}
.featured-item{
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.featured-item:last-child{ border-bottom: 0; }

.featured-thumb{
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 6px;
  overflow: hidden;
  background: transparent;
  display: block;
}
.featured-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-item-title{
  margin: 0;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
}
.featured-item-title a{
  color: var(--text);
  text-decoration: none;
}
.featured-item-title a:hover{ text-decoration: underline; }

/* Mini cards izquierda (bloque inferior) */
.featured-mini-card{
  padding-bottom: 18px;
}
.featured-mini-card:last-child{
  padding-bottom: 0;
}

.featured-mini-img img{
  height: 110px;
}
@media (min-width: 992px){
  .featured-mini-img img{ height: 115px; }
}

.featured-mini-title{
  margin: 0;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 900;
}
.featured-mini-title a{
  color: var(--text);
  text-decoration: none;
}
.featured-mini-title a:hover{ text-decoration: underline; }

/* móvil: evita paddings raros */
@media (max-width: 991.98px){
  .featured{
    max-width: none;
  }
  .featured-top-left,
  .featured-top-right,
  .featured-bottom-left,
  .featured-bottom-right{
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }
  .featured-bottom{ margin-top: 28px; }
}

body {
    display: flex;
    margin: 0;
    flex-direction: column;
    min-height: 100vh;
}

main {
  flex: 1;
    max-width: 1200px;
    margin: 0 auto;

}


.site-footer{
  background: var(--accent);
  color: var(--bg);
  margin-top: auto;
}

.site-footer a{
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover{
  color: var(--bg);
  text-decoration: underline;
}



/* =========================
   NOTICIA (contenido)
   Importante: estos estilos NO deben afectar a las tarjetas (cp-card) del home/categorías.
   Por eso se aplican solo dentro de .cp-article-body.
========================= */
.cp-article-body img{
  max-width: 100%;
  height: auto;
  display: block;
  margin: 18px auto;
  border-radius: 10px;
}
.cp-article-body hr{
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}
.cp-article-body h2{
  font-weight: 800;
  margin-top: 26px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.cp-article-body h3{
  font-weight: 750;
  margin-top: 22px;
  margin-bottom: 10px;
  line-height: 1.25;
}
.cp-article-body figure{ margin: 18px 0; }
.cp-article-body figcaption{
  font-size: .9rem;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
}

/* Asegura que las imágenes de las tarjetas (home/categorías) sean full-bleed
   y no hereden márgenes/border-radius del contenido. */
.cp-card .cp-img img{
  margin: 0;
  border-radius: 0;
  height: 100%;
}

hr {
  background-color: #000000; /* Color (ej. negro) */


}   
blockquote{
  border-left: 3px solid var(--text);
}
.noticia-img {
  width: 100%;
  max-width: 900px;   /* ancho estándar */
  height: 420px;      /* alto estándar */
  margin: 20px auto;
  overflow: hidden;
  border-radius: 12px;
}

.noticia-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* 🔥 clave */
  display: block;
}
.masthead-row{ position: relative; }

@media (max-width: 768px){
  .masthead-center{
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
  }

  .masthead-right{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
  }

}





/* =========================
   HOME - MOSAICO (solo index)
   (cuadrícula tipo "portada" y bien pegadita)
========================= */
.page-home .cp-mosaic{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows:
    clamp(220px, 18vw, 320px)
    clamp(220px, 18vw, 320px)
    clamp(180px, 15vw, 260px);
  gap: 16px;            /* aire moderno */
  align-items: stretch; /* evita desalineaciones */
}

/* Tile base */
.page-home .cp-tile{
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--cp-card);
  border: 1px solid var(--cp-line);
}

/* Link ocupa todo */
.page-home .cp-tile-link{
  display: block;
  height: 100%;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

/* Imagen siempre cubre (sin deformar) */
.page-home .cp-tile img{
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;           /* evita los márgenes globales de article img (bordes negros) */
  border-radius: 0;    /* evita esquinas redondeadas heredadas */
  object-fit: cover;
  transform: scale(1);
  transition: transform .25s ease, filter .25s ease;
}

/* Overlay con degradado (texto legible) */
.page-home .cp-tile-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  gap: 8px;
  /* Caption claro estilo periódico */
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,.86) 72%,
    rgba(255,255,255,.96) 100%
  );
}

/* Chip categoría */
.page-home .cp-chip{
  align-self: flex-start;
  background: rgba(255,255,255,.85);
  color: var(--cp-accent);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(16,17,20,.10);
}

/* Título + meta */
.page-home .cp-tile-title{
  color: var(--cp-ink);
  margin: 0;
  font-weight: 900;
  line-height: 1.12;
  text-shadow: none;

  /* Evitar que un título muy largo “rompa” el mosaico */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.page-home .cp-tile-meta{
  color: rgba(16,17,20,.62);
  font-size: 12px;
  text-shadow: none;
}

/* Ajustes por tamaño de tile */
.page-home .cp-tile--hero .cp-tile-title{
  font-size: clamp(1.25rem, 2vw, 2rem);
  -webkit-line-clamp: 4;
}
.page-home .cp-tile--a .cp-tile-title,
.page-home .cp-tile--b .cp-tile-title{
  font-size: clamp(1.05rem, 1.25vw, 1.45rem);
  -webkit-line-clamp: 3;
}
.page-home .cp-tile--c .cp-tile-title,
.page-home .cp-tile--d .cp-tile-title,
.page-home .cp-tile--e .cp-tile-title,
.page-home .cp-tile--f .cp-tile-title{
  font-size: clamp(.95rem, 1.05vw, 1.15rem);
  -webkit-line-clamp: 3;
}

/* Grid placement (como la imagen de referencia) */
.page-home .cp-tile--hero{ grid-column: 1 / 3; grid-row: 1 / 3; }
.page-home .cp-tile--a{ grid-column: 3 / 5; grid-row: 1 / 2; }
.page-home .cp-tile--b{ grid-column: 3 / 5; grid-row: 2 / 3; }
.page-home .cp-tile--c{ grid-column: 1 / 2; grid-row: 3 / 4; }
.page-home .cp-tile--d{ grid-column: 2 / 3; grid-row: 3 / 4; }
.page-home .cp-tile--e{ grid-column: 3 / 4; grid-row: 3 / 4; }
.page-home .cp-tile--f{ grid-column: 4 / 5; grid-row: 3 / 4; }

/* Hover suave (sin mover tarjetas para que NO se “rompa” el mosaico) */
.page-home .cp-tile:hover img{
  transform: scale(1.03);
  filter: brightness(1.02);
}

/* Responsive: tablet (2 columnas) */
@media (max-width: 991.98px){
  .page-home .cp-mosaic{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: clamp(180px, 30vw, 260px);
  }

  .page-home .cp-tile--hero{ grid-column: 1 / 3; grid-row: 1 / 3; }
  .page-home .cp-tile--a{ grid-column: 1 / 3; grid-row: 3 / 4; }
  .page-home .cp-tile--b{ grid-column: 1 / 3; grid-row: 4 / 5; }

  .page-home .cp-tile--c{ grid-column: 1 / 2; grid-row: 5 / 6; }
  .page-home .cp-tile--d{ grid-column: 2 / 3; grid-row: 5 / 6; }
  .page-home .cp-tile--e{ grid-column: 1 / 2; grid-row: 6 / 7; }
  .page-home .cp-tile--f{ grid-column: 2 / 3; grid-row: 6 / 7; }
}

/* Responsive: móvil (1 columna) */
@media (max-width: 575.98px){
  .page-home .cp-mosaic{
    grid-template-columns: 1fr;
    grid-auto-rows: clamp(220px, 70vw, 320px);
  }

  .page-home .cp-tile--hero,
  .page-home .cp-tile--a,
  .page-home .cp-tile--b,
  .page-home .cp-tile--c,
  .page-home .cp-tile--d,
  .page-home .cp-tile--e,
  .page-home .cp-tile--f{
    grid-column: 1 / 2;
  }

  .page-home .cp-tile--hero{ grid-row: 1 / 2; }
  .page-home .cp-tile--a{ grid-row: 2 / 3; }
  .page-home .cp-tile--b{ grid-row: 3 / 4; }
  .page-home .cp-tile--c{ grid-row: 4 / 5; }
  .page-home .cp-tile--d{ grid-row: 5 / 6; }
  .page-home .cp-tile--e{ grid-row: 6 / 7; }
  .page-home .cp-tile--f{ grid-row: 7 / 8; }
}
/* =========================
   ADMIN (utilidades para evitar estilos embebidos)
========================= */
.admin-w-980{ max-width: 980px; }
.admin-w-720{ max-width: 720px; }
.admin-w-520{ max-width: 520px; }
.admin-minw-280{ min-width: 280px; }
.admin-maxw-200{ max-width: 200px; }
.admin-maxw-240{ max-width: 240px; }
.admin-th-80{ width: 80px; }
.admin-th-90{ width: 90px; }
.admin-th-120{ width: 120px; }
.admin-th-140{ width: 140px; }
.admin-th-180{ width: 180px; }
.admin-th-200{ width: 200px; }

/* Admin - Home editor */
.admin-home-editor .slot-card{
  border:1px solid var(--cp-line);
  border-radius:14px;
  background: var(--cp-card);
}
.admin-home-editor .slot-head{ font-weight:800; }
.admin-home-editor .slot-muted{ color: var(--cp-muted); font-size:.9rem; }

/* Preview embebido del index */
.admin-home-editor .preview-wrap{
  background: var(--cp-bg);
  border:1px solid var(--cp-line);
  border-radius:16px;
  overflow:hidden;
  padding: 0;
}

/* Select2: tamaño cómodo en admin */
.admin-home-editor .select2-container--bootstrap-5 .select2-selection{
  min-height: calc(2.2rem + 2px);
  padding: .25rem .55rem;
  font-size: .92rem;
}
.admin-home-editor .select2-container--bootstrap-5 .select2-selection__rendered{
  line-height: 1.5;
  padding-left: 0;
}
.admin-home-editor .select2-container--bootstrap-5 .select2-selection__arrow{ height: 100%; }

/* Slot pickers (sobre el mosaico) */
.admin-home-editor .admin-slot{ position: relative; }

.admin-home-editor .admin-slot-picker{
  position:absolute;
  top:10px;
  left:10px;
  right:10px;
  z-index:60;
  pointer-events: none; /* deja el click al select2 (lo reactivamos adentro) */
}

.admin-home-editor .admin-slot-panel{
  pointer-events: auto;
  background: rgba(255,255,255,.92);
  border:1px solid rgba(16,17,20,.16);
  border-radius:12px;
  padding:8px;
  backdrop-filter: blur(6px);
}

.admin-home-editor .admin-slot-badges{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-bottom:6px;
}

.admin-home-editor .admin-slot-badges .badge{
  font-weight:900;
  letter-spacing:.02em;
  font-size:11px;
}

/* Selects más compactos cuando están encima de la foto */
.admin-home-editor .admin-slot-picker .form-select{
  font-size: 12px;
  padding: .25rem .55rem;
}
.admin-home-editor .admin-slot-picker .select2-container--bootstrap-5 .select2-selection{
  min-height: 34px;
  padding: .15rem .45rem;
  font-size: 12px;
}

/* Badges mini dentro de cards */
.admin-home-editor .admin-slot-mini .admin-slot-badges{
  margin: 0;
}
.admin-home-editor .admin-slot-mini .badge{
  font-size: 10px;
}

/* CP list: permitir select debajo del link sin “romper” el estilo */
.admin-home-editor .admin-list-select{
  padding: 0 .9rem .9rem;
}
.admin-home-editor .admin-list-select .admin-slot-badges{
  margin: .35rem 0 .35rem;
}

/* =========================
   ADMIN - Home Editor (layout tipo blueprint)
========================= */
.admin-home-editor{
  background: var(--cp-bg);
}

.admin-home-editor .admin-section-title{
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 1.05rem;
}
.admin-home-editor .admin-section-muted{
  color: var(--cp-muted);
  font-size: .92rem;
}

/* Mosaico de edición (misma posición que el mosaico del index) */
.admin-home-editor .admin-mosaic{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 280px 220px 170px;
  gap: 16px;
  align-items: stretch;
}
.admin-home-editor .admin-mosaic > div{
  min-width: 0;
  display: flex;
}
.admin-home-editor .admin-mosaic > div > .admin-zone{
  flex: 1;
}

.admin-home-editor .admin-mosaic .cp-tile--hero{ grid-column: 1 / 3; grid-row: 1 / 3; }
.admin-home-editor .admin-mosaic .cp-tile--a{ grid-column: 3 / 5; grid-row: 1 / 2; }
.admin-home-editor .admin-mosaic .cp-tile--b{ grid-column: 3 / 5; grid-row: 2 / 3; }
.admin-home-editor .admin-mosaic .cp-tile--c{ grid-column: 1 / 2; grid-row: 3 / 4; }
.admin-home-editor .admin-mosaic .cp-tile--d{ grid-column: 2 / 3; grid-row: 3 / 4; }
.admin-home-editor .admin-mosaic .cp-tile--e{ grid-column: 3 / 4; grid-row: 3 / 4; }
.admin-home-editor .admin-mosaic .cp-tile--f{ grid-column: 4 / 5; grid-row: 3 / 4; }

@media (max-width: 991.98px){
  .admin-home-editor .admin-mosaic{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: 220px;
  }
  .admin-home-editor .admin-mosaic .cp-tile--hero{ grid-column: 1 / 3; grid-row: 1 / 3; }
  .admin-home-editor .admin-mosaic .cp-tile--a{ grid-column: 1 / 3; grid-row: 3 / 4; }
  .admin-home-editor .admin-mosaic .cp-tile--b{ grid-column: 1 / 3; grid-row: 4 / 5; }
  .admin-home-editor .admin-mosaic .cp-tile--c{ grid-column: 1 / 2; grid-row: 5 / 6; }
  .admin-home-editor .admin-mosaic .cp-tile--d{ grid-column: 2 / 3; grid-row: 5 / 6; }
  .admin-home-editor .admin-mosaic .cp-tile--e{ grid-column: 1 / 2; grid-row: 6 / 7; }
  .admin-home-editor .admin-mosaic .cp-tile--f{ grid-column: 2 / 3; grid-row: 6 / 7; }
}

@media (max-width: 575.98px){
  .admin-home-editor .admin-mosaic{
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .admin-home-editor .admin-mosaic .cp-tile--hero,
  .admin-home-editor .admin-mosaic .cp-tile--a,
  .admin-home-editor .admin-mosaic .cp-tile--b,
  .admin-home-editor .admin-mosaic .cp-tile--c,
  .admin-home-editor .admin-mosaic .cp-tile--d,
  .admin-home-editor .admin-mosaic .cp-tile--e,
  .admin-home-editor .admin-mosaic .cp-tile--f{
    grid-column: 1 / 2;
  }
}

/* Caja (zona) */
.admin-home-editor .admin-zone{
  border: 1px solid var(--cp-line);
  border-radius: 16px;
  background: var(--cp-card);
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.admin-home-editor .admin-zone--info{
  background: rgba(255,255,255,.9);
}

.admin-home-editor .admin-zone-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.admin-home-editor .admin-zone-title{
  font-weight: 900;
  letter-spacing: .02em;
}
.admin-home-editor .admin-zone-badges{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.admin-home-editor .admin-zone-badges .badge{
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .02em;
}

.admin-home-editor .admin-zone-body{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.admin-home-editor .admin-zone-body--stack{
  align-items: stretch;
  justify-content: flex-start;
  /* IMPORTANTE: la zona base es display:flex; si no forzamos columna,
     los bloques (lista derecha/columnistas) se van en una sola fila y se "rompen" */
  flex-direction: column;
  gap: 12px;
}

/* Asegura que cada item dentro de un stack ocupe todo el ancho del contenedor */
.admin-home-editor .admin-zone-body--stack > *{
  width: 100%;
  max-width: 100%;
}

.admin-home-editor .admin-zone-preview{
  color: var(--cp-muted);
  text-align: center;
  font-size: .95rem;
  line-height: 1.35;
}

.admin-home-editor .admin-zone--sm .admin-zone-preview{
  font-size: .85rem;
}

.admin-home-editor .admin-zone-foot{
  margin-top: 10px;
  width: 100%;
}

/* Select2 / selects: mantenerlos dentro del contenedor y alineados */
.admin-home-editor .admin-zone-foot .form-select,
.admin-home-editor .admin-listrow .form-select{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}

.admin-home-editor .select2-container{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

.admin-home-editor .select2-container--bootstrap-5 .select2-selection{
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* List rows (para secciones tipo lista) */
.admin-home-editor .admin-listrow{
  border-top: 1px solid var(--cp-line);
  padding-top: 12px;
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.admin-home-editor .admin-listrow:first-child{
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.admin-home-editor .admin-listrow-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-home-editor .admin-listrow-title{
  font-weight: 900;
}

.admin-home-editor .admin-listrow-preview{
  color: var(--cp-muted);
  font-size: .9rem;
  line-height: 1.25;
  margin-top: 2px;
}

/* Select2: tamaño cómodo en admin (re-asegurar) */
.admin-home-editor .select2-container--bootstrap-5 .select2-selection{
  min-height: calc(2.35rem + 2px);
  padding: .28rem .55rem;
  font-size: .92rem;
}
