/* =================================================
   RESET BÁSICO
================================================= */

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    display: block;
}

/* =================================================
   COLORES GENERALES
================================================= */

body {
    color: #000;
    background: #fff;
}

main {
    margin-top: 0;
    padding-top: 0;
}

/* =================================================
   SLIDER
================================================= */

.home-slider-custom {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    position: relative;
}

/* =================================================
   HEADER
================================================= */

.site-header {
    position: relative;
    background: transparent;
}

/* =================================================
   MENÚ DESKTOP (VISIBLE SOLO EN DESKTOP)
================================================= */

@media (min-width: 769px) {

    .site-header .nav-primary {
        display: flex;
        gap: 32px;
        position: absolute;
        right: 70px;
        top: 40%;
        transform: translateY(250%);
    }

    .site-header .nav-primary a {
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        letter-spacing: .08em;
        text-transform: uppercase;
        font-size: px;
    }

    .mobile-property-links {
        display: none;
    }
}

/* =================================================
   MOBILE – SIN MENÚ
================================================= */

@media (max-width: 768px) {

    .site-header .nav-primary {
        display: none;
    }

    .site-logo {
        text-align: center;
        margin: -55px auto 12px;
        cursor: pointer;
    }

    .mobile-property-links {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 12px 16px;
        margin-top: -200px;
        margin-bottom: 12px;
        position: relative;
        z-index: 10;
    }

    .mobile-property-links a {
        background: #fff;
        border-radius: 14px;
        border: 1.5px solid #000;
        padding: 10px 6px;
        text-align: center;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: #000;
        text-decoration: none;
        box-shadow: 0 6px 18px rgba(0,0,0,.08);
    }
}

/* =================================================
   GRID DE PROPIEDADES (DESKTOP Y MOBILE)
================================================= */

.fa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 40px;
}

/* Tablet */
@media (max-width: 1024px) {
    .fa-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 640px) {
    .fa-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

/* =================================================
   CARD DE PROPIEDAD
================================================= */

.fa-propiedad-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}

.fa-propiedad-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* =================================================
   IMAGEN
================================================= */

.fa-propiedad-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.fa-propiedad-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =================================================
   CONTENIDO
================================================= */

.fa-propiedad-content {
    padding: 26px 26px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* TÍTULO */
.fa-propiedad-content h3,
.fa-propiedad-content h3 a {
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #000;
    margin: 0;
    text-decoration: none;
}

/* DIRECCIÓN */
.fa-propiedad-direccion {
    font-size: 14px;
    color: #000;
    display: flex;
    gap: 6px;
    align-items: center;
}

/* TEXTO */
.fa-propiedad-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
    margin: 0;
}

/* =================================================
   BOTÓN "VER PROPIEDAD"
================================================= */

.fa-propiedad-boton {
    margin-top: auto;
}

.fa-propiedad-boton a {
    display: block;
    width: 100%;
    text-align: center;
    background: #000;
    color: #fff;
    padding: 14px 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease;
}

.fa-propiedad-boton a:hover {
    background: #222;
    transform: translateY(-2px);
}

/* =================================================
   MOBILE – CARDS MÁS LIVIANAS
================================================= */

@media (max-width: 768px) {

    .fa-propiedad-content {
        padding: 18px 18px 22px;
        gap: 10px;
    }

    .fa-propiedad-content h3 {
        font-size: 17px;
    }

    .fa-propiedad-content p {
        font-size: 13.5px;
    }
}
/* =========================================
   FIX DEFINITIVO ESPACIO HEADER → MAIN
========================================= */

.site-header {
    height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

main#contenido {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
/* =========================================
   CENTRAR IMÁGENES EN MOBILE (WP BLOCK IMAGE)
========================================= */

@media (max-width: 768px) {

    /* quitar alineaciones izquierda/derecha */
    .wp-block-image.alignright,
    .wp-block-image.alignleft {
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center;
    }

    /* centrar la imagen en sí */
    .wp-block-image img {
        display: block;
        margin: 0 auto;
        max-width: 90%;   /* evita que quede gigante */
        height: auto;
    }
	
}
/* Espacio entre el SmartSlider y el bloque siguiente */
.wp-block-shortcode {
    margin-bottom: 200px;
}
#n2-ss-2 {
    margin-bottom: 80px;
}
/* Ocultar título hardcodeado "Propiedades en venta" */
.fa-section-title {
    display: none !important;
}

