/* ========================================
   LEOPARDO E-COMMERCE - ESTILOS PRINCIPALES
   ======================================== */

/* Variables CSS - Tema Oscuro Leopardo */
:root {
    /* Colores principales - Tema oscuro */
    --primary-color: #f5c518;        /* Dorado Leopardo */
    --primary-dark: #d4a017;         /* Dorado oscuro */
    --secondary-color: #6c757d;      /* Gris */
    --success-color: #28a745;        /* Verde */
    --danger-color: #dc3545;         /* Rojo */
    --warning-color: #ffc107;        /* Amarillo */
    --info-color: #17a2b8;           /* Azul claro */
    
    /* Colores de fondo */
    --bg-primary: #000000;           /* Negro principal */
    --bg-secondary: #1a1a1a;         /* Negro secundario */
    --bg-tertiary: #2d2d2d;          /* Gris oscuro */
    --bg-card: #1e1e1e;              /* Fondo de tarjetas */
    --bg-hover: #333333;             /* Hover */
    
    /* Colores de texto */
    --text-primary: #ffffff;         /* Blanco principal */
    --text-secondary: #b3b3b3;       /* Gris claro */
    --text-muted: #808080;           /* Gris medio */
    --text-dark: #000000;            /* Negro para texto */
    
    /* Bordes y sombras */
    --border-color: #404040;         /* Color de bordes */
    --border-radius: 0.5rem;         /* Bordes redondeados */
    --box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.3);
    --box-shadow-hover: 0 0.5rem 1rem rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease-in-out;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #f5c518 0%, #d4a017 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
}

/* Reset y Base */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(245, 197, 24, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 197, 24, 0.1) 0%, transparent 50%);
    min-height: 100vh;
}

/* ===== WHATSAPP FLOAT BUTTON (VERDE) ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #20b85d 25%, #128C7E 60%, #075E54 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: hidden;
    filter: drop-shadow(0 0 10px rgba(37, 211, 102, 0.4));
}

/* Efecto de brillo en hover */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6effa8 0%, #25D366 50%, #128C7E 100%);
    transition: left 0.5s ease;
    z-index: 0;
    border-radius: 50%;
}

.whatsapp-float:hover::before {
    left: 0;
}

.whatsapp-float i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
    filter: drop-shadow(0 0 25px rgba(37, 211, 102, 0.9));
}

.whatsapp-float:hover i {
    transform: scale(1.15);
}

.whatsapp-float:active {
    transform: scale(0.95);
}


/* Header */
.navContainer {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-left: auto;
  display: flex;
  z-index: 3;
}

.navbar {
    border-bottom: 2px solid var(--primary-color);
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    color: var(--primary-colo
) !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand img {
    border-radius: var(--border-radius);
    /*
    border: 2px solid var(--primary-color);
    */
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    transition: var(--transition);
    padding: 0.5rem 0.75rem !important; /* menos espacio horizontal */
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}
.nav-link-user {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--bg-hover);
    transform: translateY(-2px);
}

.navbar-toggler {
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28245, 197, 24, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Carrito Badge */
#cart-badge {
    font-size: 0.75rem;
    min-width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge del carrito móvil */
#mobile-cart-badge {
    font-size: 0.7rem;
    min-width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--danger-color) !important;
    color: white !important;
    border-radius: 50%;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Productos */
