/* === ESTILOS WICHO EN LÍNEA - TEMA DARK PREMIUM === */

/* Importar Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&family=Titillium+Web:wght@700&display=swap');

/* Glassmorphism Effects */
.glass-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(34, 211, 238, 0.3);
}

.glass-gradient-bg {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2) 0%, rgba(72, 201, 176, 0.2) 50%, rgba(59, 130, 246, 0.2) 100%);
    border-radius: 24px;
    filter: blur(20px);
    transition: all 0.8s ease;
}

.glass-gradient-bg:hover {
    filter: blur(30px);
    transform: scale(1.05);
}

/* Animated Gradient Background */
.bg-gradient-animated {
    background-size: 200% 200%;
    animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Modern Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: #9ca3af;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: rgba(34, 211, 238, 0.3);
    border-color: var(--primary-cyan);
}

input:checked + .toggle-slider:before {
    transform: translateX(16px);
    background-color: var(--primary-cyan);
}

/* Variables de Color (Paleta Sofisticada basada en Logo e Imágenes) */
:root {
    --bg-main: #0f172a; /* Navy muy oscuro y sofisticado */
    --bg-card: #1e293b; /* Tarjetas navy oscuro con profundidad */
    --bg-hero: #0c4a6e; /* Fondo para secciones hero */
    --primary-teal: #14b8a6; /* Teal suave pero vibrante */
    --primary-cyan: #06b6d4; /* Cian más suave que el anterior */
    --primary-light-teal: #5eead4; /* Teal claro para acentos */
    --primary-pale-teal: #a7f3d0; /* Teal muy pálido */
    --accent-gold: #f59e0b; /* Dorado mostaza sofisticado */
    --accent-orange: #f97316; /* Naranja dorado para botones */
    --accent-dark-gold: #d97706; /* Dorado oscuro para hover */
    --text-white: #ffffff;
    --text-light: #f1f5f9; /* Blanco crema suave */
    --text-gray: #94a3b8; /* Gris suave para textos secundarios */
    --text-dark-gray: #64748b; /* Gris más oscuro */
    --border-color: rgba(148, 163, 184, 0.2); /* Bordes sutiles */
}

/* Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-main);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Aplicar Titillium Web Bold a todos los H1 */
h1 {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 700;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-teal);
}

/* Header y Navegación */
.bg-gradient-header {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
}

.nav-link-elegant {
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-link-elegant:hover {
    color: var(--primary-cyan);
    background: rgba(6, 182, 212, 0.1);
}

.nav-link-elegant::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-cyan);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link-elegant:hover::after {
    width: 80%;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(30, 41, 59, 0.6) 50%, rgba(12, 74, 110, 0.8) 100%);
    z-index: 1;
}

.hero-banner > * {
    position: relative;
    z-index: 2;
}

/* Botones Modernos */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-teal) 100%);
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-cyan) 100%);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 12px;
    color: var(--text-white);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: var(--primary-cyan);
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-cyan);
}

/* Tarjetas de Productos */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.product-card:hover::before {
    left: 100%;
}

.product-card img {
    transition: transform 0.3s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

/* Formularios Modernos */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
    background: rgba(30, 41, 59, 0.9);
}

.form-input::placeholder {
    color: var(--text-gray);
}

/* Animaciones de Carga */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-cyan);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animaciones de Entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.6s ease-out;
}

/* Efectos de Hover Avanzados */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.3);
}

/* Modales Modernos */
.modal-overlay {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Notificaciones Toast */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-white);
    font-weight: 500;
    z-index: 9999;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.toast.error {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.toast.warning {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-banner {
        background-attachment: scroll;
    }
    
    .glass-card {
        margin: 0 16px;
    }
    
    .nav-link-elegant {
        padding: 12px 20px;
        margin: 4px 0;
        display: block;
    }
}

/* Utilidades Adicionales */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-teal) 100%);
}

.border-gradient {
    border-image: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-teal) 100%) 1;
}

/* Efectos de Glassmorphism para Inputs */
.input-glass {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll Suave */
html {
    scroll-behavior: smooth;
}

/* Selección de Texto Personalizada */
::selection {
    background: rgba(6, 182, 212, 0.3);
    color: var(--text-white);
}

/* Focus Visible Accesible */
:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

/* Media Queries para Glassmorphism */
@supports not (backdrop-filter: blur(10px)) {
    .glass-card,
    .form-input,
    .input-glass {
        background: rgba(30, 41, 59, 0.95);
    }
    
    .modal-overlay {
        background: rgba(0, 0, 0, 0.95);
    }
}

/* Estilos para el Carrito */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cart-quantity-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-quantity-btn:hover {
    background: var(--primary-cyan);
    border-color: var(--primary-cyan);
    color: white;
}

/* Estilos para el Admin Dashboard */
.admin-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Animaciones para el Loading */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 2s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Estilos para el Footer */
.footer-link {
    color: var(--text-gray);
    transition: all 0.3s ease;
    position: relative;
}

.footer-link:hover {
    color: var(--primary-cyan);
    transform: translateX(4px);
}

.footer-link::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-cyan);
    transition: width 0.3s ease;
}

.footer-link:hover::before {
    width: 100%;
}

/* Utilidades de Spacing Personalizadas */
.section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

/* Efectos de Hover para Imágenes */
.image-hover-effect {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.image-hover-effect img {
    transition: all 0.4s ease;
}

.image-hover-effect:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.image-hover-effect::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(6, 182, 212, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-hover-effect:hover::after {
    opacity: 1;
}

/* Transiciones Suaves para todos los elementos interactivos */
button, a, input, textarea, select {
    transition: all 0.3s ease;
}

/* Print Styles */
@media print {
    .glass-card {
        background: white;
        color: black;
        border: 1px solid #ccc;
    }
    
    .hero-banner,
    .modal-overlay {
        display: none;
    }
}
/* ESTILOS PREMIUM PARA EL CARRITO */
#cart-modal {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(100%);
    opacity: 0;
}

#cart-modal.active {
    transform: translateX(0);
    opacity: 1;
}

#cart-modal .glass-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}

@media (max-width: 768px) {
    #cart-modal .glass-card {
        border-radius: 0;
    }
}

#cart-items {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-cyan) transparent;
}

#cart-items::-webkit-scrollbar {
    width: 6px;
}

#cart-items::-webkit-scrollbar-track {
    background: transparent;
}

#cart-items::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 3px;
}

#cart-items::-webkit-scrollbar-thumb:hover {
    background: var(--primary-teal);
}

/* Botón de remover con hover */
.group:hover .opacity-0 {
    opacity: 1 !important;
}

/* Animación para el contador del carrito */
#cart-counter {
    animation: pop 0.3s ease;
}

@keyframes pop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* --- AJUSTES FORZADOS DEL REPRODUCTOR --- */
/* Asegurar que el hover sea más oscuro (Cyan 700) sobreescribiendo Tailwind */
.group:hover #progress-fill,
.group:hover #volume-fill {
    background-color: #0e7490 !important; /* Cyan 700 */
}