/* ==========================================================================
   Tags / Archives – CSS saneado y unificado
   - Mobile-first
   - Grid de tarjetas (1/2/3 columnas)
   - Sidebar + sticky controlado por JS (fallback CSS opcional)
   - Breadcrumbs “píldoras” unificados (igual que Noticias/Artículos)
   - Botones de compartir (azul oscuro + icono blanco)
   ========================================================================== */

/* ===== Variables ===== */
:root{
    --brand-blue: #172EEB;       /* azul marca (hover/activo breadcrumbs) */
    --accent-blue: #192EEC;      /* azul acento (badges, barras) */
    --btn-blue: #032A53;         /* azul oscuro para botones share */
    --text-100: #101828;
    --text-300: #374151;
    --text-500: #fff;
    --pill-bg: #E0E0E0;
    --muted: #7D7F8A;
    --border: #e5e7eb;
    --shadow-xs: 0 2px 10px rgba(0,0,0,.06);
    --shadow-m: 0 2px 10px rgba(0, 0, 0, 0.2);
    --color-navy: #1E2362;
    --color-blue: #1E2362;
    --color-dark-blue: #18223F;
    --color-white: #ffffff;
    --color-gray-bg: #F0F2F5;
    --color-text: #333333;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
    
}

/* ==========================================================================
   Hero Section con Imagen de Fondo
   ========================================================================== */

/* Contenedor principal del Hero */
.archive-hero {
    position: relative;
    width: 100%;
    /* Si no hay imagen, un padding por defecto para separar */
    padding-bottom: 0; 
    background: linear-gradient(rgba(24,34,63,0.85), rgba(24,34,63,0.85));
}

/* Cuando hay imagen activa */
.archive-hero.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Crea un contexto de apilamiento para que el overlay funcione bien */
    isolation: isolate;
    color: #ffffff; /* Texto blanco por defecto dentro del hero */
}

/* El Overlay (capa oscura) */
.archive-hero.has-bg-image .hero-overlay {
    position: absolute;
    inset: 0; /* top:0, right:0, bottom:0, left:0 */
    background: rgba(0, 0, 0, 0.65); /* Opacidad al 65% para asegurar lectura */
    z-index: -1; /* Detrás del contenido, delante del background-image */
}

/* Asegurar que el contenido del hero esté por encima del overlay */
.archive-hero .hero-content {
    position: relative;
    z-index: 2;
}

/* --- Ajustes de color cuando el Hero está activo --- */

