/* Custom CSS for AVP Support & Solution */

/* Custom Properties */
:root {
    --avp-red: #dc2626;
    --avp-red-dark: #b91c1c;
    --avp-blue: #1e40af;
    --avp-blue-dark: #1e3a8a;
    --avp-gray: #374151;
    --avp-gray-dark: #1f2937;
}

/* Typography Enhancements */
.font-avp {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Custom Button Styles */
.btn-avp {
    @apply inline-block bg-red-600 hover:bg-red-700 text-white font-bold py-3 px-6 rounded transition-all duration-200 transform hover:scale-105;
}

.btn-avp-outline {
    @apply inline-block border-2 border-red-600 text-red-600 hover:bg-red-600 hover:text-white font-bold py-3 px-6 rounded transition-all duration-200;
}

/* Custom Card Styles */
.card-avp {
    @apply bg-white rounded-lg shadow-lg overflow-hidden hover:shadow-xl transition-all duration-300 transform hover:-translate-y-1;
}

/* Hero Section Enhancements */
.hero-gradient {
    background: linear-gradient(135deg, var(--avp-blue) 0%, var(--avp-blue-dark) 100%);
}

.hero-text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Swiper Customization */
.swiper-pagination-bullet {
    background: white !important;
    opacity: 0.5 !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: var(--avp-red) !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--avp-red) !important;
}

/* Form Enhancements */
.form-input-avp {
    @apply w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-red-500 focus:border-transparent transition-all duration-200;
}

.form-input-avp:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.scale-in {
    animation: scaleIn 0.4s ease-out;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.2s ease-out;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--avp-red-dark);
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-center {
        text-align: center;
    }
    
    .mobile-full {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-break {
        page-break-before: always;
    }
}

/* Accessibility Enhancements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--avp-red);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-gray-100 {
        background-color: #000000 !important;
        color: #ffffff !important;
    }
    
    .text-gray-600 {
        color: #ffffff !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark Mode Support (if needed in the future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* Custom Loading Spinner */
.spinner-avp {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--avp-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Custom File Upload Styling */
.file-upload-avp {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.file-upload-avp input[type=file] {
    position: absolute;
    left: -9999px;
}

.file-upload-avp .file-upload-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--avp-red);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.file-upload-avp .file-upload-btn:hover {
    background: var(--avp-red-dark);
    transform: translateY(-1px);
}

/* Custom Tooltip */
.tooltip-avp {
    position: relative;
    display: inline-block;
}

.tooltip-avp .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--avp-gray);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip-avp:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Custom Progress Bar */
.progress-avp {
    width: 100%;
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-avp .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--avp-red) 0%, var(--avp-red-dark) 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Custom Badge */
.badge-avp {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 9999px;
    background-color: var(--avp-red);
    color: white;
}

.badge-avp.badge-outline {
    background-color: transparent;
    color: var(--avp-red);
    border: 1px solid var(--avp-red);
}

/* Custom Alert */
.alert-avp {
    padding: 12px 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-radius: 6px;
}

.alert-avp.alert-success {
    color: #065f46;
    background-color: #d1fae5;
    border-color: #a7f3d0;
}

.alert-avp.alert-error {
    color: #991b1b;
    background-color: #fee2e2;
    border-color: #fecaca;
}

.alert-avp.alert-warning {
    color: #92400e;
    background-color: #fef3c7;
    border-color: #fde68a;
}

.alert-avp.alert-info {
    color: #1e40af;
    background-color: #dbeafe;
    border-color: #93c5fd;
}



/* Animación del carrusel de logos */
@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        /* Con dos filas duplicadas, desplazar 50% para efecto continuo */
        transform: translateX(-126%);
    }
}

.animate-scroll {
    animation: scroll 15s linear infinite;
}

/* Pausar animación en hover */
.animate-scroll:hover {
    animation-play-state: paused;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .animate-scroll {
        animation: scroll 20s linear infinite;
    }
    
    /* Ajustar el porcentaje para móviles */
    @keyframes scroll {
        0% {
            transform: translateX(0%);
        }
        100% {
            transform: translateX(-50%);
        }
    }
}

/* Ajustar espaciado para mejor visualización */
@media (max-width: 640px) {
    .animate-scroll .flex > div {
        margin-right: 0.5rem; /* Menos espacio en móviles */
    }
    
    .animate-scroll {
        animation-duration: 15s; /* Duración en móviles pequeños */
    }
    
    @keyframes scroll {
        0% {
            transform: translateX(0%);
        }
        100% {
            transform: translateX(-50%);
        }
    }
}