.product-card {
    background: var(--bg-card);
    border: 1px inset var(--primary-dark);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    background-image: url('../images/fondoCard-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: repeat-y;
    position: relative;
}

.product-card:hover {
    border-top: none;
    border-bottom: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    box-shadow: var(--box-shadow-hover);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    margin-top: 20px;
    border-radius: 10px;
    align-self: center;
    width: 90%;
    height: 315px;
    object-fit: cover;
    background: rgb(155, 120, 0, 0.1);
    padding: 0.5rem;
    box-shadow: 5px 5px 11px rgb(155, 132, 36, 0.4);
    border: 2px solid rgb(155, 132, 36);
}

.product-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 0.5rem;
    background: linear-gradient(125deg, #796e2f, #f0be1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: font-weight 0.2s, background 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.product-title:hover {
    font-weight: 700;
    background: linear-gradient(125deg, #f0ac1a, #ffd900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(245, 197, 24, 0.3);
}

/* Precios promocionales */
.price-normal {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1rem;
    font-weight: 800;
    margin-right: 0.5rem;
    opacity: 0.8;
    transition: var(--transition);
}

.promotional-price {
    margin-left: 2rem;
    color: var(--success-color);
    font-size: 1.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #a79a28, #c6c920);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(140, 167, 40, 0.4);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

/* Contenedor de precios promocionales */
.product-price:has(.price-normal) {
    display: flex;
    flex-direction: column;
    justify-items: center;
    gap: 0.15rem;
    flex-wrap: wrap;
}

@keyframes pulse-glow {
    from { 
        text-shadow: 0 0 15px rgba(159, 167, 40, 0.4);
        transform: scale(1);
    }
    to { 
        text-shadow: 0 0 25px rgba(248, 245, 46, 0.8);
        transform: scale(1.05);
    }
}

/* Badge de descuento personalizado */
.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    animation: discount-bounce 3s ease-in-out infinite;
}

@keyframes discount-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.btn-add-cart {
    flex: 1;
    background: var(--gradient-primary);
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(245, 197, 24, 0.3);
}

.btn-add-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 197, 24, 0.4);
    color: var(--text-dark);
}

.btn-quantity {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
}

/* Carrito */
.cart-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.cart-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-hover);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.cart-item-price {
    background: linear-gradient(135deg, #f5c518 0%, #d4a017 20%, #8b6914 50%, #1a1a1a 80%, #000000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.1rem;
    text-shadow: 0 0 15px rgba(245, 197, 24, 0.5);
    filter: drop-shadow(0 0 8px rgba(245, 197, 24, 0.4));
}

.cart-item-size {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
    margin-top: 0.25rem;
}

.cart-item-size i {
    margin-right: 0.25rem;
    color: var(--primary-color);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    padding: 0.25rem;
}

.cart-summary {
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(245, 197, 24, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 197, 24, 0.1) 0%, transparent 50%);
}

.cart-summary h5,
.cart-summary h6,
.cart-summary .cart-item-title {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(245, 197, 24, 0.3);
    margin-bottom: 0.75rem;
}

.cart-summary .cart-item-price,
.cart-summary .cart-item-total {
    color: var(--primary-color);
    font-weight: 600;
    text-shadow: 0 0 8px rgba(245, 197, 24, 0.3);
}

.cart-summary .cart-item-size {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.cart-summary .cart-item-size i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Estilos específicos para elementos del carrito */
.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cart-item-info h6,
.cart-item-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(245, 197, 24, 0.3);
    margin-bottom: 0.5rem;
    background: linear-gradient(125deg, #796e2f, #f0be1a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-item-info .cart-item-price {
    color: var(--success-color);
    font-weight: 800;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(40, 167, 69, 0.4);
}

.cart-item-size {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0;
    font-style: italic;
}

.cart-item-size i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    text-shadow: 0 0 5px rgba(245, 197, 24, 0.5);
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 0.25rem;
    border: 1px solid var(--border-color);
}

.quantity-btn {
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(245, 197, 24, 0.4);
}

.quantity-input {
    width: 60px;
    text-align: center;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    border-radius: 0;
}

.quantity-input:focus {
    border: none;
    box-shadow: none;
    background: var(--bg-tertiary);
}

.cart-item-total {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(245, 197, 24, 0.4);
    background: linear-gradient(135deg, #f5c518, #d4a017);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.remove-from-cart {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    background: transparent;
}

.remove-from-cart:hover {
    background: var(--danger-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.4);
}

.cart-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(245, 197, 24, 0.4);
}

/* Formularios */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 197, 24, 0.25);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    border: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-dark);
    box-shadow: 0 2px 4px rgba(245, 197, 24, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 8px rgba(245, 197, 24, 0.4);
    color: var(--text-dark);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 4px 8px rgba(245, 197, 24, 0.3);
}

