/* /Inicio - ajustes propios del INDEX de Loyalco.
   El resto del look sale de css/style.css (plantilla Renstate Light). */

/* ---------- ancla del menu "Contacto" ---------- */
#contacto {
    scroll-margin-top: 110px;
}

/* ---------- grid de propiedades destacadas ---------- */
.inicio-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.inicio-grid::after {
    content: none;
}

.inicio-grid .listing-grid-item {
    width: auto;
    float: none;
    padding: 0;
    height: 100%;
}

.inicio-grid .listing-item,
.inicio-grid .geodir-category-listing {
    height: 100%;
}

/* La descripcion se recorta a 4 lineas para que las tarjetas queden parejas */
.inicio-grid .geodir-category-content p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 6em;
}

.inicio-grid .inicio-grid-vacio {
    grid-column: 1 / -1;
}

/* ---------- estados de carga y vacio ---------- */
.inicio-cargando {
    padding: 60px 0;
    text-align: center;
    color: #888;
    font-size: 1em;
    letter-spacing: .02em;
}

.inicio-vacio {
    padding: 30px 25px;
    margin-bottom: 20px;
    border: 1px dashed #e2e2e2;
    border-radius: 16px;
    color: #777;
    background: #fafafa;
}

#IdSeccionTestimonios[hidden],
#IdSeccionDesarrollos[hidden],
.inicio-oculto {
    display: none !important;
}

/* ---------- estadisticas del bloque "Por que reservar" ---------- */
.inicio-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.inicio-stat {
    flex: 1 1 0;
    min-width: 120px;
    padding: 22px 15px;
    border: 1px solid #eee;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.inicio-stat strong {
    display: block;
    font-size: 1.9em;
    line-height: 1.1;
    font-weight: 600;
    color: #222;
}

.inicio-stat span {
    display: block;
    margin-top: 6px;
    font-size: .85em;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #888;
}

/* ---------- contacto del bloque final ---------- */
.inicio-contacto {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .18);
    color: inherit;
}

.inicio-contacto li {
    margin-bottom: 8px;
    font-size: .95em;
}

.inicio-contacto li span:first-child {
    font-weight: 600;
    margin-right: 6px;
}

.inicio-contacto a {
    color: inherit;
    text-decoration: underline;
}

/* ---------- estrellas de los testimonios ---------- */
.inicio-estrellas {
    margin-top: 10px;
    color: #f5b301;
    font-size: .9em;
    letter-spacing: .12em;
}

.inicio-estrellas .fa-regular {
    color: #d8d8d8;
}

/* ---------- carruseles que arma Inicio.js ---------- */
#IdCiudades .city-carousel,
#IdTestimonios .testimonilas-carousel {
    position: relative;
}

#IdCiudades .city-carousel-item .bg-wrap,
#IdCiudades .city-carousel-item .bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: center center;
}

#IdCiudades .city-carousel-item .overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .05) 60%, rgba(0, 0, 0, 0) 100%);
}

#IdTestimonios .testi-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#IdTestimonios .testimonilas-text-item-wrap p {
    margin: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
    .inicio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* En tablet y movil el chip "Ver todas" deja de flotar sobre el titulo */
    .listing-grid_heroheader .gallery-filters {
        position: static;
        display: inline-block;
        width: auto;
        margin-top: 15px;
    }
}

@media (max-width: 768px) {
    .inicio-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .inicio-stat {
        min-width: 45%;
    }
}

/* ---------- hero: legibilidad del titulo sobre las fotos ---------- */
/* El template no trae capa oscura sobre el fondo del hero: sin esto el titulo
   blanco se pierde en las zonas claras de la foto (sabanas, muro de piedra, mar). */

/* OJO: .hero-blur-container hereda de .fs-wrapper (position absolute + inset 0);
   no sobreescribir su position o el fondo colapsa a 0 de alto y la foto desaparece. */

.home-hero-section .hero-blur-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(6, 12, 24, .55) 0%,
        rgba(6, 12, 24, .34) 32%,
        rgba(6, 12, 24, .10) 60%,
        rgba(6, 12, 24, 0) 82%);
}

/* Blanco hueso en lugar de blanco puro: se ve menos duro sobre la luz calida
   de las fotos y sigue contrastando sobre el degradado. */
.home-hero-section .hero-section-title h2 {
    color: #F7F3EC;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .45);
}

.home-hero-section .hero-section-title h5 {
    color: rgba(247, 243, 236, .94);
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
}

.home-hero-section .hero-section-title_sub {
    color: #F7F3EC;
    background: rgba(6, 12, 24, .45);
    border-color: rgba(255, 255, 255, .28);
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
}

/* En movil el titulo cae sobre toda la foto: el degradado se vuelve vertical. */
@media (max-width: 991px) {
    .home-hero-section .hero-blur-container::after {
        background: linear-gradient(180deg,
            rgba(6, 12, 24, .62) 0%,
            rgba(6, 12, 24, .48) 45%,
            rgba(6, 12, 24, .30) 100%);
    }
}