/* Título en blanco */
.archive-hero.has-bg-image .archive-title,
.archive-hero.has-bg-image .archive-title--emph {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Breadcrumbs en modo oscuro */
.archive-hero.has-bg-image .custom-breadcrumbs a {
    background-color: rgba(255, 255, 255, 0.2); /* Fondo semitransparente */
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.archive-hero.has-bg-image .custom-breadcrumbs a:hover {
    background-color: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

/* Ajuste del icono de home en breadcrumbs para que sea blanco si es necesario */
.archive-hero.has-bg-image .custom-breadcrumbs a:first-of-type {
    background-color: transparent;
}

/* Separadores de breadcrumbs en blanco */
.archive-hero.has-bg-image .rank-math-breadcrumb .separator,
.archive-hero.has-bg-image .archive-breadcrumbs .crumbs .separator {
    color: rgba(255, 255, 255, 0.8);
}

/* Span final del breadcrumb (página actual) */
.archive-hero.has-bg-image .custom-breadcrumbs span,
.archive-hero.has-bg-image .archive-breadcrumbs .crumbs span {
    color: rgba(255, 255, 255, 0.9);
}

/* Botones de compartir - ajuste sutil de sombra para destacar sobre fondo oscuro */
.archive-hero.has-bg-image .post-share .btn-social {
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.2);
}

/* ===== Contenedor / encabezado ===== */
.archive-wrap{ max-width:1200px; margin:0 auto; padding:24px; }
.archive-head{ display:flex; margin:8px 0 20px; justify-content: space-between; align-items: center; }
.archive-title{ display:flex; align-items:center; gap:10px; font-size:32px; font-weight:800; margin:0; }
.archive-title--emph{ font-size:36px; font-weight:800; letter-spacing:-.2px; margin:6px 0 12px; text-transform: capitalize; }
.archive-title--emph::after{
  content:""; display:block; width:160px; height:4px; background:var(--accent-blue); border-radius:999px; margin-top:6px;
}
.archive-desc{ color:var(--text-500); margin:6px 0 18px; }
.archive-count{
  display:inline-flex; align-items:center; justify-content:center;
  min-width:28px; height:28px; padding:0 8px; border-radius:999px;
  background:#eef2ff; color:var(--accent-blue); font-weight:800; font-size:14px;
}
.header-compl{flex:33%;}
.hero-pic {
    display: flex;
    justify-content: flex-end;
}
.hero-img {
  max-width: 50%;
}

@media (max-width:768px){
  .archive-head, .archive-title {flex-direction: column;}
  .post-share.social-row, .hero-pic {justify-content:center ;}
}
/* ===== Breadcrumbs (unificados con Noticias/Artículos) ===== */
.archive-breadcrumbs{ margin:0 0 10px; }
.archive-breadcrumbs .crumbs{
  display:flex; flex-wrap:wrap; gap:6px; align-items:center;
  font-size:12px; line-height:1;
}
.archive-breadcrumbs .crumbs a{
  display:inline-flex; align-items:center; text-decoration:none; white-space:nowrap; text-transform:capitalize;
  background:var(--pill-bg); color:#555; font-weight:500; border-radius:15px; padding:5px 10px;
  transition:background-color .25s ease, color .25s ease;
}
.archive-breadcrumbs .crumbs a:hover{ background:var(--brand-blue); color:#fff; }
.archive-breadcrumbs .crumbs a:first-of-type{
  text-indent:-9999px;
  background:url('https://cdn.inspenet.com/icon-home-breadcrumbs.webp') center/contain no-repeat, var(--pill-bg);
  width:22px; height:26px; padding:0; border-radius:6px;
}
.archive-breadcrumbs .crumbs a:last-of-type{ background:var(--brand-blue); color:#fff; }
.archive-breadcrumbs .crumbs .separator,
.archive-breadcrumbs .crumbs .sep{
  display:inline-flex; align-items:center; margin:0 4px; transform:translateY(2px);
  font-size:16px; line-height:16px; color:var(--muted);
}
.archive-breadcrumbs .crumbs span{ color:var(--muted); }

.custom-breadcrumbs a {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 5px 10px;
    white-space: nowrap;
    margin: 0 0;
    color: #3b3b3b;
    font-weight: 500;
    font-size: 12px;
    transition: background-color 0.3s,color 0.3s;
    text-transform: capitalize
}

.rank-math-breadcrumb .separator {
    transform: translateY(2px);
    margin: 0 4px;
    font-size: 16px;
    color: #7D7F8A;
    line-height: 16px;
    display: inline-flex;
    align-items: center;
    margin-top: 2px
}

.custom-breadcrumbs a:hover {
    background-color: #172EEB;
    color: #FFF
}

.custom-breadcrumbs span {
    text-transform: capitalize;
    color: #3b3b3b
}

.custom-breadcrumbs a:first-of-type {
    text-indent: -9999px;
    background: none;
    background-image: url(https://cdn.inspenet.com/icon-home-breadcrumbs.webp);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-flex;
    align-items: center;
    width: 22px;
    height: 26px;
    margin: 0 0
}

.custom-breadcrumbs a:last-of-type {
    background-color: #172EEB;
    color: #FFF;
    border-radius: 15px;
    padding: 5px 10px;
    white-space: nowrap;
    margin: 0 0;
    font-weight: 500;
    font-size: 12px;
    transition: background-color 0.3s,color 0.3s;
    text-transform: capitalize
}

/* ===== Layout 2 columnas (main + sidebar) ===== */
.archive-row{ display:grid; grid-template-columns:1fr; gap:28px; }
@media (min-width:1024px){
  .archive-row{ grid-template-columns:3fr 1.2fr; }
}
.archive-main{ min-width:0; }

.archive-sidebar{ position:relative; z-index:1; overflow:visible; }

/* ===== Sticky (fallback CSS; el affix JS gobierna en desktop) ===== */
@supports (position: sticky){
  @media (min-width:1024px){
    .sticky-widget{ position:sticky; top:var(--stickyTop, 96px); }
  }
}
.archive-filters {
    margin-bottom: 10px;
}
/* ===== Grid de tarjetas ===== */
.cards-grid,
.archive-grid{
  display:grid; grid-template-columns:repeat(1,minmax(0,1fr)); gap:28px;
}
@media (min-width:768px){
  .cards-grid, .archive-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (min-width:1100px){
  .cards-grid, .archive-grid{ grid-template-columns:repeat(3,1fr); }
}

/* ===== Tarjeta ===== */
.post-card{
  background:#fff; border-radius:14px; overflow:hidden;
  box-shadow:var(--shadow-xs);
  transition:transform .2s ease, box-shadow .2s ease;
}
.post-card:hover{ transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.1); }

/* Enlaces (card completa o título) */
.card-link{ display:block; color:inherit; text-decoration:none; }
.card-link:hover .card-title{ color:#0b56d5; }
.post-card__title a{ color:var(--text-100); text-decoration:none; }
.post-card__title a:hover{ text-decoration:underline; }

/* Media */
.card-thumb img,
.post-card__thumb img{
  display:block; width:100%; height:210px; object-fit:cover; border-radius: 8px;
}

/* Body */
.card-body,
.post-card__body{ padding:16px; }

/* Badge/Categoría */
.badge,
.post-card__cat{
  display:inline-block; background:var(--accent-blue); color:#fff; border-radius:999px;
  padding:4px 10px; font-size:12px; font-weight:700; margin-bottom:8px;
}
.post-card__cat .cat-link {
    color: white;
    text-transform: capitalize;
}

/* Título / Meta / Extracto */
.card-title,
.post-card__title{
  font-size:18px; line-height:1.25; margin:6px 0 8px; font-weight:800; color:var(--text-100);
}
.card-meta,
.post-card__meta{ font-size:12px; color:var(--text-500); margin-bottom:8px; }
.card-excerpt,
.post-card__excerpt{ font-size:14px; color:var(--text-300); margin:0; }

/* ===== Paginación (Unificada: Nativa WP + AJAX JS) ===== */

/* Contenedor principal */
.archive-pager,
.navigation.pagination {
  text-align: center;
  margin: 20px 0;
  clear: both;
}

/* Ocultar título de accesibilidad que genera WP automáticamente */
.navigation.pagination .screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}

/* El contenedor flexible (Caja de los botones)
   - .nav-links: Estructura Nativa WP
   - ul.page-numbers: Estructura JS Custom
*/
.archive-pager .nav-links,
.archive-pager ul.page-numbers,
.navigation.pagination .nav-links,
.navigation.pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Items de lista (Solo aplica para la versión JS) */
.archive-pager li {
  display: block;
  margin: 0;
  padding: 0;
}

/* Estilo de los Botones (Enlaces y Spans)
   Se aplican a:
   1. .page-numbers (Clase nativa de WP en <a> y <span>)
   2. .js-page (Tu clase JS)
   3. span dentro de .is-active (Tu estado activo JS)
*/
.navigation.pagination .page-numbers, /* Nativo WP genérico */
.archive-pager ul.page-numbers a,     /* JS Links */
.archive-pager ul.page-numbers span { /* JS Dots/Current */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  min-width: 36px; /* Ancho mínimo para que sean cuadraditos uniformes */
  background: var(--color-paginacion, #f5f5f5);
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  font-size: var(--tamano-paginacion, 14px);
  line-height: 1;
  font-weight: 500;
  transition: background-color .3s ease, color .3s ease;
  cursor: pointer;
}

/* Estado Hover */
.archive-pager a.page-numbers:hover,
.navigation.pagination a.page-numbers:hover,
.archive-pager ul.page-numbers a:hover {
  background: var(--color-paginacion-hover, #e0e0e0);
  color: #101828;
}

/* Estado Activo / Página Actual */
.archive-pager .page-numbers.current,    /* Nativo WP */
.navigation.pagination .current,         /* Nativo WP */
.archive-pager li.is-active span {       /* JS Custom */
  background: var(--color-paginacion-activa, #032A53);
  color: #fff;
  cursor: default;
}

/* Puntos suspensivos (Dots)
   WP usa clase 'dots', JS usa span genérico a veces
*/
.archive-pager .page-numbers.dots,
.navigation.pagination .dots {
  background: transparent;
  color: var(--text-500);
  cursor: default;
}

/* Botones Prev/Next
   A veces WP no les pone la clase page-numbers dependiendo del tema,
   así que aseguramos con selectores específicos.
*/
.archive-pager .nav-links > a.prev,
.archive-pager .nav-links > a.next,
.navigation.pagination .prev,
.navigation.pagination .next {
  font-weight: 700;
}

/* ===== Sidebar widgets (genéricos) ===== */
.sb-widget,
.sidebar-widget{
  background:#fff; border-radius:12px;;
 margin-bottom:18px;
}
.sidebar-title{ margin:0 0 10px; font-size:18px; font-weight:800; color:var(--text-100); }
.sb-list, .mini-list{ list-style:none; padding:0; }
.sb-item{ display:flex; gap:12px; align-items:center; padding:8px 0; }
.sb-link, .mini-link{ display:flex; gap:12px; align-items:center; text-decoration:none; color:inherit; }
.sb-thumb img, .mini-thumb img{ width:86px; height:64px; object-fit:cover; border-radius:6px; display:block; }
.mini-title{ display:block; font-size:14px; font-weight:700; line-height:1.25; color:var(--text-100); }
.sb-item-date, .mini-date{ display:block; font-size:12px; color:var(--text-500); }
.mini-item { margin: 0.5rem 0;}

/* Sidebar item activo (Pilar actual) */
.sb-link.is-active {
    color: var(--brand-blue);
    font-weight: 800;
    pointer-events: none; /* Asegura que no sea clickeable */
    text-decoration: none;
}
.sb-link.is-active:hover {
    background: transparent;
    transform: none;
}

/* ===== Share (azul oscuro + icono blanco; igual que single) ===== */
.post-share.social-row{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:8px 0 6px;
}
.post-share .btn-social{
  width:44px; height:44px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--btn-blue); color:#fff; text-decoration:none;
  box-shadow:0 1px 2px rgba(16,24,40,.12), inset 0 1px 0 rgba(255,255,255,.15);
  transition:transform .08s ease, filter .2s ease; outline:none; line-height:1;
}
.post-share .btn-social:hover{ filter:brightness(1.05); transform:translateY(-1px); }
.post-share .btn-social:focus-visible{
  box-shadow:0 0 0 3px rgba(22,119,255,.25), 0 1px 2px rgba(16,24,40,.12);
}
.post-share .btn-social svg{
  display:block; width:20px; height:20px; fill:currentColor; color:#fff;
}
@media (max-width:1023.98px){
  .post-share .btn-social{ width:40px; height:40px; }
  .post-share .btn-social svg{ width:18px; height:18px; }
}

/* === Grid: 1 -> 2 columnas; sin 3-col === */
@media (min-width:768px){
  .cards-grid, .archive-grid{ grid-template-columns:repeat(2,1fr); }
}
/* Fuerza 2 col también en pantallas grandes */
@media (min-width:1100px){
  .cards-grid, .archive-grid{ grid-template-columns:repeat(2,1fr); }
}

/* Elmina cualquier separación extra arriba del sidebar en tags */
.archive-row .archive-sidebar{ margin-top: 0; padding-top: 0; }
.archive-row .archive-sidebar .sticky-widget{ margin-top: 0; }

/* Post-type Tabs (left sidebar) */
.filter-title{ font-size:18px; font-weight:800}
.pt-tabs{ list-style:none; padding:0; display:flex; flex-wrap: wrap; gap:8px; }

.pt-tab__link{
  display:flex; align-items:center; justify-content:space-between;
  gap:10px; padding:10px 12px; border:1px solid #e5e7eb; border-radius:10px;
  text-decoration:none; color:#101828; background:#fff;
}
.pt-tab.is-active .pt-tab__link{
  border-color:#192EEC; background:#eef2ff; color:#0b56d5; font-weight:800;
}
.pt-tab__label{ font-size:14px; font-weight:700; }
.pt-tab__count{
  min-width:26px; padding:0 8px; height:24px; display:inline-flex; align-items:center; justify-content:center;
  border-radius:999px; background:#eef2ff; color:#192EEC; font-weight:800; font-size:12px;
}

/* A11y helper */
.sr-only{ position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Mobile control (hidden on desktop) */
.archive-controls{
  position: sticky; top: 0; z-index: 20;
  display: none; /* default hidden; shown on mobile */
  background:#fff; border-bottom:1px solid #e5e7eb;
  padding:8px 12px;
}
.pt-select{
  width:100%; height:38px; border:1px solid #e5e7eb; border-radius:10px;
  background:#fff; padding:0 12px; font-size:14px; font-weight:600; color:#101828;
}

/* Sidebar visibility */
@media (max-width: 1023px){
  .archive-sidebar{ display:none; content-visibility: hidden;}        /* hide tabs sidebar on mobile */
  .archive-controls{ display:block; }      /* show compact dropdown */
}

/* Desktop: keep current layout; hide dropdown */
@media (min-width: 1024px){
  .archive-controls{ display:none; }
}

/* Loading overlay (from your previous step) */
.tab-panel[data-panel="loop"]{ position:relative; }
.tab-panel[data-panel="loop"].is-loading::after{
  content:""; position:absolute; inset:0;
  background: rgba(0,0,0,0.08); backdrop-filter: blur(1px); pointer-events: all;
}
.tab-panel[data-panel="loop"].is-loading{ min-height: 240px; }


.tab-panel.is-hidden{ display:none; }
.pt-tabs .pt-tab__link{ width:100%; text-align:left; background:transparent; border:1px solid #e5e7eb; padding:10px 12px; border-radius:10px; cursor:pointer; }
.pt-tab.is-active .pt-tab__link{ border-color:#192EEC; background:#eef2ff; font-weight:800; }
.pt-tab__link:hover{color:#002990;border:1px solid #192EEC;}

/* Overlay on the loop panel when loading */
.tab-panel[data-panel="loop"]{
  position: relative;
}
.tab-panel[data-panel="loop"].is-loading::after{
  content:"";
  position:absolute; inset:0;
  background: rgba(0,0,0,0.08); /* grayish veil */
  backdrop-filter: blur(1px);
  pointer-events: all;           /* block clicks while loading */
}
.tab-panel[data-panel="loop"].is-loading{
  /* optional: prevent layout jumps while overlay is up */
  min-height: 240px;
}

.rt-sep{ border:0; border-top:1px solid #e5e7eb; margin:16px 0 12px; }

.related-topics, .pillars { 
  padding: 10px;
  box-shadow: var(--shadow-m);
  border-radius: 8px;
  margin-bottom: 20px;
}

@media (min-width:1023px){
  .hide-desktop{ display: none!important; content-visibility: hidden!important;} 
}
.rt-title{ font-size:18px; font-weight:800; margin:0 0 10px; color:#101828; }

/* Chips/grid that wraps nicely on mobile */
.rt-list, .sb-list{
  list-style:none; padding:0;
  display:flex; flex-wrap:wrap; gap:8px;
  text-transform: capitalize;
}
.rt-item, .sb-item{
  display:inline-flex; align-items:center; gap:6px;
  border:1px solid #e5e7eb; border-radius:16px;
  padding:6px 10px; background:#fff;
}

.sb-item.is-active{
background-color: #002990;
}

.sb-item.is-active > .sb-link{
color: #fff;
text-decoration: none;
}

.rt-link, .sb-link{ text-decoration:none; color:#002990; font-weight:600; }
.rt-link:hover, .sb-link:hover{ text-decoration:underline; }
.rt-count{
  font-size:12px; font-weight:700;
  background:#eef2ff; color:#192EEC; border-radius:999px;
  line-height:1; padding:3px 8px; display:inline-block;
}

/* ===== Sidebar Sticky ===== */

body {
    overflow-x: visible;
}
/* Estilos base del Sidebar */
.archive-sidebar {
    position: relative;
    z-index: 10;
    margin: 0;
}

/* Comportamiento Sticky solo en Desktop */
@media (min-width: 1024px) {
    .archive-sidebar {
        /* Activamos Sticky */
        position: -webkit-sticky; /* Safari */
        position: sticky;
        
        /* Ajusta este valor según la altura de tu cabecera fija (si tienes) + un margen */
        top: 120px; 
        
        /* CRÍTICO: Esto evita que el sidebar se estire al 100% de la altura del grid */
        align-self: start; 
        
        /* Aseguramos que la altura sea automática según el contenido */
        height: auto; 
    }
}

/* Comportamiento Sticky solo en Desktop */
@media (min-width: 1024px) {
    .archive-sidebar {
        /* Activamos Sticky */
        position: -webkit-sticky; /* Safari */
        position: sticky;
        
        /* Distancia desde el tope (ajusta según la altura de tu menú principal si es fijo) */
        top: 100px; 
        
        /* CRÍTICO: En un CSS Grid, el aside se estira al 100% de altura por defecto.
           Si el aside mide lo mismo que el main, no se mueve. 
           fit-content fuerza a que mida solo lo que mide su contenido. */
        height: fit-content; 
    }
}

/* Si tenías estilos anteriores para .sticky-widget, podemos resetearlos o eliminarlos 
   para que no interfieran, ya que ahora el aside es quien manda */
.sticky-widget {
    position: static !important;
    top: auto !important;
}

.sidebar-title {
    display: block;
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-100);
    padding-bottom: 10px;
}

/* ==========================================================================
   Menú Móvil de Taxonomía (Acordeones)
   ========================================================================== */

.mobile-tax-nav {
    display: block;
    margin-bottom: 24px;
}

/* Ocultar en escritorio (>= 1024px, alineado con tu breakpoint de sidebar) */
@media (min-width: 1024px) {
    .mobile-tax-nav {
        display: none !important;
    }
}

/* Estilo del Acordeón */
.mobile-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

/* Botón disparador */
.mobile-accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background-color 0.2s;
}

.mobile-accordion__trigger:hover {
    background-color: #f9fafb;
}

.mobile-accordion__trigger .acc-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-100);
    text-transform: capitalize;
}

.mobile-accordion__trigger .acc-icon {
    width: 20px;
    height: 20px;
    color: var(--text-500);
    transition: transform 0.3s ease;
}

/* Estado Abierto (aplicado vía JS) */
.mobile-accordion.is-open .mobile-accordion__trigger {
    border-bottom: 1px solid #e5e7eb;
    background-color: #f9fafb;
}

.mobile-accordion.is-open .acc-icon {
    transform: rotate(180deg);
    color: var(--brand-blue);
}

/* Contenido del acordeón */
.mobile-accordion__content {
    display: none; /* Oculto por defecto */
    padding: 0;
    background: #fff;
}

.mobile-accordion.is-open .mobile-accordion__content {
    display: block; /* Visible al abrir */
    animation: fadeInDown 0.3s ease;
}

/* Lista de enlaces */
.acc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.acc-item {
    border-bottom: 1px solid #f3f4f6;
}
.acc-item:last-child {
    border-bottom: none;
}

.acc-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-300);
    text-transform: capitalize;
    transition: color 0.2s, background 0.2s;
}

.acc-link:hover {
    background-color: #f9fafb;
    color: var(--brand-blue);
}

.acc-link.is-active {
    color: var(--brand-blue);
    font-weight: 700;
    background-color: #eef2ff;
    border-left: 4px solid var(--brand-blue);
}

.acc-count {
    font-size: 11px;
    font-weight: 700;
    background: #f3f4f6;
    color: var(--text-500);
    padding: 2px 8px;
    border-radius: 99px;
}
.acc-link.is-active .acc-count {
    background: #fff;
    color: var(--brand-blue);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ==========================================================================
   Descripción con "Continuar Leyendo" (Expandable)
   ========================================================================== */

.taxonomy-desc-static {
    margin-bottom: 24px;
    position: relative;
}

.tax-desc-content {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

/* Estado COLAPSADO (cerrado) */
.tax-desc-content.is-collapsed {
    /* Ajusta esta altura según cuánto texto quieres mostrar inicialmente */
    max-height: 250px; 
}

/* Efecto de difuminado (Máscara) */
.tax-desc-content.is-collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px; /* Altura del difuminado */
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none; /* Permite seleccionar texto si queda algo debajo, aunque visualmente tapa */
}

/* Estado EXPANDIDO (abierto) */
.tax-desc-content.is-expanded {
    /* Un valor muy alto para permitir animación CSS, o 'none' si no te importa la animación */
    max-height: fit-content; 
}
/* Quitar la máscara al abrir */
.tax-desc-content.is-expanded::after {
    display: none;
}

/* Contenedor del botón */
.tax-read-more-container {
    text-align: center;
    margin-top: -20px; /* Subir un poco para solapar con el final del gradiente */
    position: relative;
    z-index: 2;
}

/* Estilo del Botón */
.btn-read-more {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: var(--brand-blue);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-read-more:hover {
    background: var(--brand-blue);
    color: #fff;
    border-color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 46, 235, 0.2);
}

/* =========================================
   PRE-FOOTER CORPORATE LOGOS
   ========================================= */

.pre-footer-corporate {
    background-color: #ffffff; /* El color sólido solicitado */
    padding:20px; /* Buen respiro superior e inferior */
    text-align: center;
    border-radius: 8px;
}

/* --- Fila de Logos --- */
.pfc-logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Permite que salten de línea si la pantalla es pequeña */
    gap: 30px 40px; /* Gap vertical de 40px y horizontal de 60px */
    margin-bottom: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pfc-logo-link {
    display: block;
    padding: 10px;
    height: 80px;
    background: white;
    border-radius: 8px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: var(--shadow-m);
}
.pfc-logo-link:hover{
    transform: translateY(-3px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.pfc-logo-img {
    height: 100%;
    width: auto;
    max-width: 180px; /* Evita que logos muy horizontales se descontrolen */
    object-fit: contain;
}

/* --- Divisor con Texto (+250 Companies) --- */
.pfc-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pfc-line {
    flex: 1; /* Esto hace que la línea ocupe todo el espacio disponible */
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2); /* Línea sutil semitransparente */
    max-width: 300px; /* Limita hasta dónde crecen las líneas */
}

.pfc-divider-text {
    font-size: 1.6rem;
    font-weight: 500;
    color: #000000;
    letter-spacing: 0.5px;
}

.pfc-highlight {
    color: #005c66; /* Naranja acento */
    font-weight: 800;
}

/* --- Texto Final --- */
.pfc-desc {
    color: rgba(255, 255, 255, 0.7); /* Blanco al 70% para no competir con el título */
    font-size: 0.95rem;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 768px) {
    .pre-footer-corporate {
        padding: 50px 20px;
    }

    .pfc-logos-row {
        gap: 30px; /* Reducimos el espacio entre logos */
        margin-bottom: 40px;
    }

    .pfc-logo-link {
        height: 32px; /* Logos ligeramente más pequeños */
    }

    .pfc-divider {
        gap: 16px;
    }

    .pfc-divider-text {
        font-size: 1.3rem;
    }

    .pfc-desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* En pantallas muy pequeñas, las líneas laterales se acortan automáticamente gracias al Flexbox,
       pero podemos reducir el tamaño del logo un poco más */
    .pfc-logo-link {
        height: 60px;
    }
}
.iv-promo-card {
  margin: 10px 0px;
}

.iv-promo-content h4, .iv-promo-content p {
  color:white;
  margin:5px;
}

/* ==========================================================================
   CARRUSEL DE SUBCATEGORÍAS (TAXONOMY)
   ========================================================================== */
.tax-subcats-section {
    margin-bottom: 32px;
}

.tax-subcats-carousel {
    position: relative;
    display: flex;
    align-items: center;
}

/* La pista deslizable */
.tax-subcats-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 6px 0; /* Padding para que la sombra del hover no se corte */
    width: 100%;
    
    /* Ocultar barra de scroll nativa */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.tax-subcats-track::-webkit-scrollbar {
    display: none;
}

/* La Tarjeta (Basado en tu imagen) */
.tax-subcat-card {
    flex: 0 0 auto;
    min-width: 180px; /* Ancho mínimo para mantener uniformidad */
    padding: 14px 20px;
    background: #ffffff; /* Ajusta a tu fondo (blanco o azul marino si estás en modo oscuro) */
    border: 1px solid #d1d5db; /* Borde sutil gris */
    border-radius: 8px; /* Esquinas ligeramente redondeadas como la imagen */
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-snap-align: start;
    transition: all 0.3s ease;
}

/* Tipografía de la Tarjeta */
.tsc-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-100);
    margin: 0 0 4px 0;
    text-transform: uppercase; /* Forzamos mayúsculas como en la foto */
    letter-spacing: 0.5px;
}

.tsc-count {
    font-size: 12px;
    color: var(--text-500);
    font-weight: 500;
}

.tax-subcat-card:hover {
    border-color: #005c66;
    box-shadow: 0 0 0 1px #005c66, 0 4px 15px rgba(255, 107, 0, 0.15); /* Efecto Glow */
    transform: translateY(-2px);
}


/* Botones de Navegación */
.subcat-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-100);
    cursor: pointer;
    transition: all 0.2s ease;
}

.subcat-nav-btn:hover {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

.subcat-nav-btn.prev { left: -18px; opacity: 0.5; pointer-events: none; }
.subcat-nav-btn.next { right: -18px; }

/* ==========================================================================
   CARRUSEL DE SUBCATEGORÍAS (CON IMAGEN Y BOTONES DUALES)
   ========================================================================== */

.tax-subcat-card.has-bg {
    position: relative;
    flex: 0 0 auto;
    width: 260px; /* Ancho fijo para las tarjetas */
    height: 180px; /* Más altas para acomodar imagen y botones */
    background: #1E2362; 
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Empuja el contenido hacia abajo */
    overflow: hidden; 
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* La Imagen Física de Fondo */
.tsc-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: calc(100% - 40px); /* Deja espacio para los botones abajo */
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
}

/* El Overlay (Gradiente de abajo hacia arriba) */
.tsc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 19, 68, 0.95) 15%, rgba(0, 19, 68, 0.5) 50%, transparent 100%);
    z-index: 2;
}

/* El Contenedor del Texto */
.tsc-content {
    position: relative;
    z-index: 3;
    padding: 20px 20px 10px 20px; /* Espaciado interno */
}

.tsc-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.tsc-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.tsc-title a:hover {
    color: #008a99;
}

.tsc-count {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    display: block;
}

/* --- ZONA DE BOTONES --- */
.tsc-actions {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: stretch;
    height: 40px; /* Altura de la barra de botones */
    background: rgba(255, 255, 255, 0.1); /* Fondo base de la barra */
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tsc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    padding: 0 10px;
}

.tsc-btn-primary {
    flex: 1; /* El botón Explore toma 1 parte */
    background: rgba(0, 41, 144, 0.6); /* Azul corporativo translúcido */
}

.tsc-btn-secondary {
    flex: 2; /* El botón Video toma 2 partes (es más largo) */
    background: rgba(0, 41, 144, 0.6);
}

.tsc-btn:hover {
    background: #008a99;

}

/* Divisor entre botones */
.tsc-btn-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* --- EFECTOS HOVER DE LA TARJETA --- */
.tax-subcat-card.has-bg:hover {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.tax-subcat-card.has-bg:hover .tsc-bg-img {
    transform: scale(1.05); 
}
/* Responsive */
@media (max-width: 1024px) {
    .subcat-nav-btn { display: none; } /* En móvil y tablet dejamos scroll táctil */
    .tax-subcats-track { padding-right: 20px; }
}
/* ==========================================================================
   CINTILLO DIAGONAL (KNOWLEDGE BANNER)
   ========================================================================== */

.knowledge-banner-section {
    margin-bottom: 40px; /* Margen inferior para separarlo de la siguiente sección */
}

/* El Wrapper recorta los bordes inclinados exteriores para que sea un rectángulo perfecto */
.k-banner-wrapper {
    overflow: hidden;
    border-radius: 8px; /* Opcional: bordes ligeramente redondeados */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Sutil sombra de profundidad */
    width: 100%;
}

/* El Track utiliza flexbox y márgenes negativos para ocultar el excedente de la inclinación */
.k-banner-track {
    display: flex;
    margin: 0 -20px; /* El secreto para esconder las puntas asimétricas de los extremos */
}

/* Las cajas inclinadas */
.kb-item {
    flex: 1; /* Ocupan exactamente el mismo ancho las tres */
    transform: skewX(-25deg); /* EL CORTE DIAGONAL */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 30px;
    text-decoration: none;
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Colores de fondo de la imagen */
.kb-blue { background: #003366; }
.kb-green { background: #00454d; }
.kb-gray { background: #6B7280; }

/* El Texto (Se endereza invirtiendo los grados) */
.kb-text {
    transform: skewX(25deg); /* DES-HACEMOS LA INCLINACIÓN */
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: capitalize;
    white-space: nowrap; /* Evita que el texto salte de línea */
    text-shadow: 1px 3px 11px rgb(0 0 0); /* Mejora la lectura */
    transition: transform 0.2s ease;
}

/* Efecto sutil en el texto al pasar el ratón */
.kb-item:hover .kb-text {
    text-decoration: underline;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1024px) {
    .kb-text {
        font-size: 1rem; /* Achicamos texto en tablets */
    }
}

@media (max-width: 768px) {
    /* UX CRÍTICA: En móvil no hay ancho suficiente para las diagonales sin apretar el texto. 
       Las convertimos en bloques verticales apilados elegantemente */
    .k-banner-track {
        flex-direction: column;
        margin: 0; /* Quitamos márgenes negativos */
    }
    
    .kb-item {
        transform: skewX(0); /* Quitamos la inclinación */
        padding: 18px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .kb-item:last-child {
        border-bottom: none;
    }
    
    .kb-text {
        transform: skewX(0); /* Quitamos la des-inclinación */
        white-space: normal; /* Permitimos dos líneas si la pantalla es ultra estrecha */
    }
    
    .kb-item:hover .kb-text {
        transform: scale(1.05); /* Mantenemos el zoom sin el skew */
    }
}

/* --- Tarjeta Promocional (Columna 4) --- */
.iv-promo-card {
    display: flex; /* La partimos a la mitad (Imagen izquierda, texto derecha) */
    background: var(--color-navy);
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #002d33 0%, #1E2362 100%); /* Azul corporativo */

}

.iv-promo-img {
    width: 35%; /* Ancho de la franja de imagen lateral */
    /* Te sugiero reemplazar esta URL por una imagen real de tu biblioteca de medios */
    background: url('https://cdn.inspenet.com/placeholder-800x450.webp') center/cover;
}

.iv-promo-content {
    width: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.iv-promo-content h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 16px 0;
}

.iv-promo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.iv-promo-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-explore-tv, .btn-explore-tv-sec {
    background-color: #005c66; 
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    transition: var(--transition);
    align-self: flex-start;
    margin: 5px 0px;
}
.btn-explore-tv-sec {
    background-color: var(--accent-blue); 
    border-style: solid;
}
.btn-explore-tv:hover, .btn-explore-tv-sec:hover {
    background: #002d33;
    border-color: #002d33;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #1E236278;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1024px) {
    .iv-grid {
        /* En tablets pasamos a 2 columnas */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .iv-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .iv-grid {
        /* En mÃ³viles pasamos a 1 columna */
        grid-template-columns: 1fr;
    }

    .iv-promo-card {
        /* En mÃ³vil, la tarjeta promo puede cambiar a vertical para leerse mejor */
        flex-direction: column;
    }

    .iv-promo-img {
        width: 100%;
        height: 120px;
    }

    .iv-promo-content {
        width: 100%;
    }
}

/* =========================================
   COMPANIES LEADING THIS SPACE (CORPORATE)
   ========================================= */

.companies-leading-section {
    padding: 20px 20px 60px; /* Padding top menor porque viene debajo de la otra secciÃ³n */
    background-color: var(--color-gray-bg); 
}

/* Wrapper principal del carrusel */
.comp-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* El Track (Pista deslizante) con CSS Scroll Snap */
.comp-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 0; /* Espacio para las sombras de las tarjetas */
    width: 100%;
    
    /* Ocultar barra de scroll para un look limpio */
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;  /* Firefox */
}

.comp-carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Tarjeta individual del logo corporativo */
.comp-card {
    flex: 0 0 220px; /* Ancho fijo de la tarjeta. No se encoge (0), no crece (0) */
    height: 100px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    scroll-snap-align: start; /* El navegador "imanta" la tarjeta al inicio del contenedor */
    box-shadow: var(--shadow-m);
    border: 1px solid rgba(0,0,0,0.03);
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* El Logo */
.comp-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* CRÃTICO: Mantiene la proporciÃ³n del logo dentro de la caja */
    transition: filter 0.3s ease;
}

/* Al pasar el mouse, el logo recupera su color original */

/* Si no hay logo, muestra el texto centrado */
.comp-no-logo {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-navy);
    text-align: center;
}

/* --- Botones de NavegaciÃ³n (Flechas) --- */
.comp-prev-btn,
.comp-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centrado vertical exacto */
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-navy);
    cursor: pointer;
    transition: all 0.3s ease;
}

.comp-prev-btn:hover,
.comp-next-btn:hover {
    background: var(--color-navy);
    color: #ffffff;
    /* Al hacer hover, debemos mantener el translateY para que no salte de posiciÃ³n */
    transform: translateY(-50%) scale(1.05); 
}

/* Posiciones individuales */
.comp-prev-btn {
    left: -20px;
    /* Arranca deshabilitada visualmente porque el carrusel empieza en la posiciÃ³n 0 */
    opacity: 0.5;
    pointer-events: none; 
}

.comp-next-btn {
    right: -20px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .comp-card {
        flex: 0 0 180px;
        height: 80px;
    }
}

@media (max-width: 768px) {
    .comp-prev-btn,
    .comp-next-btn {
        display: none; /* Ocultamos ambas en mÃ³vil (swipe tÃ¡ctil nativo) */
    }
    
    .comp-carousel-track {
        gap: 12px;
        padding-right: 20px; 
    }

    .comp-card {
        flex: 0 0 150px; 
        height: 70px;
    }
}

/* =========================================
   INDUSTRY VOICES (VIDEO TV SECTION)
   ========================================= */

.industry-voices-section {
    padding:20px;
    background-color: #fff;
}

.container-iv {
    max-width: 1240px; /* Alineado con tu grid principal */
    margin: 0 auto;
}

/* --- Header de la SecciÃ³n --- */
.iv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.iv-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.iv-accent-line {
    width: 4px;
    height: 24px;
    background-color: #005c66;
    border-radius: 2px;
}

.iv-title-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    margin: 0;
    text-transform: uppercase;
}

.iv-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #0f0f10;
}

.btn-watch-tv {
    background-color: var(--color-navy);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.btn-watch-tv:hover {
    background-color: #1E2362;
    color: #0e1325;
    transform: scale(1.02);
}

/* --- Grid Principal --- */
.iv-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Columnas perfectas */
    gap: 24px;
}

/* --- Tarjetas de Video --- */
.iv-video-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.iv-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.iv-thumb-wrapper {
    position: relative;
    height: 100px;
    overflow: hidden;
}

.iv-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.iv-video-card:hover .iv-thumb {
    transform: scale(1.05);
}

/* Icono de Play */
.iv-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 19, 68, 0.7);
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.iv-play-icon svg {
    width: 20px;
    height: 20px;
    margin-left: 3px; /* Centrar Ã³pticamente el triÃ¡ngulo */
}

.iv-video-card:hover .iv-play-icon {
    background: var(--color-blue);
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Badge Superpuesto (CategorÃ­a) */
.iv-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #ffffff;
    color: var(--color-navy);
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Contenido de la Tarjeta */
.iv-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.iv-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iv-card-tag {
    font-size: 0.8rem;
    color: #6B7280;
    margin: 0 0 16px 0;
}

/* Info de Autor */
.iv-author-box {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.iv-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.iv-author-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    display: block;
}

/* ==========================================================================
   RECUADRO PROMOCIONAL: ÚLTIMO EVENTO
   ========================================================================== */

.promo-event-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #1E2362 0%, #002d33 100%); /* Azul corporativo */
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
    gap: 16px;
}

.peb-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.peb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #80a0b3;
    letter-spacing: 0.5px;
}

.peb-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    letter-spacing: 0.5px;
}

.peb-btn {
    display: inline-flex;
    align-items: center;
    background: var(--accent-blue);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.peb-btn:hover {
    background: #002d33;
    border-color: #002d33;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px #1E236278;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .promo-event-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px;
    }
    
    .peb-btn {
        width: 100%; /* Botón ancho completo en móvil */
        justify-content: center;
    }
}

/* =========================================
   NEWSLETTER SUBSCRIPTION BANNER
   ========================================= */

.newsletter-banner-section {
    padding: 20px 0px; /* Separación inferior */
}

.nl-banner-wrapper {
    display: flex;
    position: relative;
    background-color: var(--color-navy); /* Azul oscuro base */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 19, 68, 0.15);
}

/* Imagen de fondo con opacidad (Reemplaza la URL por tu imagen real de maquinaria/tecnología) */
.nl-bg-overlay {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Muy transparente para no afectar la lectura */
    mix-blend-mode: luminosity; /* Efecto elegante de fusión con el azul */
    z-index: 0;
}

/* --- Columna Izquierda (Formulario) --- */
.nl-content-left {
    position: relative;
    z-index: 1;
    flex: 1; /* Ocupa el espacio restante (aprox 60-65%) */
    padding: 40px 50px;
}

.nl-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.nl-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nl-titles h3 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.nl-titles p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0;
}

