/* Le damos styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 80%;
    margin: 0 auto;
}

/* Header */
header {
    background-color: #ffffff;
    color: white;
    padding: 20px 0;
    position: relative;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header .logo img {
    width: 280px;
    transition: transform 0.3s ease;
}

header .logo img:hover {
    transform: scale(1.1);
}

nav ul {
    list-style-type: none;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-family: 'Lato', sans-serif;
    color: #2A2F34;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #2A2F34;
}



.hero {
    background-image: url('img/hero.webp');
    background-size: cover;
    background-position: center;
    padding: 310px 0;
    text-align: center;
    color: white;
    font-family: 'Playfair Display', serif;
}

.hero h1 {
    font-size: 3em;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
    animation: fadeInUp 1.2s ease-out forwards;
}

.hero p {
    font-size: 1.2em;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    margin: 0 auto;
    padding: 10px 20px;
}

/* Estilo para cualquier enlace dentro de .hero */
.hero a {
    color: white;
    text-decoration: none;
}

.hero a:hover {
    color: #FFD700; /* Dorado al pasar el mouse */
}

/* BOTÓN estilo glam */
.hero .cta-button {
    display: inline-block;
    background: linear-gradient(135deg,  #1F69FF, #122455);
    color: #ffffff;
    padding: 18px 35px;
    font-weight: bold;
    font-size: 22px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s ease;
    border: 2px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
    animation: pulse 2.5s infinite;
}

.hero .cta-button:hover {
    background: linear-gradient(135deg, #122455, #1F69FF);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

/* Animación sutil de latido */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}
/*Boton de las propiedades*/
.cta-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #122455; /* color base */
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
    background-color:  #1F69FF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.beneficio img {
    width: 250px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease; /* 💡 Agregamos transición suave */
}

.beneficio:hover img {
    transform: scale(1.1); /* 💡 Efecto zoom al pasar el mouse */
}

.beneficio {
    display: inline-block;
    width: 22%;
    margin: 10px;
    text-align: center;
}

/*Propiedades*/
.propiedades {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.propiedad {
    display: inline-block;
    width: 30%;
    margin: 10px;
    text-align: center;
}

.propiedad img {
    width: 100%;
    border-radius: 8px;
}
.property-image {
    position: relative;
    overflow: hidden; /* Para ocultar lo que se sale del borde */
}

/* Cinta en diagonal */
.ribbon {
    position: absolute;
    top: 15px;
    left: -45px;
    transform: rotate(-45deg);
    background-color: #d32f2f; /* rojo */
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    padding: 8px 50px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 10;
    pointer-events: none; /* Para que no interfiera al hacer clic */
}

/*filtros casas*/

.filter-button {
    padding: 8px 16px;
    margin: 5px;
    background-color: #ccc;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.filter-button:hover {
    background-color: #aaa;
}

.filter-button.activo {
    background-color: #1F69FF !important;
    transform: translateY(-2px);
}


.testimonios {
    background-color: #ffffff;
    padding: 40px 0;
}

.testimonio {
    margin-bottom: 20px;
    font-style: italic;
}

.contacto {
    background-color: #122455;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.contacto form {
    width: 60%;
    margin: 0 auto;
}

.contacto input, .contacto textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: none;
}

.contacto .cta-button {
    background-color:  #fafafa;
    color: rgb(7, 6, 6);
    padding: 15px 30px;
    font-weight: bold;
    border-radius: 5px;
    border: none;
    cursor: pointer;
}

/* pie de página */
footer {
    background-color: #004DE6;
    color: white;
    padding: 30px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left,
.footer-center,
.footer-right {
    flex: 1;
    min-width: 250px;
}

.footer-left p {
    text-align: justify;
    max-width: 380px;
    line-height: 1.5;
    font-size: 14px;
    margin: 0 auto;
}

.footer-center {
    text-align: center;
}

.footer-center img {
    max-width: 200px;
    height: auto;
    display: block;
    margin: 10px auto 0 auto;
}

.footer-right {
    text-align: right;
}

.social-media a {
    margin: 0 10px;
    color: white;
    text-decoration: none;
}

.footer-logos img {
    max-width: 300px;
    height: auto;
}
.footer-right a {
    color: white;
    font-weight: bold;
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        text-align: center;
    }

    .footer-left p {
        max-width: 700px;
    }
}


/*estilos propdades*/
.properties-section {
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-image {
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-image:hover img {
    transform: scale(1.05);
}

.property-details {
    padding: 1.5rem;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1rem 0;
    color: #4a5568;
    font-size: 0.9rem;
}

.price {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

@media screen and (max-width: 768px) {
    .beneficio {
        width: 100%;
        margin: 20px 0;
    }

    .beneficio img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 150px 20px;
    }

    .hero h1 {
        font-size: 2em;
        padding: 0 10px;
    }

    .hero p {
        font-size: 1em;
        padding: 10px 15px;
    }

    .hero .cta-button {
        font-size: 18px;
        padding: 14px 28px;
    }
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.4); /* fondo oscuro con transparencia */
    display: inline-block;
    padding: 20px;
    border-radius: 10px;
}

/* Responsive menú y hambur */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 70px;
        right: 0;
        background-color: white;
        width: 100%;
        display: none;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    }

    nav ul li {
        margin: 15px 0;
    }

    nav ul.show {
        display: flex;
    }
}