/* 
Theme Name: OLED Inmobiliaria
Theme URI: https://monkey.pe/
Description: A WordPress theme created by Monkey.
Author: Monkey
Author URI: https://monkey.pe/
Template: hello-elementor
Version: 1.0.0
Text Domain: oled-inmobiliaria
*/


/* --- ESTILOS PADRE (FUERZA BRUTA) --- */
body .acf-repeater-grid {
    display: grid !important;
    gap: 25px !important;
    width: 100% !important;
}

body .acf-item {
    display: flex !important;
}

/* --- SECCIÓN 1: CARACTERÍSTICAS (3x3) --- */
body .grid-caracteristicas {
    grid-template-columns: repeat(3, 1fr) !important;
    margin-bottom: 30px !important;
}

body .grid-caracteristicas .acf-item {
    align-items: center !important;
    gap: 12px !important;
}

body .grid-caracteristicas .acf-icon {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
}

/* --- SECCIÓN 2: ÁREAS COMUNES (TARJETAS GRANDES) --- */
body .grid-areas_comunes {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
}

body .grid-areas_comunes .acf-item {
    position: relative !important;
    aspect-ratio: 3 / 2 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

body .grid-areas_comunes .acf-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body .grid-areas_comunes .acf-text {
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    z-index: 2 !important;
}

/* --- SECCIÓN 3: PUNTOS CERCANOS (CÍRCULOS) --- */
body .grid-puntos_cercanos {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
}

body .grid-puntos_cercanos .acf-item {
    align-items: center !important;
    gap: 15px !important;
}

body .grid-puntos_cercanos .acf-icon {
    width: 25px !important;
    height: 25px !important;
    padding: 12px !important;
    background-color: #0C4C88 !important;
    border-radius: 50% !important;
    box-sizing: content-box !important;
}

/* --- RESPONSIVE PARA EL 3X3 --- */
@media (max-width: 767px) {
    body .grid-caracteristicas {
        grid-template-columns: 1fr !important;
    }
}






/* RESET PARA EVITAR SORPRESAS */
.v3-hero-layout, .v3-hero-layout * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* CONTENEDOR PRINCIPAL */
.v3-hero-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    background: #000;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

/* === COLUMNA IZQUIERDA (71%) === */
.v3-col-left {
    width: 71%; 
    height: 100%;
    position: relative;
}

/* === COLUMNA DERECHA (29%) === */
.v3-col-right {
    width: 29%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* -- Bloque Arriba (40%) -- */
.v3-right-top {
    flex: 0 0 40%;
    width: 100%;
    position: relative;
    /* Bordes para separar las fotos (opcional) */
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
}

/* -- Grid Abajo (60%) -- */
.v3-right-grid {
    flex: 0 0 60%;
    width: 100%;
    display: grid;
    /* Grid estricto de 2x2 */
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 50% 50%; /* Fuerza la altura exacta */
    min-height: 0; 
}

/* CADA CELDA DEL GRID */
.v3-grid-box {
    position: relative;
    width: 100%;
    height: 100%;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    overflow: hidden;
}

/* ENLACES (El área de clic) */
.v3-hero-layout a {
    display: block;
    width: 100% !important;
    height: 100% !important;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 1; /* Nivel básico para recibir clic */
}

/* IMAGENES */
.v3-hero-layout img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta para llenar sin deformar */
    object-position: center center;
    display: block;
    /* SIN TRANSICIÓN NI ZOOM */
}

/* OVERLAY (+X) */
.v3-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* VITAL PARA EL CLIC: */
    pointer-events: none; /* El clic atraviesa el texto y le da a la foto */
    z-index: 5;
}

/* TEXTO DEL CONTADOR */
.v3-count { 
    font-size: 2.2rem; 
    font-weight: 800; 
    line-height: 1; 
}
.v3-text { 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-top: 5px; 
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .v3-hero-layout { flex-direction: column; height: auto; }
    .v3-col-left { width: 100%; height: 50vh; }
    .v3-col-right { width: 100%; height: auto; }
    .v3-right-top { height: 200px; }
    .v3-right-grid { 
        height: auto; 
        grid-template-rows: 150px 150px; /* Altura fija en móvil */
    }
}

