:root {
    --blue-dark: #001f3f;
    --blue-medium: #004085;
    --blue-light: #007bff;
    --white: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.4);
}



* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* Asegurar que el smooth scroll funcione en todo el documento */

html {
    scroll-behavior: smooth;
}



body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--blue-dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h2 {

font-size: 3em;

}





/* MAIN HEADER */


.main-header {
    background-color: var(--blue-dark);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* 🛠️ NUEVO: Altura fija para el header */
    min-height: 70px;
    height: 70px;
}


/* LOGO */

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px var(--shadow-color);
}


/* MAIN NAVIGATION */

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--blue-light);
}


/* USER ACTIONS */

.user-actions a {
    color: var(--white);
    font-size: 1.5rem;
    margin-left: 1.5rem;
    transition: transform 0.2s ease;
}

.user-actions a:hover {
    transform: scale(1.1);
}


.user-actions-list a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;

}

.user-actions-list a:hover {
    color: var(--blue-light);
}


/* Corrección de font-size para el botón "Pedidos" */
.main-header .user-actions-list a {
    font-size: 1rem; /* Esto anulará el 1.5rem de .user-actions a */
}


/* HERO SECTION */ 

.hero-section {
    background-image: linear-gradient(rgba(0, 31, 63, 0.7), rgba(0, 31, 63, 0.7)), url('hero-bg.jpg'); /* Reemplazar con una imagen real */
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-in-out;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    animation: fadeIn 2s ease-in-out;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeIn 1.5s ease-in-out;
}


.hero-content a {
    font-size: 1.2rem;
    margin-bottom: 4rem;
    animation: fadeIn 1.5s ease-in-out;
}



/* CTA BUTTON */ 

.cta-button {
    background-color: var(--blue-light);
    color: var(--white);
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
}



/* PRODUCT GRID */ 

.product-grid, .featured-products, .about-us-section {
    padding: 4rem 2rem;
    text-align: center;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}


.product-card {
    background-color: var(--blue-medium);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow-color);
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}




/* FOOTER */

footer {

    padding: 4rem 2rem;
    text-align: center;


    background-color: var(--blue-dark);
    padding: 3rem 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    border-bottom: 1px solid var(--blue-medium);
    padding-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-section p, .footer-section a {
    color: var(--white);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--blue-light);
}

.social-media a {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    font-size: 0.8rem;
    opacity: 0.7;
}








/* FORM GROUP */

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid var(--blue-medium);
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--white);
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--blue-light);
}



/* Estilos para la Tienda */
.store-container {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-light);
    margin-bottom: 0.5rem;
}

.product-stock {
    font-size: 0.9rem;
    color: var(--gray-light);
    margin-bottom: 1rem;
}

.add-to-cart-btn {
    background-color: var(--blue-light);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background-color: #0056b3;
}









/* USER */


/* Estilos para el mensaje de bienvenida del usuario */
.welcome-message {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-light);
    margin-left: 0.75rem;
    /* white-space: nowrap;  Evita que el nombre se corte */
}







/* --- COMPONENTE: BOTONES (BTN) --- */

.btn {
    display: inline-block;
    padding: 12px 25px;
    margin-top: 15px; /* Espacio superior para separarlo del H2 */
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent; /* Para el efecto hover */
    transition: all 0.3s ease;
}

/* Estilo por defecto (Primary) */
.btn-primary {
    background-color: var(--blue-light); /* Asume que tienes --blue-light definido */
    color: var(--white);
    border-color: var(--blue-light);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--blue-light);
}

/* Estilo para el botón secundario */
.btn-secondary {
    background-color: var(--white);
    color: var(--blue-dark); /* Color oscuro para el texto sobre fondo blanco */
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

/* Estilo para el botón de advertencia (si usas btn-warning) */
.btn-warning {
    background-color: #ffc107; /* Amarillo de advertencia */
    color: var(--blue-dark);
    border-color: #ffc107;
}

.btn-warning:hover {
    background-color: transparent;
    color: #ffc107;
}









/* SCROLL MARGIN PARA LAS SECCIONES */

/* 🛠️ NUEVO: Aplicar scroll-margin a todas las secciones con ID */
#featured-products,
#productos,
#sobre-nosotros,
#novedades,
#ofertas,
#camiseta-id,
.featured-products,
.about-us-section,
.contact-section {
    scroll-margin-top: 90px; /* 70px del header + 20px de espacio extra */
}



#sobre-nosotros {

    background-color: white;
    color: darkblue;

}




