@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Syne:wght@700;800&display=swap');

#components-reconnect-modal {
    background: rgba(17, 17, 17, 0.7) !important;
    backdrop-filter: blur(6px);
    display: none;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex !important;
}

#components-reconnect-modal.components-reconnect-hide {
    display: none !important;
}

#components-reconnect-modal > div {
    background-color: var(--mud-palette-surface, #ffffff) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    border-radius: 12px !important;
    padding: 2.5rem 2rem !important;
    max-width: 400px;
    width: 90%;
    text-align: center;
    font-family: 'Montserrat', sans-serif !important;
    border-top: 4px solid #C62828 !important; /* Borde superior rojo de la marca */
}

#components-reconnect-modal h5 {
    color: var(--mud-palette-text-primary, #1A1A1A) !important;
    font-weight: 700;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

#components-reconnect-modal p {
    color: var(--mud-palette-text-secondary, #757575) !important;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.reconnect-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 4px solid var(--mud-palette-lines-default, #E0E0E0);
    border-radius: 50%;
    border-top-color: #C62828; /* Spinner rojo corporativo */
    animation: spin-reconnect 1s linear infinite;
}

#components-reconnect-modal.components-reconnect-failed .reconnect-spinner,
#components-reconnect-modal.components-reconnect-rejected .reconnect-spinner,
#components-reconnect-modal.components-reconnect-failed .reconnect-attempt,
#components-reconnect-modal.components-reconnect-rejected .reconnect-attempt {
    display: none;
}

.reconnect-error { display: none; }

#components-reconnect-modal.components-reconnect-failed .reconnect-error,
#components-reconnect-modal.components-reconnect-rejected .reconnect-error {
    display: block;
}

.btn-reconnect {
    background-color: #111111; /* Botón oscuro corporativo */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: background-color 0.2s;
    margin-top: 10px;
}

.btn-reconnect:hover {
    background-color: #333333;
}

@keyframes spin-reconnect {
     0% { transform: rotate(0deg); }
     100% { transform: rotate(360deg); }
 }

/* ==========================================================================
   1. CONFIGURACIÓN GLOBAL
   ========================================================================== */
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ==========================================================================
   2. NAVEGACIÓN PÚBLICA (GLASSMORPHISM)
   ========================================================================== */
.glass-nav { position: fixed; width: 100%; top: 0; z-index: 1000; padding: 20px 5%; }
.nav-inner {
    background: rgba(26, 26, 22, 0.98); backdrop-filter: blur(10px);
    padding: 10px 30px; display: flex; justify-content: space-between; align-items: center;
    border-radius: 50px; border: 1px solid rgba(213, 179, 108, 0.2);
}
.logo-nav { height: 40px; }

.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a {
    color: white; text-decoration: none; font-weight: 600; font-size: 0.8rem;
    text-transform: uppercase; transition: 0.3s; font-family: 'Montserrat', sans-serif;
}
.nav-links a:hover, .shop-link { color: #D5B36C !important; }

/* Icono del Carrito */
.cart-icon { position: relative; cursor: pointer; font-size: 1.2rem; color: white; display: flex; align-items: center; transition: 0.3s; }
.cart-icon:hover { color: #D5B36C; }
#cart-count {
    position: absolute; top: -8px; right: -12px; background: #C92922; color: white;
    font-size: 0.65rem; width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: 'Montserrat', sans-serif;
}

/* Botón Móvil */
.mobile-menu-btn { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; transition: 0.3s; }
.mobile-menu-btn:hover { color: #D5B36C; }

/* Navegación en Celulares */
@media (max-width: 992px) {
    .mobile-menu-btn { display: block; }
    .nav-links {
        position: absolute; top: 70px; left: 5%; width: 90%;
        background: rgba(26, 26, 22, 0.98); backdrop-filter: blur(12px);
        flex-direction: column; padding: 30px; border-radius: 20px;
        border: 1px solid rgba(213, 179, 108, 0.3); display: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5); align-items: center; text-align: center;
    }
    .nav-links.active { display: flex; animation: fadeInMenu 0.3s ease; }
    .nav-links a { margin: 15px 0; font-size: 1.1rem; }
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}