@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;600&display=swap');

:root {
    --primary: #b02020;
    --black: #000000;
    --white: #ffffff;
    --cream: #f9f6f1;
    --brown: #5c4033;
    --dark-gray: #333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background: url('../img/fondo.jpg') center/cover fixed;
    color: var(--dark-gray);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    border-bottom: 3px solid var(--primary);
}

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

.logo img {
    max-width: 150px;
    height: auto;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary);
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav a {
    color: var(--brown);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a i {
    font-size: 1rem;
    color: var(--primary);
}

nav a:hover {
    color: var(--primary);
}

/* Hero Banner con Logo en franja blanca */
.hero {
    background: url('../img/hero.jpg') center/cover;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--brown);
    margin: 0;
    padding: 0;
}

.hero-content {
    width: 100%;
    background: rgba(255,255,255,0.7);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-width: 350px;
    width: 70%;
    height: auto;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--brown);
}

/* Secciones con colores alternados */
section {
    padding: 60px 0;
    margin: 0;
}

#galeria, #videos {
    background: rgba(255,255,255,0.95);
}

#comentarios {
    background: rgba(92, 64, 51, 0.85);
}

#comentarios h2 {
    color: var(--white);
}

#comentarios h2::after {
    background: var(--white);
}

#acomodacion {
    background: transparent;
}

section h2 {
    text-align: center;
    color: var(--brown);
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 30px;
}


/* Gallery Tabs */
.gallery-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: 2px solid var(--brown);
    color: var(--brown);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border: 5px solid var(--white);
}

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

.photo-item:hover img {
    transform: scale(1.08);
}

.no-content {
    text-align: center;
    color: #888;
    font-style: italic;
    grid-column: 1 / -1;
    padding: 40px;
}

/* Acomodación - Diseño Artístico */
.acomodacion-section {
    background: rgba(92, 64, 51, 0.85) !important;
    color: var(--white);
}

.acomodacion-section h2 {
    color: var(--white);
}

.acomodacion-section h2::after {
    background: var(--white);
}

.acomodacion-intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: var(--white);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.amenity-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.amenity-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--brown));
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.amenity-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #d43030);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 20px rgba(176, 32, 32, 0.3);
}

.amenity-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.amenity-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--brown);
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.amenity-card ul {
    list-style: none;
}

.amenity-card li {
    padding: 10px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
    color: var(--dark-gray);
}

.amenity-card li:last-child {
    border-bottom: none;
}

.amenity-card li::before {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* Videos */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.video-item {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border: 5px solid var(--white);
    border-radius: 10px;
}

.video-item iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    border: none;
}

/* Comments */
.comments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.comment-card {
    background: var(--white);
    padding: 30px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border-radius: 0 10px 10px 0;
    position: relative;
}

.comment-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: 10px;
    left: 15px;
    line-height: 1;
}

.comment-card p {
    font-style: italic;
    margin-bottom: 20px;
    padding-left: 30px;
    font-size: 1.05rem;
}

.comment-card .author {
    font-weight: 600;
    color: var(--brown);
    display: block;
}

.comment-card .date {
    font-size: 0.85rem;
    color: #888;
}

/* History */
.history-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.9;
}

.history-content p {
    margin-bottom: 20px;
}

/* Social */
.social-section {
    background: rgba(255,255,255,0.95) !important;
    color: var(--dark-gray);
}

.social-section h2 {
    color: var(--brown);
}

.social-section h2::after {
    background: var(--primary);
}

.instagram-feed {
    text-align: center;
}

.instagram-feed p {
    color: #666;
}

.instagram-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: var(--white);
    padding: 18px 35px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    border-radius: 50px;
}

.instagram-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* Footer */
footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 35px 0;
}

footer p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* WhatsApp Flotante */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}

/* Ocultar bottom-nav en desktop */
.bottom-nav {
    display: none;
}


