/* Estilos generales de la aplicación */
body {
    background: #ffffff;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Contenedores con tonalidad gris */
.login-container {
    background: #f5f5f5;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

/* Formularios */
.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-control:focus {
    border-color: #0D3E66;
    box-shadow: 0 0 0 0.2rem rgba(13, 62, 102, 0.15);
    outline: none;
}

.form-control[readonly] {
    background-color: #e9ecef;
    cursor: not-allowed;
}

/* Botones con color #0D3E66 */
.btn-login,
.btn-primary {
    background-color: #0D3E66;
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    color: #ffffff;
}

.btn-login:hover,
.btn-primary:hover {
    background-color: #0a2d4d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 62, 102, 0.3);
    color: #ffffff;
}

.btn-login:active,
.btn-primary:active {
    transform: translateY(0);
    background-color: #081f33;
}

.btn-login:focus,
.btn-primary:focus {
    background-color: #0D3E66;
    box-shadow: 0 0 0 0.2rem rgba(13, 62, 102, 0.25);
    color: #ffffff;
}

/* Alertas */
.alert {
    border-radius: 10px;
    border: none;
}

/* Utilidades para centrar contenido */
.d-flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Enlaces de recuperación de contraseña */
.forgot-password-link {
    color: #0D3E66;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password-link:hover {
    color: #0a2d4d;
    text-decoration: underline !important;
}

/* Enlace de registro */
.register-link {
    color: #0D3E66;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.register-link:hover {
    color: #0a2d4d;
    text-decoration: underline !important;
}

/* Dashboard */
.dashboard-container {
    min-height: 100vh;
    background: #ffffff;
    padding: 2rem 0;
}

.dashboard-title {
    color: #333;
    font-weight: 600;
    margin: 0;
}

.dashboard-card {
    background: #f5f5f5;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-body {
    padding: 2rem;
    text-align: center;
}

.dashboard-card .card-title {
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-number {
    font-size: 3rem;
    font-weight: 700;
    color: #0D3E66;
    line-height: 1;
}

/* Botones del dashboard */
.btn-dashboard {
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 0.95rem;
    min-width: 140px;
}

.btn-dashboard:not(.btn-logout) {
    background-color: #0D3E66;
}

.btn-dashboard:not(.btn-logout):hover {
    background-color: #0a2d4d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 62, 102, 0.3);
    color: #ffffff;
}

.btn-dashboard:not(.btn-logout):active {
    transform: translateY(0);
    background-color: #081f33;
}

.btn-logout {
    background-color: #6c757d;
}

.btn-logout:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
    color: #ffffff;
}

.btn-logout:active {
    transform: translateY(0);
    background-color: #545b62;
}

/* Nuevo Pedido */
.pedido-form-container {
    background: #f5f5f5;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pedido-form-container h3 {
    color: #333;
    font-weight: 600;
}

.resumen-grid {
    margin-bottom: 0;
}

.conversiones-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(13, 62, 102, 0.08);
    box-shadow: 0 2px 10px rgba(13, 62, 102, 0.05);
}

.conversiones-title {
    font-size: 1rem;
    color: #0D3E66;
    font-weight: 600;
    margin: 0;
}

.conversion-card {
    background: #f8f9ff;
    border-radius: 10px;
    padding: 0.85rem;
    border: 1px solid rgba(13, 62, 102, 0.12);
    min-height: 110px;
}

.conversion-card-label {
    font-size: 0.8rem;
    color: #5f6b7a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.conversion-card-value {
    font-size: 1rem;
    color: #0D3E66;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.conversion-card-meta {
    font-size: 0.85rem;
    color: #656d7a;
}

.conversion-total {
    font-size: 0.9rem;
    color: #0D3E66;
}

.conversion-total-label {
    font-size: 0.78rem;
    color: #5f6b7a;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0;
}

.conversion-total-value {
    font-size: 1.25rem;
}

.resumen-grid .resumen-label {
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.resumen-grid .resumen-value {
    font-size: 1.3rem;
    color: #0D3E66;
}

#finalizarPedidoBtn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.productos-container {
    min-height: 200px;
}

.producto-card {
    background: #f5f5f5;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.producto-card-body {
    padding: 1.5rem;
}

.producto-marca {
    color: #0D3E66;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.producto-codigo,
.producto-talla,
.producto-precio {
    color: #666;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.producto-precio {
    color: #0D3E66;
    font-weight: 600;
}

/* Total del carrito */
#totalCarrito {
    color: #0D3E66;
    font-weight: 700;
    font-size: 1.5rem;
}

.btn-danger {
    background-color: #dc3545;
    border: none;
    border-radius: 8px;
    padding: 0.375rem 0.75rem;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
}

/* Mis Pedidos */
.clickeable-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clickeable-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.pedido-card {
    background: #f5f5f5;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: none;
}

.pedido-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.pedido-card-body {
    padding: 1.5rem;
}

.pedido-titulo {
    color: #0D3E66;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pedido-fecha,
.pedido-cantidad,
.pedido-total,
.pedido-estado {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.pedido-total {
    color: #0D3E66;
    font-weight: 600;
}

/* Modal */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
    border-radius: 15px 15px 0 0;
}

.modal-title {
    color: #333;
    font-weight: 600;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background-color: #f5f5f5;
    color: #333;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

.table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Asegurar que el dashboard-container esté por encima del backdrop */
.dashboard-container {
    position: relative;
    z-index: 1;
}

/* Asegurar que las cards estén por encima */
.pedido-card {
    position: relative;
    z-index: 1;
}

/* Navbar */
.navbar-custom {
    background: #f5f5f5;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.navbar-custom .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-icon {
    font-size: 1.5rem;
    color: #0D3E66;
    background: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.user-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Contenedor central para móvil (carrito + hamburguesa) */
.navbar-center-mobile {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

/* Botón hamburguesa */
.navbar-toggler {
    display: none;
    background: #0D3E66;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    background: #0a2d4d;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13, 62, 102, 0.25);
}

/* Menú móvil */
.navbar-mobile-menu {
    display: none;
    width: 100%;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e0e0e0;
}

.navbar-mobile-menu.show {
    display: block;
}

.navbar-mobile-menu .btn-dashboard {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-custom {
        padding: 1rem;
    }

    .navbar-center-mobile {
        display: flex;
    }

    .navbar-toggler {
        display: block;
    }

    .navbar-right {
        display: none;
    }

    .user-name {
        font-size: 0.9rem;
    }

    .navbar-mobile-menu {
        display: none;
    }

    .navbar-mobile-menu.show {
        display: block;
    }
}

@media (min-width: 769px) {
    .navbar-mobile-menu {
        display: none !important;
    }
}

.cart-container {
    position: relative;
}

.cart-button {
    background: #0D3E66;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.cart-button:hover {
    background: #0a2d4d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 62, 102, 0.3);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: #ffffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.cart-badge:empty {
    display: none;
}

/* Ajustar dashboard-container para el navbar */
.dashboard-container {
    min-height: calc(100vh - 100px);
    background: #ffffff;
    padding: 2rem 0;
}