/* =========================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@300;400;700;900&display=swap');
:root {
    /* Colores Marca */
    --racing-red: #e11d48;
    --racing-red-hover: #fb7185;
    --dark-carbon: #0a0a0a;
    --deep-black: #050505;
    /* Efectos Glass */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);
    /* Tipografía */
    --font-main: 'Inter', sans-serif;
    --font-racing: 'Orbitron', sans-serif;
}


/* Reset Base */

body {
    font-family: var(--font-main);
    background-color: var(--deep-black);
    color: white;
    -webkit-font-smoothing: antialiased;
}

.font-racing {
    font-family: var(--font-racing);
    letter-spacing: 0.05em;
}


/* =========================================
   COMPONENTES COMPARTIDOS (TODOS LOS HTML)
   ========================================= */


/* Efectos de Cristal (Index, Detalle, Products) */

.glass-effect,
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.glass-card {
    border-radius: 2rem;
    /* 32px */
}

.img-card {
    border-radius: 2rem;
    /* 32px */
}


/* Botones Principales */

.btn-red-action,
.btn-checkout {
    background: var(--racing-red);
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-red-action:hover,
.btn-checkout:hover {
    background: var(--racing-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(225, 29, 72, 0.5);
}


/* Cards de Productos (Index & Products) */

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px);
    border-color: var(--racing-red);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}


/* =========================================
   ESPECÍFICOS: CARRITO Y CHECKOUT
   ========================================= */


/* Estilos de tabla en Carrito */

.cart-table th {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: #666;
    padding: 1rem;
}


/* Inputs en Checkout */

.input-field {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: var(--racing-red);
    background: rgba(255, 255, 255, 0.07);
}


/* Cards Seleccionables (Métodos de pago/envío) */

.selectable-card {
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--glass-border);
}

.selectable-card.active {
    border-color: var(--racing-red);
    background: rgba(225, 29, 72, 0.05);
}


/* =========================================
   MODALES Y UTILIDADES
   ========================================= */

.modal-overlay {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
}


/* Scrollbars Personalizados */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--deep-black);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--racing-red);
}


/* Animación de entrada */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s ease forwards;
}


/* Nav Móvil Corregido */

.mobile-bottom-nav {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

.btn-action-red {
    background: #e11d48;
    transition: all 0.3s;
}

.btn-action-red:hover {
    background: #fb1d48;
    transform: scale(0.95);
}

.floating-cart-btn {
    background: #e11d48;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -32px;
    box-shadow: 0 8px 25px rgba(225, 29, 72, 0.4);
    border: 4px solid #050505;
}


/* Estilo de Modales */

.modal-overlay {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 480px;
    border-radius: 32px;
    overflow: hidden;
    animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Inter:wght@300;400;700;900&display=swap');
 :root {
    --racing-red: #e11d48;
    --dark-carbon: #0a0a0a;
}

body {
    font-family: 'Inter', sans-serif;
}

.font-racing {
    font-family: 'Orbitron', sans-serif;
}

.hero-gradient {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.7) 50%, rgba(10, 10, 10, 0.4) 100%), url('/jpg/banner-hero/');
    background-size: cover;
    background-position: center;
}

.glass-effect {
    /*background: rgba(255, 255, 255, 0.55);*/
    /*background: rgba(255, 255, 255, 1);*/
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.white-glass-effect {
    
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-hover:hover {
    transform: translateY(-8px);
    border-color: rgba(225, 29, 72, 0.3);
}

.action-button-float {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.action-button-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.4);
}

.brand-logo {
    filter: grayscale(1) brightness(2);
    opacity: 0.4;
    transition: all 0.4s ease;
}

.brand-logo:hover {
    filter: grayscale(0) brightness(1);
    opacity: 1;
    transform: scale(0.95);
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

 ::-webkit-scrollbar {
    width: 8px;
}

 ::-webkit-scrollbar-track {
    background: #0a0a0a;
}

 ::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

 ::-webkit-scrollbar-thumb:hover {
    background: var(--racing-red);
}

select option {
    background: #111;
    color: white;
}


/* ESTILOS DE MODALES */

.modal-overlay {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    display: none;
}

.modal-content {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 5px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.btn-red-action {
    background: #e11d48;
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    font-style: italic;
    transition: all 0.3s;
}

.btn-red-action:hover {
    background: #f43f5e;
    transform: scale(1.02);
}

.animate-modal {
    animation: modalShow 0.3s ease-out;
}

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


/**Checkout*/

.input-field {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    width: 100%;
    transition: all 0.3s ease;
    outline: none;
    font-size: 0.9rem;
}

.input-field:focus {
    border-color: var(--racing-red);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
}

textarea.input-field {
    min-height: 100px;
    resize: none;
}

.selectable-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.01);
}

.selectable-card.active {
    border-color: var(--racing-red);
    background: rgba(225, 29, 72, 0.05);
    transform: translateY(-2px);
}

.selectable-card.active-blue {
    border-color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

.form-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 0.5rem;
    display: block;
}

.sticky-summary {
    position: sticky;
    top: 2rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--racing-red);
}

input:checked+.slider:before {
    transform: translateX(24px);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.is-invalid {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-text {
    animation: pulse 1.5s infinite;
}

.sticky-filter {
    position: sticky;
    top: 5rem;
    /* Altura del nav (h-20 = 80px) */
    z-index: 40;
    transition: background 0.3s ease;
}