/* --- NUEVOS ESTILOS PARA LA ZONA DE STOCK EN EL MODAL --- */
#modal-product-stock {
    /* Tipografía y espaciado */
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0; /* Espacio superior e inferior para destacarlo */
    padding: 0.6rem 1.5rem; /* Padding interno */
    letter-spacing: 0.5px;
    
    /* Diseño de pastilla (pill/badge) */
    border-radius: 50px; 
    display: inline-block; /* Crucial para que tome el padding y el tamaño del contenido */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    
    /* Colores por defecto (puedes cambiarlos según el stock con JavaScript) */
    background-color: var(--blue-medium); 
    color: var(--white);
    border: 2px solid var(--blue-light);
    transition: all 0.3s ease; /* Transición suave para futuros cambios de color */
}


/* Clases opcionales para usar con JavaScript si quieres dar color según la cantidad */
.stock-high {
    background-color: #28a745; /* Verde para Stock Alto */
    border-color: #28a745;
}

.stock-low {
    background-color: #ffc107; /* Amarillo/Naranja para Stock Bajo */
    color: var(--blue-dark) !important; /* Asegurar que el texto sea oscuro */
    border-color: #ffc107;
}

.stock-out {
    background-color: #dc3545; /* Rojo para Sin Stock */
    border-color: #dc3545;
}






/* --- ESTILOS MEJORADOS PARA EL CONTROL DE CANTIDAD --- */

/* 1. Contenedor principal: Flexbox para alinear perfectamente */
.modal-product-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px; /* Ligeramente más ancho */
    height: 50px; /* Altura fija para mejor proporción */
    border: 2px solid var(--blue-light);
    border-radius: 10px;
    overflow: hidden;
    margin: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Sombra sutil */
    transition: box-shadow 0.3s ease;
}

.modal-product-quantity:hover {
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3); /* Sombra más pronunciada al hover */
}

/* 2. Botones de Flecha: Diseño más atractivo y táctil */
.quantity-button {
    background: linear-gradient(135deg, var(--blue-medium) 0%, var(--blue-light) 100%);
    color: var(--white);
    border: none;
    width: 45px; /* Ancho fijo para botones cuadrados */
    height: 100%; /* Altura completa del contenedor */
    cursor: pointer;
    font-size: 1.4rem; /* Iconos más grandes */
    font-weight: bold;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Efecto hover más dinámico */
.quantity-button:hover {
    background: linear-gradient(135deg, var(--blue-light) 0%, #0056b3 100%);
    transform: scale(1.05); /* Ligero zoom */
}

/* Efecto al hacer clic */
.quantity-button:active {
    transform: scale(0.95);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Efecto disabled para cuando se llega al límite */
.quantity-button:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.quantity-button:disabled:hover {
    transform: none;
}

/* 3. Campo de Entrada (Input): Diseño limpio y legible */
#quantity-input {
    flex-grow: 1;
    text-align: center;
    font-size: 1.3rem; /* Número más grande */
    font-weight: 700; /* Más bold para destacar */
    color: var(--blue-dark);
    background-color: #f8f9fa; /* Fondo gris muy claro */
    border: none;
    height: 100%;
    padding: 0;
    width: 70px; /* Ancho específico para el input */
    /* Eliminar flechas del navegador */
    -moz-appearance: textfield;
    transition: background-color 0.2s ease;
}

/* Hover en el input */
#quantity-input:hover {
    background-color: #e9ecef;
}

/* Focus en el input */
#quantity-input:focus {
    outline: none;
    background-color: var(--white);
    box-shadow: inset 0 0 0 2px var(--blue-light);
}

/* Eliminar flechas en navegadores WebKit */
#quantity-input::-webkit-outer-spin-button,
#quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



/* --- ESTILOS ADICIONALES OPCIONALES --- */

/* Añadir iconos Font Awesome a los botones (si usas <i> dentro de los botones) */
.quantity-button i {
    pointer-events: none; /* Asegura que el clic se registre en el botón */
}

/* Transición suave para cambios de valor */
#quantity-input {
    transition: color 0.3s ease;
}



.quantity-changed {
    animation: pulse 0.3s ease;
}







/* =====================================================
   ESTILOS MEJORADOS PARA EL MODAL DE PEDIDOS
   ===================================================== */

/* Modal Container */
.orders-modal-content {
    max-width: 950px !important;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    padding: 2.5rem !important;
}

/* Título del Modal */
.orders-modal-content > h2 {
    color: var(--blue-dark) !important;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-bottom: 1rem;
}

.orders-modal-content > h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-light), var(--blue-medium));
    border-radius: 2px;
}



/* Tracking Module */
#ordersContent .tracking-module {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