/* --- Columna Derecha (Beneficios) --- */
.nl-content-right {
    position: relative;
    z-index: 1;
    flex: 0 0 35%; /* Ancho fijo del 35% */
    padding: 40px 50px;
    border-left: 1px solid rgba(255, 255, 255, 0.15); /* La línea separadora */
}

.nl-list-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.nl-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nl-benefits-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.4;
}

.nl-benefits-list li svg {
    flex-shrink: 0;
    margin-top: 2px; /* Alineación óptica con el texto */
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1024px) {
    .nl-content-left {
        padding: 30px;
    }
    
    .nl-content-right {
        padding: 30px;
        flex: 0 0 40%;
    }
}

@media (max-width: 768px) {
    .nl-banner-wrapper {
        flex-direction: column; /* Apila las columnas */
    }

    .nl-content-right {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15); /* La línea pasa a ser horizontal */
        padding: 30px;
    }

    .nl-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 480px) {
    /* En teléfonos muy pequeños, apilamos el botón para que no se achique el input */
    .nl-input-group {
        flex-direction: column;
        border-radius: 8px;
        background: transparent;
        box-shadow: none;
        padding: 0;
        gap: 10px;
    }

    .nl-input-group input {
        background: #ffffff;
        border-radius: 8px;
        padding: 14px 20px;
    }

    .btn-subscribe {
        width: 100%;
        border-radius: 8px;
    }
}

