/* Sistema de Ventas - Estilos personalizados */

@keyframes slide-in {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes bounce-in {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

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

.animate-slide-in { animation: slide-in 0.3s ease-out; }
.animate-bounce-in { animation: bounce-in 0.5s ease-out; }

.bg-gradient-modern {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradient-shift 15s ease infinite;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 10px; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 10px;
}

.line-clamp-1, .line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-1 { -webkit-line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; }

.input-modern {
    transition: all 0.3s;
    border: 2px solid #e5e7eb;
}

.input-modern:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
    outline: none;
}

.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #a855f7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

.modal-backdrop {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(5px);
}

.aspect-square { aspect-ratio: 1 / 1; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

#menuMobile {
    transition: all 0.3s ease-in-out;
}

#menuMobile:not(.hidden) {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@import url('dark.css');

/* Animación del botón de like */
.like-animation {
    animation: like-bounce 0.3s ease;
}

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

.like-button {
    transition: all 0.2s ease;
}

.like-button:hover {
    transform: scale(1.1);
}

.like-button:active {
    transform: scale(0.95);
}

/* Corazón lleno cuando está liked */
.heart-icon.fill-current {
    fill: currentColor;
}

/* Modo oscuro para likes */
.dark .like-button {
    background: rgba(30, 41, 59, 0.9);
}

.dark .like-button:hover {
    background: rgba(30, 41, 59, 1);
}
/* Estado de conversión HEIC */
.heic-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.heic-badge::before {
    content: '';
}

.loading-overlay {
    z-index: 20;
}

.loading-overlay .spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    width: 30px;
    height: 30px;
}

#previewContainer {
    position: relative;
}
/* Lightbox animations */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-in {
    animation: fade-in 0.2s ease-out;
}

#lightboxGaleria {
    transition: opacity 0.2s ease-out;
}

#lightboxImagen {
    transition: opacity 0.2s ease-out;
}

/* Cursor zoom */
.cursor-zoom-in {
    cursor: zoom-in;
}

/* Scrollbar para miniaturas */
.absolute.bottom-20::-webkit-scrollbar {
    height: 6px;
}

.absolute.bottom-20::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.absolute.bottom-20::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

/* Modo oscuro */
.dark .absolute.bottom-20::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}