/* --- CONFIGURACIÓN GENERAL Y VARIABLES --- */
:root {
    --primary-color: #FF5A5F;
    --secondary-color: #FF5A5F;
    --dark-color: #212529;
    --light-color: #fff;
    --dark-section-bg:#FF5A5F;
    --dark-card-bg: #95484c;
    --footer-bg: #f8f9fa;
    --footer-text: #6c757d;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: var(--dark-color);
    scroll-behavior: smooth;
    line-height: 1.5;
}

/* --- HEADER Y NAVEGACIÓN --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: var(--light-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    width: 140px;
    z-index: 1002;
}

.nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

.button {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;

}

.button:hover {
    background-color: #e0484c;
    transform: translateY(-2px);
    color: white !important;
    
}

/* --- MENÚ HAMBURGUESA --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1002;
}

.hamburger-menu span {
    width: 30px;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 5px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; transform: translateX(20px); }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg); }

/* --- HERO SECTION --- */
.hero {
    background-image: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1740&q=80');
    background-size: cover;
    background-position: center;
    color: var(--light-color);
    padding: 100px 50px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); }
.hero-content { position: relative; z-index: 2; max-width: 600px; }
.hero h1 { font-size: 58px; margin-bottom: 20px; letter-spacing: -2px; line-height: 1.2; }
.hero p { font-size: 18px; line-height: 1.4; }
.hero-content .button { margin-top: 20px; }

/* --- HERO ANIMATION --- */
.hero-content h1, .hero-content p, .hero-content .button { opacity: 0; animation: slideUpFadeIn 0.8s ease-out forwards; }
.hero-content h1 { animation-delay: 0.2s; }
.hero-content p { animation-delay: 0.5s; }
.hero-content .button { animation-delay: 0.8s;   }
@keyframes slideUpFadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* --- ESTILOS DE SECCIÓN GENÉRICOS --- */
.content-section, .content-section-dark { padding: 80px 50px; text-align: center; }
.content-section-dark 
    { 
    background-color: var(--dark-section-bg); 
    color: var(--light-color);
    margin-left: 1%;
    margin-right: 1%;
   
 }
.content-section h2, .content-section-dark h2 { font-size: 36px; margin-top: 0; margin-bottom: 20px; }
.section-intro { max-width: 800px; margin: 0 auto 40px; font-size: 18px; line-height: 1.6; color: #666; }

/* --- SECCIÓN: QUIÉNES SOMOS --- */
.about-us-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 40px auto 0;
    text-align: left;
    align-items: flex-start;
}

.about-us-column h2 {
    text-align: left;
    font-size: 32px;
    margin-bottom: 25px;
}

.about-us-column p {
    color: #666;
    line-height: 1.7;
    font-size: 17px;
}

.why-us-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.why-us-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.why-us-icon {
    width: 35px;
    height: 35px;
    color: var(--primary-color);
    margin-right: 20px;
    flex-shrink: 0;
    margin-top: 5px;
}

.why-us-list h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
    color: var(--dark-color);
}

.why-us-list p {
    margin: 0;
    font-size: 16px;
}
.service-item-link {
    text-decoration: none;
    color: inherit;
    display: block; 
}

