/* ============================================
   CONFIGURACIÓN DE COLORES PERSONALIZABLES
   ============================================ */

:root {
    /* Colores principales del hotel/resort */
    --color-primary: #2c5f7a;           /* Azul océano principal */
    --color-secondary: #87ceeb;         /* Azul cielo secundario */
    --color-accent: #ff6b35;            /* Naranja coral acento */
    --color-gold: #ffd700;              /* Dorado elegante */
    
    /* Gradientes personalizables */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-accent) 0%, #ff8c42 100%);
    --gradient-header: linear-gradient(135deg, var(--color-gold) 0%, #ffed4e 100%);
    --gradient-tabs: linear-gradient(135deg, var(--color-primary), #34495e);
    
    /* Colores de texto */
    --text-primary: #2c3e50;
    --text-secondary: #666;
    --text-light: #888;
    --text-white: #fff;
    
    /* Colores de fondo */
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --bg-overlay: rgba(0,0,0,0.7);
    
    /* Sombras */
    --shadow-light: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-medium: 0 8px 25px rgba(0,0,0,0.1);
    --shadow-heavy: 0 15px 40px rgba(0,0,0,0.2);
}

/* ============================================
   RESET Y CONFIGURACIÓN BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    /*background: var(--gradient-primary);*/
    /* Para usar imagen de fondo, descomenta la siguiente línea y comenta la anterior */
    background: url('../img/fondo-principal.jpg') center/cover fixed, var(--gradient-primary);
    min-height: 100vh;
    padding-top: 0; /* Sin padding inicial, se ajusta por dispositivo */
    /*padding-top: 120px;*/
    color: var(--text-primary);
}

/* ============================================
   HEADER CON POSITION STICKY (NO FIXED)
   ============================================ */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: var(--gradient-primary);
    /* Para usar imagen de fondo en header, descomenta la siguiente línea */
    /* background: url('../img/header-bg.jpg') center/cover, var(--gradient-header); */
    padding: 15px 0;
    box-shadow: var(--shadow-heavy);
    z-index: 1000;
    border-bottom: 3px solid rgba(255,255,255,0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    border-radius: 50%;
    object-fit: contain; /* en vez de cover */
    border: 3px solid var(--text-white);
    box-shadow: var(--shadow-medium);
    background-color: white; /* relleno detrás si sobra espacio */
}