#ordersModal .tracking-module h3 {
    color: var(--blue-dark) !important;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#ordersModal .tracking-module p {
    color: #2c3e50 !important;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Lista de Pedidos - Diseño Moderno */
#ordersModal .orders-list {
    max-height: 450px;
    overflow-y: auto;
    padding: 0;
    margin: 1.5rem 0;
    border-radius: 12px;
}

/* Scroll personalizado */
#ordersModal .orders-list::-webkit-scrollbar {
    width: 8px;
}

#ordersModal .orders-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

#ordersModal .orders-list::-webkit-scrollbar-thumb {
    background: var(--blue-light);
    border-radius: 10px;
}

#ordersModal .orders-list::-webkit-scrollbar-thumb:hover {
    background: var(--blue-medium);
}

/* Tarjetas de Pedidos */
#ordersModal .order-item {
    border: none !important;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

#ordersModal .order-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

#ordersModal .order-item:last-child {
    margin-bottom: 0;
}

#ordersModal .order-link-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #2c3e50;
    text-align: left;
}

#ordersModal .order-link-btn:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

#ordersModal .order-link-btn strong {
    color: var(--blue-light);
    font-size: 1.1rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

#ordersModal .order-date {
    color: #7f8c8d;
    font-size: 0.85em;
    font-weight: 500;
    margin-left: 0.5rem;
}

#ordersModal .order-total {
    font-weight: 700;
    font-size: 1.2rem;
    color: #27ae60;
    padding: 0.3rem 0.8rem;
    background: rgba(39, 174, 96, 0.1);
    border-radius: 8px;
}

/* Badges de Estado Mejorados */
#ordersModal .badge {
    font-size: 0.85em;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-left: 0.5rem;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#ordersModal .status-pendiente { 
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: #2c3e50 !important; 
}

#ordersModal .status-confirmado { 
    background: linear-gradient(135deg, #3498db, #2980b9);
}

#ordersModal .status-procesando { 
    background: linear-gradient(135deg, #1abc9c, #16a085);
}

#ordersModal .status-enviado { 
    background: linear-gradient(135deg, #27ae60, #229954);
}

#ordersModal .status-entregado { 
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

#ordersModal .status-completed { 
    background: linear-gradient(135deg, #3498db, #2980b9);
}

#ordersModal .status-pending { 
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    color: #2c3e50 !important; 
}

#ordersModal .status-fallido { 
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

#ordersModal .status-cancelado { 
    background: linear-gradient(135deg, #34495e, #2c3e50);
}

/* Timeline de Estados - Diseño Premium */
#ordersModal .status-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 40px 0;
    margin: 2.5rem 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}

#ordersModal .timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

#ordersModal .timeline-step .step-dot {
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ecf0f1;
    margin: 0 auto 12px;
    z-index: 10;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: all 0.3s ease;
}

#ordersModal .timeline-step.completed .step-dot {
    background: linear-gradient(135deg, #27ae60, #229954);
    animation: pulse-complete 2s infinite;
}

#ordersModal .timeline-step.active .step-dot {
    background: linear-gradient(135deg, var(--blue-light), var(--blue-medium));
    border: 4px solid #e3f2fd;
    box-shadow: 0 0 0 8px rgba(0, 123, 255, 0.15);
    animation: pulse-active 1.5s infinite;
}



#ordersModal .timeline-step:not(:last-child)::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    right: -50%;
    height: 4px;
    background: linear-gradient(90deg, #ecf0f1 0%, #bdc3c7 100%);
    z-index: 1;
    transition: all 0.3s ease;
}

#ordersModal .timeline-step.completed:not(:last-child)::before {
    background: linear-gradient(90deg, #27ae60 0%, #229954 100%);
}

#ordersModal .step-text {
    font-size: 0.9em;
    color: #95a5a6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#ordersModal .timeline-step.active .step-text,
#ordersModal .timeline-step.completed .step-text {
    color: var(--blue-dark);
    font-weight: 700;
}





/* Detalles del Pedido - Card Premium */
#ordersModal .order-details {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--blue-light);
}

#ordersModal .order-details h4 {
    color: var(--blue-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#ordersModal .order-details p {
    margin: 1rem 0;
    font-size: 1rem;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#ordersModal .order-details strong {
    color: var(--blue-dark);
    font-weight: 600;
    min-width: 140px;
}

#ordersModal .order-details code {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: var(--blue-medium);
    border: 2px dashed var(--blue-light);
}