/* ==========================================================================
   CLÚSTER HOMÓLOGO (GRID ARTÍCULOS + CTA + TV)
   ========================================================================== */

.homologous-cluster-section {
    max-width: 1300px;
    margin: 5px auto;
    padding: 20px;
    background: #F7F9FC;
    border-radius: 8px;
}

.cluster-block {
    margin-bottom: 40px;
}

.cluster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch; /* Obliga a que la caja CTA mida lo mismo que los artículos */
}
.section-header {
    text-align: left;
}
/* --- TARJETA CTA (3era Columna) --- */
.cluster-cta-card {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-blue-dark) 100%);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 19, 68, 0.15);
    text-align: center;
    color: var(--news-white);
    height: 100%;
}

.cta-icon {
    color: #1E2362; /* Naranja corporativo */
    margin-bottom: 20px;
}

.cta-content h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1E2362;
    margin: 0 0 15px 0;
    line-height: 1;
}

.cta-content p {
    font-size: 0.95rem;
    color: #1E2362;
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.cta-btn {
    display: inline-block;
    background-color: #1E2362;
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    width: 100%;
}

.cta-btn:hover {
    background-color: #1E2362;
    transform: translateY(-3px);
    box-shadow: var(--shadow-m);
}

/* --- TARJETAS DE VIDEO (Inspenet TV) --- */
.cluster-video-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    height: 100%;
}

