/* ==========================================================================
   Fonts
   ========================================================================== */

@font-face {
    font-family: 'Zabal';
    src: url('../fonts/zabal/ZabalDEMO-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-primary: 'Zabal', Arial, sans-serif;
    --font-secondary: 'Montserrat', Arial, sans-serif;
}

/* Fuente general */
html,
body,
.page-wrapper,
.page-content,
.page-header,
.page-footer,
.page-sidebar,
.nav-menu,
.nav-menu li a,
.form-control,
.btn,
.dropdown-menu,
.modal,
table,
p,
span,
label,
input,
textarea,
select {
    font-family: var(--font-secondary) !important;
}

/* Títulos y textos destacados */
h1,
h2,
h3,
h4,
h5,
h6,
.subheader-title,
.card-title,
.panel-title,
.page-title,
.brand-title,
.logo-text,
.titulo-impacto,
.text-impacto {
    font-family: var(--font-primary) !important;
    font-weight: 900 !important;
}

.mod-skin-dark:not(.mod-skin-light) .subheader-title {
    color: #fff !important;
}

.mod-skin-dark:not(.mod-skin-light) .modal-title {
    color: #fff !important;
}

.mod-skin-dark:not(.mod-skin-light) .form-label {
    color: #fff !important;
}

.mod-skin-dark:not(.mod-skin-light) .bg-faded {
    color: #fff !important;
}

::selection{
    background: #5a4585 !important;
    color: #fff;
}

.card-link-clean,
.card-link-clean:hover,
.card-link-clean:focus,
.card-link-clean:active,
.card-link-clean span {
    color: inherit !important;
    text-decoration: none  !important;
}


/* ==========================================================================
   Convertir saldo estilo
   ========================================================================== */
.card-moneda {
    cursor: pointer;
    transition: box-shadow 0.2s ease;
    border: 1px solid transparent !important;
}

/* Activa: borde blanco visible */
.moneda_origen.active,
.moneda_cambio.active {
    box-shadow: 0 0 0 2px #ffffff !important;
}

/* Hover: borde blanco visible */
.card-moneda:not(.card-disabled):hover {
    box-shadow: 0 0 0 2px #ffffff !important;
}

/* No tocar texto */
.card-moneda .card-text,
.card-moneda:hover .card-text,
.moneda_origen.active .card-text,
.moneda_cambio.active .card-text {
    color: inherit !important;
    font-weight: inherit !important;
}

/* Deshabilitadas */
.card-disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(100%);
}

/* ==========================================================================
   Helpers
   ========================================================================== */

.w-65 {
    width: 65% !important;
}

.w-60 {
    width: 60% !important;
}

.w-40 {
    width: 40% !important;
}

.w-20 {
    width: 20% !important;
}

.w-10 {
    width: 10% !important;
}


/* ==========================================================================
   Inputs / Loading
   ========================================================================== */

.slcMonedas {
    width: 6rem !important;
}

.input-loading,
.input-loading-black {
    background-repeat: no-repeat;
    background-position: right calc(1em + 0.5rem) center;
    background-size: calc(0.7em + 0.25rem) calc(0.7em + 0.25rem);
}

.input-loading {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><style>.spinner_aj0A{transform-origin:center;animation:spinner_KYSC .75s infinite linear}@keyframes spinner_KYSC{100%{transform:rotate(360deg)}}<\/style><path d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" class="spinner_aj0A" fill="white" /><\/svg>');
}

.input-loading-black {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><style>.spinner_aj0A{transform-origin:center;animation:spinner_KYSC .75s infinite linear}@keyframes spinner_KYSC{100%{transform:rotate(360deg)}}<\/style><path d="M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" class="spinner_aj0A" fill="black" /><\/svg>');
}

.mod-skin-dark:not(.mod-skin-light) .input-group-prepend span.bg-transparent {
    background-color: rgba(0, 0, 0, 0.15) !important;
}

.has-length .input-group-text {
    border-color: #fecd45 !important;
}


/* ==========================================================================
   Select2 dentro de Input Group
   ========================================================================== */

