/*
========================================
RESET
========================================
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Poppins',sans-serif;
    background:#f4f7fb;
    color:#0f172a;
    overflow-x:hidden;
}

/*
========================================
HEADER (AZUL ORIGINAL INDEX)
========================================
*/

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:9999;

    background:#07152b;
    box-shadow:0 2px 12px rgba(0,0,0,0.15);
}

.header-container{
    width:92%;
    max-width:1400px;
    margin:auto;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 0;
}

/* LOGO */

.logo{
    height:58px;
    width:auto;
    object-fit:contain;
}

/* NAV */

.nav{
    display:flex;
    align-items:center;
    gap:35px;
}

.nav a{
    text-decoration:none;
    color:#ffffff;
    font-size:14px;
    font-weight:600;
    position:relative;
}

/* underline animado */
.nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:#7db7ff;
    transition:0.3s;
}

.nav a:hover::after{
    width:100%;
}

.nav a:hover{
    color:#7db7ff;
}

/* BOTON CTA */
.btn-contacto{
    background:#ffffff;
    color:#0f172a;
    padding:13px 22px;
    border-radius:14px;
    font-weight:700;
    font-size:13px;
    text-decoration:none;
    box-shadow:0 10px 30px rgba(0,0,0,0.12);
    transition:0.3s;
}

.btn-contacto:hover{
    transform:translateY(-2px);
    background:#eef4ff;
}

/*
========================================
CONTENEDOR
========================================
*/

.contenedor{
    width:92%;
    max-width:1400px;
    margin:auto;
    padding:120px 0 80px;
}

/*
========================================
TOP INFO
========================================
*/

.tipo-propiedad{
    display:inline-flex;
    background:#dbeafe;
    color:#1d4ed8;
    padding:10px 18px;
    border-radius:50px;
    font-size:13px;
    font-weight:700;
    margin-bottom:12px;
}

.titulo{
    font-size:38px;
    font-weight:700;
    margin-bottom:10px;
}

.ubicacion{
    color:#64748b;
    font-size:16px;
}

/*
========================================
DATOS RAPIDOS
========================================
*/

.datos-rapidos{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin-top:20px;
}

.dato-rapido{
    background:white;
    border-radius:14px;
    padding:16px;
    border:1px solid #e2e8f0;
    text-align:center;
}

.icono{
    font-size:18px;
    color:#2563eb;
    margin-bottom:6px;
}

.dato-rapido span{
    display:block;
    font-size:13px;
    color:#64748b;
}

.dato-rapido strong{
    font-size:16px;
}

/*
========================================
GRID PRINCIPAL
========================================
*/

.contenido-grid{
    display:grid;
    grid-template-columns:1.5fr 0.8fr;
    gap:30px;
}

/*
========================================
GALERIA
========================================
*/

.galeria-box{
    background:white;
    padding:24px;
    border-radius:24px;
    border:1px solid #e2e8f0;
}

/* imagen principal */
.imagen-principal{
    width:100%;
    height:460px;
    position:relative;
    overflow:hidden;
    border-radius:18px;
    background:#e2e8f0;
}

.imagen-principal img{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* botones carrusel */
.carousel-btn{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:46px;
    height:46px;
    border:none;
    border-radius:50%;
    background:rgba(0,0,0,0.5);
    color:white;
    cursor:pointer;
}

.prev{ left:15px; }
.next{ right:15px; }

/*
========================================
MINIATURAS 4 COLUMNAS
========================================
*/

.miniaturas{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:10px;
    margin-top:12px;
}

.miniatura{
    width:100%;
    height:85px;
    object-fit:cover;
    border-radius:12px;
    cursor:pointer;
    border:2px solid transparent;
    transition:0.2s ease;
}

.miniatura:hover{
    border-color:#2563eb;
    transform:scale(1.03);
}

/*
========================================
SIDEBAR
========================================
*/

.sidebar-propiedad{
    position:sticky;
    top:110px;
}

/* precio */
.card-precio{
    background:white;
    padding:20px;
    border-radius:16px;
    border:1px solid #e2e8f0;
}

.card-precio h2{
    font-size:32px;
    margin-top:10px;
}

/*
========================================
INFORMACION INMUEBLE
========================================
*/

.card-info{
    margin-top:15px;
    background:white;
    padding:18px;
    border-radius:16px;
    border:1px solid #e2e8f0;
}

.card-info h3{
    font-size:16px;
    margin-bottom:10px;
}

.info-item{
    padding:8px 0;
    border-bottom:1px solid #f1f5f9;
    font-size:14px;
    color:#334155;
}

.info-item:last-child{
    border-bottom:none;
}

/*
========================================
BOTON WHATSAPP
========================================
*/

.btn-interesado{
    width:100%;
    margin-top:15px;
    padding:14px;
    background:#25d366;
    border:none;
    border-radius:10px;
    color:white;
    font-weight:700;
    cursor:pointer;
}

/*
========================================
MODAL WHATSAPP
========================================
*/

.modal-overlay{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    display:flex;
    justify-content:center;
    align-items:center;
    opacity:0;
    pointer-events:none;
    transition:0.3s ease;
    z-index:9999;
}

.modal-overlay.active{
    opacity:1;
    pointer-events:auto;
}

.modal-box{
    width:92%;
    max-width:420px;
    background:white;
    padding:25px;
    border-radius:18px;
}

.modal-box h3{
    margin-bottom:10px;
}

.modal-box input,
.modal-box textarea{
    width:100%;
    padding:10px;
    margin-bottom:10px;
    border:1px solid #e2e8f0;
    border-radius:10px;
}

.btn-cerrar{
    width:100%;
    padding:12px;
    background:#e2e8f0;
    border:none;
    border-radius:10px;
    cursor:pointer;
}

/*
========================================
CARDS
========================================
*/

.card{
    background:white;
    padding:30px;
    border-radius:20px;
    margin-top:25px;
    border:1px solid #e2e8f0;
}

/*
========================================
MAPA
========================================
*/

#mapa{
    width:100%;
    height:420px;
    border-radius:16px;
}

/*
========================================
RESPONSIVE
========================================
*/

@media(max-width:1100px){

    .contenido-grid{
        grid-template-columns:1fr;
    }

    .sidebar-propiedad{
        position:relative;
        top:auto;
    }
}

@media(max-width:768px){

    .datos-rapidos{
        grid-template-columns:repeat(2,1fr);
    }

    .imagen-principal{
        height:320px;
    }

    .miniaturas{
        grid-template-columns:repeat(2,1fr);
    }

    .titulo{
        font-size:28px;
    }
}