.cluster-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.cv-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.cv-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cluster-video-card:hover .cv-thumb img {
    transform: scale(1.05);
}

.cv-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 19, 68, 0.8);
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.cv-play svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
}

.cluster-video-card:hover .cv-play {
    background: var(--color-blue);
    transform: translate(-50%, -50%) scale(1.1);
}

.cv-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--color-blue);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
}

.cv-body {
    padding: 20px;
    flex: 1;
}

.cv-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cluster-video-card:hover .cv-title {
    color: var(--color-blue);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .cluster-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
    }
    
    /* La tarjeta CTA ocupa todo el ancho de la siguiente fila en tablet */
    .cluster-cta-card {
        grid-column: 1 / -1; 
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .cta-icon {
        margin: 0 20px 0 0;
    }
    
    .cta-content p {
        margin-bottom: 0;
    }

    .cta-btn {
        width: auto;
        margin-left: 30px;
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .cluster-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }

    .cluster-cta-card {
        flex-direction: column;
        text-align: center;
    }

    .cta-icon {
        margin: 0 auto 15px auto;
    }

    .cta-btn {
        margin-left: 0;
        margin-top: 20px;
        width: 100%;
    }
}
.article-card-new {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.article-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.ac-thumb-wrapper {
    position: relative;
    height: 130px;
    overflow: hidden;
}

.ac-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card-new:hover .ac-thumb {
    transform: scale(1.05);
}

.ac-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ac-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    align-self: flex-start;
}