select.d-none + span.select2-container {
    display: none !important;
}

.input-group > span.select2-container {
    width: 1% !important;
    flex: 1 1 auto;
    margin-right: 1px !important;
}

.input-group > .select2 > .selection > .select2-selection {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.custom-select-sm + .select2 > .selection > .select2-selection {
    height: calc(1.5em + 0.75rem + 2px);
    font-size: 0.75rem;

    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;

    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
}

body.mod-skin-light .select2-container--bootstrap .select2-selection {
    background-color: #fff !important;
}

body.mod-skin-light .select2-container--bootstrap .select2-selection .select2-selection__rendered {
    color: #000 !important;
}


/* ==========================================================================
   Loading pantalla completa
   ========================================================================== */

#loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(60, 60, 60, 0.8);
    z-index: 9999;
}

#loading-overlay .loading-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    text-align: center;
    color: #fff !important;
}


/* ==========================================================================
   Cotizaciones Header
   ========================================================================== */

.exc-cotizaciones-header {
    width: 100%;
    height: 100%;

    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;

    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.cotizacion-item {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;

    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;

    white-space: normal;
    padding: 0;
    margin: 0 15px;

    font-size: 13px;
    line-height: 1.4;
    vertical-align: middle;
}

.cot-icon {
    margin-right: 5px;
    font-size: 16px;
}

.cot-par {
    margin-right: 8px;
    font-weight: 700;
}

.cot-valores {
    font-weight: 500;
}

.cot-header {
    color: #ffc107;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.cot-separador {
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
}

.cot-timestamp {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;

    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;

    white-space: normal;
    padding: 5px 15px;
    margin: 0 5px;

    color: #9ab;
    font-size: 12px;
    font-style: italic;
    line-height: 1.4;
}


/* ==========================================================================
   Ticker horizontal
   ========================================================================== */

.ticker-horizontal-wrapper {
    width: 100%;
    overflow: hidden;
}

.ticker-horizontal {
    display: inline-block;
    white-space: nowrap;
    padding: 0;
    margin: 0;

    -webkit-animation-name: scroll-horizontal;
    animation-name: scroll-horizontal;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
}

.ticker-horizontal-wrapper:hover .ticker-horizontal {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
}

.ticker-horizontal li {
    min-height: 40px;
    list-style: none;

    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;

    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

@-webkit-keyframes scroll-horizontal {
    0% {
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
    }

    100% {
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

@keyframes scroll-horizontal {
    0% {
        -webkit-transform: translateX(0%);
        transform: translateX(0%);
    }

    100% {
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}


/* ==========================================================================
   Ticker vertical
   ========================================================================== */

.exc-cotizaciones-header[data-tipo="vertical"] {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;

    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.ticker-vertical-wrapper {
    position: relative;
    height: 40px;
    min-width: 200px;
    overflow: hidden;
    padding: 0;
    border-radius: 4px;

    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;

    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;

    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}

.ticker-vertical {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    padding: 0;
    margin: 0;

    list-style: none;
}

.ticker-vertical li {
    height: 40px;
    padding: 0;

    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;

    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}


/* ==========================================================================
   Footer
   ========================================================================== */

.page-footer {
    height: auto;
    min-height: 2.8125rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 359px) {
    .ticker-vertical-wrapper,
    .exc-cotizaciones-header[data-tipo="vertical"] {
        display: none;
    }
}

@media (max-width: 767px) {
    .footer-cobroclub {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        padding: 0.75rem 1.25rem;
    }

    .footer-cobroclub-brand {
        width: 100%;
        min-width: 0;
    }

    .footer-cobroclub-legal {
        margin-top: 0.4rem;
        min-width: 0;
    }

    .footer-cobroclub-legal .list-table {
        display: flex;
        flex-wrap: wrap;
    }

    .footer-cobroclub-legal .list-table > li {
        padding-left: 0 !important;
        font-size: 0.8125rem;
        opacity: 0.75;
        line-height: 1.6;
    }
}

/* ==========================================================================
   Font Awesome Fix
   ========================================================================== */

.fa,
.fas,
.far,
.fal,
.fab {
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", "Font Awesome 5 Brands" !important;
}

.fab {
    font-family: "Font Awesome 5 Brands" !important;
}

/* ==========================================================================
   Formato de moneda
   ========================================================================== */

.money-display {
    display: inline-flex;
    align-items: flex-start;
    line-height: 1;
}

/* Número principal */
.money-main {
    font-weight: 700;
    letter-spacing: -0.04em;
}

/* Decimales */
.money-decimals {
    font-weight: 700;
}

/* Moneda + bandera */
.money-currency {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.money-flag-wrap {
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    flex-shrink: 0;
}

.money-flag-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* SM */
.money-display-sm {
    gap: 6px;
}

.money-display-sm .money-main {
    font-size: 28px;
}

.money-display-sm .money-decimals {
    font-size: 12px;
    margin-top: 2px;
    margin-left: -3px;
}

.money-display-sm .money-currency {
    gap: 5px;
    margin-top: 9px;
    font-size: 13px;
}

.money-display-sm .money-flag-wrap {
    width: 16px;
    height: 16px;
}

/* LG */
.money-display-lg {
    gap: 9px;
}

.money-display-lg .money-main {
    font-size: 44px;
}

.money-display-lg .money-decimals {
    font-size: 18px;
    margin-top: 3px;
    margin-left: -5px;
}

.money-display-lg .money-currency {
    gap: 7px;
    margin-top: 13px;
    font-size: 20px;
}

.money-display-lg .money-flag-wrap {
    width: 24px;
    height: 24px;
}

/* XL */
.money-display-xl {
    gap: 12px;
}

.money-display-xl .money-main {
    font-size: 62px;
}

.money-display-xl .money-decimals {
    font-size: 24px;
    margin-top: 3px;
    margin-left: -6px;
}

.money-display-xl .money-currency {
    gap: 9px;
    margin-top: 18px;
    font-size: 28px;
}

.money-display-xl .money-flag-wrap {
    width: 32px;
    height: 32px;
}

/* ==========================================================================
   Colores fonts
   ========================================================================== */
.page-content {
    color: #2c2c2c !important;
}
.mod-skin-dark:not(.mod-skin-light) body, .mod-skin-dark:not(.mod-skin-light) .page-content, .mod-skin-dark:not(.mod-skin-light) .modal  {
    color: #fff !important;
}

/* ==========================================================================
   Min width utilities
   ========================================================================== */
.min-w-sm {
    min-width: 100px;
}

.min-w-md {
    min-width: 140px;
}

.min-w-lg {
    min-width: 180px;
}

.min-w-xl {
    min-width: 220px;
}

/* ==========================================================================
   Gap utilities
   ========================================================================== */
.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 16px;
}

.gap-4 {
    gap: 24px;
}

.gap-5 {
    gap: 32px;
}

/* ==========================================================================
   Hover card de opciones
   ========================================================================== */
.hover-card {
    transition: all 0.25s ease;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/*
MODALES
*/
/*.modal .modal-content {
    background-color: #25153d !important;
    border-radius: 10px !important;
}

.mod-skin-dark:not(.mod-skin-light) .modal-backdrop{
    opacity: 0.5 !important;
}*/

/*
SWALS
*/
/*.mod-skin-dark:not(.mod-skin-light) .swal2-container.swal2-backdrop-show, .mod-skin-dark:not(.mod-skin-light) .swal2-container.swal2-noanimation {
    background: rgba(0, 0, 0, 0.5);
}
.swal2-modal{
    background-color: #25153d !important;
    border-radius: 10px !important;
}*/

/*
DATATABLE
*/
.dataTables_empty {
    color: #868e96 !important;
    font-size: 1.5rem !important;
}
.mod-skin-dark:not(.mod-skin-light) .dataTables_empty {
    color: rgba(255, 255, 255, 0.8) !important;
}

.dataTables_length select {
    min-width: 80px; /* Cambiá este valor por el que necesites (ej: 5rem, 100px) */
}