/* ==========================================================================
   RESET & VARIABLES GENERALES (Look Cabo Luxury)
   ========================================================================== */
* {
    box-sizing: border-box;   
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #FBF9F6;       /* Blanco arena suave, ultra elegante */
    --text-main: #1A1A1A;      /* Negro orgánico, evita el negro puro */
    --text-muted: #666666;     /* Gris suave para descripciones */
    --accent-gold: #C5A880;    /* Dorado desierto / Arena tostada */
    --accent-hover: #A0845F;   /* Dorado más oscuro para interacciones */
    --font-titles: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
}

/* Candado global: Si el menú está abierto, se congela el scroll del fondo */
body:has(header.menu-abierto) {
    overflow: hidden !important;
    height: 100vh !important;
}

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

.section_subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.text_center { text-align: center; }

.title-1 { font-family: var(--font-titles); font-size: 3.2rem; font-weight: 400; color: #FFFFFF; }
.title-2 { font-family: var(--font-titles); font-size: 2.6rem; font-weight: 400; color: var(--text-main); margin-bottom: 20px; }
.title-3 { font-family: var(--font-titles); font-size: 1.8rem; font-weight: 400; color: var(--text-main); }

/* ==========================================================================
   HEADER & NAVEGACIÓN (Limpio y Fijo)
   ========================================================================== */
header {
    background-color: rgba(251, 249, 246, 0.95);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    flex-direction: row; 
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}

.cajalogo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cajalogo a {
    text-decoration: none;
}

.cajalogo h1 {
    font-family: var(--font-titles);
    font-size: 1.1rem;
    color: var(--text-main);
    letter-spacing: 1px;
    font-weight: 400;
}

header nav {
    width: auto;
}

/* En móviles está oculto por defecto */
.enlaces_menu {
    display: none; 
    flex-direction: column;
    align-items: center;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    padding: 20px 0;
}

.enlaces_menu li {
    margin: 14px 0;
    text-align: center;
    width: 100%;
}

.nav_link {
    text-decoration: none;
    color: var(--text-main);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav_link:hover {
    color: var(--accent-gold);
}

.nav_btn_call {
    text-decoration: none;
    color: #FFFFFF;
    background-color: var(--text-main);
    padding: 8px 18px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    transition: background-color 0.3s;
}

.nav_btn_call:hover {
    background-color: var(--accent-gold);
}

.socialmedia_link {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.socialmedia_link a {
    color: var(--text-main);
    transition: color 0.3s;
}

.socialmedia_link a:hover {
    color: var(--accent-gold);
}

.ham {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100000;
}

.ham span {
    display: block;
    background-color: var(--text-main);
    height: 1.5px;
    width: 22px;
    margin: 6px auto;
    transition: all 0.3s ease;
}

/* ==========================================================================
   ANIMACIÓN Y ESTADOS DEL MENÚ DESPLEGABLE
   ========================================================================== */
@keyframes muestraMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.enlaces_menu.activado {
    display: flex !important;
    animation: muestraMenu 0.3s ease-out forwards;
}

.ham span.animado.br-1 { transform: rotate(-45deg) translate(-5px, 5px); }
.ham span.animado.br-2 { opacity: 0; }
.ham span.animado.br-3 { transform: rotate(45deg) translate(-5px, -6px); }

/* ==========================================================================
   HERO SECTION 
   ========================================================================== */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 85vh;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/images/nails-pics/hero4.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 0 20px;
}

.hero_content { max-width: 700px; }
.hero_subtitle {
    color: #FFFFFF;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 15px 0 35px 0;
    font-weight: 300;
}

.button {
    display: inline-block;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    padding: 16px 36px;
    color: #FFFFFF;
    background-color: var(--accent-gold);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   BIENVENIDA
   ========================================================================== */
#bienvenida { padding: 100px 0; background-color: #FFFFFF; }
.bienvenida_grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.welcome_text { color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.welcome_text strong { color: var(--text-main); font-weight: 500; }

/* ==========================================================================
   GALERÍA & LIGHTBOX
   ========================================================================== */
#galeria { padding: 100px 0; background-color: var(--bg-color); }
.gallery_item { position: relative; overflow: hidden; aspect-ratio: 1 / 1; cursor: pointer; background-color: #EAEAEA; }
.gallery_item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.gallery_overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(26, 26, 26, 0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s ease;
}
.gallery_overlay span {
    color: #FFFFFF; font-size: 12px; text-transform: uppercase;
    letter-spacing: 2px; border-bottom: 1px solid #FFFFFF; padding-bottom: 4px;
}
.gallery_item:hover img { transform: scale(1.05); }
.gallery_item:hover .gallery_overlay { opacity: 1; }

.lightbox {
    display: none; position: fixed; z-index: 10000;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(26, 26, 26, 0.95); backdrop-filter: blur(5px);
    align-items: center; justify-content: center; flex-direction: column; padding: 20px;
}
.lightbox_content { max-width: 90%; max-height: 75vh; object-fit: contain; animation: zoomIn 0.3s ease; }
.lightbox_caption { color: #FFFFFF; font-family: var(--font-titles); font-size: 1.5rem; margin-top: 15px; letter-spacing: 1px; }
.lightbox_close { position: absolute; top: 24px; right: 32px; color: #FFFFFF; font-size: 40px; cursor: pointer; transition: color 0.3s; }
.lightbox_close:hover { color: var(--accent-gold); }

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   CONTACTO & FOOTER
   ========================================================================== */
#contacto { padding: 100px 0; background-color: #FFFFFF; border-top: 1px solid rgba(0, 0, 0, 0.05); }
.contacto_grid { display: grid; grid-template-columns: 1fr; gap: 50px; }
.contacto_info .address_text { font-size: 16px; margin: 15px 0; color: var(--text-main); }
.contacto_info .address_text i { color: var(--accent-gold); margin-right: 8px; }
.confidential_text { font-size: 13px; color: var(--text-muted); font-style: italic; line-height: 1.8; }
.horario_p { font-size: 15px; margin-bottom: 10px; color: var(--text-muted); }
.horario_p strong { color: var(--text-main); }
.btn_whatsapp_contact {
    display: inline-block; text-decoration: none; color: var(--text-main);
    border: 1px solid var(--text-main); padding: 12px 24px; font-size: 11px;
    text-transform: uppercase; letter-spacing: 2px; margin-top: 15px; transition: all 0.3s;
}
.btn_whatsapp_contact:hover { background-color: var(--text-main); color: #FFFFFF; }

footer { background-color: var(--bg-color); padding: 40px 0; border-top: 1px solid rgba(0, 0, 0, 0.05); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.footer_content { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }

/* ==========================================================================
   CARRUSELES (Estructura Base)
   ========================================================================== */
.categoria_galeria { margin-top: 60px; width: 100%; }
.carousel_title { font-family: var(--font-titles); font-size: 2.2rem; font-weight: 400; text-align: center; letter-spacing: 1px; margin-bottom: 30px; color: var(--text-main); }
.carousel_wrapper { position: relative; display: flex; align-items: center; width: 100%; }

.carousel_track_container { 
    overflow: hidden; 
    width: 100%; 
    overflow-x: auto; 
    scrollbar-width: none;
    scroll-snap-type: x mandatory !important; 
    scroll-behavior: smooth !important; 
    -webkit-overflow-scrolling: touch !important; 
}
.carousel_track_container::-webkit-scrollbar { display: none; }
.carousel_track { display: flex; gap: 20px; width: max-content;}
.carousel_track .gallery_item { width: 280px; flex-shrink: 0; scroll-snap-align: start !important; }

.carousel_btn { background: none; border: none; font-size: 24px; color: var(--accent-gold); cursor: pointer; padding: 10px; position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; transition: color 0.3s; user-select: none; }
.carousel_btn:hover { color: var(--text-main); }
.carousel_btn.prev { left: -40px; }
.carousel_btn.next { right: -40px; }

/* ==========================================================================
   DISPOSITIVOS MÓVILES (MAX 819px)
   ========================================================================== */
@media (max-width: 819px) {
    
    /* --- CONTROL DE GALERÍA (TEXTO SIEMPRE VISIBLE EN CELULAR) --- */
    .gallery_overlay {
        opacity: 1 !important;
        background-color: rgba(26, 26, 26, 0.4) !important;
    }

    .gallery_item:hover .gallery_overlay {
        opacity: 1 !important;
    }

    .lightbox .gallery_overlay {
        display: none !important; 
    }
    
    /* --- REDIMENSIONAMIENTO EN PANTALLA TÁCTIL --- */
    .carousel_btn { 
        display: none !important; 
    }
    
    .carousel_track .gallery_item { 
        width: 75vw !important; 
        scroll-snap-align: center !important; 
    }
    
    /* --- AJUSTE ESTRUCTURAL PARA MENÚ ULTRA COMPLETO MÓVIL --- */
    header.menu-abierto {
        position: fixed !important;
        top: 0 !important; 
        left: 0 !important;
        width: 100vw !important; 
        height: 100vh !important;
        background-color: var(--bg-color) !important;
        z-index: 99999 !important;
        overflow: hidden !important;
    }

    header.menu-abierto .container {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        height: 100% !important;
        width: 100% !important;
        padding: 40px 24px !important;
    }

    header.menu-abierto .cajalogo { 
        display: none !important; 
    }

    header.menu-abierto .enlaces_menu.activado {
        display: flex !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 25px !important;
        background-color: var(--bg-color) !important;
        padding: 0 !important;
        z-index: 99998 !important;
    }

    header.menu-abierto .enlaces_menu.activado .nav_link {
        font-size: 1.4rem !important;
        letter-spacing: 3px !important;
    }

    header.menu-abierto .enlaces_menu.activado .nav_btn_call {
        font-size: 12px !important;
        padding: 12px 30px !important;
        margin-top: 10px;
    }

    header.menu-abierto .ham {
        position: absolute !important;
        top: 24px !important; 
        right: 24px !important;
        z-index: 100000 !important;
    }
}

/* ==========================================================================
   COMPUTADORA Y TABLETS (MIN 820px) 
   ========================================================================== */
@media (min-width: 820px) {
    header .container {
        max-width: 100% !important;
        padding: 0 60px;
        height: 90px;
    }

    .cajalogo h1 { font-size: 1.4rem; }
    .ham { display: none; }

    .enlaces_menu {
        display: flex;
        position: static;
        flex-direction: row;
        gap: 30px;
        padding: 0;
        width: auto;
        background-color: transparent;
    }

    .enlaces_menu li { width: auto; margin: 0; }
    .socialmedia_link { margin-top: 0; margin-left: 10px; }

    .bienvenida_grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
    .img_container {
        background-image: url('assets/images/nails-pics/bienvenida.webp');
        background-size: cover; background-position: center; height: 550px; width: 100%;
        box-shadow: 15px 15px 0px var(--bg-color), 15px 15px 0px 1px var(--accent-gold);
    }

    .contacto_grid { grid-template-columns: 1fr 1fr; gap: 100px; }
    .footer_content { flex-direction: row; justify-content: space-between; }
}