/* ==========================================================================
   CANARIAS TRANSPORTE - ESTILOS EDITORIALES NATIVOS
   Diseño editorial limpio, sobrio (Ref: naucher.com), responsive móvil-primero.
   Sin librerías pesadas, 0 dependencias externas, privacidad RGPD.
   ========================================================================== */

:root {
  --color-primary: #262626;        /* Gris neutro oscuro profesional, cero azul */
  --color-primary-dark: #171717;
  --color-primary-light: #404040;
  --color-accent: #525252;         /* Gris medio neutro */
  --color-accent-hover: #171717;
  --color-corp-red: #e11d48;       /* Toque sutil */
  --color-text-main: #262626;
  --color-text-muted: #525252;
  --color-text-light: #737373;
  --color-bg-page: #ffffff;
  --color-bg-card: #ffffff;
  --color-border: #e5e5e5;
  --color-border-dark: #d4d4d4;
  
  --font-serif: "Iowan Old Style", "Apple Garamond", "Baskerville", "Times New Roman", "Droid Serif", Times, Source Serif Pro, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --max-width: 1200px;
  --banner-width: 980px;
  --banner-height: 202px;
  --transition: all 0.2s ease-in-out;
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
  word-break: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* --------------------------------------------------------------------------
   1. TOPBAR BLANCA CON MÁS ESPACIO: FECHA A LA IZQUIERDA Y REDES A LA DERECHA
   -------------------------------------------------------------------------- */
.top-bar-social {
  background-color: #ffffff;
  padding: 1.6rem 0 1.25rem 0;
  border-bottom: 1.5px solid #cbd5e1; /* Línea más marcada */
}

.top-bar-social-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-date-display {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #475569; /* Gris nítido */
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.top-bar-social-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  color: #1e293b;
  transform: translateY(-1px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   2. CABECERA CON SOMBRA INTENSA QUE MARCA LA DIFERENCIA Y EFECTO DE ELEVACIÓN
   -------------------------------------------------------------------------- */
.site-header {
  background-color: #ffffff;
  padding: 2.25rem 0 0 0;
  position: relative;
  z-index: 30; /* Claramente por encima */
  border-bottom: 1.5px solid #94a3b8; /* Línea horizontal inferior bien marcada */
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.16), 0 6px 12px -3px rgba(15, 23, 42, 0.1); /* Sombra intensa que destaca la elevación */
}

.header-branding {
  display: flex;
  justify-content: center; /* LOGO EN EL CENTRO */
  align-items: center;
  margin-bottom: 1rem; /* Margen ajustado para que la línea quede justo debajo del logo */
  text-align: center;
}

.logo-wrapper {
  display: inline-block;
  max-width: 800px;
  width: 100%;
}

.logo-wrapper img {
  width: 100%;
  max-height: 180px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   3. NAVEGACIÓN (LÍNEA SUPERIOR MÁS MARCADA JUSTO DEBAJO DEL LOGO)
   -------------------------------------------------------------------------- */
.main-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #94a3b8; /* Línea bien marcada justo debajo del logo */
  padding: 0.55rem 0 0.65rem 0;
  gap: 1rem;
}

/* Botón Hamburguesa para móviles y tablets (oculto en escritorio) */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
  padding: 0.45rem;
  margin: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 1001;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-nav-toggle:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #334155;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav-toggle.is-active {
  background-color: #0f172a;
  border-color: #0f172a;
}

.mobile-nav-toggle.is-active .hamburger-bar {
  background-color: #ffffff;
}

.mobile-nav-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-nav-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-menu > li > a,
.nav-dropdown-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: #334155; /* Gris elegante que resalta en fondo claro */
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

/* Detalle sutil estético interior: reflejo satinado superior limpio (sin rayas) */
.nav-menu > li > a::before,
.nav-dropdown-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 60% at 50% 0%,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0) 75%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Detalle sutil estético inferior: fina barra de acento centrada dentro del card */
.nav-menu > li > a::after,
.nav-dropdown-btn::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2.5px;
  border-radius: 2px 2px 0 0;
  background-color: var(--color-nav-accent, var(--color-primary, #AA080E));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active,
.nav-dropdown-btn:hover,
.nav-dropdown-btn.active,
.nav-dropdown:hover .nav-dropdown-btn {
  color: var(--color-nav-hover-text, var(--color-primary, #AA080E));
  background: var(--color-nav-hover-bg, var(--color-fondo-suave, #fff5f5));
  border-color: var(--color-nav-hover-border, var(--color-primary, #AA080E));
  box-shadow: 0 3px 10px -2px var(--color-nav-hover-shadow, rgba(15, 23, 42, 0.14)),
              inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.nav-menu > li > a:hover::before,
.nav-menu > li > a.active::before,
.nav-dropdown-btn:hover::before,
.nav-dropdown-btn.active::before,
.nav-dropdown:hover .nav-dropdown-btn::before {
  opacity: 1;
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after,
.nav-dropdown-btn:hover::after,
.nav-dropdown-btn.active::after,
.nav-dropdown:hover .nav-dropdown-btn::after {
  transform: scaleX(1);
}

/* MENÚ DESPLEGABLE ESTÉTICO PARA NOTICIAS */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn svg {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-btn svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 14px 28px -4px rgba(15, 23, 42, 0.12), 0 10px 10px -5px rgba(15, 23, 42, 0.06);
  padding: 0.5rem 0;
  z-index: 1000;
  list-style: none;
  animation: fadeInMenu 0.15s ease-out;
}

@keyframes fadeInMenu {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.nav-dropdown-menu li a:hover {
  background: var(--color-nav-hover-bg, var(--color-fondo-suave, #fff5f5));
  color: var(--color-nav-hover-text, var(--color-primary, #AA080E));
  border-left-color: var(--color-nav-hover-border, var(--color-primary, #AA080E));
  padding-left: 1.45rem;
}

.nav-dropdown-menu li a .cat-arrow {
  font-size: 0.8rem;
  color: #94a3b8;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.nav-dropdown-menu li a:hover .cat-arrow {
  opacity: 1;
  color: #334155;
}

/* Enlace a Hemeroteca en la parte superior del desplegable */
.nav-dropdown-menu li a.nav-dropdown-hemeroteca {
  font-weight: 700;
  color: #334155;
  background-color: #f8fafc;
}

.nav-dropdown-menu li a.nav-dropdown-hemeroteca:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

/* Línea horizontal separadora */
.nav-dropdown-divider {
  height: 1px;
  background-color: #e2e8f0;
  margin: 0.4rem 0.75rem;
}

/* --------------------------------------------------------------------------
   4. BUSCADOR ELEGANTE (LÍNEA HORIZONTAL QUE DESAPARECE AL ESCRIBIR + LUPA)
   -------------------------------------------------------------------------- */
.header-search-form {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.header-search-input {
  width: 170px;
  padding: 0.4rem 1.85rem 0.4rem 0.25rem;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid #64748b; /* Línea horizontal gris elegante */
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.header-search-input::placeholder {
  color: #64748b;
  font-weight: 500;
  font-size: 0.8125rem;
}

/* CUANDO EMPIEZA A ESCRIBIR (no está vacío) o tiene foco activo, DESAPARECE LA LÍNEA */
.header-search-input:not(:placeholder-shown) {
  border-bottom-color: transparent !important;
  background: #f8fafc;
  border-radius: 4px;
  padding-left: 0.5rem;
}

.header-search-input:focus {
  width: 170px;
}

.header-search-btn {
  position: absolute;
  right: 2px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.header-search-btn:hover {
  color: #0f172a;
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   RESPONSIVE NAVIGATION (TABLET Y MÓVIL <= 1024px, PORTÁTIL 1025px - 1280px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .mobile-nav-toggle {
    display: flex;
  }

  .main-nav-container {
    position: relative;
    padding: 0.65rem 0;
    gap: 0.75rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: 2.5px solid var(--color-primary, #334155);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 18px 36px -6px rgba(15, 23, 42, 0.22);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0;
    z-index: 999;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu.is-open {
    display: flex;
    animation: fadeInMenu 0.2s ease-out;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu > li > a,
  .nav-dropdown-btn {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 0;
    border: none;
    border-left: 3px solid transparent;
    box-sizing: border-box;
    min-height: 46px;
    transform: none !important;
    box-shadow: none !important;
  }

  .nav-menu > li > a:hover,
  .nav-menu > li > a.active,
  .nav-dropdown-btn:hover,
  .nav-dropdown-btn.active {
    border-left-color: var(--color-nav-hover-border, var(--color-primary, #AA080E));
  }

  .nav-menu > li > a::after,
  .nav-dropdown-btn::after {
    display: none;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-left: 3.5px solid var(--color-primary, #334155);
    background: #f8fafc;
    border-radius: 0;
    padding: 0.25rem 0;
    margin: 0;
    animation: none;
  }

  .nav-dropdown:hover .nav-dropdown-menu {
    display: none; /* Desactivar hover en táctil */
  }

  .nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown.is-open .nav-dropdown-btn svg {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu li a {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .header-search-form {
    margin-left: auto;
    max-width: 220px;
    width: auto;
  }

  .header-search-input {
    width: 130px;
  }

  .header-search-input:focus {
    width: 160px;
  }
}

/* Portátiles estándar (1025px a 1280px) */
@media (min-width: 1025px) and (max-width: 1280px) {
  .nav-menu {
    gap: 0.15rem;
  }

  .nav-menu > li > a,
  .nav-dropdown-btn {
    padding: 0.48rem 0.55rem;
    font-size: 0.8125rem;
    letter-spacing: 0.2px;
  }

  .header-search-input {
    width: 130px;
  }

  .header-search-input:focus {
    width: 150px;
  }
}

/* --------------------------------------------------------------------------
   5. IMAGEN HORIZONTAL DE LADO A LADO (MÁS ABAJO Y CON ESPACIO INFERIOR)
   -------------------------------------------------------------------------- */
.hero-fullwidth-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 42px; /* Portada considerablemente más abajo de la sombra */
  margin-bottom: 3.5rem; /* Espacio generoso antes de Actualidad */
  overflow: hidden;
  background-color: transparent;
}

.hero-fullwidth-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   3. SECCIONES EDITORIALES CON FRANJAS A IZQUIERDA Y DERECHA EQUILIBRADAS
   -------------------------------------------------------------------------- */
.featured-section {
  padding: 1.5rem 0 3rem 0; /* Más baja y espaciosa */
}

.section-label-balanced {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
  width: 100%;
}

.section-label-balanced h2 {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--color-section-heading, #262626);
  -webkit-text-stroke: var(--text-stroke-heading, 0px transparent);
  text-shadow: var(--text-shadow-heading, none);
  white-space: nowrap;
}

/* Franja izquierda corta (deja el título un poco a la izquierda del centro) */
.section-line-left {
  width: 70px;
  min-width: 45px;
  height: 2px;
  background-color: var(--color-primary, #AA080E);
}

/* Franja derecha que se expande simétricamente al contenido */
.section-line-right {
  flex-grow: 1;
  height: 2px;
  background-color: var(--color-primary, #AA080E);
}

/* Sección Actualidad — full-width, fuera del container */
.featured-section-fullwidth {
  width: 100%;
  padding: 2.5rem 0 2.5rem 0;
  background: #fff;
}

.featured-section-fullwidth .section-label-balanced {
  margin-bottom: 1.75rem;
}

/* Carrusel limpio sin bordes ni cajas */
.carousel-container {
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 4.5rem; /* Espacio lateral para que las flechas queden por fuera de las noticias */
  max-width: 1680px; /* Acomoda el margen exterior con simetría */
  margin: 0 auto;
}

/* Botón circular borroso con flecha en medio (Glassmorphism) POR FUERA de la noticia */
.carousel-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
  opacity: 0.95;
}

.carousel-arrow-btn:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-50%) scale(1.1);
  opacity: 1;
}

.carousel-arrow-btn.prev {
  left: 0.85rem; /* Posicionado por fuera de las tarjetas */
}

.carousel-arrow-btn.next {
  right: 0.85rem; /* Posicionado por fuera de las tarjetas */
}

/* Oculto cuando no se puede avanzar en esa dirección */
.carousel-arrow-btn.hidden {
  display: none !important;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 0;
}

@media (min-width: 768px) {
  .carousel-slide {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem; /* Separación amplia simétrica */
  }
}

.carousel-card-clean {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel-card-clean:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
}

.carousel-clean-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.carousel-clean-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* Formato panorámico horizontal más largo para no cortar fotos horizontales */
  min-height: 440px; /* Agrandado proporcionalmente */
  overflow: hidden;
}

.carousel-clean-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* El hover no debe ampliar la imagen */
.carousel-card-clean:hover .carousel-clean-img-wrap img {
  transform: none;
}

/* Degradado oscuro para que el texto blanco se lea perfecto sobre cualquier imagen */
.carousel-clean-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4.5rem 2rem 2rem 2rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.6) 35%, rgba(15, 23, 42, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.65rem;
  transition: padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-clean-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  backdrop-filter: blur(6px);
}

.carousel-clean-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* Subtítulo: oculto por defecto, emerge desde abajo en hover */
.carousel-clean-subtitle {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 400;
  margin: 0;
  max-height: 0;
  opacity: 0;
  transform: translateY(18px);
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-card-clean:hover .carousel-clean-subtitle {
  max-height: 90px;
  opacity: 0.95;
  transform: translateY(0);
}

.carousel-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.carousel-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background-color: #e2e8f0;
  margin-bottom: 0.75rem;
}

.carousel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-card:hover .carousel-img-wrap img {
  transform: scale(1.03);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.badge-cat {
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.card-date {
  color: var(--color-text-muted);
  font-weight: 400;
}

.carousel-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-main);
  margin-bottom: 0.5rem;
}

.carousel-title a:hover {
  color: var(--color-accent);
}

.carousel-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-top: auto;
}

/* Controles de carrusel */
.carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.25rem;
  background-color: #fafbfc;
  border-top: 1px solid var(--color-border);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-border-dark);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: var(--color-primary);
  width: 26px;
  border-radius: 5px;
}

.carousel-btn {
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.carousel-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   4. BANNERS PUBLICITARIOS (Formato exacto 980 x 202)
   -------------------------------------------------------------------------- */
.banner-ad-container {
  width: 100%;
  max-width: var(--banner-width);
  margin: 1.5rem auto;
  text-align: center;
}

.banner-ad-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--color-text-light);
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.banner-ad-box {
  width: 100%;
  aspect-ratio: 980 / 202;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--color-border-dark);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-decoration: none;
}

.banner-ad-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-placeholder-content {
  color: #ffffff;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.banner-placeholder-tag {
  background-color: #eab308;
  color: #000;
  font-size: 0.6875rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.banner-placeholder-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.banner-placeholder-subtitle {
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   5. CONTENIDO PRINCIPAL: NOTICIAS Y COLUMNA
   -------------------------------------------------------------------------- */
/* Envoltorio extendido sincronizado exactamente con el ancho y márgenes de Actualidad (1560px) */
.content-wrapper-extended {
  width: 100%;
  max-width: 1560px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.main-content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem; /* Espaciado más amplio y equilibrado */
  margin-bottom: 5.5rem; /* Separación generosa y distinguida con el footer */
}

@media (min-width: 992px) {
  .main-content-layout {
    grid-template-columns: 2.1fr 1fr; /* Mayor presencia armónica */
  }
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

/* Noticia sin box: sin bordes exteriores, sin fondo contenedor, sin sombras */
.news-card-horizontal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background-color: transparent;
  padding: 0 0 2.25rem 0;
  border: none;
  border-bottom: 1px solid #e2e8f0; /* Separador sutil y limpio */
  border-radius: 0;
  box-shadow: none;
  transition: opacity 0.2s ease;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.news-card-horizontal:last-child {
  border-bottom: none;
}

.news-card-horizontal:hover {
  box-shadow: none;
  transform: none;
}

@media (min-width: 680px) {
  .news-card-horizontal {
    grid-template-columns: 340px 1fr; /* Imagen más grande y apaisada */
  }
  .news-card-horizontal.no-image {
    grid-template-columns: 1fr; /* Ancho completo si no tiene imagen */
  }
}

@media (min-width: 1200px) {
  .news-card-horizontal {
    grid-template-columns: 380px 1fr; /* Proporción mayor simétrica */
  }
  .news-card-horizontal.no-image {
    grid-template-columns: 1fr;
  }
}

.news-card-horizontal.no-image {
  grid-template-columns: 1fr;
}

.carousel-card-clean.no-image {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.carousel-card-clean.no-image .carousel-clean-overlay {
  background: transparent;
  padding: 3rem 2.5rem;
}

.news-card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  background-color: #f1f5f9;
  min-width: 0;
}

.news-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.news-card-horizontal:hover .news-card-thumb img {
  transform: scale(1.02);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.news-card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.6rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.news-card-title a:hover {
  color: var(--color-accent);
}

.news-card-excerpt {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
/* Truncamiento limpio a 3 líneas para subtítulos muy largos */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Botón Ver todas las noticias */
.view-all-news-wrap {
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  justify-content: flex-start;
}

.btn-view-all-news {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  background-color: var(--color-btn-bg, #AA080E);
  color: var(--color-btn-text, #ffffff);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.btn-view-all-news svg {
  transition: transform 0.25s ease;
}

.btn-view-all-news:hover {
  background-color: var(--color-btn-hover, #88060B);
  color: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

.btn-view-all-news:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   BOTÓN TÁCTIL 3D PERSONALIZADO POR PERIÓDICO (Dos colores identitarios)
   ========================================================================== */
.btn-3d {
  position: relative;
  display: inline-block;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  transition: filter 250ms;
  user-select: none;
  touch-action: manipulation;
  text-decoration: none;
  font-family: inherit;
  margin-top: 4px;
}

.btn-3d.btn-3d-full {
  display: block;
  width: 100%;
}

.btn-3d-shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: hsl(0deg 0% 0% / 0.25);
  will-change: transform;
  transform: translateY(2px);
  transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

.btn-3d-edge {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: linear-gradient(
    to left,
    var(--color-btn3d-edge-outer, #0a0a0a) 0%,
    var(--color-btn3d-edge-inner, #262626) 8%,
    var(--color-btn3d-edge-inner, #262626) 92%,
    var(--color-btn3d-edge-outer, #0a0a0a) 100%
  );
}

.btn-3d-front {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  padding: 12px 27px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffffff;
  background: var(--color-btn3d-front, var(--color-btn-bg, #AA080E));
  will-change: transform;
  transform: translateY(-4px);
  transition: transform 600ms cubic-bezier(.3, .7, .4, 1);
}

.btn-3d-upper .btn-3d-front {
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.55px;
}

.btn-3d-sm .btn-3d-front {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-3d-front svg {
  flex-shrink: 0;
  transition: transform 250ms ease;
}

.btn-3d:hover {
  filter: brightness(110%);
}

.btn-3d:hover .btn-3d-front {
  transform: translateY(-6px);
  transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

.btn-3d:hover .btn-3d-front svg {
  transform: translateX(3px);
}

.btn-3d:active .btn-3d-front {
  transform: translateY(-2px);
  transition: transform 34ms;
}

.btn-3d:hover .btn-3d-shadow {
  transform: translateY(4px);
  transition: transform 250ms cubic-bezier(.3, .7, .4, 1.5);
}

.btn-3d:active .btn-3d-shadow {
  transform: translateY(1px);
  transition: transform 34ms;
}

.btn-3d:focus:not(:focus-visible) {
  outline: none;
}

@media (max-width: 640px) {
  .view-all-news-wrap .btn-3d {
    display: block;
    width: 100%;
  }
}

/* Paginación */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.pagination-btn,
.pagination-link,
.pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.85rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination-link {
  background-color: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.pagination-link:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.pagination-btn {
  background-color: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.pagination-btn:hover {
  background-color: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

.pagination-current {
  background-color: #334155;
  color: #ffffff;
  border: 1px solid #334155;
  box-shadow: 0 2px 8px rgba(51, 65, 85, 0.25);
}

/* --------------------------------------------------------------------------
   ESTILOS AMPLIADOS PARA LA HEMEROTECA (NOTICIAS E IMÁGENES MÁS GRANDES)
   -------------------------------------------------------------------------- */
.news-list-hemeroteca {
  gap: 3rem;
}

.hemeroteca-card {
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .hemeroteca-card {
    grid-template-columns: 440px 1fr !important; /* Imagen mucho más grande */
  }
}

@media (min-width: 1200px) {
  .hemeroteca-card {
    grid-template-columns: 480px 1fr !important; /* Presencia visual dominante */
  }
}

.hemeroteca-card .news-card-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.hemeroteca-card .news-card-title {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.hemeroteca-card .news-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475569;
}

/* Sidebar lateral extendido y alineado a la derecha */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.sidebar-widget {
  background: var(--color-widget-bg, #f8fafc);
  border: 1px solid var(--color-widget-border, #e2e8f0);
  border-radius: 12px;
  padding: 1.6rem;
  width: 100%;
  box-sizing: border-box;
  box-shadow: var(--color-widget-shadow, 0 4px 14px rgba(15, 23, 42, 0.05));
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.sidebar-widget:hover {
  box-shadow: var(--color-widget-shadow-hover, 0 8px 24px rgba(15, 23, 42, 0.09));
  border-color: var(--color-widget-border-hover, #cbd5e1);
}

.widget-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--color-widget-title, var(--color-primary));
  -webkit-text-stroke: var(--text-stroke-widget-title, 0px transparent);
  text-shadow: var(--text-shadow-widget-title, none);
  border-bottom: 2px solid var(--color-widget-title-border, #cbd5e1);
  padding-bottom: 0.65rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-category-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-cat-link-text, #1e293b);
  background: var(--color-cat-link-bg, transparent);
  border: 1px solid var(--color-cat-link-border, transparent);
  text-decoration: none;
  transition: all 0.2s ease;
  margin-bottom: 0.35rem;
}

.sidebar-category-link:hover {
  background: var(--color-cat-link-hover-bg, #f1f5f9);
  color: var(--color-cat-link-hover-text, var(--color-primary));
  border-color: var(--color-cat-link-hover-border, #e2e8f0);
  transform: translateX(4px);
}

.sidebar-category-bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-cat-bullet, var(--color-primary, #AA080E));
  margin-right: 0.65rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.sidebar-category-link:hover .sidebar-category-bullet {
  transform: scale(1.35);
  background-color: currentColor;
}

.sidebar-category-arrow {
  font-size: 0.85rem;
  color: var(--color-cat-link-arrow, #94a3b8);
  transition: transform 0.2s ease, color 0.2s ease;
}

.sidebar-category-link:hover .sidebar-category-arrow {
  color: var(--color-cat-link-hover-text, var(--color-primary, #AA080E));
  transform: translateX(3px);
}

/* Widget de Newsletter — Diseño aesthetic sin box */
.sidebar-newsletter-clean {
  width: 100%;
  padding: 1.5rem 0 1.75rem 0;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
}

.newsletter-clean-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.newsletter-clean-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
}

.newsletter-clean-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.25;
  margin: 0 0 0.2rem 0;
}

.newsletter-clean-subtitle {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.35;
  margin: 0;
}

.newsletter-clean-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.newsletter-clean-input-row {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-clean-input-row:focus-within {
  border-color: var(--color-primary, #AA080E);
  box-shadow: 0 0 0 3px rgba(139, 16, 16, 0.1);
}

.newsletter-clean-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  color: #1e293b;
  background: transparent;
  font-family: inherit;
  min-width: 0;
}

.newsletter-clean-input::placeholder {
  color: #94a3b8;
  font-size: 0.8125rem;
}

.newsletter-clean-btn {
  background-color: var(--color-btn-bg, #AA080E);
  color: var(--color-btn-text, #ffffff);
  border: none;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.newsletter-clean-btn:hover {
  background-color: var(--color-btn-hover, #88060B);
  transform: translateY(-1px);
}

.newsletter-clean-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: #64748b;
  cursor: pointer;
  line-height: 1.3;
}

.newsletter-clean-consent input {
  margin-top: 0.15rem;
  accent-color: #334155;
}

.newsletter-alert {
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.alert-success {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}

.alert-error {
  background-color: #fee2e2;
  color: #AA080E;
  border: 1px solid #fca5a5;
}

/* Sección de Banners sin box contenedor */
.sidebar-banners-section {
  width: 100%;
  margin-top: 0.5rem;
}

/* Contenedor de la lista de los 10 espacios publicitarios con separación más amplia */
.sidebar-banners-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem; /* Separados un pelín más entre sí */
}

/* Banner activo con imagen */
.sidebar-banner-item {
  position: relative;
  width: 100%;
  aspect-ratio: 980 / 202;
  border-radius: 6px;
  overflow: hidden;
  display: block;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  border: 1px solid #cbd5e1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-banner-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

.sidebar-banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Espacio disponible cuando no hay banner asignado */
.sidebar-banner-placeholder {
  width: 100%;
  aspect-ratio: 980 / 202;
  background-color: #f1f5f9;
  border: 1.5px dashed #94a3b8;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: #64748b;
  text-decoration: none;
  box-sizing: border-box;
  padding: 0.5rem;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sidebar-banner-placeholder:hover {
  background-color: #e2e8f0;
  border-color: #64748b;
  color: #334155;
}

.sidebar-banner-placeholder .slot-number {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
}

.sidebar-banner-placeholder .slot-text {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   BANNERS GRANDES ESPECIALES (Columna Principal de Noticias y Opinión)
   -------------------------------------------------------------------------- */
.special-news-banner-wrap {
  width: 100%;
  margin-bottom: 2rem;
}

.special-news-banner-link {
  display: block;
  width: 100%;
  aspect-ratio: 980 / 202;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  border: 1px solid #cbd5e1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.special-news-banner-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
}

.special-news-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.special-news-banner-placeholder {
  width: 100%;
  aspect-ratio: 980 / 175;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px dashed #94a3b8;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.25rem;
  box-sizing: border-box;
  color: #64748b;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.special-news-banner-placeholder:hover {
  background: #e2e8f0;
  border-color: #64748b;
}

.special-banner-tag {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary, #0b3c61);
  background: rgba(15, 23, 42, 0.06);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.special-banner-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.03em;
}

/* --------------------------------------------------------------------------
   SECCIÓN DE OTROS PORTALES DE NOTICIAS (Debajo de los banners publicitarios)
   -------------------------------------------------------------------------- */
.sidebar-network-section {
  width: 100%;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e5e5;
}

.sidebar-network-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem; /* Separación equilibrada y distinguida entre los portales */
  align-items: center;
}

/* Sin box: sin fondo blanco de tarjeta, sin bordes, sin sombras */
.sidebar-network-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.5rem 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.sidebar-network-card:hover {
  transform: translateY(-3px) scale(1.02);
  opacity: 0.92;
  border: none;
  box-shadow: none;
}

/* Logos considerablemente más grandes */
.sidebar-network-logo {
  width: 100%;
  max-width: 340px; /* Gran presencia visual en la barra lateral */
  height: auto;
  max-height: 125px; /* Considerablemente más grande */
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.sidebar-news-item {
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.sidebar-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sidebar-news-title {
  font-family: var(--font-serif);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.sidebar-news-title a:hover {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   6. PÁGINA DE NOTICIA INDIVIDUAL (Sección 8.5)
   -------------------------------------------------------------------------- */
.article-header {
  margin-bottom: 1.5rem;
  max-width: 100%;
  overflow: hidden;
}

.article-hero-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background-color: #0f172a;
  margin-bottom: 1.5rem;
}

.article-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-category {
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.article-headline {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-text-main);
  margin: 0.5rem 0 0.75rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.article-subheadline {
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 1.25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 0;
  margin-bottom: 2rem;
  max-width: 100%;
}

.article-body {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #334155;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article-body p {
  margin-bottom: 1.4rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.article-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Fila de compartir e interacción */
.article-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  margin: 2.5rem 0;
}

.share-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border-dark);
}
.share-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* Barra de compartir en noticia individual (logos directos sin cajas) */
.article-share-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.25rem 0;
}

.share-bar-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.share-bar-icons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.share-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  padding: 0;
  color: #64748b;
  text-decoration: none;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease, background-color 0.2s ease;
}

.share-icon-link:hover {
  transform: translateY(-2px);
  background-color: rgba(0, 0, 0, 0.04);
}

.share-icon-link .share-svg {
  width: 22px;
  height: 22px;
}

.share-icon-facebook:hover {
  color: #1877F2;
}

.share-icon-whatsapp:hover {
  color: #25D366;
}

.share-icon-email:hover {
  color: #ea4335;
}

.share-icon-linkedin:hover {
  color: #0A66C2;
}

/* Líneas horizontales divisorias en noticia */
.article-divider {
  border: 0;
  height: 1px;
  background-color: #e2e8f0;
  margin: 1.75rem 0;
}

/* Sección: Noticias que te pueden interesar */
.related-news-section {
  margin: 1rem 0 2.5rem 0;
}

.related-news-heading {
  font-family: var(--font-headline, 'Georgia', serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 1.5rem 0;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary, #b8860b);
}

.related-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.related-news-card {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: #0f172a;
}

.related-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
}

.related-news-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.related-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-news-card:hover .related-news-img {
  transform: scale(1.05);
}

.related-news-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #94a3b8;
}

/* Capa de título integrado dentro de la imagen */
.related-news-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 15%, rgba(15, 23, 42, 0.6) 55%, rgba(15, 23, 42, 0.94) 100%);
}

.related-news-badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-primary, #b8860b);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.45rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.related-news-title {
  color: #ffffff;
  font-family: var(--font-headline, 'Georgia', serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 680px) {
  .related-news-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ==========================================================================
   SECCIÓN DE ARTÍCULOS DE OPINIÓN Y FIRMAS (PÁGINA INDEPENDIENTE)
   ========================================================================== */

/* Línea horizontal divisoria principal */
.opinion-main-divider {
  border: 0;
  height: 1.5px;
  background: linear-gradient(90deg, #cbd5e1 0%, #e2e8f0 50%, #cbd5e1 100%);
  margin: 3rem 0 3rem 0;
}

/* Enlace de migas de pan para volver a todas las firmas */
.opinion-breadcrumb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary, #0b3c61);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  background: #f1f5f9;
  transition: all 0.2s ease;
}
.opinion-breadcrumb-back:hover {
  background: var(--color-primary, #0b3c61);
  color: #ffffff;
}

/* ── 1. Cuadrícula de Cajas de Autores Superiores (sin artículos dentro) ── */
.opinion-top-authors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .opinion-top-authors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 680px) {
  .opinion-top-authors-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.opinion-author-pure-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.opinion-author-pure-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.opinion-author-pure-card:hover .opinion-author-pure-name {
  color: var(--color-primary, #0b3c61);
}

.opinion-author-pure-card:hover .opinion-author-pure-avatar-wrap {
  transform: scale(1.04);
}

.opinion-author-pure-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Imagen de autor más grande que antes (88px x 88px) */
.opinion-author-pure-avatar-wrap {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--color-primary, #0b3c61);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background: #f8fafc;
  display: block;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.opinion-author-pure-avatar-wrap:hover {
  transform: scale(1.04);
}

.opinion-author-pure-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.opinion-author-pure-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--color-primary, #0b3c61);
  font-family: var(--font-headline, 'Georgia', serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.opinion-author-pure-meta {
  flex: 1;
  min-width: 0;
}

.opinion-author-pure-name {
  font-family: var(--font-headline, 'Georgia', serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.3rem;
  line-height: 1.25;
}

.opinion-author-pure-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.opinion-author-pure-name a:hover {
  color: var(--color-primary, #0b3c61);
  text-decoration: underline;
}

.opinion-author-pure-cargo {
  display: block;
  font-size: 0.775rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.opinion-author-pure-count-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary, #0b3c61);
  text-decoration: none;
  transition: gap 0.2s ease;
}

.opinion-author-pure-count-link:hover {
  text-decoration: underline;
}

/* Botón + circular desplegable */
.opinion-toggle-btn {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  line-height: 1;
}

.opinion-toggle-btn:hover {
  background: var(--color-primary, #0b3c61);
  color: #ffffff;
  border-color: var(--color-primary, #0b3c61);
  transform: scale(1.08);
}

.opinion-toggle-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Desplegable de biografía */
.opinion-author-pure-bio-drawer {
  margin-top: 1.15rem;
  padding: 0.95rem 1.15rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 3.5px solid var(--color-primary, #0b3c61);
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.6;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
  animation: opinionBioFade 0.25s ease-out;
}

@keyframes opinionBioFade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── 2. Perfil de Autor Individual (Imagen grande izquierda, texto derecha) ── */
.author-profile-hero {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .author-profile-hero {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.75rem 1.25rem;
  }
}

/* Imagen en grande a la izquierda */
.author-profile-hero-avatar-box {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--color-primary, #0b3c61);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #f8fafc;
}

.author-profile-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.author-profile-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--color-primary, #0b3c61);
  font-family: var(--font-headline, 'Georgia', serif);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 2px;
}

.author-profile-hero-info {
  flex: 1;
}

.author-profile-hero-kicker {
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--color-primary, #0b3c61);
  margin-bottom: 0.35rem;
}

.author-profile-hero-name {
  font-family: var(--font-headline, 'Georgia', serif);
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.author-profile-hero-cargo {
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.author-profile-hero-bio {
  font-size: 0.975rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.author-profile-hero-stats {
  font-size: 0.85rem;
  color: #64748b;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}

/* ── 3. Cuadrícula de Artículos de Opinión en 3 x 3 con Paginación ── */
.opinion-articles-grid-3x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .opinion-articles-grid-3x3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 680px) {
  .opinion-articles-grid-3x3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.opinion-card-3x3 {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.opinion-card-3x3.no-image {
  align-self: start;
  height: auto;
  border-top: 3px solid var(--color-primary, #0b3c61);
}

.opinion-card-3x3.no-image .opinion-card-body {
  flex: initial;
  padding: 1.35rem 1.35rem 1.25rem 1.35rem;
}

.opinion-card-3x3.no-image .opinion-card-excerpt {
  flex: initial;
  margin-bottom: 1rem;
}

.opinion-card-3x3.no-image .opinion-card-author-footer {
  margin-top: 0;
}

.opinion-card-3x3:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.09);
  border-color: #cbd5e1;
}

.opinion-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f172a;
}

.opinion-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.opinion-card-3x3:hover .opinion-card-img {
  transform: scale(1.05);
}

.opinion-card-body {
  padding: 1.35rem 1.35rem 1.15rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.opinion-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.opinion-badge-tag {
  display: inline-block;
  background: var(--color-primary, #0b3c61);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.opinion-card-date {
  font-size: 0.775rem;
  color: #94a3b8;
  font-weight: 500;
}

.opinion-card-headline {
  font-family: var(--font-headline, 'Georgia', serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opinion-card-headline a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.opinion-card-headline a:hover {
  color: var(--color-primary, #0b3c61);
}

.opinion-card-excerpt {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.opinion-card-author-footer {
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.opinion-card-author-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.opinion-card-author-mini-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--color-primary, #0b3c61);
}

.opinion-card-author-mini-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--color-primary, #0b3c61);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opinion-card-author-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s ease;
}

.opinion-card-author-link:hover .opinion-card-author-name {
  color: var(--color-primary, #0b3c61);
  text-decoration: underline;
}

/* ── 4. Paginación de Opinión ── */
.opinion-pagination-nav {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.opinion-pagination-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.opinion-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 0.65rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.opinion-page-link:hover:not(.disabled):not(.active) {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: var(--color-primary, #0b3c61);
}

.opinion-page-link.active {
  background: var(--color-primary, #0b3c61);
  color: #ffffff;
  border-color: var(--color-primary, #0b3c61);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.opinion-page-link.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f8fafc;
}

.opinion-page-link.prev-next {
  padding: 0 0.95rem;
}

/* ── 4.1 Bloque de Opinión en Portada (debajo de Ver todas las noticias) ── */
.home-opinion-wrapper {
  margin-top: 3.5rem;
  padding-top: 2rem;
  padding-bottom: 1.75rem;
  border-top: 1px solid #e2e8f0;
}

.home-opinion-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 0.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .home-opinion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .home-opinion-grid {
    grid-template-columns: 1fr;
  }
}

/* ── 5. Vista de Lectura Individual (articulo-opinion.php) ── */
.opinion-author-header-bar {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 0.5rem 0 1.25rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  margin: 1.25rem 0 1.75rem 0;
}

.opinion-author-avatar-box {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-primary, #0b3c61);
  flex-shrink: 0;
}

.opinion-author-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.opinion-author-fallback-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: var(--color-primary);
  font-family: var(--font-headline, 'Georgia', serif);
  font-size: 1.35rem;
  font-weight: 700;
}

.opinion-author-details {
  flex: 1;
}

.opinion-author-byline {
  font-size: 1rem;
  color: #1e293b;
  font-weight: 500;
}

.opinion-author-role {
  font-size: 0.8125rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

.opinion-publish-time {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

.opinion-author-bio-card {
  background: #fdfbf7;
  border: 1.5px solid #ebdcc5;
  border-left: 4px solid var(--color-primary, #0b3c61);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.opinion-author-bio-title {
  font-family: var(--font-headline, 'Georgia', serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.45rem;
}

.opinion-author-bio-desc {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   7. FOOTER Y NEWSLETTER (Sección 9)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   7. FOOTER COMPLETO Y NEWSLETTER (Adaptable a la identidad cromática de la cabecera)
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto; /* Garantiza que siempre esté pegado al fondo */
  background-color: var(--color-footer-bg, #AA080E);
  color: var(--color-footer-text, #ffffff);
  padding: 3.5rem 0 1.75rem 0;
  border-top: 4px solid var(--color-footer-border, #F7B100);
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.18);
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 900px) {
  .footer-main-grid {
    grid-template-columns: 1.15fr 1.35fr;
    align-items: center;
  }
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Logo considerablemente más grande */
.footer-logo-img {
  max-height: 95px;
  width: auto;
  max-width: 380px;
  object-fit: contain;
  align-self: flex-start;
  filter: brightness(0) invert(1);
}

/* Conservar color original en portales específicos con mayor presencia (sin fondo/card) */
.footer-logo-img.footer-logo-original {
  filter: none !important;
  max-height: 125px !important;
  max-width: 440px !important;
  transition: transform 0.25s ease;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.footer-logo-img.footer-logo-original:hover {
  transform: scale(1.03);
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--color-footer-muted, #fecaca);
  line-height: 1.55;
  max-width: 440px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

/* Símbolos de redes sociales con alto contraste */
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  background-color: #ffffff;
  color: var(--color-footer-bg, #AA080E) !important;
  border-color: #ffffff;
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Columna Newsletter del Footer con el MISMO DISEÑO que el de la web normal */
.footer-newsletter-clean {
  background: transparent;
  padding: 0;
  border: none;
}

.footer-newsletter-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

/* Imagen del sobre en blanco */
.footer-newsletter-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1); /* Imagen en blanco */
}

.footer-newsletter-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 0.25rem 0;
}

.footer-newsletter-sub {
  font-size: 0.85rem;
  color: var(--color-footer-muted, #fecaca);
  line-height: 1.35;
  margin: 0;
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-newsletter-input-row {
  display: flex;
  align-items: center;
  background: var(--color-footer-input-bg, rgba(0, 0, 0, 0.22));
  border: 1.5px solid var(--color-footer-input-border, rgba(255, 255, 255, 0.35));
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-newsletter-input-row:focus-within {
  border-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.footer-newsletter-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #ffffff;
  background: transparent;
  font-family: inherit;
  min-width: 0;
}

.footer-newsletter-input::placeholder {
  color: var(--color-footer-muted, rgba(255, 255, 255, 0.75));
  font-size: 0.85rem;
}

.footer-newsletter-btn {
  background-color: var(--color-footer-btn-bg, #ffffff);
  color: var(--color-footer-bg, #AA080E);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.footer-newsletter-btn:hover {
  background-color: #fef2f2;
  color: var(--color-btn-hover, #88060B);
  transform: translateY(-1px);
}

.footer-newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-footer-muted, #fecaca);
  cursor: pointer;
  line-height: 1.35;
}

.footer-newsletter-consent input {
  margin-top: 0.15rem;
  accent-color: #ffffff;
}

/* Barra inferior del footer */
.footer-bottom-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-footer-divider, rgba(255, 255, 255, 0.18));
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  gap: 1rem;
  color: var(--color-footer-muted, rgba(255, 255, 255, 0.85));
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
}

.footer-legal-links a {
  color: var(--color-footer-muted, rgba(255, 255, 255, 0.85));
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* Accesibilidad y reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   8. DIRECTORIO DE EMPRESAS — Cards Verticales y Card Especial Unirte
   ========================================================================== */
.directory-section-wrap {
  width: 100%;
  margin: 1.5rem 0 3.5rem 0;
}

.directory-page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.directory-page-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.6rem 0;
  letter-spacing: -0.5px;
}

.directory-page-subtitle {
  font-size: 1.05rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2.25rem;
  align-items: stretch;
}

.directory-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.25rem 2rem;
  /* Sombra pronunciada para efecto de relieve */
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  box-sizing: border-box;
}

.directory-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.16), 0 10px 20px -5px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

/* Sin fondo gris detrás de los logos, espacio más amplio para logos grandes */
.directory-card-logo-wrap {
  height: 110px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin-bottom: 1.5rem;
  padding: 0;
  box-sizing: border-box;
}

.directory-card-logo {
  max-width: 100%;
  max-height: 95px;
  object-fit: contain;
  display: block;
}

.directory-card-logo-placeholder {
  font-size: 1.5rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.directory-card-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-card-name, #AA080E); /* Color identitario estético */
  margin: 0 0 1.25rem 0;
  line-height: 1.3;
}

.directory-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #475569;
}

.directory-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  line-height: 1.45;
}

.directory-meta-row svg {
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px;
  height: 18px;
  color: #64748b;
}

.directory-meta-link {
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.directory-meta-link:hover {
  color: #0284c7;
  text-decoration: underline;
}

.directory-meta-text {
  color: #475569;
}

/* Botón de página web con el mismo color del footer */
.directory-web-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  background-color: var(--color-btn-bg, #AA080E) !important;
  color: var(--color-btn-text, #ffffff) !important;
  border-radius: 8px;
  font-size: 0.925rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  margin-bottom: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.directory-web-btn:hover {
  background-color: var(--color-btn-hover, #88060B) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

.directory-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}

.directory-toggle-btn:hover {
  border-color: #94a3b8;
  color: var(--color-primary, #AA080E);
  background-color: var(--color-fondo-suave, #fff5f5);
}

.directory-toggle-icon {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
}

/* En más información: sin fondo gris detrás de las letras */
.directory-info-drawer {
  margin-top: 1rem;
  padding: 0.85rem 0 0.85rem 1rem;
  background: transparent !important;
  border-left: 3px solid var(--color-accent, #dc2626);
  border-radius: 0;
  font-size: 0.925rem;
  line-height: 1.6;
  color: #475569;
  animation: fadeInDirectory 0.2s ease forwards;
}

.directory-info-drawer p {
  margin: 0;
  background: transparent !important;
}

@keyframes fadeInDirectory {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Card especial con el MISMO color del footer y letras en blanco */
.directory-card-join {
  background-color: var(--color-card-join-bg, #AA080E) !important;
  background: var(--color-card-join-bg, #AA080E) !important;
  border: 1px solid var(--color-card-join-border, #88060B) !important;
  border-radius: 12px;
  padding: 2.25rem 2rem;
  color: var(--color-card-join-text, #ffffff) !important;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Sombra de relieve destacada */
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.25), 0 6px 14px -2px rgba(0, 0, 0, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.directory-card-join:hover {
  background-color: var(--color-card-join-hover, #88060B) !important;
  background: var(--color-card-join-hover, #88060B) !important;
  border-color: #ffffff !important;
  transform: translateY(-5px);
  box-shadow: 0 22px 42px -6px rgba(0, 0, 0, 0.35), 0 12px 22px -4px rgba(0, 0, 0, 0.2);
  color: #ffffff !important;
}

.directory-join-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.directory-join-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 0.85rem 0;
  line-height: 1.25;
}

.directory-join-desc {
  font-size: 0.95rem;
  color: var(--color-card-join-muted, #fecaca) !important;
  line-height: 1.6;
  margin: 0 0 1.75rem 0;
  flex-grow: 1;
}

.directory-join-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--color-card-join-text, #ffffff) !important;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.directory-card-join:hover .directory-join-action {
  color: #ffffff !important;
}

/* ==========================================================================
   9. PÁGINA DE CONTACTO — Formulario a la izquierda y Datos a la derecha
   ========================================================================== */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 960px) {
  .contact-layout-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 3rem;
  }
}

.contact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.25rem 2rem;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.contact-form-group {
  margin-bottom: 1.25rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .contact-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: #1f1f1f;
  margin-bottom: 0.45rem;
}

.contact-label .req {
  color: #e11d48;
}

.contact-input,
.contact-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #1f1f1f;
  transition: all 0.2s ease;
}

.contact-input:focus,
.contact-textarea:focus {
  background-color: #ffffff;
  border-color: var(--color-primary, #AA080E);
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 16, 16, 0.12);
}

.contact-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.45;
  cursor: pointer;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

.contact-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary, #AA080E);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.85rem;
  background-color: var(--color-btn-bg, #AA080E);
  color: var(--color-btn-text, #ffffff);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-submit-btn:hover {
  background-color: var(--color-btn-hover, #88060B);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

/* Columna de Datos de Empresa */
.contact-company-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1.5px solid #f1f5f9;
}

.contact-company-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.contact-company-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #1f1f1f;
  margin: 0;
  letter-spacing: -0.3px;
}

.contact-company-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact-company-item {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.contact-company-icon {
  width: 26px;
  height: 26px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f1f1f;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-company-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.contact-company-value {
  font-size: 0.95rem;
  color: #1f1f1f;
  font-weight: 600;
  line-height: 1.4;
}

.contact-company-link {
  color: #1f1f1f;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease;
}

.contact-company-link:hover {
  color: #0284c7;
  text-decoration: underline;
}

.contact-company-badge-box {
  margin-top: 1.75rem;
  padding: 1.15rem 1.25rem;
  background-color: #f8fafc;
  border-left: 3.5px solid #1f1f1f;
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.5;
}

/* Alertas de resultado */
.contact-alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.925rem;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-alert-success {
  background-color: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  color: #166534;
}

.contact-alert-danger {
  background-color: #fef2f2;
  border: 1.5px solid #fecaca;
  color: #AA080E;
}

/* ==========================================================================
   SISTEMA DE DISEÑO RESPONSIVE GLOBAL (MÓVIL, TABLET, PORTÁTIL Y ESCRITORIO)
   ========================================================================== */

/* 1. PORTÁTILES Y PANTALLAS MEDIANAS (992px - 1200px) */
@media (max-width: 1200px) {
  .carousel-container {
    padding: 0 3rem;
  }
  .carousel-clean-title {
    font-size: 1.5rem;
  }
  .news-card-horizontal {
    grid-template-columns: 320px 1fr;
    gap: 1.75rem;
  }
}

/* 2. TABLETS EN HORIZONTAL Y PORTÁTILES COMPACTOS (769px - 991px) */
@media (max-width: 991px) {
  .main-content-layout {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }
  .sidebar {
    max-width: 600px;
    margin: 0 auto;
  }
  .carousel-container {
    padding: 0 2rem;
  }
  .carousel-clean-img-wrap {
    min-height: 320px;
  }
  .carousel-clean-title {
    font-size: 1.35rem;
  }
  .news-card-horizontal {
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
  }
  .opinion-top-authors-grid,
  .opinion-articles-grid-3x3,
  .home-opinion-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-brand-column {
    align-items: center;
    text-align: center;
  }
  .footer-logo-img {
    align-self: center;
  }
}

/* 3. TABLETS EN VERTICAL Y MÓVILES GRANDES (641px - 768px) */
@media (max-width: 768px) {
  .site-header {
    padding: 1.5rem 0 0 0;
  }
  .header-branding {
    margin-bottom: 0.85rem;
  }
  .logo-wrapper img {
    max-height: 100px;
  }
  .hero-fullwidth-wrapper {
    margin-top: 24px;
    margin-bottom: 2.5rem;
  }
  .carousel-container {
    padding: 0 1rem;
  }
  .carousel-clean-img-wrap {
    min-height: 270px;
    aspect-ratio: 16 / 10;
  }
  .carousel-clean-title {
    font-size: 1.25rem;
    line-height: 1.3;
  }
  .carousel-clean-overlay {
    padding: 2.5rem 1.25rem 1.25rem 1.25rem;
  }
  .carousel-clean-subtitle {
    display: none;
  }
  .carousel-arrow-btn {
    width: 42px;
    height: 42px;
  }
  .carousel-arrow-btn.prev {
    left: 0.35rem;
  }
  .carousel-arrow-btn.next {
    right: 0.35rem;
  }
  .news-card-horizontal {
    grid-template-columns: 240px 1fr;
    gap: 1.25rem;
  }
  .news-card-title {
    font-size: 1.25rem;
  }
  .article-headline {
    font-size: 1.85rem;
    line-height: 1.3;
  }
  .article-subheadline {
    font-size: 1.05rem;
  }
  .article-share-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .share-bar-icons {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .hemeroteca-card {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  .hemeroteca-card .news-card-thumb {
    aspect-ratio: 16 / 10;
  }
}

/* 4. SMARTPHONES Y PANTALLAS PEQUEÑAS (hasta 640px) */
@media (max-width: 640px) {
  html {
    font-size: 15px;
  }
  .container,
  .content-wrapper-extended {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  /* Topbar compacta */
  .top-bar-social {
    padding: 0.75rem 0;
  }
  .top-bar-social-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
  .top-bar-date-display {
    font-size: 0.75rem;
    letter-spacing: 0.2px;
  }
  .top-bar-social-links {
    gap: 1.25rem;
  }
  .social-link svg {
    width: 18px;
    height: 18px;
  }
  /* Header y logo */
  .site-header {
    padding: 1.25rem 0 0 0;
  }
  .header-branding {
    margin-bottom: 0.75rem;
  }
  .logo-wrapper img {
    max-height: 80px;
  }
  /* Portada Edge-to-edge */
  .hero-fullwidth-wrapper {
    margin-top: 16px;
    margin-bottom: 1.75rem;
  }
  /* Título de sección equilibrado */
  .section-label-balanced h2 {
    font-size: 1.05rem;
    white-space: normal;
  }
  .section-line-left {
    width: 25px;
    min-width: 20px;
  }
  /* Carrusel móvil */
  .carousel-container {
    padding: 0 0.5rem;
  }
  .carousel-clean-img-wrap {
    min-height: 230px;
    aspect-ratio: 16 / 10;
  }
  .carousel-clean-title {
    font-size: 1.15rem;
    line-height: 1.35;
  }
  .carousel-clean-overlay {
    padding: 2.25rem 0.85rem 0.85rem 0.85rem;
  }
  .carousel-arrow-btn {
    width: 36px;
    height: 36px;
  }
  .carousel-arrow-btn svg {
    width: 16px;
    height: 16px;
  }
  .carousel-arrow-btn.prev {
    left: 0.15rem;
  }
  .carousel-arrow-btn.next {
    right: 0.15rem;
  }
  /* Tarjetas de noticias en vertical en móvil */
  .news-card-horizontal {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    padding-bottom: 1.75rem;
  }
  .news-card-thumb {
    aspect-ratio: 16 / 10;
    width: 100%;
  }
  .news-card-title {
    font-size: 1.15rem;
    line-height: 1.35;
  }
  .news-card-excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.85rem;
  }
  .btn-view-all-news {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
  }
  /* Banners adaptables */
  .special-news-banner-link {
    aspect-ratio: auto;
    min-height: 80px;
  }
  .special-news-banner-placeholder {
    aspect-ratio: auto;
    min-height: 80px;
    padding: 0.85rem;
  }
  .special-banner-title {
    font-size: 0.85rem;
  }
  .banner-ad-box {
    aspect-ratio: auto;
    min-height: 80px;
    padding: 0.85rem;
  }
  .banner-placeholder-title {
    font-size: 0.95rem;
  }
  /* Cuadrícula de Opinión */
  .opinion-top-authors-grid,
  .opinion-articles-grid-3x3,
  .home-opinion-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }
  .opinion-author-pure-header {
    gap: 1rem;
  }
  .opinion-author-pure-avatar-wrap {
    width: 72px;
    height: 72px;
  }
  .author-profile-hero {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
    gap: 1.25rem;
  }
  .author-profile-hero-avatar-box {
    width: 110px;
    height: 110px;
  }
  .author-profile-hero-name {
    font-size: 1.5rem;
  }
  /* Directorio de Empresas */
  .directory-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem;
  }
  .directory-card {
    padding: 1.5rem 1.25rem;
  }
  .directory-card-join {
    padding: 1.75rem 1.25rem;
  }
  .directory-card-logo-wrap {
    height: 80px;
  }
  .directory-card-name {
    font-size: 1.25rem;
  }
  .directory-web-btn {
    padding: 0.85rem 1.25rem;
  }
  /* Contacto y Formularios */
  .contact-card {
    padding: 1.5rem 1.25rem;
  }
  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-submit-btn {
    width: 100%;
    justify-content: center;
  }
  /* Newsletter */
  .newsletter-card-wrap {
    padding: 1.5rem 1.25rem !important;
  }
  /* Paginación en móvil */
  .pagination {
    gap: 0.35rem;
    flex-wrap: wrap;
  }
  .pagination-link,
  .pagination-btn,
  .pagination-current {
    min-width: 36px;
    height: 36px;
    padding: 0 0.65rem;
    font-size: 0.85rem;
  }
  /* Footer móvil */
  .site-footer {
    padding: 2.5rem 0 1.5rem 0;
  }
  .footer-logo-img {
    max-height: 65px;
    max-width: 240px;
  }
  .footer-newsletter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-newsletter-row .contact-submit-btn,
  .footer-newsletter-row button {
    width: 100%;
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* 5. DISPOSITIVOS ULTRA PEQUEÑOS (<= 360px) */
@media (max-width: 360px) {
  .logo-wrapper img {
    max-height: 68px;
  }
  .carousel-clean-title {
    font-size: 1.05rem;
  }
  .news-card-title {
    font-size: 1.05rem;
  }
  .article-headline {
    font-size: 1.5rem;
  }
  .directory-card,
  .contact-card {
    padding: 1.25rem 0.85rem;
  }
}


/* --------------------------------------------------------------------------
   ESTILO IDENTITARIO GLOBAL PARA TÍTULOS DE SECCIÓN Y PÁGINA
   (Aplica el color y borde identitario a cada periódico en todas las vistas)
   -------------------------------------------------------------------------- */
.section-label-balanced h2,
.section-label h2,
.directory-page-title,
.category-page-title,
.hemeroteca-page-title,
.contact-page-title,
.services-page-title,
.opinion-page-title,
.newsletter-hero-title,
.related-news-heading,
.author-profile-hero-name {
  color: var(--color-section-heading, #262626) !important;
  -webkit-text-stroke: var(--text-stroke-heading, 0px transparent);
  text-shadow: var(--text-shadow-heading, none);
  letter-spacing: 0.8px;
}

/* --------------------------------------------------------------------------
   PÁGINA NEWSLETTER — Diseño editorial abierto a dos columnas (sin card)
   Izquierda: icono de correo + formulario | Derecha: texto de ventajas abierto
   -------------------------------------------------------------------------- */
.newsletter-page-main {
  padding-top: 3.5rem;
  padding-bottom: 5.5rem;
}

.newsletter-split-layout {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 430px) 1fr;
  gap: 4.5rem;
  align-items: center;
}

/* Columna izquierda: Icono de correo habitual + formulario */
.newsletter-split-form-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-right: 3.5rem;
  border-right: 1px solid #e2e8f0;
}

.newsletter-split-icon-wrap {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-split-icon {
  width: 132px;
  height: auto;
  max-height: 132px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.newsletter-split-icon:hover {
  transform: translateY(-3px);
}

.newsletter-split-form-title {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 800;
  color: #18181b;
  margin: 0 0 0.45rem 0;
  letter-spacing: -0.3px;
}

.newsletter-split-form-sub {
  font-size: 0.94rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 1.75rem 0;
  max-width: 340px;
}

.newsletter-split-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.newsletter-split-form .contact-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.96rem;
  color: #1e293b;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-split-form .contact-input:focus {
  outline: none;
  border-color: var(--color-primary, #AA080E);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.newsletter-split-form .contact-consent {
  margin-top: 0.25rem;
  margin-bottom: 0;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.45;
}

.newsletter-split-form-col .contact-alert {
  width: 100%;
  text-align: left;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
}

/* Columna derecha: Texto editorial abierto (sin card, sin fondo, sin borde) */
.newsletter-split-info-col {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.newsletter-split-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--color-primary, #AA080E);
  margin-bottom: 0.75rem;
}

.newsletter-split-heading {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 1.35rem 0;
}

.newsletter-split-lead {
  font-size: 1.08rem;
  line-height: 1.72;
  color: #334155;
  margin: 0 0 2rem 0;
}

.newsletter-benefits-heading {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 800;
  color: #18181b;
  margin: 0 0 1.2rem 0;
}

.newsletter-benefits-list {
  list-style: none;
  margin: 0 0 2.15rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.newsletter-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.98rem;
  line-height: 1.62;
  color: #334155;
}

.newsletter-benefit-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--color-primary, #AA080E);
}

.newsletter-benefits-list strong {
  color: #0f172a;
}

.newsletter-split-closing {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-primary-dark, #1e293b);
  margin: 0;
}

@media (max-width: 960px) {
  .newsletter-split-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 680px;
  }

  .newsletter-split-form-col {
    padding-right: 0;
    padding-bottom: 2.5rem;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .newsletter-split-heading {
    font-size: 1.85rem;
  }
}

@media (max-width: 540px) {
  .newsletter-page-main {
    padding-top: 2.25rem;
    padding-bottom: 3.75rem;
  }

  .newsletter-split-icon {
    width: 104px;
    max-height: 104px;
  }

  .newsletter-split-heading {
    font-size: 1.58rem;
  }

  .newsletter-split-lead {
    font-size: 1rem;
  }

  .newsletter-split-closing {
    font-size: 1.06rem;
  }
}

/* --------------------------------------------------------------------------
   PÁGINA SERVICIOS / MARKETING — Diseño editorial de prensa (sin cards)
   Estructura asimétrica con filetes tipográficos y paleta de cada periódico
   -------------------------------------------------------------------------- */
.mkt-page-main {
  padding-top: 3rem;
  padding-bottom: 5.5rem;
}

.mkt-container {
  max-width: 1120px;
  margin: 0 auto;
}

/* Eyebrow editorial con filete de color del periódico */
.mkt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary, #AA080E);
  margin-bottom: 1rem;
}

.mkt-eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background-color: var(--color-primary, #AA080E);
}

/* Apertura principal */
.mkt-hero {
  padding-bottom: 3.5rem;
}

.mkt-hero-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 2.25rem 0;
  max-width: 860px;
}

.mkt-hero-grid {
  display: grid;
  grid-template-columns: 1.38fr 0.62fr;
  gap: 3.5rem;
  align-items: start;
}

.mkt-hero-prose p {
  font-size: 1.05rem;
  line-height: 1.76;
  color: #334155;
  margin: 0 0 1.25rem 0;
}

.mkt-hero-prose p:first-child {
  font-size: 1.15rem;
  color: #18181b;
  font-weight: 500;
}

.mkt-hero-prose p:last-child {
  margin-bottom: 0;
}

.mkt-hero-aside {
  border-left: 2px solid var(--color-primary, #AA080E);
  padding: 0.25rem 0 0.25rem 1.75rem;
}

.mkt-hero-aside-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #64748b;
  margin: 0 0 0.6rem 0;
}

.mkt-hero-aside-text {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.5;
  color: #18181b;
  margin: 0 0 1.45rem 0;
}

.mkt-hero-aside-email {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  color: #475569;
  text-decoration: none;
  border-bottom: 1px solid #cbd5e1;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.mkt-hero-aside-email:hover {
  color: var(--color-primary, #AA080E);
  border-color: var(--color-primary, #AA080E);
}

/* Fotografía panorámica editorial (sin card ni sombra artificial) */
.mkt-editorial-figure {
  margin: 3rem 0 0 0;
}

.mkt-editorial-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.mkt-editorial-caption {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: #64748b;
  text-align: right;
  letter-spacing: 0.2px;
}

/* Secciones editoriales separadas por filete de cabecera */
.mkt-section {
  border-top: 2px solid var(--color-primary, #AA080E);
  padding: 3.75rem 0 4rem 0;
}

.mkt-split-section {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 4rem;
  align-items: start;
}

.mkt-section-index {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-primary, #AA080E);
  margin-bottom: 0.5rem;
}

.mkt-section-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  color: #18181b;
  margin: 0 0 1rem 0;
}

.mkt-section-lead {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

.mkt-prose-block p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #334155;
  margin: 0 0 1.15rem 0;
}

.mkt-prose-block p:last-child {
  margin-bottom: 0;
}

/* Pilares editoriales separados por finos filetes horizontales */
.mkt-pillars {
  margin-top: 2.5rem;
}

.mkt-pillar-item {
  border-top: 1px solid #e2e8f0;
  padding: 2rem 0;
}

.mkt-pillar-item:last-child {
  padding-bottom: 0;
}

.mkt-pillar-title {
  font-family: var(--font-serif);
  font-size: 1.32rem;
  font-weight: 800;
  color: #18181b;
  margin: 0 0 0.85rem 0;
}

.mkt-pillar-item p {
  font-size: 0.99rem;
  line-height: 1.72;
  color: #334155;
  margin: 0 0 0.95rem 0;
}

.mkt-pillar-item p:last-child {
  margin-bottom: 0;
}

/* Bloque Soluciones de Comunicación / Servicios */
.mkt-services-header {
  margin-bottom: 2.25rem;
  max-width: 760px;
}

/* Grid de las 3 Cards Principales (Banners, Newsletter al Buzón, Redes Sociales) */
.mkt-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.mkt-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2.25rem 1.85rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.mkt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  border-color: #cbd5e1;
}

.mkt-card--featured {
  border-color: var(--color-primary, #AA080E);
  background: linear-gradient(180deg, #ffffff 0%, var(--color-fondo-suave, #fff5f5) 100%);
  box-shadow: 0 6px 22px rgba(170, 8, 14, 0.09);
}

.mkt-card--featured:hover {
  border-color: var(--color-primary, #AA080E);
  box-shadow: 0 14px 34px rgba(170, 8, 14, 0.15);
}

.mkt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.35rem;
  gap: 0.75rem;
}

.mkt-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background-color: var(--color-fondo-suave, #fff5f5);
  color: var(--color-primary, #AA080E);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mkt-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.mkt-card-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #475569;
  background: #f1f5f9;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
}

.mkt-card-badge--hot {
  color: var(--color-primary, #AA080E);
  background: #fee2e2;
  font-weight: 800;
}

.mkt-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.55rem 0;
  line-height: 1.25;
}

.mkt-card-headline {
  font-size: 0.96rem;
  font-weight: 700;
  color: #334155;
  margin: 0 0 0.95rem 0;
  line-height: 1.45;
}

.mkt-card-body {
  font-size: 0.94rem;
  line-height: 1.68;
  color: #475569;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

.mkt-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.15rem;
  border-top: 1px solid #f1f5f9;
}

.mkt-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* Cierre editorial abierto (sin card) */
.mkt-closing {
  border-top: 2px solid #18181b;
  padding-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.mkt-closing-copy {
  max-width: 650px;
}

.mkt-closing-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 800;
  color: #18181b;
  margin: 0 0 0.65rem 0;
}

.mkt-closing-text {
  font-size: 1rem;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

.mkt-closing-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (max-width: 960px) {
  .mkt-hero-title {
    font-size: 2.15rem;
  }

  .mkt-hero-grid,
  .mkt-split-section {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .mkt-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .mkt-editorial-photo {
    height: 220px;
  }
}

@media (max-width: 600px) {
  .mkt-page-main {
    padding-top: 2rem;
    padding-bottom: 3.75rem;
  }

  .mkt-hero-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
  }

  .mkt-section {
    padding: 2.75rem 0 3rem 0;
  }

  .mkt-section-title {
    font-size: 1.48rem;
  }

  .mkt-editorial-photo {
    height: 175px;
  }
}

.privacy-notice {
  margin: 0.5rem 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.privacy-notice a {
  color: inherit;
  text-decoration: underline;
}