.btn-outline-secondary {
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

/* Alertas */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

.alert-dismissible .btn-close {
    padding: 0.75rem 1rem;
}

/* Loading */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Cards */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    transition: var(--transition);
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.card-header {
    background: var(--gradient-dark);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Paginación */
.pagination {
    justify-content: center;
}

.page-link {
    border-radius: var(--border-radius);
    margin: 0 0.125rem;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
    transition: var(--transition);
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Responsive */
/* Solo margen-bottom en imagen del carrusel en pantallas menores a 992px */
@media (max-width: 991.98px) {
    .carousel-img-mobile-mt {
        margin-top: 0.75rem !important;
    }
}
@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }
    
    .btn-add-cart {
        width: 100%;
    }
    
    .cart-item {
        text-align: center;
    }
    
    .cart-item-actions {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .cart-summary {
        position: static;
        margin-top: 2rem;
    }
}

/* ===== MENÚ LATERAL MÓVIL ===== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border-right: 2px solid var(--primary-color);
    z-index: 1050;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-sidebar.show {
    left: 0;
}

.mobile-sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sidebar-header h5 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 10px rgba(245, 197, 24, 0.3);
}

.mobile-sidebar-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: 50%;
}

.mobile-sidebar-close:hover {
    color: var(--primary-color);
    background: var(--bg-hover);
    transform: scale(1.1);
}

.mobile-sidebar-content {
    padding: 1rem;
}

.mobile-sidebar-search {
    margin-bottom: 1.5rem;
}

.mobile-sidebar-search .form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.mobile-sidebar-search .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 197, 24, 0.25);
    background: var(--bg-tertiary);
}

.mobile-sidebar-search .form-control::placeholder {
    color: var(--text-muted);
}

.mobile-sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-sidebar-nav li {
    margin-bottom: 0.5rem;
}

.mobile-sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

.mobile-sidebar-nav .nav-link:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
    transform: translateX(5px);
}

.mobile-sidebar-nav .nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}

.mobile-sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 1rem 0;
}

.mobile-sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.mobile-sidebar-footer .btn {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.mobile-sidebar-footer .btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 197, 24, 0.4);
}

/* Overlay para el menú lateral */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.mobile-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Botón hamburguesa personalizado para móvil */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.mobile-menu-toggle:hover {
    background: var(--bg-hover);
    transform: scale(1.1);
}

/* Estilos para desktop - mostrar menú normal */
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .navbar-collapse {
    display: flex !important;
  }
  
  #search-form {
    display: flex !important;
  }
}

@media (max-width: 991.98px) {
  .navContainer {
    padding-left: 1rem;
    padding-right: 1rem;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
  }

  /* Mostrar botón hamburguesa en móvil */
  .mobile-menu-toggle {
    display: block;
  }

  /* Ocultar menú normal en móvil */
  .navbar-collapse {
    display: none !important;
  }

  /* Ajustar logo en móvil */
  .navbar-brand {
    margin-right: auto;
  }

  /* Ocultar búsqueda normal en móvil */
  #search-form {
    display: none;
  }
}



/* Utilidades */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shadow-sm {
    box-shadow: var(--box-shadow) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Estados de carga */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

section .custom-h2{
    color: var(--text-dark)
}

/* Hero Section */

/* Carrusel personalizado */
.container-carousel{
    max-width: 1980px;
    margin-left: auto;
    margin-right: auto;
}

.custom-carousel {
  position: relative;
  border-radius: 1rem;
  min-height: 400px;
  overflow: hidden;
  width: 100%;
}
.custom-carousel-slides {
  display: flex;
  gap: 20px;
  transition: transform 0.7s cubic-bezier(.77,.2,.25,1);
  height: 100%;
  width: 100%;
}
.custom-carousel-slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  padding: 2rem;
  padding-bottom: 3.15rem;
}
.custom-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.2s;
}
.custom-carousel-control.prev { left: 1rem; }
.custom-carousel-control.next { right: 1rem; }
.custom-carousel-control:hover { background: rgba(0,0,0,0.6); }
.custom-carousel-indicators {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.custom-carousel-indicators .indicator {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  opacity: 0.6;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #ffc107;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.custom-carousel-indicators .indicator.active {
  opacity: 1;
  background: #ffc107;
  transform: scale(1.2);
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.5);
}

