/* =========================================================
   index-page.css — estilos propios de la página de inicio
   (hero principal, mapa de tiendas con Leaflet, iframe de
   solicitud de crédito y grilla de marcas). Antes vivían como
   varios <style> sueltos dentro de index.html.
   ========================================================= */

/* ---------- Hero principal ("JAHER Es confianza") ---------- */
/* Colores tomados del logo oficial de Jaher (fondo azul + trazo rojo) */
#home {
     min-height: 88vh;
     padding-top: 0;
     display: flex;
     align-items: center;
}

#home .overlay {
     background: linear-gradient(115deg, rgba(0, 42, 79, 0.88) 0%, rgba(0, 105, 180, 0.55) 55%, rgba(0, 105, 180, 0.25) 100%);
     opacity: 1;
}

.hero-grid {
     display: flex;
     align-items: flex-end;
     justify-content: space-between;
     gap: 20px;
}

.hero-content {
     position: relative;
     z-index: 2;
     max-width: 780px;
     padding: 7em 0 3em 0;
}

.hero-character {
     position: relative;
     z-index: 2;
     flex-shrink: 0;
     align-self: flex-end;
     display: flex;
     align-items: flex-end;
}

.hero-character-img {
     display: block;
     width: 280px;
     max-width: 26vw;
     height: auto;
     filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

@media (max-width: 991px) {
     .hero-grid {
          flex-direction: column;
          align-items: center;
     }
     .hero-character {
          align-self: center;
          margin-top: 8px;
     }
     .hero-character-img {
          width: 170px;
          max-width: 42vw;
          filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.3));
     }
}

@media (max-width: 480px) {
     .hero-character-img {
          width: 130px;
          max-width: 36vw;
     }
}

.hero-kicker {
     display: inline-block;
     background: rgba(255, 255, 255, 0.12);
     border: 1px solid rgba(255, 255, 255, 0.5);
     color: #ffffff;
     font-weight: 700;
     font-size: 13px;
     letter-spacing: 1px;
     text-transform: uppercase;
     padding: 7px 18px;
     border-radius: 30px;
     margin-bottom: 22px;
}

.hero-logo-wrap {
     margin: 0 0 22px 0;
}

.hero-logo {
     display: block;
     width: 100%;
     max-width: 380px;
     height: auto;
     filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
}

.hero-tagline {
     margin: 10px 0 0 0;
     font-weight: 700;
     font-size: clamp(1.4rem, 3vw, 2.1rem);
     color: #ffffff;
     letter-spacing: 0.5px;
     text-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.hero-lead {
     color: #ffffff;
     font-size: 18px;
     line-height: 1.7;
     opacity: 0.95;
     max-width: 620px;
     margin-bottom: 32px;
}

.hero-cta {
     display: flex;
     flex-wrap: wrap;
     gap: 16px;
     margin-bottom: 38px;
}

.hero-btn {
     display: inline-block;
     padding: 15px 32px;
     border-radius: 40px;
     font-weight: 700;
     text-decoration: none;
     transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-btn-primary {
     background: #DF0914;
     color: #ffffff;
     box-shadow: 0 10px 26px rgba(223, 9, 20, 0.4);
}

.hero-btn-primary:hover {
     background: #b60710;
     color: #ffffff;
     transform: translateY(-3px);
}

.hero-btn-ghost {
     background: rgba(255, 255, 255, 0.08);
     border: 2px solid #ffffff;
     color: #ffffff;
}

.hero-btn-ghost:hover {
     background: #ffffff;
     color: #0069B4;
     transform: translateY(-3px);
}

.hero-trust {
     display: flex;
     flex-wrap: wrap;
     gap: 14px 30px;
}

.hero-trust-item {
     display: flex;
     align-items: center;
     gap: 10px;
     color: #ffffff;
     font-weight: 600;
     font-size: 14px;
     opacity: 0.95;
}

.hero-trust-item i {
     color: #ffdd00;
     font-size: 16px;
}

@media (max-width: 767px) {
     #home {
          min-height: 92vh;
          text-align: center;
     }
     .hero-content {
          padding: 6em 0 2.5em 0;
          margin: 0 auto;
     }
     .hero-cta,
     .hero-trust {
          justify-content: center;
     }
     .hero-logo {
          margin: 0 auto;
          max-width: 260px;
     }
}

/* ---------- Mapa de tiendas ---------- */
* {
     box-sizing: border-box;
}

.sidebar {
     position: absolute;
     width: 33.3333%;
     height: 100%;
     top: 0;
     left: 0;
     overflow: hidden;
     border-right: 1px solid rgb(0 0 0 / 25%);
}

.map {
     position: absolute;
     left: 33.3333%;
     width: 66.6666%;
     top: 0;
     bottom: 0;
}

.heading {
     background: #fff;
     border-bottom: 1px solid #eee;
     min-height: 60px;
     line-height: 60px;
     padding: 0 10px;
     background-color: #0575E6;
     color: #fff;
}

.listings {
     height: 100%;
     overflow: auto;
     padding-bottom: 60px;
}

.listings .item {
     display: block;
     border-bottom: 1px solid #eee;
     padding: 10px;
     text-decoration: none;
}

.listings .item:last-child {
     border-bottom: none;
}

.listings .item .title {
     display: block;
     color: #0575E6;
     font-weight: 700;
}

.listings .item .title small {
     font-weight: 400;
}

.listings .item.active .title,
.listings .item .title:hover {
     color: #0575E6;
}

.listings .item.active {
     background-color: #f8f8f8;
}

#listings::-webkit-scrollbar {
     width: 3px;
     height: 3px;
     border-left: 0;
     background: rgb(0 0 0 / 10%);
}

