/* ============================================
   ESTILO PREMIUM - SOFISTICADO Y MODERNO
   Paleta: negro carbón + teal suave + acentos sutiles
   ============================================ */

:root {
    /* Colores principales - versión sobria */
    --bg-primary: #0B0C10;
    --bg-secondary: #1F2833;
    --bg-card: #1A1E26;
    --bg-elevated: #252B35;
    
    --accent-primary: #45A29E;
    --accent-secondary: #66FCF1;
    --accent-soft: #2E4A47;
    
    --text-primary: #FFFFFF;
    --text-secondary: #C5C6C7;
    --text-muted: #6B7280;
    
    --danger: #E85D75;
    --success: #2E7D64;
    --warning: #F4A261;
    
    /* Sombras sutiles */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 12px rgba(69,162,158,0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.text-gray-500,
.text-gray-900,
.text-metal-400{
    color: #F4F6F9 !important;
}
.toast.success{
    color: #fff !important;
}
#detail-ingredients span{
    color: #333;
}
body {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    font-family: 'Inter', 'Rajdhani', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Modo claro (día) - elegante y limpio */
body.light-mode {
    --bg-primary: #F4F6F9;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-elevated: #F0F2F5;
    --text-primary: #1A2A3A;
    --text-secondary: #2C3E50;
    --text-muted: #6C7A89;
    --accent-primary: #2E7D64;
    --accent-soft: #E6F4F1;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
}

body.light-mode .glass-metal {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid rgba(46,125,100,0.2);
}

body.light-mode input,
body.light-mode textarea,
body.light-mode select {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    color: #1A2A3A !important;
}

/* Scrollbar personalizada - minimalista */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* Utilidades */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Glassmorphism metálico - más sutil */
.glass-metal {
    background: rgba(31, 40, 51, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(69, 162, 158, 0.2);
}

body.light-mode .glass-metal {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(46, 125, 100, 0.2);
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, #00d4ff, #ff3333);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    backdrop-filter: blur(0); /* Elimina el blur para que sea legible */
    font-family: 'Rajdhani', sans-serif;
    font-weight: bold;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.toast.show {
    transform: translateX(0);
}

.toast.success { border-left-color: var(--success); color: #fff !important; }
.toast.error { border-left-color: var(--danger); }
.toast.info { border-left-color: var(--accent-primary); }

/* Carousel - sutil */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-container {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.carousel-container:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Animaciones de sección */
.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navegación inferior */
.nav-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    text-decoration: none;
    transition: transform 0.2s;
}

.nav-item:hover {
    transform: translateY(-2px);
}

.nav-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s;
    background: var(--bg-card);
    border: 1px solid rgba(69, 162, 158, 0.3);
    color: var(--accent-primary);
}

.nav-item:hover .nav-icon {
    background: var(--accent-primary);
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.nav-label {
    font-size: 0.7rem;
    margin-top: 6px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.3s;
}

.nav-item:hover .nav-label {
    color: var(--accent-primary);
}

/* Responsive */
@media (max-width: 640px) {
    .toast-container {
        right: 10px;
        left: 10px;
    }
    .toast {
        max-width: 100%;
    }
}
/* ============================================
   REDES SOCIALES - TARJETAS PREMIUM
   ============================================ */

.social-section {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-primary));
    border-radius: 32px;
    margin: 2rem auto;
    max-width: 900px;
    backdrop-filter: blur(4px);
}

.social-title {
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.social-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.8rem;
    background: var(--bg-card);
    border-radius: 60px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    border: 1px solid rgba(69, 162, 158, 0.2);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

.social-icon i {
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.social-icon span {
    font-size: 1rem;
}

/* Colores específicos más sobrios */
.social-icon.whatsapp {
    background: rgba(46, 125, 100, 0.1);
    border-color: rgba(46, 125, 100, 0.3);
}
.social-icon.whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.social-icon.instagram {
    background: rgba(193, 53, 132, 0.1);
    border-color: rgba(193, 53, 132, 0.3);
}
.social-icon.instagram:hover {
    background: linear-gradient(135deg, #f09433, #d62976, #962fbf);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(214, 41, 118, 0.3);
}

.social-icon.facebook {
    background: rgba(24, 119, 242, 0.1);
    border-color: rgba(24, 119, 242, 0.3);
}
.social-icon.facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

/* Efecto hover común */
.social-icon:hover {
    transform: translateY(-5px) scale(1.02);
}

.social-icon:hover i {
    transform: scale(1.1);
}

/* Modo claro - ajustes */
body.light-mode .social-section {
    background: linear-gradient(145deg, #FFFFFF, #F4F6F9);
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

body.light-mode .social-icon {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border-color: #e2e8f0;
}

/* Estilo unificado para todos los modales - estilo chatbot */
.modal-glass {
    background: rgba(10, 10, 15, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(0, 212, 255, 0.3) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    border-radius: 1.5rem !important;
}

.modal-glass .modal-header {
    background: linear-gradient(135deg, rgba(0,212,255,0.1), rgba(255,51,51,0.1));
    border-bottom: 1px solid rgba(0,212,255,0.3);
}

.modal-glass .modal-close {
    color: #00d4ff;
    transition: all 0.2s;
}

.modal-glass .modal-close:hover {
    color: #ff3333;
    transform: scale(1.1);
}

.modal-glass input, 
.modal-glass select, 
.modal-glass textarea {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid rgba(0, 212, 255, 0.4) !important;
    color: white !important;
    border-radius: 0.75rem !important;
}

.modal-glass input:focus, 
.modal-glass select:focus, 
.modal-glass textarea:focus {
    border-color: #00d4ff !important;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3) !important;
    outline: none;
}

.modal-glass button {
    transition: all 0.2s ease;
}

.modal-glass button:active {
    transform: scale(0.98);
}

/* Aplicar a los modales específicos */
#cart-modal .bg-white,
#checkout-modal .bg-white,
#payment-modal .bg-white,
#history-modal .bg-white,
#points-modal .bg-white,
#confirmation-modal .bg-white,
#product-detail-modal .bg-metal-900 {
    @apply modal-glass;
}

/* Ajustes para modo oscuro/claro */
.light-mode .modal-glass {
    background: rgba(245, 245, 250, 0.95) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
}

.light-mode .modal-glass input,
.light-mode .modal-glass select,
.light-mode .modal-glass textarea {
    background: white !important;
    color: #1a1a1a !important;
}

/* ============================================
   SECCIÓN DE RESEÑAS - ESTILO CYBERPUNK/NEÓN
   CON SCROLL HORIZONTAL
   ============================================ */

/* Contenedor principal */
#reviews {
    background: transparent;
}

#reviews .text-center h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #ff3333);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    letter-spacing: 2px;
}

#reviews .text-center p {
    color: #9ca3af;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
}

/* Formulario de reseña */
.review-form {
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.review-form:hover {
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.review-form h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: #00d4ff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Estrellas de puntuación */
#star-inputs {
    display: flex;
    gap: 0.75rem;
    margin: 1rem 0;
}

.star-input, 
#star-inputs i {
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #4a4a4a;
}

.star-input:hover,
#star-inputs i:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px #ffbe0b;
}

.star-input.active,
#star-inputs .text-neon-yellow {
    color: #ffbe0b !important;
    text-shadow: 0 0 10px #ffbe0b;
}

/* Campos del formulario */
.review-form label {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: #00d4ff;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s;
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.review-form input::placeholder,
.review-form textarea::placeholder {
    color: #6b7280;
}

/* Botón de publicar */
.review-form button {
    background: linear-gradient(135deg, #00d4ff, #ff3333);
    border: none;
    border-radius: 2rem;
    padding: 0.875rem;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 0.5rem;
}

.review-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

/* ============================================
   LISTA DE RESEÑAS - SCROLL HORIZONTAL
   ============================================ */

#reviews-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1.5rem;
    padding: 0.5rem 0.25rem 1.5rem 0.25rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Barra de scroll personalizada */
    scrollbar-width: thin;
    scrollbar-color: #00d4ff #1a1a1f;
}

/* Estilo de la barra de scroll (WebKit) */
#reviews-list::-webkit-scrollbar {
    height: 6px;
}

#reviews-list::-webkit-scrollbar-track {
    background: #1a1a1f;
    border-radius: 10px;
}

#reviews-list::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00d4ff, #ff3333);
    border-radius: 10px;
}

/* Tarjetas de reseñas individuales */
.review-card {
    flex: 0 0 340px; /* Ancho fijo, no se encoge */
    scroll-snap-align: start;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 220px;
}

.review-card:hover {
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.1);
    transform: translateY(-5px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #00d4ff, #ff3333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.reviewer-name {
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    color: #00d4ff;
}

.review-date {
    font-size: 0.7rem;
    color: #9ca3af;
    font-family: 'Rajdhani', sans-serif;
    margin-top: 2px;
}

.review-stars {
    display: flex;
    gap: 0.2rem;
    color: #ffbe0b;
    font-size: 0.85rem;
}

.review-stars i {
    text-shadow: 0 0 5px #ffbe0b;
}

.review-product {
    font-size: 0.7rem;
    color: #00d4ff;
    margin: 0.5rem 0 0.25rem 0;
}

.review-comment {
    color: #d1d5db;
    line-height: 1.5;
    font-family: 'Rajdhani', sans-serif;
    margin-top: 0.5rem;
    flex: 1;
    overflow-y: auto;
}

/* ============================================
   FLECHAS DE NAVEGACIÓN (OPCIONAL)
   ============================================ */

.reviews-scroll-container {
    position: relative;
}

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    backdrop-filter: blur(4px);
}