/* Dynamic Pill Colors */
.ac-pill.energia {
    background-color: #001345;
}

.ac-pill.integridad {
    background-color: #8A2BE2;
}

.ac-pill.industria {
    background-color: #10B981;
}

.ac-pill.gestion {
    background-color: #F59E0B;
}

/* Default */
.ac-pill {
    background-color: var(--color-blue);
}

.ac-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.4;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-new:hover .ac-title {
    color: var(--color-blue);
}

.ac-excerpt {
    font-size: 0.9rem;
    color: #6B7280;
    line-height: 1.5;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ajustes para el footer de la tarjeta (Autor + Fecha) */
.ac-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f0f0f0; /* Opcional: una línea sutil separadora */
    padding-top: 15px; /* Espacio extra si pones borde */
}

.ac-meta-info {
    display: flex;
    flex-direction: column; /* Apilamos Autor arriba, Fecha abajo para limpieza */
    gap: 2px;
    font-size: 0.8rem;
    line-height: 1.3;
}

.ac-author {
    font-weight: 700;
    color: var(--color-navy); /* O el color principal de texto */
    text-transform: capitalize;
}

.ac-date {
    color: #444953;
    font-size: 0.75rem;
}

.ac-sep {
    display: none; /* Ocultamos el punto si usamos flex-column */
}