.hero-section {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.hero-section img {
    width: 100% !important;
    max-height: 800px;
    object-fit: cover;
    object-position: center;
    border-radius: 1rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 197, 24, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 197, 24, 0.1) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-section .container {
    z-index: 2;
}

.hero-section h1 {
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section .lead {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

.hero-section .btn-light {
    background: var(--gradient-primary);
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.hero-section .btn-light:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(245, 197, 24, 0.4);
    color: var(--text-dark);
}

/* Productos destacados */
.featured-products {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 3rem 0;
    margin: 2rem 0;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.featured-products h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(245, 197, 24, 0.3);
}

/* Categorías */
.category-section {
background: radial-gradient(circle at 20% 80%, rgba(245, 197, 24, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(245, 197, 24, 0.1) 0%, transparent 50%);
}

.category-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-18px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color) !important; 
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.category-img{
    width: 80px;
}

.category-card:hover .category-icon {
    transform: scale(1.15);
    text-shadow: 0 0 30px rgba(245, 197, 24, 0.8);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
footer {
    margin-top: auto;
    background: var(--gradient-dark) !important;
    border-top: 2px solid var(--primary-color);
}

footer a {
    text-decoration: none;
    transition: var(--transition);
    color: var(--text-secondary) !important;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

footer h5 {
    color: var(--primary-color);
    font-weight: 600;
}

footer p {
    color: var(--text-secondary);
}

/* Footer móvil - alinear contenido a la izquierda */
@media (max-width: 768px) {
    footer .col-md-4 {
        text-align: left !important;
    }
    
    footer .d-flex.justify-content-center.justify-content-md-start {
        justify-content: flex-start !important;
    }
    
    footer .text-center.text-md-start {
        text-align: left !important;
    }
    

    footer .container .row {
        text-align: left !important;
    }
    
    footer .container .row > div {
        text-align: left !important;
    }
    
    footer .list-unstyled {
        text-align: left !important;
    }
    
    footer .list-unstyled li {
        text-align: left !important;
    }
    
   
    footer .col-md-4 p {
        text-align: left !important;
    }
    
    footer .col-md-4 a {
        text-align: left !important;
    }
    
  
    footer .col-md-4:last-child {
        text-align: left !important;
    }
    
    footer .col-md-4:last-child p {
        text-align: left !important;
    }
    
    footer .col-md-4:last-child a {
        text-align: left !important;
        display: block !important;
    }
  
    footer .col-md-4:last-child p a {
        text-align: left !important;
        display: inline-block !important;
    }
    
   
    @media (max-width: 768px) {
        footer .col-md-4:last-child {
            text-align: left !important;
        }
        
        footer .col-md-4:last-child > div {
            text-align: left !important;
        }
        
        footer .col-md-4:last-child h5 {
            text-align: left !important;
        }
        
        footer .col-md-4:last-child p {
            text-align: left !important;
        }
        
        footer .col-md-4:last-child a {
            text-align: left !important;
        }
        
      
        footer .col-md-4:last-child p {
            text-align: left !important;
            margin-left: 0 !important;
            padding-left: 0 !important;
        }
        
        footer .col-md-4:last-child p a {
            text-align: left !important;
            display: block !important;
            margin-left: 0 !important;
            padding-left: 0 !important;
        }
        
 
        footer .col-md-4:last-child * {
            text-align: left !important;
        }
        
       
        footer .text-center.text-md-start {
            text-align: left !important;
        }
        
        footer .col-md-4.text-center.text-md-start {
            text-align: left !important;
        }
        
      
        footer .col-md-4:last-child,
        footer .col-md-4:last-child div,
        footer .col-md-4:last-child h5,
        footer .col-md-4:last-child p,
        footer .col-md-4:last-child a {
            text-align: left !important;
            justify-content: flex-start !important;
            align-items: flex-start !important;
        }
    }
    
   
    footer .text-center:last-child {
        text-align: center !important;
    }
    
    footer .text-center:last-child p {
        text-align: center !important;
    }
    
}


footer .text-center:last-child p.small.text-muted {
    color: #b3b3b3 !important;
}

footer .text-center:last-child p.small {
    color: #b3b3b3 !important;
}


footer p.small.text-muted {
    color: #b3b3b3 !important;
}


footer .text-center p.small {
    color: #b3b3b3 !important;
}


@media (min-width: 992px) {
    footer .col-md-4 {
        padding-left: 2rem !important;
    }
    
    footer .col-md-4:first-child {
        padding-left: 0 !important;
    }
    
    footer .col-md-4:last-child {
        padding-left: 2rem !important;
    }
}

/* Admin */
.admin-sidebar {
    background: var(--dark-color);
    min-height: 100vh;
    padding: 1rem 0;
}

.admin-sidebar .nav-link {
    color: var(--primary-dark);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: var(--warning-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.admin-content {
    padding: 2rem;
}

/* Tablas */
.table {
    background: var(--bg-card) !important;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    color: var(--text-primary) !important;
}

.table th {
    background-color: var(--bg-secondary) !important;
    border-bottom: 2px solid var(--border-color) !important;
    font-weight: 600;
    color: var(--text-primary) !important;
}

.table td {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.table tbody tr {
    background-color: var(--bg-card) !important;
}

.table tbody tr:hover {
    background-color: var(--bg-hover) !important;
}

/* Sobrescribir estilos de Bootstrap específicamente */
.table-responsive .table,
.card .table {
    background-color: var(--bg-card) !important;
}

.table-responsive .table td,
.card .table td {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

/* Filtros */
.filter-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

/* Búsqueda */
.search-box {
    position: relative;
}

.search-box .form-control {
    padding-right: 3rem;
}

.search-box .btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--secondary-color);
}

/* Características */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
    border-color: var(--primary-color);
}

.feature-card i {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(245, 197, 24, 0.5);
    transition: var(--transition);
}

.feature-card:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 30px rgba(245, 197, 24, 0.8);
}

.feature-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-secondary);
}

.custom-icon {
    color: var(--primary-color);
}

/* Testimonios */
section.py-5:nth-of-type(5) {
    background: radial-gradient(circle at 15% 30%, rgba(245, 197, 24, 0.05) 0%, transparent 60%),
                radial-gradient(circle at 85% 70%, rgba(245, 197, 24, 0.05) 0%, transparent 60%),
                var(--bg-secondary) !important;
    padding: 4rem 2rem !important;
    border-radius: 1rem !important;
    position: relative !important;
    overflow: hidden !important;
}

body .testimonial-card {
    background: radial-gradient(circle at 20% 80%, rgba(245, 197, 24, 0.1) 0%, transparent 50%), 
                radial-gradient(circle at 80% 20%, rgba(245, 197, 24, 0.1) 0%, transparent 50%),
                var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    padding: 2rem !important;
    transition: all 0.3s ease-in-out !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
}

body .testimonial-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
    border-color: transparent !important;
    background: radial-gradient(circle at 20% 80%, rgba(245, 197, 24, 0.15) 0%, transparent 50%), 
                radial-gradient(circle at 80% 20%, rgba(245, 197, 24, 0.15) 0%, transparent 50%),
                linear-gradient(135deg, #1a1a1a, #000000) !important;
}

section .testimonial-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    border-radius: 1rem !important;
    padding: 2px !important;
    background: linear-gradient(45deg, var(--primary-color), #ff9800, #ff5722) !important;
    -webkit-mask: linear-gradient(hsl(0, 0%, 100%) 0 0) content-box, linear-gradient(#fff 0 0) !important;
    -webkit-mask-composite: xor !important;
            mask-composite: exclude !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
}
section .testimonial-card:hover::before {
    opacity: 1 !important;
}

section .testimonial-card .stars {
    background: linear-gradient(90deg, var(--primary-color), #ff9800) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-size: 1.2rem !important;
}

section .testimonial-card p {
    color: var(--text-secondary) !important;
    font-style: italic !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    margin: 1rem 0 !important;
    animation: fadeIn 0.6s ease forwards !important;
}


section .testimonial-card h6 {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    margin-top: 0.8rem !important;
}

section .testimonial-card small {
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
}

/* Sección ¿Quiénes Somos? */
.about-section {
  padding: 4rem 0;
}

.about-section h2 {
  font-weight: 700;
  color: var(--primary-color, #0d6efd);
  position: relative;
  display: inline-block;
}

.about-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-primary, linear-gradient(90deg,#fdc50d,#6610f2));
  margin: 0.5rem auto;
  border-radius: 4px;
}

.about-section p.lead {
  max-width: 900px;
  margin: 0 auto 3rem auto;
  font-size: 1.2rem;
  color: var(--text-secondary, #555);
}

/* Imagen con efecto */
.about-section img {
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-section img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* Subtítulos */
.about-section h4 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color, #0d6efd);
}

/* Tarjetas de valores */
.about-section .col-md-4 {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-section .col-md-4:hover {
  transform: translateY(-10px);
}
.about-section .col-md-4 i {
  color: var(--primary-color, #0d6efd);
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}
.about-section .col-md-4:hover i {
  color: var(--secondary-color, #ffc107);
}
.about-section .col-md-4 h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.about-section .col-md-4 p {
  font-size: 0.95rem;
  color: var(--text-secondary, #555);
}

/* Responsive */
@media (max-width: 768px) {
  .about-section h2 {
    font-size: 1.8rem;
  }
  .about-section p.lead {
    font-size: 1rem;
  }
}

@keyframes fadeIn {
    from { opacity: 0 !important; transform: translateY(10px) !important; }
    to { opacity: 1 !important; transform: translateY(0) !important; }
}

/* Estados vacíos */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.empty-state h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1070;
    min-width: 300px;
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

.notification.success {
    background-color: var(--success-color);
    color: white;
}

.notification.error {
    background-color: var(--danger-color);
    color: white;
}

.notification.warning {
    background-color: var(--warning-color);
    color: var(--dark-color);
}

.notification.info {
    background-color: var(--info-color);
    color: white;
}

/* ####################### ADMIN PANEL - GESTIÓN DE PRODUCTOS ####################### */

/* Container principal del admin */
.admin-panel {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
}

/* Header del panel de administración */
.admin-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    border-bottom: 2px solid var(--primary-color);
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: var(--box-shadow);
}

.admin-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(245, 197, 24, 0.3);
    margin: 0;
}

.admin-header p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.1rem;
}

/* Barra de herramientas */
.admin-toolbar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.admin-toolbar:hover {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow-hover);
}

/* Input de búsqueda del admin */
#admin-search-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

#admin-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 197, 24, 0.25);
    background: var(--bg-tertiary);
}

#admin-search-input::placeholder {
    color: var(--text-muted);
}

/* Filtro de categorías del admin */
#admin-category-filter {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

#admin-category-filter:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 197, 24, 0.25);
    background: var(--bg-tertiary);
}

#admin-category-filter option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Botón nuevo producto */
#btn-nuevo-producto {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3);
}

#btn-nuevo-producto:hover {
    background: linear-gradient(135deg, #157347 0%, #146c41 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.4);
    color: white;
}

/* Tabla de productos del admin */
#admin-products-table {
    background: var(--bg-card) !important;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin: 0;
}

#admin-products-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

#admin-products-table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: var(--text-dark) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem 0.75rem;
    border: none !important;
    font-size: 0.875rem;
}

#admin-products-table tbody tr {
    background: var(--bg-card) !important;
    border-bottom: 1px solid var(--border-color) !important;
    transition: var(--transition);
}

