/* =====================================================
   NEWS FEATURED – DESTACADOS
===================================================== */

.new-featured {
  padding-block: 34px 0;
  margin-block-start: 0 !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.new-featured__header {
  padding-inline: 24px;
}

.new-featured__inner {
  margin: 0 auto;
  width: 100%;
  max-width: 1280px;
}

/* =========================
   SECTION TITLE
========================= */

.new-featured__title {
  font-family: var(--font-geely);
  font-weight: 700;
  color: var(--c-black);
  text-transform: uppercase;
  margin-bottom: 50px;
}

/* =========================
   SLIDER WRAPPER
========================= */

.new-featured__slider-wrapper {
  position: relative;
  /* padding-inline: 24px; */
}

.new-featured__swiper {
  overflow: hidden;

  margin-inline: auto;
  width: 100%;
  max-width: 1440px;
}

/* =========================
   SLIDE
========================= */

.new-featured__slide {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  grid-template-columns: 770px 670px;
  align-items: center;
  background: #f6f3f5;
  padding: 0;
}

/* =========================
   CONTENT (Left Side)
========================= */

.new-featured__content {
  padding: 93px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 1439px) {
  .new-featured__content {
    padding: 67px 40px;
  }
}

.new-featured__text-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.new-featured__date {
  font-family: var(--font-inter);
  color: #ffffff;  
  font-weight: 500;
  z-index: 10;  
  top: 55px;
  position: absolute;
  left: 50px; 
}

.new-featured__post-title {
  font-style: bold;
  font-family: var(--font-geely);
  position: absolute;
  top: 90px;       /* Distancia desde abajo */
  left: 50px;         /* Distancia desde la izquierda */
  z-index: 10;        /* Se asegura de estar por encima de la imagen */
  right: 45%;
  /* Estilos opcionales para que se lea bien */
  color: #ffffff;     
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Sombra para resaltar en fondos claros */
  font-weight: 700;
  font-style: Bold;
  font-size: 40px;
  leading-trim: NONE;
  line-height: 120%;
  letter-spacing: 0px;
  vertical-align: middle;
  text-transform: uppercase;
}

.new-featured__excerpt {
  font-family: var(--font-inter);
  font-weight: 500;
  color: var(--c-black);
  line-height: 1.6;
  top: 280px;       /* Distancia desde abajo */
  left: 50px;         /* Distancia desde la izquierda */
  z-index: 10;        /* Se asegura de estar por encima de la imagen */
  position: absolute;
  right: 45%;
  color: #ffffff;   
}
@media (max-width: 1439px) {
  .new-featured__excerpt {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    
  }
}

.new-featured__cta {
  /* Fondo y Bordes */
  background-color: #ffffff;    /* Blanco puro */
  border: 1px solid #e2e8f0;    /* Borde muy sutil, opcional */
  border-radius: 8px;           /* Bordes redondeados suaves */
  
  /* Tipografía */
  color: #1a1a1a;               /* Negro/Gris muy oscuro (no puro) */
  font-family: system-ui, sans-serif; /* Tipografía sans-serif limpia */
  font-weight: 600;              /* Negrita (Semi-bold) */
  font-size: 16px;              /* Tamaño de texto estándar */
  line-height: 1.5;             /* Espaciado de línea */
  
  /* Espaciado Interno (Padding) y Dimensiones */
  display: inline-block;        /* Permite ancho/alto */
  padding: 12px 24px;           /* Centrado con más espacio a los lados */
  text-decoration: none;        /* Elimina subrayado si es un enlace <a> */
  text-align: center;           /* Texto centrado */
  
  /* Comportamiento Interactivo (opcional, para hover) */
  cursor: pointer;              /* Cambia el cursor a mano */
  transition: all 0.2s ease;    /* Transición suave para cambios de estado */
  top: 550px;       /* Distancia desde abajo */
  left: 50px;         /* Distancia desde la izquierda */
  z-index: 10;        /* Se asegura de estar por encima de la imagen */
  position: absolute;
  color: #000000;   
}

.new-featured__cta:hover {
  opacity: 0.7;
  background-color: #f8fafc;    /* Gris muy claro al hover */
  border-color: #cbd5e1;
}

/* =========================
   MEDIA (Right Side)
========================= */

.new-featured__media {
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.new-featured__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-height: 422px;
}
@media (max-width: 1439px) {
  .new-featured__image {
    /* max-height: none; */
    min-height: 363px;
    max-height: 363px;
  }
}
/* =========================
   CONTROLS
=========================
 */
.new-featured__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 16px;
  /* padding-inline: 3.33%; */
  /*  */
  padding-inline: 48px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}
/* =========================
   NAVIGATION
========================= */

.new-featured__nav {
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--c-urban-graphite);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.3s ease;
}

.new-featured__nav img {
  width: 40px;
  height: 40px;
  display: block;
}

.new-featured__nav--prev {
}

.new-featured__nav--prev img {
  transform: rotate(180deg);
}

.new-featured__nav--next {
}

.new-featured__nav:hover {
}

.new-featured__nav.swiper-button-disabled {
  opacity: 0.3;
  cursor: default;
}

/* =========================
   PAGINATION
========================= */

.new-featured__pagination {
  position: static !important;
  text-align: center;
}

.new-featured__pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #e7e6e6;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s ease;
  margin-right: 8px !important;
  margin-left: 0 !important;
  opacity: 1 !important;
}

.new-featured__pagination .swiper-pagination-bullet-active {
  background-color: #027bff;
}
/* =========================
   TABLET (≤1439px)
========================= */
@media (max-width: 1439px) {
  .new-featured__slide {
    grid-template-columns: 1fr 1fr;
  }
  .new-featured__controls {
    padding-inline: 3.33%;
  }
}