/* OPCIONAL: Si prefieres Autor y Fecha en una sola línea (Autor • Fecha) */
/* Descomenta esto si prefieres una sola línea:
.ac-meta-info {
    flex-direction: row;
    align-items: center;
    gap: 6px;
}
.ac-sep {
    display: inline-block;
    color: #ccc;
}
*/

.ac-arrow {
    color: var(--color-blue);
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.article-card-new:hover .ac-arrow {
    transform: translateX(5px);
}

/* ==========================================================================
   TARJETAS DE EVENTOS (CLUSTER HOMÓLOGO)
   ========================================================================== */

.cluster-event-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.cluster-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #1E2362; /* Borde naranja al pasar el mouse */
}

.ce-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.ce-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cluster-event-card:hover .ce-thumb img {
    transform: scale(1.05); /* Efecto zoom en la imagen */
}

/* Insignia de Fecha (Estilo Calendario) */
.ce-date-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #1E2362; /* Naranja corporativo */
    color: #ffffff;
    text-align: center;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    z-index: 2;
}

.ce-day {
    font-size: 1.2rem;
    font-weight: 900;
}

.ce-month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cuerpo de la tarjeta */
.ce-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ce-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-navy, #1E2362); /* Fallback a azul marino */
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Trunca el título a 2 líneas si es muy largo */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cluster-event-card:hover .ce-title {
    color: #1E2362;
}

