/* Base */
:root {
    --color-burdeo: #830F33;
    --color-dorado: #D4AF37;
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
}

/* Transiciones Menú Móvil */
#mobile-menu {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    transform-origin: top;
}

.menu-hidden {
    transform: scaleY(0);
    opacity: 0;
    height: 0;
    overflow: hidden;
}

.menu-visible {
    transform: scaleY(1);
    opacity: 1;
    height: auto;
}

#menu-backdrop {
    transition: opacity 0.3s ease;
}

/* --- CORRECCIÓN BUSCADOR ESCRITORIO --- */
#desktop-search-input {
    transition: width 0.4s ease-in-out, opacity 0.3s ease, padding 0.3s ease;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    /* Detrás del botón de lupa (que tiene z-30) */
    background-color: white;
    height: 2.5rem;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-btn-container {
    z-index: 30;
    /* Por encima del input */
    position: relative;
    background: white;
    /* Fondo para tapar el input cuando está cerrado */
}

/* Utilidades */
.video-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dropdown Usuario */
#user-dropdown {
    transform-origin: top right;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.dropdown-hidden {
    transform: scale(0.95);
    opacity: 0;
    pointer-events: none;
    display: none;
}

.dropdown-visible {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
    display: block;
}

/* Media Queries */
@media (min-width: 768px) {
    .mobile-only {
        display: none !important;
    }

    .desktop-only {
        display: block !important;
    }

    .header-center-group {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 767px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    .header-center-group {
        position: static;
        transform: none;
        display: flex;
        gap: 0.5rem;
    }
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#google-signin-button iframe {
    margin: 0 auto !important;
    width: 100% !important;
}