body {
    background-color: #f5f5f5;
}

/* HERO */
.hero-yf {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    min-height: 320px;
    background-image:
        linear-gradient(90deg, rgba(0,0,0,0.8), rgba(0,0,0,0.2)),
        url("../img/Glorieta.jpg");
    background-size: cover;
    background-position: center;
    margin-top: 1.5rem;
}

/* Solo se encarga del flex, la posición la pone el grupo de abajo */
.hero-overlay {
    display: flex;
    align-items: center;
}

.hero-content {
    color: #fff;
    padding: 2.5rem;
    max-width: 520px;
}

/* TARJETAS DE PROPIEDAD */

/* Link clickeable */
.property-link {
    text-decoration: none;
    color: inherit;
    display: block;              /* <--- el link ocupa toda la card */
}

/* Card base */
.property-card {
    border-radius: 18px;
    overflow: hidden;
    border: none;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    background: #ffffff;
    cursor: pointer;
    transform: translateY(0) scale(1); /* estado base */
    transition:
        transform 0.25s ease-out,
        box-shadow 0.25s ease-out,
        background-color 0.25s ease-out;
}

/* Hover suave: flota tantito y aumenta la sombra */
.property-card:hover {
    transform: translateY(-10px) scale(1.02);   /* <-- más notorio */
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    background-color: #f9fafb;
}

/* Contenedor de imagen con zoom */
.property-card-img-wrapper {
    overflow: hidden;
}

.property-card-img-wrapper img {
    height: 220px;
    width: 100%;
    object-fit: cover;
    display: block;
    background-color: #eee;
    transition: transform 0.4s ease-out;
}

.property-card:hover .property-card-img-wrapper img {
    transform: scale(1.06);
}

/* Título/price un poquito más destacados */
.property-card .card-title {
    font-weight: 600;
}

.property-card .price-highlight {
    font-size: 0.98rem;
}

/* Pequeño efecto en el precio al hover */
.property-card:hover .price-highlight {
    text-shadow: 0 0 12px rgba(37, 99, 235, 0.25);
}

/* Focus accesible con teclado */
.property-link:focus-visible .property-card {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
    transform: translateY(-6px) scale(1.01);
}

/* BLOQUE ASESORÍA PERSONALIZADA */
.info-asesoria {
    background-color: #fff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.info-asesoria-img img {
    border-radius: 1.5rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-asesoria-title {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.info-asesoria-text {
    font-size: 1rem;
    color: #444;
}

.info-asesoria-list {
    padding-left: 1.2rem;
}

.info-asesoria-list li {
    margin-bottom: 0.35rem;
    color: #555;
}

/* un poco de resposivo */
@media (max-width: 991.98px) {
    .info-asesoria {
        padding: 1.75rem;
    }

    .info-asesoria-title {
        font-size: 1.8rem;
    }

    .info-asesoria-img {
        margin-bottom: 1rem;
    }
}

/* CTA WHATSAPP */
.cta-whatsapp {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background-image:
        linear-gradient(0deg, rgba(0,0,0,0.55), rgba(0,0,0,0.25)),
        url("../img/calles-merida.jpg");
    background-size: cover;
    background-position: center;
    min-height: 260px;
}

.cta-whatsapp-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cta-whatsapp-content {
    max-width: 700px;
}

.cta-whatsapp-box {
    background-color: #d9a300; /* dorado tipo Yucatán */
    padding: 2rem 3rem;
    border-radius: 0.75rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f1f1f;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.cta-whatsapp-btn {
    background-color: #d9a300;
    color: #1f1f1f;
    font-weight: 600;
    padding: 0.75rem 2.5rem;
    border-radius: 999px;
    border: none;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}

.cta-whatsapp-btn:hover {
    background-color: #f1b800;
    color: #000;
}

/* responsive CTA */
@media (max-width: 767.98px) {
    .cta-whatsapp-box {
        padding: 1.5rem 1.75rem;
        font-size: 1.4rem;
    }
}

/* CONTACTO */
.contact-hero {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    min-height: 220px;
    background-image:
        linear-gradient(120deg, rgba(0,0,0,0.7), rgba(0,0,0,0.25)),
        url("../img/contactanos.webp");
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
}

.contact-hero-overlay {
    display: flex;
    align-items: center;
    padding: 2.5rem;
}

.contact-hero-content {
    color: #fff;
    max-width: 520px;
}

.contact-hero-content h1 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.contact-hero-content p {
    margin: 0;
    font-size: 0.98rem;
}

/* tarjetas del contenido */
.contact-wrapper {
    margin-bottom: 2rem;
}

.contact-form-card,
.contact-side-card {
    border-radius: 1.25rem;
}

/* responsive contacto */
@media (max-width: 767.98px) {
    .contact-hero-overlay {
        padding: 1.75rem;
    }

    .contact-hero-content h1 {
        font-size: 1.7rem;
    }

    .contact-wrapper {
        margin-top: 0.5rem;
    }
}

/* Capa absoluta compartida (hero, cta, contacto) */
.hero-overlay,
.cta-whatsapp-overlay,
.contact-hero-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}
