/* ===== IMPORTACIONES ===== */
@import url('variables.css');
@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');


/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
    line-height: 1.15; /* 1 */
    -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
    margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
    display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
    box-sizing: content-box; /* 1 */
    height: 0; /* 1 */
    overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
    background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
    border-bottom: none; /* 1 */
    text-decoration: underline; /* 2 */
    text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
    font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
    font-family: monospace, monospace; /* 1 */
    font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
    font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -0.25em;
}

sup {
    top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
    border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
    font-family: inherit; /* 1 */
    font-size: 100%; /* 1 */
    line-height: 1.15; /* 1 */
    margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
    overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
    text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

    /**
 * Remove the inner border and padding in Firefox.
 */

    button::-moz-focus-inner,
    [type="button"]::-moz-focus-inner,
    [type="reset"]::-moz-focus-inner,
    [type="submit"]::-moz-focus-inner {
        border-style: none;
        padding: 0;
    }

    /**
 * Restore the focus styles unset by the previous rule.
 */

    button:-moz-focusring,
    [type="button"]:-moz-focusring,
    [type="reset"]:-moz-focusring,
    [type="submit"]:-moz-focusring {
        outline: 1px dotted ButtonText;
    }

/**
 * Correct the padding in Firefox.
 */

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
    box-sizing: border-box; /* 1 */
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    padding: 0; /* 3 */
    white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
    vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
    overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box; /* 1 */
    padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
}

    /**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

    [type="search"]::-webkit-search-decoration {
        -webkit-appearance: none;
    }

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
    display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
    display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
    display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
    display: none;
}


/* ===== RESET GLOBAL ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font: inherit;
  vertical-align: baseline;
  font-family: var(--ff);
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  transition:.2s linear;
}

html, body {
    height: 100%;
    background-color: var(--bg-dark);
    color: #000;
    line-height: 1.5;
    font-size: 16px;
    scroll-behavior: smooth;
}

/* ===== ELEMENTOS HTML ===== */



/* Texto */

h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a, label {
  text-decoration: none;
  cursor: default;
  color: var(--text-muted);
}

h1 {
    font: var(--h1);
    color: var(--text);
}

h2, h3, h4, h5, h6 {
    font: var(--h2);
    color: var(--text);
}

p, span, label {
    font: var(--p);
}

.modelstate{
    font-weight:600;
    color: var(--info);
}

/* Tablas */
table {}
thead {}
tbody {}
tfoot {}
tr {}
th {}
td {}
caption {}
col {}
colgroup {}

fieldset {
    border: none;
    border-top: 2px solid var(--border-muted);
    padding: 2rem 0rem 1rem;
    position: relative;
    margin-bottom: 2rem;
}

legend {
    background-color: var(--bg-dark);
    padding: 0 0.5rem;
    font: var(--h2);
    color: var(--text);
}

.modal legend {
    background-color: var(--bg);
}


/* ===== CLASES PARA INPUTS DE TEXTO ===== */

.input-rfc{
    display:flex !important;
    flex-direction:row !important;
    gap:5px !important;
}
    .input-rfc button {
        width: 35px !important;
        height: 35px !important;
    }

.dv-fecha-inicio{
    grid-column:span 2;
}

    .dv-fecha-inicio input {
        width: -webkit-fill-available !important;
    }

input[type="checkbox"] {
}
input[type="radio"] {}

input{
  transition: .1s ease-in-out;
}
    input[type="text"], input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    input[type="color"],
    input[type="time"],
    input[type="month"],
    input[type="week"],
    input[type="datetime-local"],
    select {
        padding-inline: 5px;
        padding-block: 5px;
        border-radius: 8px;
        border-width: .5px;
        border-color: var(--border-muted);
        border-style: solid;
        width: -webkit-fill-available;
        height: 36px;
        background: var(--bg-light);
        color: var(--text);
    }

textarea {
    outline: none;
    resize: none;
    overflow: auto;
    width: 100%;
    height: 250px;
    padding-inline: 5px;
    padding-block: 5px;
    border-radius: 8px;
    border-width: .5px;
    border-color: var(--border-muted);
    border-style: solid;
    background: var(--bg-light);
    color: var(--text);
}

input:placeholder-shown {
    color: var(--text);
}

input[type="text"]:focus, input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="color"]:focus,
input[type="time"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="datetime-local"]:focus,
select:focus {
    outline: none;
    box-shadow: 0px 0px 18px -4px var(--text-muted);
}

.btn {
  border-radius: 8px;
  outline: none;
  height:36px;
  width: 160px;
  border: none;
  background-color: var(--info);
  color: var(--white);
  font-weight: 600;
  cursor:pointer;
}

    .btn:hover {
        filter: brightness(1.5);
        transition: .2s linear;
        box-shadow: 0px 0px 18px -4px var(--text-muted);
    }