#admin-products-table tbody tr:hover {
    background: var(--bg-hover) !important;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Hover del precio cuando se hace hover sobre la fila completa */
#admin-products-table tbody tr:hover .product-price-gradient {
    background: linear-gradient(135deg, #ffef00 0%, #ffd700 25%, #f5c518 50%, #d4a017 75%, #b8941a 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 2px 4px rgba(245, 197, 24, 0.5)) !important;
}

#admin-products-table tbody td {
    background: var(--bg-card) !important;
    padding: 1rem 0.75rem;
    vertical-align: middle;
    color: var(--text-primary) !important;
    border: none !important;
    border-bottom: 1px solid var(--border-color) !important;
}

/* Imagen de producto en la tabla */
.admin-product-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.admin-product-img:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.3);
}

/* Contador de productos */
#products-count {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.3);
}

/* Botones de acción en la tabla */
.btn-group .btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    margin: 0 0.125rem;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 197, 24, 0.3);
}

.btn-outline-danger {
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Modal de producto */
.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.5);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.modal-title {
    color: var(--text-dark);
    font-weight: 700;
    text-shadow: none;
}

.modal-body {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 2rem;
}

.modal-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Formulario de producto */
#product-form .form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#product-form .form-control,
#product-form .form-select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

#product-form .form-control:focus,
#product-form .form-select:focus {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 197, 24, 0.25);
    color: var(--text-primary);
}

