/* --- VARIABLES --- */
:root {
    /* PALETA MODERNA "COASTAL CHIC" */
    --primary: #0891b2;       /* Cyan Profundo (Ocean) */
    --primary-dark: #155e75;  /* Deep Teal */
    --primary-light: #e0f2f1; /* Soft Foam */
    
    --accent: #fbbf24;        /* Golden Sun */
    --bg-body: #f8fafc;       /* Cool Sand/White */
    --surface: #ffffff;       /* Pure White */
    
    --text-main: #0f172a;     /* Navy Black */
    --text-muted: #64748b;    /* Slate Grey */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-soft: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
    --radius: 20px;
}

/* --- RESET & BASICS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { 
    font-family: var(--font-heading); 
    color: var(--text-main); 
    font-weight: 700;
    line-height: 1.2;
}

a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- LANGUAGE MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.modal-overlay.active { display: flex; opacity: 1; }

.modal-content {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(20px);
    transition: transform 0.3s;
    box-shadow: var(--shadow-hover);
}
.modal-overlay.active .modal-content { transform: translateY(0); }

.modal-content h3 { font-size: 1.5rem; margin-bottom: 2rem; color: var(--text-main); }

.lang-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 2rem;
}

.lang-btn {
    background: var(--bg-body);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 15px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: var(--text-main);
}
.lang-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.lang-btn span { font-size: 1.5rem; }

.close-modal {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

.lang-trigger {
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}
.lang-trigger:hover { background: var(--bg-body); color: var(--primary); }

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding { padding: 6rem 0; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--surface);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border-color: currentColor;
}
.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--surface);
    transform: translateY(-2px);
}

/* Botones de Marcas */
.btn-airbnb { background-color: #FF5A5F; color: white; }
.btn-booking { background-color: #003580; color: white; }

/* --- HEADER --- */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
    z-index: 1001;
}
.logo img { height: 45px; width: auto; }

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
}

.nav-links a:hover { opacity: 1; color: var(--primary); }

.mobile-toggle { 
    display: none; 
    cursor: pointer; 
    color: var(--text-main);
    z-index: 1001;
}

/* --- HERO --- */
.hero {
    height: 100vh; /* Full screen impact */
    position: relative;
    background-image: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.5) 100%), url('../img/header.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--surface);
    margin-top: -80px; /* Pull up behind header */
    padding-top: 80px;

    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn Up 1s ease-out;
}

/* --- HERO TEXT --- */
.hero h1 {
    font-size: 4rem;
    color: var(--surface);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 3rem;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* --- INTRO / ABOUT --- */
.about {
    text-align: center;
    background-color: var(--surface);
}

.about h2 { font-size: 3rem; margin-bottom: 2rem; letter-spacing: -1px; }

.about-text {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: center;
}

/* --- AMENITIES --- */
.amenities {
    background-color: var(--bg-body);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--surface);
    padding: 3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.03);
}

.card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-hover);
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 15px;
}

.card h3 i { color: var(--primary); }

.card ul li {
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.card ul li i { 
    color: var(--primary); 
    width: 18px; 
    opacity: 0.8;
}

/* --- DYNAMIC REVIEWS CAROUSEL --- */
.reviews {
    background-color: var(--surface);
    text-align: center;
    position: relative;
}

.badges-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}
.rating-badge:hover { transform: translateY(-3px); }

.badge-airbnb { background-color: #FF5A5F; }
.badge-google { background-color: #4285F4; }

/* Carousel Styles */
.carousel-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    min-height: 350px;
}

.review-slide {
    display: none;
    animation: fadeEffect 0.8s ease-out;
    padding: 3rem;
    background-color: var(--bg-body);
    border-radius: var(--radius);
    text-align: center; /* Center align for modern feel */
    margin: 0 10px;
    box-shadow: var(--shadow-soft);
}

.review-slide.active { display: block; }

.review-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 15px;
    flex-direction: column-reverse;
}