/* --- Ajustes responsivos para Quiénes Somos --- */
@media (max-width: 992px) {
    .about-us-container {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .about-us-container {
        grid-template-columns: 1fr;
    }
    .about-us-column h2 {
        text-align: center;
    }
}

/* --- SECCIÓN: CÓMO LO HACEMOS (PILARES) --- */
.features-grid-4col { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; max-width: 1200px; margin: 40px auto; }
.feature-item-wwd h3 { margin-top: 15px; margin-bottom: 10px; font-size: 20px; }
.feature-item-wwd p { color: #666; font-size: 16px; }
.feature-icon { width: 45px; height: 45px; color: var(--primary-color); }
.stats-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 1000px; margin: 80px auto 0; }
.stat-item { background-color: var(--secondary-color); color: var(--light-color); padding: 25px 20px; border-radius: 12px; }
.stat-item h3 { font-size: 40px; margin: 0 0 5px 0; }
.stat-item p { margin: 0; font-size: 16px; }

/* --- SECCIÓN: SERVICIOS --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; max-width: 1200px; margin: 40px auto 0; }

.service-item {
    background: var(--dark-card-bg);
    padding: 30px 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 70%; /* <-- AÑADE ESTA LÍNEA */
}
.service-icon { width: 50px; height: 50px; margin-bottom: 20px; }
.service-item h3 { margin: 0 0 10px 0; font-size: 18px; }
.service-item p { margin: 0; font-size: 15px; color: #e0e0e0; }
.service-item:hover { transform: translateY(-8px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* --- SECCIÓN PROPIEDADES (CARRUSEL ESTILO AIRBNB) --- */
.properties-carousel-container {
    max-width: 1200px;
    margin: 40px auto 0;
    overflow: hidden;
}

.properties-carousel-wrapper {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.property-card {
    background-color: transparent;
    text-align: left;
    cursor: pointer;
    flex-shrink: 0;
    height: 100%;
    flex-basis: calc((100% - 60px) / 3);
    display: flex; 
    flex-direction: column;
    min-height: 435px !important;
}

.property-image-container {
    position: relative;
    margin-bottom: 12px;
}

.property-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.favorite-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.property-info { 
    padding: 0 5px; 
    display: flex; 
    flex-direction: column;
    flex-grow: 1; 
}

.property-info h3 { margin: 0 0 4px 0; font-size: 18px; font-weight: 600; }
.property-info p { 
    margin: 0 0 8px 0; 
    color: #555; 
    font-size: 16px;    
    flex-grow: 1
}
.property-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto }
.property-rating { display: flex; align-items: center; font-weight: 600; }
.star-icon { width: 16px; height: 16px; margin-right: 6px; color: var(--primary-color); }

.guester-logo-card {
    height: 20% !important;
    width: 20% !important;
    opacity: 0.8;
   
}

/* --- SECCIÓN RESEÑAS (CARRUSEL) --- */
.reviews-carousel-container {
    max-width: 1200px;
    margin: 40px auto 0;
    overflow: hidden;
    position: relative;
}

.reviews-carousel-wrapper {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.review-card {
    background-color: var(--dark-card-bg);
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    flex-basis: calc((100% - 40px) / 3);
    flex-shrink: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.review-header { display: flex; align-items: center; margin-bottom: 15px; }
.review-icon { width: 50px; height: 50px; min-width: 50px; border-radius: 50%; background-color: var(--primary-color); display: flex; align-items: center; justify-content: center; margin-right: 15px; }
.review-icon img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.review-author { font-weight: bold; margin: 0; }
.review-text { font-style: italic; color: #ccc; line-height: 1.6; margin: 0; }

/* --- FAQ SECTION --- */
.faq-accordion-container { max-width: 800px; margin: 40px auto 0; text-align: left; }
.faq-accordion-item { border-bottom: 1px solid #e0e0e0; }
.faq-question { width: 100%; background-color: transparent; border: none; padding: 25px 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; text-align: left; }
.faq-question span { font-size: 20px; font-weight: 500; color: var(--dark-color); }
.faq-arrow { transition: transform 0.3s ease; color: var(--dark-color); min-width: 24px; }
.faq-question.active .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.faq-answer p { padding: 0 10px 25px 0; margin: 0; color: #666; line-height: 1.7; }

/* --- FOOTER SECTION --- */
.footer { background-color: var(--footer-bg); color: var(--footer-text); padding: 80px 50px 20px; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.footer-column h4 { color: var(--dark-color); font-size: 16px; margin-bottom: 20px; position: relative; display: inline-block; }
.footer-column h4::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 30px; height: 3px; background-color: var(--dark-color); }
.footer-contact-option { margin-bottom: 40px; text-align: center; }
.wpp-icon {
    width: 48px !important;
    height: 48px !important;
    margin-top: 10px; 
}
.contact-icon { width: 48px; height: 48px; margin-top: 10px; }
.calendar-icon { color: #0d6efd; }
.footer-button { background-color: var(--light-color); color: var(--dark-color); border: 1px solid #ddd; padding: 12px 24px; border-radius: 30px; text-decoration: none; font-weight: bold; display: inline-block; margin-top: 15px; transition: all 0.3s; }
.footer-button:hover { background-color: var(--dark-color); color: var(--light-color); border-color: var(--dark-color); }
.form-group { position: relative; margin-bottom: 35px; }
.footer-form input, .footer-form textarea { width: 100%; border: none; border-bottom: 1px solid #ccc; padding: 10px 0; background: transparent; font-size: 16px; }
.footer-form input:focus, .footer-form textarea:focus { outline: none; border-bottom-color: var(--dark-color); }
.footer-form label { position: absolute; top: 10px; left: 0; color: #aaa; transition: all 0.3s; pointer-events: none; }
.footer-form input:focus + label, .footer-form input:valid + label, .footer-form textarea:focus + label, .footer-form textarea:valid + label { top: -15px; font-size: 12px; color: var(--dark-color); }
.footer-form textarea { resize: vertical; min-height: 60px; }
.footer-submit-button { background: var(--dark-color); color: var(--light-color); border: none; padding: 12px 30px; border-radius: 30px; cursor: pointer; font-weight: bold; transition: background-color 0.3s; }
.footer-submit-button:hover { background-color: #555; }
.footer-info p { margin: 0 0 10px 0; }
.footer-info a { color: var(--footer-text); text-decoration: none; transition: color 0.3s; }
.footer-info a:hover { color: var(--dark-color); text-decoration: underline; }
.social-icons { margin-top: 20px; }
.social-icons a { display: inline-block; margin-right: 15px; color: var(--dark-color); }
.social-icons svg { width: 24px; height: 24px; transition: transform 0.3s; }
.social-icons a:hover svg { transform: scale(1.2); }
.footer-callout { text-align: center; max-width: 800px; margin: 60px auto; padding-top: 40px; border-top: 1px solid #e0e0e0; }
.footer-callout h4 { color: var(--dark-color); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #e0e0e0; }
.footer-bottom p { margin: 0; font-size: 14px; }

/* --- ANIMACIÓN FADE-IN PARA SECCIONES --- */
.fade-in-section { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-section.is-visible { opacity: 1; transform: translateY(0); }

/* --- MEDIA QUERIES --- */
@media (max-width: 992px) {
    .footer-container { grid-template-columns: 1fr 1fr; }
    .footer-column.footer-info { grid-column: 1 / -1; text-align: center; }
    .review-card { flex-basis: calc((100% - 20px) / 2); }
    .property-card { flex-basis: calc((100% - 30px) / 2); } /* 2 propiedades */
}

@media (max-width: 768px) {
    .header { padding: 15px 25px; }
    .nav { position: fixed; top: 0; right: 0; height: 100vh; width: 100%; background-color: var(--light-color); display: flex; flex-direction: column; justify-content: center; align-items: center; transition: transform 0.3s ease-in-out; transform: translateX(100%); z-index: 1001; }
    .nav.nav-active { transform: translateX(0); }
    .nav a { font-size: 24px; margin: 20px 0; }
    .nav .button { font-size: 22px; padding: 15px 40px; }
    .hamburger-menu { display: flex; }
    .hamburger-menu.active { position: fixed; top: 28px; right: 25px; }
    .hero { padding: 60px 25px; }
    .hero h1 { font-size: 36px; }
    .content-section, .content-section-dark, .footer { padding: 60px 25px; }
    .footer-container { grid-template-columns: 1fr; }
    .review-card { flex-basis: 100%; }
    .property-card { flex-basis: 100%; } /* 1 propiedad */
}