/* Hero / footer: capturas estáticas (sin teselas CARTO) */
#hero-map,
#cta-footer-map {
  width: 100%;
  height: 100%;
}
#hero-map { background: #000000; }
#cta-footer-map { background: #102D5E; }

/* Titular del Hero definitivo */
.hero-title-text,
#hero-title > span:not(.hero-keyword):not(.keyword),
main section:first-of-type h1 > span:not(.hero-keyword):not(.keyword) {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-keyword,
#hero-title > span.hero-keyword,
#hero-title > span.keyword,
main section:first-of-type h1 > span.hero-keyword,
main section:first-of-type h1 > span.keyword {
  color: #00dc82;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ========================================================
 * Cápsula contenedora para todo el titular del Hero
 * (Oculta las líneas del mapa detrás de toda la frase)
 * ======================================================== */
/* ========================================================
 * Cápsulas contenedoras para los titulares del Hero
 * ======================================================== */

/* Cápsula clara para héroes centrados (#hero-title en index y compare) */
#hero-title,
main section:first-of-type .text-center h1 {
  display: block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(241, 243, 245, 0.8);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 32px;
  padding: 0.34em 0.95em;
  margin-left: auto;
  margin-right: auto;
}

/* Cápsula dark glass para héroes alineados a la izquierda (como ofertas, términos, contacto, privacidad) */
main section:first-of-type .items-start h1,
main section:first-of-type div:not(.text-center) > h1:not(#hero-title) {
  display: block;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 0.35em 0.85em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  box-shadow: none;
  filter: none;
  margin-left: 0;
  margin-right: auto;
}

#faq-heading {
  color: #0f172a !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
}

/* ========================================================
 * Estilo de Fondo Definitivo para Páginas Legales, FAQ y Contacto
 * Opción: Modo Claro Documental
 * ======================================================== */

/* 1. Ocultar mapa en páginas legales, FAQ y Contacto */
body.page-legal #hero-map,
body.page-faq #hero-map,
body.page-contacto #hero-map {
  display: none !important;
}

/* 2. Fondo de la sección legal, FAQ y Contacto */
body.page-legal main > section:first-of-type,
body.page-faq main > section:first-of-type,
body.page-contacto main > section:first-of-type {
  background: #f8fafc !important;
}

/* 3. Modo Claro Documental */
body.page-legal main section:first-of-type h1,
body.page-contacto main section:first-of-type h1 {
  color: #1c4c9c !important;
}
body.page-legal main section:first-of-type h1,
body.page-contacto main section:first-of-type h1 {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  width: auto !important;
  border-radius: 0 !important;
}
body.page-legal main section:first-of-type .inline-flex:not(button),
body.page-contacto main section:first-of-type .inline-flex:not(button) {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}
body.page-legal main section:first-of-type h1 + p,
body.page-legal main section:first-of-type p.mt-4,
body.page-contacto main section:first-of-type h1 + p,
body.page-contacto main section:first-of-type p.mt-4 {
  color: #64748b !important;
  text-shadow: none !important;
  filter: none !important;
}
#terminos-body,
#privacidad-body {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06) !important;
}
#terminos-body h2,
#terminos-body h3,
#terminos-body strong,
#privacidad-body h2,
#privacidad-body h3,
#privacidad-body strong {
  color: #0f172a !important;
}

/* ========================================================
 * Estilo Definitivo para Hero de Ofertas
 * Opción: Sólido Azul Primario (#1c4c9c)
 * Paleta Oficial Geoapp: #102D5E, #1c4c9c, #0f1729, #1e293b, #00DC82
 * ======================================================== */

/* 1. Ocultar mapa estático en ofertas */
body.page-ofertas #hero-map {
  display: none !important;
}

/* 2. Fondo del Hero de Ofertas (Colores Oficiales) */
body.page-ofertas main > section:first-of-type {
  background: #1c4c9c !important;
}

/* 3. Altura y distribución vertical del Hero */
body.page-ofertas main > section:first-of-type,
body.page-ofertas main > section:first-of-type > div.relative.z-10 {
  min-height: 18rem !important;
}
body.page-ofertas main > section:first-of-type > div.relative.z-10 {
  justify-content: center !important;
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}
@media (max-width: 767px) {
  body.page-ofertas main > section:first-of-type,
  body.page-ofertas main > section:first-of-type > div.relative.z-10 {
    min-height: 16rem !important;
  }
  body.page-ofertas main > section:first-of-type > div.relative.z-10 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
}

/* 4. Titular de Ofertas (Efecto Neón) */
body.page-ofertas main section:first-of-type h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75) !important;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: auto !important;
  border-radius: 0 !important;
}
.static-map-picture {
  position: absolute;
  inset: 0;
  display: block;
}
.static-map-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.static-map-pins {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.static-map-pin {
  position: absolute;
  margin: 0;
  transform: translate(-50%, -100%);
}
.static-map-attr {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  max-width: 55%;
  margin: 0;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
  line-height: 1.3;
  pointer-events: none;
}
.static-map-attr a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.store-pin {
  position: relative;
  width: 36px;
  height: 48px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}
.store-pin.static-map-pin {
  position: absolute;
}
.store-pin__img {
  display: block;
  width: 36px;
  height: 48px;
  object-fit: contain;
  pointer-events: none;
}