.btn-primary {
    background-color: var(--primary);
    cursor: pointer;
}

.btn-alert {
    background-color: var(--danger);
    color: var(--bg);
    cursor: pointer;
}

.btn-disable{
    background-color: var(--bg);
  color: var(--text-muted);
}

.btn-round {
    border-radius: 100%;
    height: 35px;
    width: 35px;
    padding-top: 5px;
    padding-left: 1px;
    background: var(--info);
    color: var(--white);
    font-weight: 700;
    border: none;
    cursor: pointer;
}

    .btn-round span {
        color: var(--white);
        cursor: pointer;
    }

    .btn-round:hover {
        box-shadow: 0px 0px 18px -4px var(--text-muted);
        filter: brightness(1.5);
        transition: .2s linear;
    }

.btn-icon {
    display: flex;
    align-items: center;
    background: var(--info);
    width: 155px;
    color: var(--white);
    font-weight: 300;
    gap: 5px;
    padding-inline-start: 5px;
    cursor: pointer;
}

    .btn-icon span {
        color: var(--white);
        cursor: pointer;
    }

.inputfile::-webkit-file-upload-button {
    visibility: hidden;
    width: 0;
}

.btn-ribbon {
    border-radius: 8px;
    outline: none;
    height: 36px;
    border: none;
    background-color: var(--bg-light);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 300;
    gap: 5px;
    padding: 0 20px 0 15px;
    border: 1px solid var(--border);
    transition: .2s ease-in-out;
    cursor: pointer;
}

    .btn-ribbon:hover {
        background-color: var(--info);
        color: var(--white);
        border: 1px solid var(--info);
    }
        .btn-ribbon:hover span {
            color: var(--white);
            cursor: pointer;
        }

.btn-ribbon-selected, .btn-ribbon-selected span {
    background-color: var(--info);
    color: var(--white);
    border: 1px solid var(--info);
}

        /*
.inputfile::before {
  content: 'Seleccionar archivos';
  background: var(--secundario);
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  width: 250px;
  height: 36PX;
  outline: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--claro);
  font-weight: 600;
  text-align: center;
  justify-content: center;
}
.inputfile:hover::before {
    box-shadow: 0px 0px 20px -4px var(--gris);
    transition: .2s ease-in-out;
}
.inputfile:active::before {
  background: var(--primario);
  color: var(--claro);
}
*/
        input[type="file"]::before {
            content: 'Seleccionar archivos';
            background: var(--info);
            display: flex;
            flex-direction: column;
            border-radius: 8px;
            width: 250px;
            height: 36PX;
            outline: none;
            cursor: pointer;
            font-weight: 700;
            color: var(--bg);
            font-weight: 600;
            text-align: center;
            justify-content: center;
        }

ul, ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 1rem;
    font-size: 13px;
    color: var(--text);
    background-color: var(--bg);
    border: 1px solid var(--border-muted);
    border-radius: 8px;
    position: relative;
    vertical-align: unset;
}

/* Bordes para las esquinas */
thead tr:first-child th:first-child {
    border-top-left-radius: 8px;
}

thead tr:first-child th:last-child {
    border-top-right-radius: 8px;
}

tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}

/*.table-item-status {
    background-color: var(--status-aprobado);
    padding: 5px;
    border-radius: 5px;
    border: 1px solid color-mix(in srgb, var(--status-aprobado), black 20%);
}
*/


/* Celdas generales */
th, td {
    padding: 5px 8px;
    border: 1px solid var(--border-muted);
    text-align: left;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
    vertical-align:unset;
}

tr td {
    vertical-align: middle !important;
    padding: 5px 8px;
}

/* Alternar filas */
tr:nth-child(even) {
    background-color: var(--highlight);
}

tr:hover {
    background-color: var(--secondary);
}

/* Contenedor de tabla */
.tabla {
    margin: 15px;
    overflow: auto;
    border-radius: 8px;
    max-height: calc(100vh - 230px);
    vertical-align: unset;
}

.resumen-contenedor {
    margin: 15px;
    overflow: auto;
    vertical-align: unset;
    display: grid;
    grid-template-rows: auto auto auto;
    grid-template-columns: 1fr 1fr;
    gap:10px;
}

.resumen-contenedor div{

}

/* Ancho fijo opcional */
table .tabla-ancho-fijo {
    white-space: nowrap;
    width: fit-content;
}

/* Encabezado fijo */
th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--bg);
}

.radiobutton {
    margin-right: 5px;
    border-radius: 8px;
    outline: none;
    padding: 8px 20px 8px 8px;
    border: none;
    background-color: var(--bg-light);
    color: var(--text-muted);
    transition: all 0.3s ease;
    cursor:pointer;
}



    .radiobutton-selected, .radiobutton:hover {
        background-color: var(--info);
        color: var(--white);
    }