.hotel-title {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.container {
    max-width: 1200px;
    /*margin: 20px auto;*/
    margin: 0 auto;
    background: var(--bg-card);
    /* Para usar imagen de fondo en contenedor, descomenta la siguiente línea */
    /* background: url('../img/contenedor-bg.jpg') center/cover, var(--bg-card); */
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
}

/* ============================================
   SISTEMA DE PESTAÑAS
   ============================================ */
.tab-container {
    background: var(--gradient-tabs);
    /* Para usar imagen de fondo en pestañas, descomenta la siguiente línea */
    /* background: url('../img/tabs-bg.jpg') center/cover, var(--gradient-tabs); */
    padding: 10px;
    /*padding: 0;*/
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    position: sticky;
    top: 10px; /* Se pega debajo del header */
    z-index: 999;
}

.tab-button {
    background: rgba(255,255,255,0.1);
    /*background: transparent;*/
    border: none;
    color: var(--text-white);
    padding: 15px 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-family: 'Source Sans Pro', sans-serif;
    border-radius: 8px;
    white-space: nowrap;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-button:hover {
    background: rgba(255,255,255,0.2);
    border-bottom-color: var(--color-gold);
    transform: translateY(-1px);
}

.tab-button.active {
    background: rgba(255,255,255,0.3);
    border-bottom-color: var(--color-gold);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tab-content {
    display: none;
    padding: 40px;
    min-height: 500px;
    background: var(--bg-card);
    /* Para usar imagen de fondo sutil, descomenta la siguiente línea */
    /* background: url('../img/content-bg.png') center/cover, var(--bg-card); */
}

.tab-content.active {
    display: block;
}

.tab-title {
    font-family: 'Merriweather', serif;
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    text-align: center;
}

/* ============================================
   ENLACES WEB
   ============================================ */
.web-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.link-card {
    background: var(--gradient-primary);
    /* Para usar imagen de fondo en tarjetas de enlaces, descomenta la siguiente línea */
    /* background: url('../img/link-card-bg.jpg') center/cover, var(--gradient-primary); */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
}

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

.link-card a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: block;
}

/* ============================================
   RESTAURANTES
   ============================================ */
.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.restaurant-card {
    background: linear-gradient(135deg, var(--bg-light), #e9ecef);
    /* Para usar imagen de fondo en tarjetas de restaurante, descomenta la siguiente línea */
    /* background: url('../img/restaurant-card-bg.jpg') center/cover, linear-gradient(135deg, var(--bg-light), #e9ecef); */
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-medium);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.restaurant-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.restaurant-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-gold);
}

.restaurant-logo:hover {
    transform: scale(1.1);
    border-color: var(--color-accent);
}

.restaurant-name {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.restaurant-hours {
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: left;
    margin-top: 15px;
}

.schedule-item {
    margin-bottom: 8px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.schedule-day {
    font-weight: 600;
    color: var(--color-primary);
}

.schedule-time {
    color: var(--text-secondary);
    margin-left: 10px;
}

/* ============================================
   SERVICIOS
   ============================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-item {
    background: var(--gradient-primary);
    /* Para usar imagen de fondo en servicios, descomenta la siguiente línea */
    /* background: url('../img/service-bg.jpg') center/cover, var(--gradient-secondary); */
    color: var(--text-white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: scale(1.05);
}

.service-name {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* ============================================
   ACTIVIDADES
   ============================================ */
.activities-container {
    margin-top: 20px;
}

.day-activities {
    background: linear-gradient(135deg, var(--bg-light), #e9ecef);
    /* Para usar imagen de fondo en actividades, descomenta la siguiente línea */
    /* background: url('../img/activities-bg.jpg') center/cover, linear-gradient(135deg, var(--bg-light), #e9ecef); */
    margin-bottom: 20px;
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-light);
    border-left: 5px solid var(--color-accent);
}

.day-name {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 10px;
}

.activity-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 8px;
    /*display: flex; / Para poner las actividades diarias de forma vertical /
    flex-direction: column;
    gap: 10px;*/
}

.activity-list li {
    padding: 12px 15px;
    font-size: 1rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    border-left: 4px solid var(--color-gold);
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    transition: all 0.2s ease;
}

.activity-list li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-medium);
    border-left-color: var(--color-accent);
}

/* ============================================
   GALERÍA DE IMÁGENES
   ============================================ */

.image-gallery {
    position: relative;
    max-width: 500px; /* Optimizado para el ancho de 700px */
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.gallery-container {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    height: 1000px; /* Proporción 1:2 manteniendo el aspecto de 700x1400 */
    background-size: contain; /* Muestra la imagen completa sin recortes */
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-color: #f8f9fa; /* Fondo suave para posibles espacios laterales */
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, var(--bg-overlay));
    color: var(--text-white);
    padding: 20px;
    text-align: center;
}

.slide-title {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.gallery-nav {
    text-align: center;
    margin-top: 20px;
}

.gallery-btn {
    background: var(--color-gold);
    color: var(--text-primary);
    border: none;
    padding: 12px 20px;
    margin: 0 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.gallery-btn:hover {
    background: var(--color-accent);
    color: var(--text-white);
    transform: translateY(-2px);
}

/*
.image-gallery {
    position: relative;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.gallery-container {
    display: flex;
    transition: transform 0.5s ease;
}

.gallery-slide {
    min-width: 100%;
    height: 400px;
    background-size: contain; / Cambia de cover a contain /
    background-position: center;
    background-repeat: no-repeat; / Añade esta línea /
    position: relative;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, var(--bg-overlay));
    color: var(--text-white);
    padding: 20px;
    text-align: center;
}

.slide-title {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.gallery-nav {
    text-align: center;
    margin-top: 20px;
}

.gallery-btn {
    background: var(--color-gold);
    color: var(--text-primary);
    border: none;
    padding: 12px 20px;
    margin: 0 10px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.gallery-btn:hover {
    background: var(--color-accent);
    color: var(--text-white);
    transform: translateY(-2px);
}
*/

/* ============================================
   MAPA
   ============================================ */
.map-container {
    text-align: center;
    margin-top: 20px;
}

.map-image {
    max-width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--shadow-heavy);
    border: 3px solid var(--color-gold);
}

/* ============================================
   CONTACTOS
   ============================================ */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.contact-card {
    background: var(--gradient-primary);
    /* Para usar imagen de fondo en contactos, descomenta la siguiente línea */
    /* background: url('../img/contact-bg.jpg') center/cover, var(--gradient-primary); */
    color: var(--text-white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-title {
    font-family: 'Merriweather', serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.contact-details {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ============================================
   PIE DE PÁGINA TRANSPARENTE
   ============================================ */
.footer {
    background: rgba(44, 62, 80, 0.9);
    /* Para mantener imagen de fondo con transparencia, descomenta la siguiente línea */
    /* background: url('../img/footer-bg.jpg') center/cover, rgba(44, 62, 80, 0.8); */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-white);
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    box-shadow: none;
    border: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-title {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-text {
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE DESIGN - MÓVIL
   ============================================ */
@media (max-width: 768px) {
    /* Header móvil más compacto */
    .header {
        padding: 8px 0;
        position: sticky;
        top: 0;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 5px 15px;
    }

    .logo {
        width: 45px;
        height: 45px;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .hotel-title {
        font-size: 1.4rem;
        margin-top: 0;
    }

    /* Contenedor móvil */
    .container {
        margin: 10px;
        border-radius: 15px;
    }

    /* Pestañas móviles - SCROLL HORIZONTAL */
    .tab-container {
        padding: 15px 10px;
        gap: 8px;
        position: sticky;
        top: 70px; /* Debajo del header móvil */
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tab-container::-webkit-scrollbar {
        display: none;
    }

    .tab-button {
        padding: 12px 16px;
        font-size: 0.85rem;
        min-width: 100px;
        min-height: 48px;
        border-radius: 12px;
        flex-shrink: 0;
        white-space: nowrap;
    }

    /* Contenido móvil */
    .tab-content {
        padding: 20px 15px;
    }

    .tab-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    /* Grids móviles */
    .activity-list,
    .restaurant-grid,
    .web-links,
    .services-grid,
    .contact-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /*Actividades ya están en vertical, solo ajustar gap*/

    .activity-list {
        gap: 8px;
    }

    .gallery-slide {
        height: 700px;
    }

    .image-gallery {
        max-width: 350px;
    }

    .gallery-indicator {
        width: 10px;
        height: 10px;
        right: 10px;
        gap: 8px;
    }

    .map-image {
        height: 250px;
    }
}

/* ============================================
   RESPONSIVE DESIGN - MÓVIL PEQUEÑO
   ============================================ */
@media (max-width: 480px) {
    .header {
        padding: 6px 0;
    }

    .header-content {
        padding: 3px 10px;
    }

    .hotel-title {
        font-size: 1.2rem;
    }

    .logo {
        width: 40px;
        height: 40px;
    }

    .tab-container {
        top: 60px;
        padding: 10px;
    }

    .tab-button {
        font-size: 0.8rem;
        min-width: 90px;
        padding: 10px 14px;
    }

    .tab-content {
        padding: 15px 10px;
    }

    .tab-title {
        font-size: 1.5rem;
    }

    .container {
        margin: 5px;
        border-radius: 10px;
    }

    .image-gallery {
        max-width: 280px;
    }

    .gallery-slide {
        height: 560px;
    }

}