/**
 * Estilos personalizados para la plantilla de pasarela de pagos
 * Complementa a Bootstrap para crear una experiencia visual única
 */

/* ===== VARIABLES CSS ===== */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    
    /* Colores personalizados para la pasarela */
    --payment-blue: #1e40af;
    --payment-green: #059669;
    --payment-orange: #ea580c;
    
    /* Sombras */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Transiciones */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
}

/* ===== LOADER ===== */
.loader {
    z-index: 10000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, #ffdc9c, #fac05d);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    transition: opacity 0.7s, visibility 0.75s;
}

.loader-hidden {
    display: none;
}

.loader img {
    animation: latido 0.75s ease infinite;

}

.latido {
    animation: latido 1.3s ease infinite;
}

@keyframes latido {
    0% {
        transform: scale(0.9);
    }

    70% {
        transform: scale(1);
    }

    100% {
        transform: scale(0.9);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== COMPONENTES DE CARGA ===== */
.component-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    background: var(--light-color);
    border-radius: 0.375rem;
    margin: 1rem 0;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--light-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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


/* ===== UTILIDADES ADICIONALES ===== */
.gradient-primary {
    background: linear-gradient(135deg, var(--payment-blue), var(--primary-color));
}

.gradient-success {
    background: linear-gradient(135deg, var(--payment-green), var(--success-color));
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--payment-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== NAVEGACION DINAMICA ===== */
#nav-component {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
    opacity: 0;
}

#nav_home-component {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    opacity: 1;
}


/* Estilos adicionales para el nav fijo */
#nav-component .navbar {
    padding: 0.5rem 0;
}

#nav-component .navbar-brand img {
    max-width: 100px !important;
    transition: all 0.3s ease;
}

/* Animaciones suaves para los elementos */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.itsButton {
    cursor: pointer;
}

.select2-container--default .select2-selection--single {
    height: 47px;
    border: 1px solid #ebc78b;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
}

.select2-selection__rendered {
    color: #000 !important;
    line-height: inherit !important;
}

#login .select2-container--default .select2-selection--single {
    border: none;
    border-bottom: 2px dotted #ebc78b;
}
#prefijos .select2-container{
    max-width: 140px;
}
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
}

.truncate-text {
    display: inline-block;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.od-dotbox {
    border: 2px dotted rgba(0,0,0,.25);
    border-radius: .5rem;
}

.table tr{
    border: 2px dotted rgba(0,0,0,.25)
}