#product-form .form-control::placeholder {
    color: var(--text-muted);
}

#product-form .form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Checkbox personalizado */
.form-check-input {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    transition: var(--transition);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(245, 197, 24, 0.25);
}

.form-check-label {
    color: var(--text-primary);
    font-weight: 500;
}

/* Botón guardar producto */
#btn-save-product {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: var(--text-dark);
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.3);
}

#btn-save-product:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #b8941a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.4);
    color: var(--text-dark);
}

/* Botón volver a cliente */
#btn-volver-cliente {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

#btn-volver-cliente:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(245, 197, 24, 0.3);
}

/* Paginación del admin */
#admin-pagination .page-link {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--primary-color);
    margin: 0 0.125rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
}

#admin-pagination .page-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.3);
}

#admin-pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(245, 197, 24, 0.3);
}

/* Badge personalizado para stock */
.badge.bg-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%) !important;
    color: white;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.3);
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    color: white;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
    color: white;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* Texto de estado vacío */
.text-center.py-4.text-muted {
    color: var(--text-muted) !important;
    font-size: 1.1rem;
    padding: 3rem 1rem !important;
}

.text-center.py-4.text-muted i {
    color: var(--text-muted);
    opacity: 0.7;
    margin-bottom: 1rem;
}

/* Código de producto con gradiente amarillo a oscuro */
.product-code-gradient {
    background: linear-gradient(135deg, #ffd700 0%, #f5c518 25%, #d4a017 50%, #b8941a 75%, #8b6914 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    text-shadow: none !important;
    display: inline-block !important;
    filter: drop-shadow(0 1px 2px rgba(245, 197, 24, 0.3)) !important;
    transition: all 0.3s ease !important;
}

.product-code-gradient:hover {
    background: linear-gradient(135deg, #ffef00 0%, #ffd700 25%, #f5c518 50%, #d4a017 75%, #b8941a 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 2px 4px rgba(245, 197, 24, 0.5)) !important;
    transform: scale(1.05) !important;
}

/* Precio con gradiente amarillo a oscuro - solo color */
.product-price-gradient {
    background: linear-gradient(135deg, #ffd700 0%, #f5c518 25%, #d4a017 50%, #b8941a 75%, #8b6914 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
    filter: drop-shadow(0 1px 2px rgba(245, 197, 24, 0.3)) !important;
    transition: all 0.3s ease !important;
}



/* Responsivo para admin */
@media (max-width: 768px) {
    .admin-toolbar .row {
        gap: 1rem;
    }
    
    .admin-toolbar .col-md-6,
    .admin-toolbar .col-md-3 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    #admin-products-table {
        font-size: 0.875rem;
    }
    
    #admin-products-table thead th,
    #admin-products-table tbody td {
        padding: 0.5rem 0.25rem;
    }
    
    .admin-product-img {
        width: 40px;
        height: 40px;
    }
    
    .btn-group .btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    #btn-save-product,
    #btn-volver-cliente {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .admin-header {
        padding: 1rem 0;
        text-align: center;
    }
    
    .admin-header h2 {
        font-size: 1.5rem;
    }
    
    .admin-header p {
        font-size: 1rem;
    }
    
    .admin-toolbar {
        padding: 1rem;
    }
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
    margin-top: 1rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #f5c518 0%, #d4a017 20%, #4b390b 60%, #352b0ab9 80%, #2e250d6c 100%);
    border: none;
    border-radius: 12px;
    color: white;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    padding: 15px 30px;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    min-height: 60px;
    line-height: 1.2;
    filter: drop-shadow(0 0 15px rgba(245, 197, 24, 0.4));
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff022 0%, #f5c518 50%, #d4a017 100%);
    transition: left 0.5s ease;
    z-index: -1;
}