/* Separar "Contactanos" del bloque superior */
p > strong {
    display: inline-block;
    margin-top: 60px;
}
/* =========================================
   ESPACIADO INTERNO DE LAS CARDS
========================================= */

.fa-propiedad-card {
    overflow: hidden; /* mantiene bordes prolijos */
}

.fa-propiedad-info {
    padding: 20px 22px 24px;
}

/* más aire entre elementos internos */
.fa-propiedad-info h3 {
    margin-bottom: 10px;
}

.fa-propiedad-info p {
    margin-bottom: 14px;
}

/* botón "ver propiedad" separado del texto */
.fa-propiedad-info .fa-ver-mas {
    display: inline-block;
    margin-top: 8px;
}
@media (max-width: 768px) {
    .fa-propiedad-info {
        padding: 16px 18px 20px;
    }

    .fa-propiedad-info h3 {
        margin-bottom: 8px;
    }

    .fa-propiedad-info p {
        margin-bottom: 10px;
    }
}

.site-header .nav-primary {
    position: absolute;
    left: 42%;
    transform: translateX(-50%);
    top: 69px; /* 🔽 AJUSTÁ ESTE VALOR */
}

.cta-contacto{
    background:#ffffff;
    color:#111;
    text-align:center;
    padding:60px 30px;
    border-radius:8px;
    margin-bottom:40px;
    border:1px solid #e5e5e5;
    font-family:'Poppins', 'Montserrat', sans-serif;
}

.cta-contacto h2{
    font-size:32px;
    font-weight:600;
    margin-bottom:10px;
    letter-spacing:-0.5px;
}

.cta-contacto p{
    font-size:17px;
    color:#555;
    margin-bottom:30px;
}

.cta-boton{
    background:#000;
    color:#fff;
    padding:16px 38px;
    font-size:16px;
    border-radius:40px;
    text-decoration:none;
    font-weight:500;
    transition:all 0.3s ease;
    display:inline-block;
}

.cta-boton:hover{
    background:#333;
    transform:translateY(-2px);
}
.cta-contacto{
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}
/* CTA */

.cta-contacto{
text-align:center;
padding:60px 30px;
background:#fff;
border:1px solid #e5e5e5;
border-radius:8px;
font-family:'Poppins','Montserrat',sans-serif;
}

.cta-contacto h2{
font-size:32px;
margin-bottom:10px;
}

.cta-contacto p{
color:#555;
margin-bottom:25px;
}

.cta-boton{
background:#000;
color:#fff;
padding:16px 40px;
border-radius:40px;
text-decoration:none;
font-weight:500;
transition:0.3s;
}

.cta-boton:hover{
background:#333;
}


/* POPUP */

.popup-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;
z-index:9999;
}

.popup-overlay:target{
opacity:1;
pointer-events:auto;
}

.popup-contenido{
background:#fff;
padding:40px;
border-radius:10px;
width:90%;
max-width:500px;
position:relative;
}

.popup-cerrar{
position:absolute;
top:10px;
right:15px;
font-size:25px;
text-decoration:none;
color:#000;
}

.popup-contenido h3{
margin-bottom:20px;
text-align:center;
}
/* OVERLAY OSCURO */

.popup-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.65);
display:flex;
align-items:center;
justify-content:center;
opacity:0;
pointer-events:none;
transition:0.3s;
z-index:9999;
padding:20px;
}

/* CUANDO SE ABRE */

.popup-overlay:target{
opacity:1;
pointer-events:auto;
}

/* CAJA DEL POPUP */

.popup-contenido{
background:#fff;
padding:40px;
border-radius:10px;
width:100%;
max-width:500px;
max-height:90vh;
overflow-y:auto;
box-shadow:0 20px 60px rgba(0,0,0,0.3);
position:relative;
}

/* BOTON CERRAR */

.popup-cerrar{
position:absolute;
top:10px;
right:15px;
font-size:28px;
text-decoration:none;
color:#000;
font-weight:300;
}

/* TITULO */

.popup-contenido h3{
text-align:center;
margin-bottom:25px;
font-size:22px;
}

/* FORMULARIO */

.popup-contenido input,
.popup-contenido textarea{
width:100%;
padding:10px;
margin-bottom:12px;
border:1px solid #ddd;
border-radius:4px;
}

/* BOTON ENVIAR */

.popup-contenido input[type="submit"]{
background:#000;
color:#fff;
border:none;
padding:12px;
border-radius:30px;
cursor:pointer;
transition:0.3s;
}

.popup-contenido input[type="submit"]:hover{
background:#333;
}