.source-icon { font-size: 1.8rem; color: #ccc; }
.source-airbnb { color: #FF5A5F; }
.source-google { color: #4285F4; }

.review-stars { color: var(--accent); margin-bottom: 5px; font-size: 1.2rem; letter-spacing: 2px; }
.review-text { 
    font-style: normal; 
    color: var(--text-main); 
    margin-bottom: 30px; 
    font-size: 1.4rem; 
    line-height: 1.6;
    font-weight: 300;
}
.review-author { 
    font-weight: 600; 
    color: var(--text-main); 
    display: flex; 
    flex-direction: column; 
    font-size: 1.1rem;
}
.review-date { font-weight: normal; font-size: 0.9rem; color: var(--text-muted); margin-top: 5px; }

/* Carousel Controls */
.carousel-dots {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active { background-color: var(--primary); transform: scale(1.3); }

@keyframes fadeEffect {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* --- INSTAGRAM / GALLERY --- */
.gallery-section {
    background-color: var(--bg-body);
}

.insta-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    cursor: pointer;
}

.insta-header i { font-size: 2rem; background: -webkit-linear-gradient(#f09433, #e6683c, #dc2743, #cc2366, #bc1888); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1; 
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 145, 178, 0.4); /* Overlay con variable primary */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: white; font-size: 2rem; }

/* --- FOOTER --- */
footer {
    background-color: #0f172a; /* Slate 900 */
    color: #94a3b8; /* Slate 400 */
    padding: 6rem 0 3rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 4rem;
}

.footer-col h4 { color: var(--surface); margin-bottom: 1.5rem; font-family: var(--font-body); font-weight: 600; }

.social-icons { display: flex; gap: 15px; margin-top: 1.5rem; }
.social-icon-btn {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--surface);
    transition: all 0.3s;
}
.social-icon-btn:hover { background: var(--primary); transform: translateY(-3px); }

.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

/* --- PHOTO GALLERY GRID (NEW) --- */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.photo-item {
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1/1;
    position: relative;
}
.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.photo-item:hover img { transform: scale(1.05); }

/* Estado oculto para carga progresiva */
.photo-item.hidden { display: none; }

/* Botón Ver Más */
.load-more-container {
    text-align: center;
    margin-top: 20px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}
.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 4px;
}
.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* --- BOTÓN RESERVAR FLOTANTE --- */
.floating-book-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    background-color: #FF5A5F; /* Airbnb Red */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.floating-book-btn:hover {
    background-color: #E0484D;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 90, 95, 0.4);
}
.floating-book-btn i {
    font-size: 1.2rem;
}
@media (max-width: 768px) {
    .floating-book-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        bottom: 15px;
        right: 15px;
    }
}

/* --- RESPONSIVE MOBILE OPTIMIZATIONS --- */
@media (max-width: 768px) {
    /* General */
    .section-padding { padding: 4rem 0; }
    
    /* Header & Nav */
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--surface);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-150%); 
        transition: transform 0.4s ease-in-out;
        opacity: 0;
        pointer-events: none;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 10px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-toggle { display: block; }
    
    /* Hero */
    .hero { min-height: auto; padding: 6rem 20px 4rem; }
    .hero h1 { font-size: 2rem; line-height: 1.3; }
    .hero p { font-size: 1.1rem; }
    
    /* About & Text */
    .about h2 { font-size: 2rem; }
    .about-text { padding: 0 10px; text-align: left; text-align-last: left; }
    
    /* Gallery Mobile Fix (2 Columns like Instagram) */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    /* Photo Gallery Grid Mobile */
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Cards */
    .grid-cards { grid-template-columns: 1fr; }

    /* Footer Mobile: Logo centrado arriba, Enlaces y Reservas en 2 columnas abajo */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1rem;
        text-align: left;
    }
    .footer-col:first-child {
        grid-column: 1 / -1; /* Logo ocupa todo el ancho */
        text-align: center;
        margin-bottom: 1rem;
    }
    .footer-col:first-child .social-icons {
        justify-content: center;
    }
    
    /* Reviews */
    .review-slide { padding: 1.5rem; }
    .rating-badge { padding: 8px 15px; font-size: 0.9rem; margin-bottom: 1rem; }
    .badges-container { gap: 10px; }
}
/* Asegurar grid 2x2 en amenidades para escritorio */
@media (min-width: 769px) {
    .grid-cards {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
