/**
 * ============================================
 * ESTILOS PERSONALIZADOS - PÁGINA DE PAGOS
 * ============================================
 * Complementa TailwindCSS con animaciones y efectos adicionales
 */

/* ============================================
   VARIABLES CSS - COLORES PERSONALIZABLES
   ============================================ */
:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #22c55e;
    --background-gradient-start: #f8fafc;
    --background-gradient-end: #eff6ff;
}

/* ============================================
   ESTILOS BASE
   ============================================ */
* {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   ANIMACIONES DE ENTRADA
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   TARJETAS DE BANCO (FORMATO LISTA)
   ============================================ */
.bank-card {
    animation: fadeInUp 0.4s ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
}

.bank-card:nth-child(1) { animation-delay: 0.05s; }
.bank-card:nth-child(2) { animation-delay: 0.1s; }
.bank-card:nth-child(3) { animation-delay: 0.15s; }
.bank-card:nth-child(4) { animation-delay: 0.2s; }
.bank-card:nth-child(5) { animation-delay: 0.25s; }
.bank-card:nth-child(6) { animation-delay: 0.3s; }
.bank-card:nth-child(7) { animation-delay: 0.35s; }
.bank-card:nth-child(8) { animation-delay: 0.4s; }
.bank-card:nth-child(9) { animation-delay: 0.45s; }
.bank-card:nth-child(10) { animation-delay: 0.5s; }

/* Efecto de borde izquierdo en hover */
.bank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6, #22c55e);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.bank-card:hover::before {
    transform: scaleY(1);
}

/* ============================================
   BOTONES
   ============================================ */
button {
    position: relative;
    overflow: hidden;
}

button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

button:active::after {
    width: 200px;
    height: 200px;
}

/* ============================================
   MODAL
   ============================================ */
#bankModal {
    animation: fadeIn 0.2s ease-out;
}

#bankModal #modalContent {
    animation: scaleIn 0.3s ease-out;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
#toast {
    backdrop-filter: blur(10px);
}

/* ============================================
   HEADER STICKY
   ============================================ */
header {
    animation: slideDown 0.5s ease-out;
}

/* ============================================
   SECCIÓN FRÍ - ANIMACIONES
   ============================================ */
#fri-steps > div {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

#fri-steps > div:nth-child(2) { animation-delay: 0.1s; }
#fri-steps > div:nth-child(3) { animation-delay: 0.15s; }
#fri-steps > div:nth-child(4) { animation-delay: 0.2s; }
#fri-steps > div:nth-child(5) { animation-delay: 0.25s; }
#fri-steps > div:nth-child(6) { animation-delay: 0.3s; }
#fri-steps > div:nth-child(7) { animation-delay: 0.35s; }

/* ============================================
   INFO CARDS - HOVER EFFECTS
   ============================================ */
#info-cards > div {
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

#info-cards > div:nth-child(1) { animation-delay: 0.1s; }
#info-cards > div:nth-child(2) { animation-delay: 0.15s; }
#info-cards > div:nth-child(3) { animation-delay: 0.2s; }
#info-cards > div:nth-child(4) { animation-delay: 0.25s; }

#info-cards > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESPONSIVE FIXES
   ============================================ */
@media (max-width: 640px) {
    .bank-card .flex.gap-2 {
        flex-direction: column;
    }
    
    .bank-card button {
        width: 100%;
    }
}

/* ============================================
   SCROLLBAR PERSONALIZADO
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================
   EFECTOS DE FOCO (Accesibilidad)
   ============================================ */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    header {
        position: static;
    }
    
    .bank-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    button {
        display: none;
    }
}

/* ============================================
   LOADING SKELETON (Opcional)
   ============================================ */
.skeleton {
    background: linear-gradient(
        90deg,
        #f1f5f9 25%,
        #e2e8f0 50%,
        #f1f5f9 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   GRADIENTES ADICIONALES
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   GLASSMORPHISM EFFECT
   ============================================ */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