/* ==========================================================================
   TARJETAS DE TAXONOMÍA (Tópicos en Clúster)
   ========================================================================== */

.cluster-tax-card {
    background: #1E2362;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    height: 100%;
    min-height: 260px; /* Altura imponente para las categorías */
    border: 1px solid rgba(255,255,255,0.1);
}

.cluster-tax-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 19, 68, 0.2);
    border-color: #1E2362; /* Borde de acento */
}

/* Contenedor de la imagen de fondo */
.ctc-thumb {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ctc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cluster-tax-card:hover .ctc-thumb img {
    transform: scale(1.08); /* Suave zoom in */
}

/* Oscurecimiento Inferior para asegurar legibilidad */
.ctc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 19, 68, 0.95) 0%, rgba(0, 19, 68, 0.4) 60%, transparent 100%);
}

/* Textos sobre la tarjeta */
.ctc-body {
    position: relative;
    z-index: 2;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Empuja todo hacia abajo */
    height: 100%;
}

.ctc-badge {
    display: inline-block;
    background: #1E2362;
    color: #fff;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 8px;
    align-self: flex-start;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.ctc-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: capitalize;
    margin: 0 0 10px 0;
    line-height: 1.2;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
    transition: color 0.3s ease;
}

.cluster-tax-card:hover .ctc-title {
    color: #008a99;
}

.ctc-link-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
}

.cluster-tax-card:hover .ctc-link-text {
    opacity: 1;
    transform: translateX(4px); /* La flecha se mueve sutilmente a la derecha */
    color: #ffffff;
}

/* ==========================================================================
   BLOQUE RELATED NEWS (1 post 16:9 + CTA)
   ========================================================================== */

.related-news-section {
    max-width: 1300px;
    margin: 0 auto 32px;
    padding: 0 20px;
}

/* Reutiliza .cluster-block y .section-header ya definidos arriba */

/* --- Tarjeta principal (horizontal, imagen 16:9) --- */
.related-news-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 19, 68, 0.08);
    border: 1px solid #e8edf5;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    margin-bottom: 20px;
}

.related-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 19, 68, 0.13);
    border-color: var(--color-blue, #1E2362);
}

/* --- Columna imagen (16:9 forzado) --- */
.rnc-thumb {
    position: relative;
    width: 100%;
    /* Truco padding-top 16:9 */
    padding-top: 56.25%;
    overflow: hidden;
    background: #0d1340;
}

.rnc-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.related-news-card:hover .rnc-thumb img {
    transform: scale(1.06);
}

/* Badge superpuesto */
.rnc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-blue, #1E2362);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-radius: 6px;
    z-index: 2;
}

/* --- Columna contenido --- */
.rnc-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 36px;
    background: #ffffff;
}

.rnc-date {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-blue, #1E2362);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.rnc-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-navy, #001344);
    line-height: 1.3;
    margin: 0 0 14px;
    transition: color 0.25s ease;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-card:hover .rnc-title {
    color: var(--color-blue, #1E2362);
}

.rnc-excerpt {
    font-size: 0.92rem;
    color: #55606e;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- CTA Button --- */
.rnc-cta-wrap {
    text-align: center;
    margin-top: 4px;
}

.rnc-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-navy, #001344);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    padding: 13px 28px;
    border-radius: 8px;
    letter-spacing: 0.3px;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.rnc-cta-btn:hover {
    background: var(--color-blue, #1E2362);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(30, 35, 98, 0.28);
    color: #ffffff;
}

/* ==========================================================================
   RELATED NEWS — RESPONSIVE
   ========================================================================== */

/* Tablet (≤ 1024px): columnas se comprimen pero mantienen horizontal */
@media (max-width: 1024px) {
    .related-news-card {
        grid-template-columns: 1fr 1fr;
    }

    .rnc-body {
        padding: 24px 28px;
    }

    .rnc-title {
        font-size: 1.2rem;
    }
}

/* Mobile (≤ 768px): apila imagen arriba, contenido abajo */
@media (max-width: 768px) {
    .related-news-card {
        grid-template-columns: 1fr;
    }

    /* En móvil el thumb vuelve a ser un bloque de altura fija (16:9 relativo al 100vw) */
    .rnc-thumb {
        padding-top: 56.25%; /* sigue siendo 16:9 pero ahora full-width */
    }

    .rnc-body {
        padding: 22px 20px;
    }

    .rnc-title {
        font-size: 1.1rem;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .rnc-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Mobile pequeño (≤ 480px) */
@media (max-width: 480px) {
    .related-news-section {
        padding: 0 12px;
    }

    .rnc-body {
        padding: 18px 16px;
    }

    .rnc-title {
        font-size: 1rem;
    }

    .rnc-excerpt {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}