/* Botones Mejorados */
#ordersModal .tracking-link,
#ordersModal .secondary-btn {
    display: inline-block;
    text-align: center;
    margin: 12px 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--blue-light), var(--blue-medium));
    color: white !important;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#ordersModal .tracking-link:hover,
#ordersModal .secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, var(--blue-medium), var(--blue-dark));
}

#ordersModal .secondary-btn {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d) !important;
    box-shadow: 0 4px 15px rgba(149, 165, 166, 0.3);
}

#ordersModal .secondary-btn:hover {
    background: linear-gradient(135deg, #7f8c8d, #5a6268) !important;
    box-shadow: 0 6px 25px rgba(149, 165, 166, 0.4);
}

/* Alertas Mejoradas */
#ordersModal .alert {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#ordersModal .alert::before {
    content: '⚠️';
    font-size: 1.5rem;
}

#ordersModal .alert.error {
    background: linear-gradient(135deg, #fee, #fcc);
    color: #c0392b;
    border-left: 5px solid #e74c3c;
}

/* Formulario de Búsqueda Mejorado */
#ordersModal .form-group {
    margin-bottom: 1.5rem;
}

#ordersModal .form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--blue-dark);
    font-size: 1.1rem;
}

#ordersModal .form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: #2c3e50;
}

#ordersModal .form-group input:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
}

/* Separador Elegante */
#ordersModal hr {
    margin: 2.5rem 0;
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue-light), transparent);
}

/* Mensaje de Éxito */
#ordersModal .success-message {
    color: var(--blue-dark) !important;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.15);
}





.orders-modal-content {
    animation: modalSlideIn 0.4s ease-out;
}

/* Mejora visual para cuando no hay pedidos */
#ordersModal .tracking-module > p:first-of-type {
    text-align: center;
    font-size: 1.1rem;
    color: #7f8c8d;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}









/* ========================================
   PARTE 2: CSS PARA MENÚ RESPONSIVE
   ======================================== */

/* ===== HEADER BASE (Desktop) ===== */
.main-header {
    background-color: var(--blue-dark);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 70px;
    height: 70px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px var(--shadow-color);
    z-index: 1001;
}

/* ===== OCULTAR CHECKBOX Y HAMBURGUESA EN DESKTOP ===== */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.nav-toggle-label span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ===== NAVEGACIÓN DESKTOP ===== */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--blue-light);
}

/* ===== USER ACTIONS ===== */
.user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-actions a {
    color: var(--white);
    font-size: 1.5rem;
    transition: transform 0.2s ease;
}

.user-actions a:hover {
    transform: scale(1.1);
}

.welcome-message {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue-light);
    display: none; /* Ocultar en móvil por defecto */
}





/* =====================================================
   ESTILOS PARA FILTROS DE STOCK EN EL CMS
   ===================================================== */

.stock-filters {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-medium) 100%);
    border-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.filter-btn i {
    font-size: 1.2rem;
}

.filter-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Estilos específicos por tipo de filtro */
.filter-btn[data-filter="out-of-stock"]:not(.active) {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.filter-btn[data-filter="out-of-stock"]:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
}

.filter-btn[data-filter="with-stock"]:not(.active) {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.filter-btn[data-filter="with-stock"]:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
}

/* Indicador visual de stock en la tabla */
#productsTable tbody tr[data-stock="0"] {
    background-color: rgba(231, 76, 60, 0.1) !important;
}

#productsTable tbody tr[data-stock="0"] td:nth-child(6) {
    color: #e74c3c;
    font-weight: 700;
}

#productsTable tbody tr:not([data-stock="0"]) td:nth-child(6) {
    color: #27ae60;
    font-weight: 600;
}

/* Animación de fade para filtrado */
@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#productsTable tbody tr {
    animation: fadeInRow 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .stock-filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }
}





/* =====================================================
   ESTILOS ESPECÍFICOS: MODAL DE RESTABLECIMIENTO
   Hereda la apariencia oscura del modal de Login.
   ===================================================== */

/* 1. Contenedor del Modal y Contenido: 
   Las clases .modal y .modal-content ya se aplican automáticamente 
   con los estilos de fondo oscuro, sombra y posición.
   Solo necesitamos ajustar los elementos internos.
*/

/* 2. Botón de Cerrar (Ajuste para la clase 'close-btn' usada en este modal) */
.modal-content .close-btn {
    /* Clave: Adaptamos el estilo del .close-button */
    color: var(--white); /* Blanco */
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-content .close-btn:hover,
.modal-content .close-btn:focus {
    color: var(--blue-light); /* Color de acento azul al pasar el ratón */
    text-decoration: none;
}


/* 3. Título (h3) y Párrafo (p) */
#forgotPasswordModal h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--white); /* Aseguramos texto blanco en el fondo oscuro */
}

