  /* estilos.css (COMPLETO, limpio y actualizado a Crimen y Castigo) */
:root{
  /* Paleta basada en el logo "Crimen y Castigo" */
  --brand-red: #d32f2f;
  --brand-red-dark: #9a0007;
  --brand-dark: #121212;
  --brand-surface: #ffffff;
  --brand-surface-2: #1a1a1a;
  --brand-gray: #2d2d2d;

  /* Tema CLARO (Home / index) */
  --cp-bg: #f8f9fa;
  --cp-ink: #1a1a1a;
  --cp-muted: #5f6368;
  --cp-line: rgba(0,0,0,.12);
  --cp-accent: var(--brand-red);
  --cp-card: #ffffff;
  --cp-soft: #fdecea;

  /* Variables legacy usadas en secciones antiguas */
  --bg: var(--cp-bg);
  --surface: var(--cp-card);
  --accent: var(--cp-accent);
  --accent-2: var(--brand-red-dark);
  --accent-3: var(--brand-dark);
  --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(255,255,255,.14);
  --cp-accent: var(--brand-red);
  --cp-card: #1e1e1e;
  --cp-soft: #2d2d2d;

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

*{ 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)
========================= */
a{ color: inherit; text-decoration: none; }
a:hover{ color: var(--brand-red-dark); }

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

.cp-pill{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.2rem .6rem;
  background: var(--brand-red);
  border: none;
  border-radius:999px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  font-size:.75rem;
  color: #fff;
}
.page-dark .cp-pill{ border-color: var(--cp-line); }

.cp-header{ background: var(--cp-card); border-bottom: 2px solid var(--brand-dark); }

/* Top bar + header fijos (siempre visibles al hacer scroll) */
.cp-sticky{
  position: sticky;
  top: 0;
  z-index: 1030;
}

.cp-menu-btn{
  border:1px solid var(--cp-line);
  border-radius:12px;
  padding:.4rem .55rem;
  line-height:1;
  background: var(--cp-card);
  transition: all 0.2s;
}
.cp-menu-btn i{ font-size:1.55rem; }
.cp-menu-btn:hover{ border-color: var(--brand-red); color: var(--brand-red); }

.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-header .container {
    padding-top: 5px !important;    /* Ajusta este número para pegarlo más arriba (0px es lo mínimo) */
    padding-bottom: 5px !important; /* Ajusta este número para el espacio de abajo */
}

/* Logo principal en el header */
.cp-logo { 
    display: block; 
    height: 120px;  /* 🔥 Aumenta este número (ej. 100px, 110px) si lo quieres aún más grande */
    width: auto; 
    max-width: none;
} 

/* Ajuste para celulares */
@media (max-width: 576px) {
    .cp-logo { 
        height: 60px; /* Tamaño más grande para móvil */
    }
}

/* Ajuste para el menú lateral (hamburguesa) */
.cp-offcanvas-logo { 
    display: block; 
    height: 55px; /* Tamaño para el menú desplegable */
    width: auto; 
}
/* 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: var(--cp-soft); color:var(--brand-red); }
.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(--brand-red) !important; border-color: var(--cp-line) !important; }
.page-dark .cp-search-icon{ background: var(--cp-soft) !important; color: var(--brand-red) !important; }

/* TICKER */
.cp-ticker{ background: var(--cp-soft); border-bottom:1px solid var(--cp-line); overflow:hidden; }
.cp-ticker .label{
  background: var(--brand-red);
  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(--brand-red);
}
.cp-kicker::before{ content:""; width:10px; height:2px; background: var(--brand-red); 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(--brand-red);
  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: var(--cp-soft); }
.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 var(--brand-red); flex:0 0 auto; }
.cp-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.cp-footer{ border-top: 4px solid var(--brand-red); background: var(--brand-dark); color: rgba(255,255,255,.90); }
.cp-footer a{ color: rgba(255,255,255,.90); }
.cp-footer a:hover{ color: var(--brand-red); 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-dark); 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; color: var(--brand-red); }
.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(--brand-red); }

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

.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;
  color: var(--brand-red);
}