/* ===== MODAL ===== */
/* Fondo oscuro que cubre toda la pantalla */
.modal {
    display: none;
    position: fixed;
    inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

    /* Mostrar el modal (se activa con .mostrar) */
    .modal.mostrar {
        display: flex;
    }

/* Estilo base para todos los modales internos */
.modal-contenido {
    display: none;
    background-color: var(--bg, #fff); /* fondo blanco o personalizado */
    padding: 2rem;
    border-radius: 8px;
    min-width: 40%;
    max-width: 80%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0px 0px 18px 5px var(--text-muted);
    position: relative;
}

    .modal-contenido h1 {
        margin-bottom: 45px;
    }

    /* Modal activo */
    .modal-contenido.activo {
        display: block;
    }

/* Botonera dentro del modal */
.modal-botonera {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Bloquear scroll cuando el modal está abierto */
body.modal-abierto {
    overflow: hidden;
}

/* ===== BARRA DE NAVEGACION ===== */

:root[data-theme="dark"] {
    scrollbar-color: var(--gray) var(--bg-dark); /* Firefox */
    transition: .2s linear;
    /* WebKit browsers: Chrome, Edge, Safari */
}

    :root[data-theme="dark"] ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
        transition: .2s linear;
    }

    :root[data-theme="dark"] ::-webkit-scrollbar-thumb {
        background-color: var(--gray);
        border-radius: 8px;
        transition: .2s linear;
    }

    :root[data-theme="dark"] ::-webkit-scrollbar-track {
        background-color: var(--bg-dark);
        transition: .2s linear;
    }

    /* ===== ANIMACIONES ===== */

.blob {
    position: absolute;
    background: radial-gradient( circle at 30% 30%, rgba(255, 255, 255, 0.4), /* Antes 0.15 */
    rgba(255, 255, 255, 0.1) /* Antes 0 */
    );
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3), 0 0 80px rgba(255, 255, 255, 0.15), inset 0 0 40px rgba(255, 255, 255, 0.2);
    filter: blur(40px) contrast(2.5);
    mix-blend-mode: screen;
    pointer-events: none;
    transition: transform 0.1s linear;
    border-radius: 100%;
    will-change:transform;
}

/* ===== INPUT RANGE ===== */
input[type=range] {
    height: 20px;
    width: 100%;
    height: .5em;
    display: block;
    margin: 15px auto;
    -webkit-appearance: none;
    background-image: linear-gradient(to right, var(--info) calc(var(--value)*1%), var(--bg-light) 0);
}

.inputDiv {
    width: 100%;
    position: relative;
}

input[type='range'] {
    display: block;
    width: 100%;
}

    input[type='range']:focus {
        outline: none;
    }

    input[type='range'],
    input[type='range']::-webkit-slider-runnable-track,
    input[type='range']::-webkit-slider-thumb {
        -webkit-appearance: none;
    }

input[type=range]::-webkit-slider-thumb {
    background-color: var(--info);
    width: 21px;
    height: 21px;
    border: 3px solid #ddd;
    border-radius: 50%;
    margin-top: -9px;
}

input[type=range]::-moz-range-thumb {
    background-color: var(--info);
    width: 16px;
    height: 16px;
    border: 3px solid #ddd;
    border-radius: 50%;
}

input[type=range]::-ms-thumb {
    background-color: var(--info);
    width: 21px;
    height: 21px;
    border: 3px solid #ddd;
    border-radius: 50%;
}

input[type=range]::-webkit-slider-runnable-track {
    background-color: #333;
    height: 5px;
    -webkit-appearance: none;
    background-image: linear-gradient(to right, var(--info) calc(var(--value)*1%), var(--bg-light) 0);
}

input[type=range]:focus::-webkit-slider-runnable-track {
    outline: none;
}

input[type=range]::-moz-range-track {
    -webkit-appearance: none;
    background-image: linear-gradient(to right, var(--info) calc(var(--value)*1%), var(--bg-light) 0);
    height: 5px;
}

input[type=range]::-ms-track {
    background-color: #777;
    height: 3px;
}

.etiqueta, .etiquetareg {
    width: 30px;
    height: 26px;
    position: absolute;
    z-index: 9;
    background-color: var(--info);
    color: white;
    font-size: 12px;
    text-align: center;
    padding-top: 7px;
    top: -45px;
}

    .etiqueta:after, .etiquetareg:after {
        content: '';
        display: block;
        width: 10px;
        height: 10px;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        transform: rotate(45deg);
        z-index: 8;
        background-color: var(--info);
        position: relative;
        left: 18px;
    }