/* ========== MOBILE APP STYLE ========== */
@media (max-width: 768px) {
    body {
        padding-bottom: 55px;
    }
    
    /* Header compacto */
    header {
        padding: 8px 0;
    }
    
    .logo img {
        max-width: 110px;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: var(--cream);
    }
    
    /* Menú móvil compacto */
    nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        display: none;
        z-index: 1001;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15);
        max-height: 70vh;
        overflow-y: auto;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        padding: 10px 15px;
        gap: 0;
    }
    
    nav li {
        border-bottom: 1px solid #eee;
    }
    
    nav li:last-child {
        border-bottom: none;
    }
    
    nav a {
        padding: 12px 10px;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    nav a i {
        font-size: 1.1rem;
        width: 25px;
    }
    
    /* Hero móvil */
    .hero {
        min-height: 50vh;
        padding: 0;
    }
    
    .hero-content {
        width: 100%;
        padding: 30px 15px;
    }
    
    .hero-logo {
        max-width: 250px;
    }
    
    .hero p {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
    
    /* Secciones móvil */
    section {
        padding: 40px 0;
    }
    
    section h2 {
        font-size: 1.6rem;
    }
    
    /* Galería móvil */
    .gallery-tabs {
        gap: 8px;
        padding: 0 10px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.75rem;
        flex: 1;
        text-align: center;
        min-width: auto;
    }
    
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 5px;
    }
    
    .photo-item {
        border-width: 3px;
    }
    
    /* Acomodación móvil */
    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .amenity-card {
        padding: 25px 20px;
    }
    
    .amenity-icon {
        width: 60px;
        height: 60px;
    }
    
    .amenity-icon i {
        font-size: 1.5rem;
    }
    
    /* Videos móvil */
    .video-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    /* Comentarios móvil */
    .comments-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    /* WhatsApp móvil */
    .whatsapp-float {
        bottom: 75px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    
    /* Barra de navegación inferior estilo app */
    .bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        background: var(--white);
        justify-content: space-around;
        padding: 6px 0;
        box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
        z-index: 1000;
        border-top: 2px solid var(--primary);
    }
    
    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--brown);
        font-size: 0.6rem;
        padding: 4px 6px;
        transition: color 0.3s;
    }
    
    .bottom-nav a i {
        font-size: 1.1rem;
        margin-bottom: 2px;
        color: var(--primary);
    }
    
    .bottom-nav a:hover,
    .bottom-nav a.active {
        color: var(--primary);
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.7rem;
    }
    
    .hero-logo {
        max-width: 220px;
    }
}


/* Página Historia */
.hero-small {
    min-height: 40vh;
}

.hero-small h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    color: var(--white);
}

.hero-dark {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/hero.jpg') center/cover;
}

.hero-dark .hero-content {
    background: transparent;
}

.historia-page {
    background: rgba(92, 64, 51, 0.85) !important;
    color: var(--white);
}

.historia-page h2 {
    color: var(--white);
}

.historia-page h2::after {
    background: var(--white);
}

.history-content-full {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 2;
    color: var(--white);
}

.history-content-full p {
    margin-bottom: 25px;
    text-align: justify;
}

.back-home {
    text-align: center;
    margin-top: 50px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    color: var(--brown);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-back:hover {
    background: var(--cream);
}

nav a.active {
    color: var(--primary);
}

@media (max-width: 768px) {
    .hero-small {
        min-height: 30vh;
    }
    
    .hero-small h1 {
        font-size: 2rem;
    }
    
    .history-content-full {
        padding: 0 15px;
    }
}


/* Selector de idioma */
.lang-selector {
    display: flex;
    gap: 5px;
    margin-right: 15px;
}

.lang-selector a {
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--brown);
    border: 1px solid var(--brown);
    border-radius: 3px;
    transition: all 0.3s;
}

.lang-selector a:hover,
.lang-selector a.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

@media (max-width: 768px) {
    .lang-selector {
        position: absolute;
        right: 60px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .lang-selector a {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}
