/* Gotham Regular 400 */
@font-face {
    font-family: "Gotham";
    src: url("/Content/font/gotham_book.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Gotham Regular Italic 400 */
@font-face {
    font-family: "Gotham";
    src: url("/Content/font/gotham_bookitalic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

/* Gotham Medium 500 (opcional) */
@font-face {
    font-family: "Gotham";
    src: url("/Content/font/gotham_medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Gotham Medium Italic 500 (opcional) */
@font-face {
    font-family: "Gotham";
    src: url("/Content/font/gotham_mediumitalic.otf") format("opentype");
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

/* Gotham Bold 700 */
@font-face {
    font-family: "Gotham";
    src: url("/Content/font/gotham_bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Gotham Bold Italic 700 (opcional) */
@font-face {
    font-family: "Gotham";
    src: url("/Content/font/gotham_bolditalic.otf") format("opentype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Uso general */
html,
body {
    font-family: "Gotham", Arial, Helvetica, sans-serif;
}

/* Textos */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: #030F1C;
    margin: 0px;
}

h1 {
    font-size: 40px;
    line-height: 48px;
}

h2 {
    font-size: 32px;
    line-height: 40px;
}

h3 {
    font-size: 28px;
    line-height: 32px;
}

h4 {
    font-size: 24px;
    line-height: 28px;
}

h5 {
    font-size: 20px;
    line-height: 26px;
}

h6 {
    font-size: 16px;
    line-height: 24px;
}

.fw500 {
    font-weight: 500 !important;
}

.bold {
    font-weight: 700 !important;
}

p,
small,
.extra-small {
    font-weight: 400;
    margin: 0;
}

p {
    font-size: 16px;
    line-height: 20px;
    color: #030F1C;
}

small {
    font-size: 14px;
    line-height: 16px;
}

.extra-small {
    font-size: 12px;
    line-height: 14px;
}

.txt-secondary {
    color: #354455;
}

.txt-verde {
    color: #16A34A;
}

a {
    text-decoration: none;
}

input,
button,
select,
textarea {
    font-family: "Gotham", Arial, Helvetica, sans-serif !important;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

html,
body,
div,
span,
applet,
object,
iframe,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
input,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video,
dl,
dt,
dd {
    font-style: normal;
    vertical-align: baseline;
    margin: 0;
    padding: 0;
    border: 0;
}

/* === CONTENEDOR GENERAL === */
.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* === BLOQUE PRINCIPAL === */
.input {
    position: relative;
    width: 100%;
}

.input--error .input__field {
    border: 2px solid #C00000;
}

textarea {
    height: 83px;
    resize: none;
}

.textarea--xl {
    height: 170px;
}

/* === LABEL === */
.input__label {
    display: flex;
    align-items: center;
    gap: 4px;
    position: absolute;
    top: -10px;
    left: 20px;
    background-color: #fff;
    padding: 0 6px;
    font-size: 12px;
    color: #2f3e4f;
    z-index: 1;
}

.input__label--relative {
    position: relative;
    padding: 0;
    top: 0;
    left: 0;
}

/* === ASTERISCO REQUERIDO === */
.input__required {
    color: #a00000;
}

/* === WRAPPER (contiene input e íconos) === */
.input__wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* === CAMPO DE TEXTO === */
.input__field {
    width: 100%;
    border: 1px solid #5E7083;
    border-radius: 22px;
    padding: 10px 16px;
    font-size: 16px;
    color: #354455;
    outline: none;
}

    .input__field::placeholder {
        color: #737F8D;
    }

/* === ICONO === */
.input__icon {
    position: absolute;
    left: 16px;
    font-size: 18px;
    color: #2f3e4f;
}

/* === MODIFICADOR: input con icono === */
.input--icon .input__field {
    padding-left: 42px;
    /* deja espacio para el ícono */
}

.msg-error-input {
    display: none;
    color: #C00000;
    margin-top: 4px;
    margin-left: 24px;
}

.input--error .msg-error-input {
    display: block;
}

/* Botones */
.btn {
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 44px;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.btn--w100 {
    width: 100%;
}

.btn--primary {
    background-color: #F40009;
    color: #FFFFFF;
    border: 0;
}

.btn--secondary {
    background-color: white;
    color: #F40009;
    border: 1px solid #F40009;
}

.btn--gris {
    background-color: #F6F6F7;
    color: #888B90;
    border: 0;
}

/* Formulario */
.form__botones {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-top: 24px;
}

/********** Input switch **********/
.form__switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 28px;
    border: 1px solid #dbdbdb;
    border-radius: 34px;
}

    .form__switch .form__switchCheck {
        opacity: 0;
        width: 0;
        height: 0;
    }

.form__slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E2E8F0;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 24px;
}

    .form__slider:before {
        position: absolute;
        content: "";
        height: 24px;
        width: 24px;
        left: 1px;
        bottom: 1px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
        border-radius: 24px;
    }

input:checked + .form__slider {
    background-color: #F40009;
    border-radius: 24px;
}

.form__switchCheck:checked + .form__slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.form__switch.sm {
    width: 39px;
    height: 23px;
    border-radius: 24px;
}

    .form__switch.sm .form__slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
        top: 2px;
        border-radius: 11px;
    }

    .form__switch.sm .form__switchCheck:checked + .form__slider:before {
        -webkit-transform: translateX(12px);
        -ms-transform: translateX(12px);
        transform: translateX(15px);
    }

.select2-selection__choice__remove span {
    font-weight: 100 !important;
    font-size: 20px !important;
}




/********** Input checkbox y radio **********/
.form__radio,
.form__check {
    box-sizing: border-box;
    padding: 0;
}

.form__checkLabel {
    line-height: 20px;
    margin-left: 2rem;
    display: block;
}

.form__checkInput,
.form__radioInput {
    width: 20px;
    height: 20px;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 2px solid #F40009;
    appearance: none;
    color-adjust: exact;
    float: left;
    margin: 0;
}

.form__checkInput {
    border-radius: 0.25rem;
}

    .form__checkInput:active {
        filter: brightness(90%);
        background-color: red;
    }

    .form__checkInput:checked {
        background-color: red;
    }

    .form__checkInput:checked {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='none' stroke='%23ffffff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M4 12l6 6L20 6'/%3e%3c/svg%3e");
    }


.validacionPass {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Contenido */
.canva {
    padding-left: 80px;
    padding-bottom: 20px;
}

.contenido {
    padding: 28px 32px;
}

.divContenedor {
    border: 1px solid #A5A9AE;
    border-radius: 16px;
    padding: 24px;
}

.titulo--mb4 {
    margin-bottom: 4px;
}

.titulo--mb28 {
    margin-bottom: 28px;
}

.titulo--mb32 {
    margin-bottom: 32px;
}

.titulo--btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Clases */
.mt-24 {
    margin-top: 24px;
}

.mt-42 {
    margin-top: 42px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mb-8 {
    margin-bottom: 8px;
}

.cursor-pointer {
    cursor: pointer;
}

.relative {
    position: relative;
}

.flex {
    display: flex;
    align-items: center;
}

.flex-col {
    flex-direction: column;
    align-items: start;
}

.justify-end {
    justify-content: end;
}

.w100 {
    width: 100%;
}

.g24 {
    gap: 24px;
}

.g16 {
    gap: 16px;
}

.g12 {
    gap: 12px;
}

.g10 {
    gap: 10px;
}

.g8 {
    gap: 8px;
}

.g6 {
    gap: 6px;
}

.g4 {
    gap: 4px;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.grid2--center {
    align-items: center;
}

.grid3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}


.grid4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
}

.grid4__auto {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 24px;
}

.lineaDivisora {
    width: 100%;
    height: 1px;
    background-color: #E2E8F0;
    margin: 24px 0px;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 32px;
    border-bottom: 1px solid #DBDDDF;
    height: 76px;
}

.header__titulo {
    display: flex;
    margin: 0;
}

.header__acciones {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__acciones__mantenedores {
    display: flex;
    cursor: pointer;
    position: relative;
}

.header__acciones__mantenedores__subMenu {
    top: 42px !important;
    width: 265px !important;
}

.header__acciones__usuario {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.header__acciones__usuario__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 40px;
    color: #F40009;
    font-weight: 700;
    font-size: 16px;
    background-color: #FEE6E6;
}

.subMenu {
    display: none;
    flex-direction: column;
    position: absolute;
    width: 240px;
    border: 1px solid #030F1C;
    box-shadow: 0px 12px 24px 0px rgba(115, 127, 141, 0.15);
    background-color: white;
    border-radius: 16px;
    right: 0px;
    top: 50px;
    z-index: 2;
}

.subMenu__option {
    padding: 16px;
    color: #354455;
    font-size: 14px;
    cursor: pointer;
}

a.subMenu__option:hover {
    text-decoration: underline;
}

#subirPlanilla:hover {
    text-decoration: underline;
}
/* breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    border-bottom: 1px solid #DBDDDF;
}

    .breadcrumb a {
        color: #737F8D;
        font-weight: 500;
        text-decoration: underline;
    }

.breadcrumb__active {
    text-decoration: none !important;
    cursor: default;
}

/* Estados */
.estado {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px 12px;
    height: 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
}

.estado--outline {
    border: 1px solid #1890FF;
    border-radius: 5px;
}

.estado--azul {
    background-color: #E8F4FF;
    color: #1890FF;
}

.estado--verde {
    background-color: #CEF4E1;
    color: #10A85C;
}

.estado--amarillo {
    background-color: #fff68c;
    color: #667115;
}

.estado--rojo {
    background-color: rgba(244, 0, 9, 0.1);
    color: #F40009;
}

/* Tag */
.tag {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.tag--rojo {
    background-color: #FEE6E6;
}

/* Modal */
.contenedorModal {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

    .contenedorModal.activo {
        display: flex;
    }

.modal {
    display: flex;
    flex-direction: column;
    background-color: white;
    padding: 32px 20px;
    border-radius: 16px;
    width: 400px;
}

.modal--500 {
    width: 500px;
}

.cerrarModal {
    margin-top: -4px;
    cursor: pointer;
}

.btn__abrirModalEliminar {
    cursor: pointer;
}

.modal__titulo {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.modal__body {
    padding: 12px 0px 36px 0px;
}

.modal__botones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 12px;
}

.modal__botones--center {
    display: flex;
    justify-content: center;
}

.modal__botones--right {
    display: flex;
    justify-content: end;
}


/* ===== MAQUETA AISLADA UPLOAD ===== */

.uploadMock__dropzone {
    display: grid;
    place-items: center;
    min-height: 160px;
    border: 1px dashed #A5A9AE;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: .2s;
}


.uploadMock__dropzone--dragover {
    border-color: #e53935;
    background: #fff7f7;
}

.uploadMock__content {
    text-align: center;
    padding: 28px 16px;
}

.uploadMock__icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #F6333A;
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
}


.uploadMock__title {
    font-weight: 500;
    font-size: 14px;
}

.uploadMock__hint {
    color: #353535;
    font-size: 12px;
    margin-top: 2px;
}

.uploadMock__input {
    display: none;
}

/* Chip del archivo */
.uploadMock__chips {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.uploadMock__chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid #354455;
    border-radius: 999px;
    font-size: .92rem;
}

.uploadMock__remove {
    display: flex;
    border: 0;
    background: transparent;
    cursor: pointer;
}

    .uploadMock__remove:hover {
        opacity: 0.7;
    }

/* Agregar gastos */
.agregarGasto {
    display: none;
}

@media (max-width: 1400px) {
}


@media (max-width: 1200px) {

    /* Clases */
    .grid4 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 24px;
    }
}


@media (max-width: 992px) {

    .grid3,
    .grid4__auto,
    .grid4 {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 768px) {

    /*Header  */
    .header__titulo {
        font-size: 16px;
    }

    /* Contenido */
    .canva {
        padding-left: 0px;
    }
}


@media (max-width: 576px) {
    header {
        padding: 0px 18px;
    }

    .breadcrumb {
        padding: 16px 18px;
    }

    .contenido {
        padding: 28px 18px;
    }

    .titulo--btn {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

        .titulo--btn .btn {
            width: 100%;
        }

    .titulo__botones {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

        .titulo__botones .btn {
            width: 100%;
        }

    /*Header  */
    .header__acciones__usuario__nombre {
        display: none;
    }

    /* Clases */
    .grid3,
    .grid4__auto,
    .grid4 {
        display: grid;
        grid-template-columns: 1fr;
    }

    .w100--responsive {
        width: 100%;
    }

    .grid2,
    .grid3,
    .grid4 {
        grid-template-columns: 1fr;
    }

    /* Formularios */
    .form__botones {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

        .form__botones .btn {
            width: 100%;
        }

    /* Modal */
    .contenedorModal {
        align-items: flex-end;
        padding-bottom: 20px;
    }

    .modal {
        width: 90%;
    }

    .modal__botones {
        display: grid;
        grid-template-columns: 1fr;
        align-items: center;
        gap: 12px;
    }
}

.contenedorSpinner {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.70);
    z-index: 1000;
}

.spinner {
    /* Tamaño del spinner */
    width: 60px;
    height: 60px;
    /* Imagen */
    background-image: url('/Content/image/spinner.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: spin 1.5s linear infinite;
}

.spinner--xs {
    width: 30px;
    height: 30px;
}

.ocultarSpinner{
        display: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Estilo para el texto cuando no hay imagen disponible */
.sin-imagen {
    color: #999;
    font-size: 12px;
    font-style: italic;
    text-align: center;
    display: inline-block;
    width: 100%;
}