@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800;900&display=swap');

/* ==========================================================================
   Chronostart Glassmorphism UI
   Colores: Blanco, Negro, Rojo (#ff4655)
   ========================================================================== */
:root {
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --accent: #ff4655;
    --accent-hover: #FC4113;
    
    /* Glass variables */
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --glass-blur: blur(15px);
}

body.myphoto-light-theme {
    font-family: 'Poppins', sans-serif !important;
    background-color: #f0f2f5 !important;
    color: var(--text-main) !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==========================================================================
   Fondo Global Blureado
   ========================================================================== */
.global-bg {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    z-index: -2;
    opacity: 0.9; /* Para que no sea tan oscuro */
}

/* Capa blanca semitransparente encima del blur para asegurar legibilidad */
.global-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.9) 100%);
    z-index: -1;
}

/* ==========================================================================
   Componentes Glass
   ========================================================================== */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    padding: 2rem;
}

/* ==========================================================================
   Navegación Superior (Fixed Header)
   ========================================================================== */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

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

.fixed-header .navbar-brand {
    max-width: 120px;
    height: auto;
}

.nav-masthead {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-masthead .nav-link {
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-masthead .nav-link:hover, .nav-masthead .nav-link.active {
    color: var(--accent);
}

.nav-masthead .badge {
    background-color: var(--accent);
    color: white;
    border-radius: 20px;
    padding: 2px 6px;
    font-size: 0.8rem;
    vertical-align: super;
}

.nav-masthead button {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-main);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s;
}
.nav-masthead button:hover {
    background: var(--text-main);
    color: white;
}

/* ==========================================================================
   Custom Sidebar (Carrito) - NO BOOTSTRAP
   ========================================================================== */
.glass-sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* Oculto por defecto */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    z-index: 1050;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    
    display: flex;
    flex-direction: column;
}

.glass-sidebar.active {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(2px);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-header h5 {
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
    transition: color 0.3s;
}
.sidebar-close:hover { color: var(--accent); }

.sidebar-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* Cart Items inside Sidebar */
.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    margin-right: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.cart-item-details { flex-grow: 1; }
.cart-item-title { font-size: 0.9rem; font-weight: 600; margin: 0 0 0.5rem 0; }
.cart-item-price { font-weight: 800; font-size: 1rem; color: var(--accent); }
.cart-item-delete {
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}
.cart-item-delete:hover { color: var(--accent); }

.sidebar-footer {
    padding: 1.5rem;
    background: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(0,0,0,0.05);
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 900;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.btn-checkout {
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b77 100%);
    color: white;
    border: none;
    width: 100%;
    padding: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 70, 85, 0.4);
    letter-spacing: 1px;
}
.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 70, 85, 0.6);
}

/* ==========================================================================
   Full Screen Menu (Menú Principal)
   ========================================================================== */
.glass-fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}
.glass-fullscreen-menu.active { 
    transform: translateY(0); 
    opacity: 1;
    pointer-events: auto;
}

.fs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}
.fs-header h2 { font-weight: 900; margin: 0; }

.fs-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.fs-menu-list li { margin-bottom: 2rem; }
.fs-menu-list a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    transition: color 0.3s;
    display: inline-block;
}
.fs-menu-list a:hover { color: var(--accent); }
.fs-menu-list p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-glass-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 50px 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-content p.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* Tabs de Búsqueda */
.search-tabs-glass {
    display: inline-flex;
    background: transparent;
    border-radius: 30px;
    margin-bottom: 2rem;
    gap: 10px;
}

.search-tab {
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    color: var(--text-main);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.search-tab:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.search-tab.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 70, 85, 0.4);
    border: none;
}

/* Caja de búsqueda */
.search-box-glass {
    display: flex;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 5px 5px 5px 25px;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.search-box-glass:focus-within {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.9);
}

.search-box-glass input {
    border: none;
    background: transparent;
    flex-grow: 1;
    min-width: 0; /* Permitir que se reduzca en Flexbox sin empujar el botón */
    font-size: 1.1rem;
    color: var(--text-main);
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.search-box-glass button {
    background: var(--accent);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}
.search-box-glass button:hover { background: var(--accent-hover); }

/* ==========================================================================
   Galería Masonry
   ========================================================================== */
.gallery-grid {
    column-count: 1;
    column-gap: 1.5rem;
    padding: 2rem 0;
}
@media (min-width: 576px) { .gallery-grid { column-count: 2; } }
@media (min-width: 992px) { .gallery-grid { column-count: 3; } }
@media (min-width: 1200px) { .gallery-grid { column-count: 4; } }

.photo-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}
.photo-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.photo-card img {
    width: 100%;
    display: block;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    padding: 40px 15px 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s;
}
.photo-card:hover .photo-overlay { opacity: 1; }

.photo-price {
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(255,70,85,0.4);
}

.btn-add-cart {
    background: white;
    color: var(--text-main);
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
}
.btn-add-cart:hover {
    background: var(--text-main);
    color: white;
}

/* ==========================================================================
   Botón Primario General
   ========================================================================== */
.btn-glass-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #ff6b77 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 70, 85, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}
.btn-glass-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 70, 85, 0.6);
    color: white;
}

/* Ocultar lista de eventos laterales en móviles y tabletas */
@media (max-width: 991px) {
    .event-list-right {
        display: none !important;
    }
}

/* Ajustes responsivos para buscador y pestañas en móviles */
@media (max-width: 576px) {
    .glass-panel {
        padding: 1.25rem !important;
        border-radius: 15px !important;
    }
    .search-tabs-glass {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }
    .search-tab {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
    }
    .search-box-glass {
        padding: 4px 4px 4px 15px !important;
    }
    .search-box-glass input {
        font-size: 1rem !important;
    }
    .search-box-glass button {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important; /* Evitar que el botón se reduzca */
    }
}

/* Ajustes de tamaño del logo en móviles y pantallas pequeñas (ej. iPhone SE) */
@media (max-width: 768px) {
    .fixed-header .navbar-brand,
    .navbar-brand {
        max-width: 95px !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .fixed-header .navbar-brand,
    .navbar-brand {
        max-width: 80px !important;
        height: auto !important;
    }
}