#listings::-webkit-scrollbar-track {
     background: none;
}

#listings::-webkit-scrollbar-thumb {
     background: #00853e;
     border-radius: 0;
}

.marker {
     border: none;
     cursor: pointer;
     height: 56px;
     width: 56px;
     background-image: url('/static/images/google-309739_1280.png');
     background-size: 65% 100%;
     background-repeat: no-repeat;
}

/* Popup tweaks (Leaflet) */
.leaflet-popup-content-wrapper {
     border-radius: 8px;
     padding: 0;
     overflow: hidden;
}

.leaflet-popup-content {
     margin: 0;
     width: 200px !important;
     font: 400 15px/22px 'Source Sans Pro', 'Helvetica Neue', sans-serif;
}

.leaflet-popup-content h3 {
     background: #0575E6;
     color: #fff;
     margin: 0;
     padding: 10px;
     font-weight: 700;
}

.leaflet-popup-content h6 {
     margin: 0;
     padding: 10px;
     font-weight: 400;
     color: #333;
}

.leaflet-popup-tip {
     background: #0575E6;
}

.jaher-pin {
     background: transparent !important;
     border: none !important;
     transition: transform 0.15s ease;
     cursor: pointer;
}

.jaher-pin:hover {
     transform: scale(1.12);
}

/* ---------- Video de portada ---------- */
.video-frame {
     border: 5px solid #ffdd00;
     border-radius: 10px;
     transition: transform 0.3s ease;
}

.video-frame:hover {
     transform: scale(1.02);
}

/* ---------- Iframe de solicitud de crédito ---------- */
.iframe-container {
     width: 100%;
     max-width: 100%;
     aspect-ratio: 16 / 9;
     border: 2px solid #0575E6;
     border-radius: 20px;
     overflow: hidden;
     box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.iframe-container iframe {
     width: 100%;
     height: 100%;
     border: none;
}

@media (max-width: 600px) {
     .iframe-container {
          aspect-ratio: 9 / 16;
     }
}

/* ---------- Grilla de marcas ---------- */
.brand-name {
     display: flex;
     align-items: center;
     justify-content: center;
     height: 90px;
     color: #ffffff;
     font-weight: 800;
     font-size: 26px;
     letter-spacing: 1px;
     text-align: center;
     text-transform: uppercase;
     text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
     transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-name:hover {
     transform: scale(1.08);
     opacity: 0.85;
}

@media (max-width: 767px) {
     .brand-name { font-size: 20px; height: 70px; }
}