/* =========================
   COMMON
========================= */
.kicker{
  color: var(--brand-red);
  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; color: var(--brand-red); }

/* =========================
   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; color: var(--brand-red); }

.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; color: var(--brand-red); }

/* =========================
   SECCIONES REUTILIZABLES
========================= */
.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;
}

.grid-sep > [class*="col-"]{ padding: 0 16px; }
@media (min-width: 992px){
  .grid-sep > [class*="col-"]:not(:last-child){
    border-right: 1px solid var(--border);
  }
}

.story-img{
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: transparent;
}
.story-img img{
  width: 100%;
  object-fit: cover;
  display: block;
}

.story--tall .story-img img{ height: 210px; }
.story--short .story-img img{ height: 170px; }

.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; color: var(--brand-red); }

.story-excerpt{
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

/* =========================
   LO DESTACADO
========================= */
.featured{
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.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; color: var(--brand-red); }

.featured-hero-excerpt{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  max-width: 68ch;
}

.featured-hero-img img{ height: 255px; }
@media (min-width: 992px){ .featured-hero-img img{ height: 270px; } }

.featured-hero-img--bottom img{ height: 240px; }
@media (min-width: 992px){ .featured-hero-img--bottom img{ height: 260px; } }

.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; color: var(--brand-red); }

.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; color: var(--brand-red); }

@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(--brand-dark);
  color: #ffffff;
  margin-top: auto;
  border-top: 4px solid var(--brand-red);
}
.site-footer a{ color: #ffffff; text-decoration: none; }
.site-footer a:hover{ color: var(--brand-red); text-decoration: underline; }

/* =========================
   NOTICIA (contenido)
========================= */
.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;
}

.cp-card .cp-img img{
  margin: 0; border-radius: 0; height: 100%;
}

hr { background-color: var(--brand-red); }   

blockquote{
  border-left: 3px solid var(--brand-red);
  padding-left: 1rem;
  font-style: italic;
  color: var(--cp-muted);
}
/* IMAGEN COMPLETA DE LA NOTICIA + BOTONES COMPARTIR */

.noticia-img {
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 12px;
  height: auto !important;
}

.noticia-img img {
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
}

.article-share-btn{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.article-share-btn i{
  color: #fff;
  font-size: 18px;
}

.article-share-btn-fb{ background:#1877f2; }
.article-share-btn-wa{ background:#25d366; }
.article-share-btn-x{ background:#000; }
}
.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
========================= */
.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; align-items: stretch;
}

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

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

.page-home .cp-tile img{
  width: 100%; height: 100%; display: block; margin: 0; border-radius: 0; object-fit: cover;
  transform: scale(1); transition: transform .25s ease, filter .25s ease;
}

.page-home .cp-tile-overlay{
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px; gap: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.86) 72%, rgba(255,255,255,.96) 100%);
}

.page-home .cp-chip{
  align-self: flex-start; background: var(--brand-red); color: #fff; font-size: 11px;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 800; padding: 6px 10px;
  border-radius: 999px; border: none;
}

.page-home .cp-tile-title{
  color: var(--cp-ink); margin: 0; font-weight: 900; line-height: 1.12; text-shadow: none;
  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;
}

.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;
}

.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; }

.page-home .cp-tile:hover img{ transform: scale(1.03); filter: brightness(1.02); }

@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; }
}

@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)
========================= */
.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 .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; }
.admin-home-editor .preview-wrap{ background: var(--cp-bg); border:1px solid var(--cp-line); border-radius:16px; overflow:hidden; padding: 0; }
.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%; }

.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; }
.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; }
.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; }
.admin-home-editor .admin-slot-mini .admin-slot-badges{ margin: 0; }
.admin-home-editor .admin-slot-mini .badge{ font-size: 10px; }
.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
========================= */
.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; }

.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; }
}

.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; flex-direction: column; gap: 12px; }
.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%; }
.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; }

.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; }
.admin-home-editor .select2-container--bootstrap-5 .select2-selection{ min-height: calc(2.35rem + 2px); padding: .28rem .55rem; font-size: .92rem; }