.scroll-arrow:hover {
    background: rgba(0, 212, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.scroll-arrow.left {
    left: -20px;
}

.scroll-arrow.right {
    right: -20px;
}

/* Ocultar flechas en móviles (ya que se puede deslizar) */
@media (max-width: 768px) {
    .scroll-arrow {
        display: none;
    }
}

/* Responsive: ajustar ancho de tarjetas en pantallas pequeñas */
@media (max-width: 640px) {
    .review-card {
        flex: 0 0 280px;
        padding: 1rem;
    }
    
    #reviews .text-center h2 {
        font-size: 1.8rem;
    }
    
    .review-form {
        padding: 1.25rem;
    }
    
    #star-inputs i {
        font-size: 1.5rem;
    }
}

#btn-delivery.active,
#btn-pickup.active {
    border-color: #00d4ff !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5) !important;
    background: rgba(0, 212, 255, 0.1) !important;
}

/* Estilos para la sección PWA (mobile mockup) */
#pwa-install .mockup-phone {
    transition: all 0.3s ease;
}

#pwa-install .mockup-phone:hover {
    transform: translateY(-8px);
}

/* Animación sutil para el botón de instalación */
#installPwaBtn {
    position: relative;
    overflow: hidden;
}

#installPwaBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#installPwaBtn:hover::before {
    left: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    #pwa-install .relative.w-72 {
        width: 280px;
        height: 460px;
    }
}