/* =========================================================================
       COLORES BASE
       ========================================================================= */

:root {
  --color-primario: #1e73be;
  --color-promo: #dc3545;
  --color-blackfriday: #b80a0a;
  --color-antracita: #222222; /* gris antracita para fondos oscuros */
  --color-texto-claro: #ffffff;
}

/* =========================================================================
       BADGES / CINTAS
       ========================================================================= */

.listing-badges .featured,
.listing-badges .featured:before {
  background: var(--color-primario);
}

.listing-badges .featured-sale,
.listing-badges .featured-sale:before {
  background: var(--color-promo) !important;
}

/* =========================================================================
       PÍLDORAS (BAÑOS, COCINA…)
       ========================================================================= */

.spec-pill {
  display: inline-block;
  background-color: var(--color-primario);
  color: #fff;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.3;
}

.spec-pill-promo {
  background-color: var(--color-promo) !important;
}

/* =========================================================================
       SECCIONES CARRUSELES (CON FONDOS DIFERENCIADOS)
       ========================================================================= */

.section-bf,
.section-estrella,
.section-ultimos {
  padding: 60px 0;
}

/* Black Friday → gris antracita */
.recent__property.section-bf {
  background-color: var(--color-antracita) !important;
}

/* Modelos Estrella → fondo blanco */
.recent__property.section-estrella {
  background-color: #ffffff !important;
}

/* Últimos Modelos → gris antracita */
.recent__property.section-ultimos {
  background-color: var(--color-antracita) !important;
}

/* Textos de encabezado en secciones oscuras (solo BF y Últimos) */
.section-bf .title__head-v2 h2,
.section-ultimos .title__head-v2 h2 {
  color: var(--color-texto-claro) !important;
}

.section-bf .title__head-v2 p,
.section-ultimos .title__head-v2 p {
  color: rgba(255, 255, 255, 0.85) !important;
}
/* Modelos Estrella usa el estilo por defecto del tema (texto oscuro sobre blanco) */

/* =========================================================================
       POPUP BLACK FRIDAY + ANIMACIONES
       ========================================================================= */

#promo-popup {
  position: fixed;
  inset: 0;
  display: none; /* Se activa por JS */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#promo-popup.is-visible {
  opacity: 1;
  visibility: visible;
}

.promo-popup-inner {
  position: relative;
  background: #000;
  border-radius: 10px;
  padding: 25px 30px 30px 30px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: popupFadeIn 0.45s ease-out;
  color: var(--color-texto-claro);
  font-family: Arial, sans-serif;
}

.promo-popup-close {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 26px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 0.8;
}

.promo-popup-logo {
  width: 65%;
  max-width: 260px;
  margin: 0 auto 18px auto;
  display: block;
}

.promo-popup-title {
  font-size: 26px;
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.2;
  color: var(--color-texto-claro);
}

.promo-popup-title .promo-bf {
  color: var(--color-blackfriday);
  text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000,
    2px 2px 0 #000;
}

.promo-popup-text {
  font-size: 17px;
  font-style: italic;
  margin: 0 0 18px 0;
  color: var(--color-texto-claro);
  line-height: 1.4;
}

.promo-popup-btn {
  display: inline-block;
  padding: 10px 22px;
  background: var(--color-blackfriday);
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.promo-popup-btn:hover {
    background-color: #900808 !important; /* un poco más oscuro que #b80a0a */
    color: #ffffff !important;
}


/* =========================================================================
       KEYFRAMES
       ========================================================================= */

@keyframes popupFadeIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