.whatsapp-btn:hover::before {
    left: 0;
}

.whatsapp-btn:hover {
    color: var(--text-dark);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(245, 197, 24, 0.6);
    text-decoration: none;
    filter: drop-shadow(0 0 20px rgba(245, 197, 24, 0.8));
}

.whatsapp-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.5);
}

.whatsapp-btn:active {
    transform: translateY(0);
}

.whatsapp-icon {
    margin-right: 12px;
    flex-shrink: 0;
}

/* ===== CONTACT PAGE WIDER CONTAINERS ===== */
/* Hacer más anchos los contenedores principales de la página de contacto */

/* Contenedor principal de contacto más ancho */
.contact-page-container {
    max-width: 1400px !important; /* Más ancho que el container normal */
    width: 95% !important;
}

/* Columnas de contacto más anchas */
.contact-columns-container .col-lg-8 {
    flex: 0 0 65% !important; /* Formulario más ancho */
    max-width: 65% !important;
}

.contact-columns-container .col-lg-4 {
    flex: 0 0 35% !important; /* Información de contacto */
    max-width: 35% !important;
}

/* Cards de contacto con más padding y ancho */
.contact-card {
    padding: 2.5rem !important;
    margin-bottom: 2rem !important;
    border-radius: 1rem !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Mapa dentro del card de información más ancho */
.contact-info-card .map-container {
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
    margin-bottom: 1.5rem !important;
    margin-top: 1rem !important;
    width: calc(100% + 3rem) !important;
}

.contact-info-card .map-container iframe {
    width: 100% !important;
    min-height: 320px !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
    border: 2px solid var(--primary-color) !important;
    transition: var(--transition) !important;
}

.contact-info-card .map-container iframe:hover {
    box-shadow: 0 8px 25px rgba(245, 197, 24, 0.4) !important;
    transform: translateY(-2px) !important;
}

/* Formulario de contacto más espacioso */
.contact-form-card .form-control {
    padding: 1rem 1.25rem !important;
    font-size: 1.05rem !important;
    border-radius: 0.75rem !important;
}

.contact-form-card .btn {
    padding: 1rem 2rem !important;
    font-size: 1.1rem !important;
    border-radius: 0.75rem !important;
}

/* Responsive para página de contacto */
@media (max-width: 1199.98px) {
    .contact-page-container {
        max-width: 1200px !important;
        width: 92% !important;
    }
    
    .contact-columns-container .col-lg-8,
    .contact-columns-container .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .contact-page-container {
        width: 95% !important;
    }
    
    .contact-card {
        padding: 1.5rem !important;
    }
    
    .contact-info-card .map-container {
        margin-left: -1rem !important;
        margin-right: -1rem !important;
        width: calc(100% + 2rem) !important;
    }
    
    .contact-info-card .map-container iframe {
        min-height: 250px !important;
    }
}

@media (max-width: 576px) {
    .contact-page-container {
        width: 98% !important;
    }
    
    .contact-card {
        padding: 1rem !important;
    }
    
    .contact-info-card .map-container {
        margin-left: -0.75rem !important;
        margin-right: -0.75rem !important;
        width: calc(100% + 1.5rem) !important;
    }
    
    .contact-info-card .map-container iframe {
        min-height: 200px !important;
    }
}


