/* === ESTILO GENERAL === */
body {
    background-color: #ffffff;
    color: #111;
    font-family: 'Segoe UI', 'Roboto', sans-serif;
}

/* === HEADER DEPORTIVO (solo barra de navegación) === */
.site-header {
    background: linear-gradient(to right, #0d0d0d, #1a1a1a);
    padding: 1.2rem 2rem;
    font-family: 'Segoe UI', 'Roboto Condensed', sans-serif;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 100;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: #000000;
}
.site-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -20%;
    height: 4px;
    width: 20%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255,255,255,0.9),
        transparent
    );
    filter: blur(2px); /* Difumina para efecto LED */
    animation: led-swipe 4s linear infinite;
}

@keyframes led-swipe {
    0%   { left: -20%; }
    100% { left: 100%; }
}

html, body {
    overflow-x: hidden;
}



/* === LOGO === */
.Logofdph {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.Logofdph:hover {
    transform: scale(1.1);
}

/* === NAV BAR === */
nav {
    display: flex;
    gap: 1.5rem;
}

nav a.nav-btn {
    text-transform: uppercase;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: #141414;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

nav a.nav-btn:hover {
    border-color: #ffffff;
    background: #1f1f1f;
    color: #ffffff;
    box-shadow: 0 0 8px #ffffffaa;
}

/* === BOTONES LOGIN/LOGOUT === */
.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-section button,
.auth-section a.btn-auth,
.btn-auth {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: #fff !important;
    font-weight: bold;
    padding: 0.5rem 1.2rem;
    border: 2px solid #333;
    border-radius: 6px;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.auth-section button:hover,
.auth-section a.btn-auth:hover,
.btn-auth:hover {
    background: #ffffff;
    color: #000 !important;
    border-color: #ffffff;
    box-shadow: 0 0 10px #ffffffaa;
}

.auth-section small {
    color: #aaa;
    font-size: 0.75rem;
}

/* === MAIN === */
main {
    padding-top: 2rem;
}

/* === FOOTER === */
footer {
    background: #0d0d0d;
    color: #aaa;
    font-size: 0.9rem;
    margin-top: auto;
    padding: 1rem 0;
    text-align: center;
}

/* === SCROLLBAR PERSONALIZADA === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}

/* === RESPONSIVE FIX === */
@media (max-width: 991px) {
    /* Quitamos el flex-column forzado del nav original */
    nav {
        gap: 0 !important;
    }

    /* Estilo del menú cuando se abre */
    .navbar-collapse {
        background: #141414;
        padding: 1.5rem;
        border-radius: 8px;
        border: 1px solid #333;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    /* Botones ocupando el ancho del menú desplegado */
    nav a.nav-btn, .btn-auth {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* === PLACEHOLDER FIX PARA FONDOS OSCUROS === */
input.text-white::placeholder, textarea.text-white::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
}

/* Para que el nombre de usuario no sea gigante en móvil */
.auth-section .btn-auth {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    white-space: nowrap;
}

/* Estilo del dropdown de deslogueo */
.dropdown-menu-dark {
    background-color: #1a1a1a;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.dropdown-item:hover {
    background-color: #333;
}

/* Asegurar que en móvil las barritas y el login estén en la misma línea */
@media (max-width: 991px) {
    .navbar-brand {
        max-width: 100px; /* Achicamos un poco el logo en móvil si es necesario */
    }
    .Logofdph {
        height: 35px;
    }
}

/* Evita solapamiento de botones flotantes con el footer en mobile */
@media (max-width: 767px) {
    #whatsappFloat,
    #openCart {
        bottom: 84px !important;
        width: 52px !important;
        height: 52px !important;
    }

    #whatsappFloat i {
        font-size: 27px !important;
    }

    #openCart i {
        font-size: 21px !important;
    }

    footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
}