#forgotPasswordModal p {
    text-align: center;
    color: var(--white); /* Aseguramos texto blanco en el fondo oscuro */
    margin-bottom: 25px;
    font-size: 1rem;
}


/* 4. Formulario y Inputs: 
   Las clases .form-group y .form-group input ya tienen un estilo oscuro 
   adecuado del modal de Login, no se requiere CSS adicional, 
   pero se incluyen las reglas por si acaso. 
*/
#forgotPasswordForm .form-group label {
    color: var(--white); /* Asegura que las etiquetas sean blancas */
}


/* 5. Botón de Envío (Clase: primary-btn) */
.primary-btn {
    /* Hacemos que se vea exactamente como el .login-button */
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    background-color: var(--blue-light); /* Azul de acento */
    color: var(--white); /* Texto blanco */
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 15px; /* Separación del input */
}

.primary-btn:hover {
    background-color: #0069d9; /* Tono de azul más oscuro al pasar el ratón */
}


/* 6. Mensaje de Respuesta (para el JavaScript) */
#forgotPasswordMessage {
    text-align: center;
    font-weight: 600;
    margin-top: 15px;
    /* Usaremos las clases 'message-success' y 'message-error' que definimos antes
       para darle el estilo de alerta. */
}








/* ... (Asegúrate de que tus variables :root están aquí: --blue-dark, --white, etc.) ... */

/* =====================================================
   ESTILOS: PÁGINA DE RESTABLECIMIENTO DE CONTRASEÑA
   ===================================================== */

.full-page-center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: var(--blue-dark);
}

.reset-card {
    background-color: var(--blue-medium); /* Fondo oscuro consistente */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--shadow-color);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.reset-card h1, .reset-card p {
    color: var(--white);
    margin-bottom: 1.5rem;
}

/* Estilo para los mensajes de error */
.message-error {
    color: #e74c3c !important; 
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Grupo de contraseña con ícono */
.password-group {
    position: relative;
    width: 100%;
    margin-bottom: 15px; /* Separación entre campos */
}

.password-group input[type="password"],
.password-group input[type="text"] {
    width: 100%;
    padding: 12px 40px 12px 12px; /* Espacio para el ojo */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--white);
    font-size: 1rem;
}

.password-group input:focus {
    border-color: var(--blue-light);
    outline: none;
}

/* Estilo para el ícono del ojo */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--blue-light);
}

/* Botón de envío */
.primary-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--blue-light);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.3s;
}

.primary-btn:hover {
    background-color: #0069d9;
}







/* =====================================================
   ESTILOS ESPECÍFICOS: MODAL DE EDICIÓN (Hereda .modal, .modal-content)
   ===================================================== */

/* Layout de dos columnas para los campos cortos */
.modal-grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px; /* Espacio entre columnas y filas */
    margin-bottom: 15px;
}

/* Estilo para las etiquetas (labels) dentro del modal */
.modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--white); /* Texto blanco sobre fondo oscuro */
    font-size: 0.9rem;
}

/* Estilo para el área de texto (textarea) */
.modal-content textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2); /* Fondo semi-transparente oscuro */
    color: var(--white);
    font-size: 1rem;
    resize: vertical; /* Permitir redimensionar solo verticalmente */
}

.modal-content textarea:focus {
    border-color: var(--blue-light);
    outline: none;
}

/* Estilo para el selector de categoría (<select>) */
.modal-content select {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--white);
    font-size: 1rem;
    /* Estilo para la flecha desplegable en navegadores */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3e%3cpath d='M9.293 12.95l.707.707L15 8.707l-1.414-1.414L10 10.586 6.414 7.001 5 8.415l4.293 4.535z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 14px;
}

/* Estilo para las opciones del selector */
.modal-content select option {
    background-color: var(--blue-medium);
    color: var(--white);
}

/* Contenedor de la imagen actual */
.image-preview-container {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    margin-top: 10px;
}

.image-preview {
    max-width: 100%;
    max-height: 150px; /* Limita la altura de la imagen de previsualización */
    height: auto;
    border-radius: 6px;
    object-fit: contain;
}

/* Estilo para el input de tipo file */
.modal-content input[type="file"] {
    display: block;
    width: 100%;
    padding: 8px 0;
    color: var(--white);
    background-color: transparent;
    border: none;
}

/* Media Query para pantallas pequeñas */
@media (max-width: 600px) {
    .modal-grid-2-col {
        grid-template-columns: 1fr; /* Una columna en móviles */
    }
}