/* =========================
   TABLET (≤1024px)
========================= */

@media (max-width: 1024px) {
  .new-featured {
    padding: 0 0 64px;
  }

  .new-featured__title {
    margin-bottom: 32px;
  }

  .new-featured__slide {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .new-featured__content {
    padding: 40px 40px;
    gap: 20px;
  }

  .new-featured__excerpt {
    max-width: 100%;
  }

  .new-featured__media {
    min-height: 320px;
  }

  .new-featured__image {
  }

  .new-featured__nav--prev {
    left: 24px;
  }

  .new-featured__nav--next {
    left: 80px;
  }

  .new-featured__pagination {
    bottom: 40px;
  }
}

/*  */
@media (max-width: 767px) {
  .new-featured {
    padding: 0 0 16px;
  }
  .new-featured__header {
    padding-inline: 16px;
  }
  .new-featured__title {
    margin-bottom: 0;
  }
  .new-featured__slider-wrapper {
    margin-top: 24px;
    padding-inline: 0;
  }

  .new-featured__content {
    padding: 24px 16px;
    gap: 16px;
  }
  .new-featured__excerpt {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }
  .new-featured__media {
    min-height: auto;
  }
  .new-featured__image {
    height: 213px;
    min-height: auto;
  }
  .new-featured__nav {
    display: none;
  }
}
.new-featured__date {
  display: inline-flex;  /* Alínea los elementos hijos en línea */
  align-items: center;   /* Centra verticalmente la imagen con el texto */
  gap: 8px;              /* Separa la imagen del texto de forma exacta */
}

.new-featured__date-icon {
  width: 24px;           /* Ajusta el tamaño de tu icono según lo necesites */
  height: auto;          /* Mantiene la proporción de la imagen */
  display: block;
}

/* Contenedor general en fila */
.news-thumbs-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 15px;
  width: 100%;
  max-width: 1200px; /* Ajusta según el ancho de tu sitio */
  margin: 20px auto 0 auto;
  box-sizing: border-box;
  position: absolute;
  top: 850px;
}

/* Cada tarjeta individual */
.news-thumb-item {
  flex: 1; /* Hace que todas midan lo mismo y se distribuyan equitativamente */
  background-color: rgba(25, 35, 25, 0.65); /* Fondo verde/oscuro semitransparente idéntico al de Geely */
  backdrop-filter: blur(4px); /* Sutil efecto difuminado detrás del fondo */
  border-radius: 6px;
  padding: 15px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-height: 80px;
  display: flex;
  flex-direction: column;
}

/* Hover en las tarjetas inactivas */
.news-thumb-item:hover {
  background-color: rgba(25, 35, 25, 0.8);
}

/* El texto dentro de la miniatura */
.news-thumb-text {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
  font-family: system-ui, sans-serif;
  opacity: 0.85;
  /* Cortar texto con puntos suspensivos si es muy largo */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  overflow: hidden;
}

/* Línea de progreso (por defecto oculta o gris sutil) */
.news-thumb-progress {
  height: 4px;
  width: 100%;
  background-color: transparent;
  border-radius: 2px;
  margin-bottom: 10px;
}

/* ESTADO ACTIVO: Cuando la tarjeta corresponde al slide actual */
.news-thumb-item.is-active .news-thumb-text {
  opacity: 1;
  font-weight: 500;
}

.news-thumb-item.is-active .news-thumb-progress {
  background-color: #0046c0; /* Azul eléctrico de la marca Geely */
  width: 35%; /* Ancho de la barra de progreso visible */
}

/* Responsive para celulares: se apilan verticalmente si no caben */
@media (max-width: 768px) {
  .news-thumbs-container {
    flex-direction: column;
    padding: 0 15px;
  }
}


/* Banner ocupa todo el viewport con header flotando encima */
.section-banner-news {
  /* height: 100vh !important;
  min-height: 100vh !important; */
  margin-top: -88px !important; /* altura del header desktop */
  position: relative;
}

/* El header flota encima */
.page-has-featured-banner .mg-header,
body:has(.section-banner-news) header.site-header {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100001 !important;
  background: transparent !important;
}

/* Links y logo en blanco cuando el header está sobre el banner */
body:has(.section-banner-news) .mg-nav__link,
body:has(.section-banner-news) .mg-nav__trigger {
  color: #ffffff !important;
}

body:has(.section-banner-news) .custom-logo {
  filter: brightness(0) invert(1);
}



body:has(.section-banner-news) .mg-header__bar:has(.mg-nav__item--has-mega.is-open) .custom-logo {
  filter: none !important;
}

body:has(.section-banner-news) .wp-block-button__link {
  color: #ffffff !important;
  background: transparent !important;
  border: 1px solid #ffffff !important;
}

body:has(.section-banner-news) .wp-block-button__link:hover {
  color: #ffffff !important;
  background: rgba(25, 75, 255, 1) !important;
  border-color: rgba(25, 75, 255, 1) !important;
}

body:has(.section-banner-news) .mg-burger,
body:has(.section-banner-news) .mg-burger::before,
body:has(.section-banner-news) .mg-burger::after {
  background: #fff !important;
}
body:has(.section-banner-news) .mg-header__bar:has(.mg-nav__item--has-mega.is-open) .mg-nav__link,
body:has(.section-banner-news) .mg-header__bar:has(.mg-nav__item--has-mega.is-open) .mg-nav__trigger {
  color: #0b0c0c !important;
}

body:has(.section-banner-news) .mg-nav--in-drawer .mg-nav__link,
body:has(.section-banner-news) .mg-nav--in-drawer .mg-nav__trigger {
  color: #0b0c0c !important;
}


@media (max-width: 900px) {
  .section-banner-news {
    margin-top: -56px !important; /* altura del header mobile */
  }
}