html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > input[type="file"].form-control {
    padding-top: 2.25rem;
    height: calc(3.875rem + calc(var(--bs-border-width) * 3));
}

    .form-floating > input[type="file"].form-control::file-selector-button {
        border-top: var(--bs-border-width) solid var(--bs-border-color);
        border-right: var(--bs-border-width) solid var(--bs-border-color);
        border-top-right-radius: var(--bs-border-radius);
    }

.container-input {
    text-align: start;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    width: 100%;
    margin: 0 auto;
    position: relative;
    height: calc(3.5rem + 2px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.inputfile {
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
    cursor: pointer;
}

.label-text {
    display: none;
    font-size: 0.8rem;
    color: #6c757d;
    position: absolute;
    top: 0.4rem;
    left: 1rem;
}

.iborrainputfile {
    display: block;
    transition: all 0.2s;
}

/* Cuando hay un archivo seleccionado */
.container-input.has-file .label-text {
    display: block;
}

.container-input.has-file .iborrainputfile {
    margin-top: 1rem; /* Ajusta el espacio entre los textos */
}

.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

.spinner-container {
    text-align: center;
    color: white;
}


.navbar-nav .nav-link {
    position: relative;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

    .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 3px;
        background-color: #bc1c2c; /* Rojo del logo */
        transition: width 0.3s ease-in-out;
    }

    .navbar-nav .nav-link:hover::after {
        width: 100%;
    }
.input-disabled {
    background-color: #e9ecef !important; /* Color gris como disabled */
    border: 1px solid #ced4da; /* Borde igual al de los inputs normales */
    color: #6c757d; /* Color del texto en disabled */
    cursor: not-allowed; /* Cursor de "no permitido" */
    pointer-events: none; /* Evita la interacción */
}

.leyenda-Creado {
    border: 1px solid #999999;
    background-color: #FFFFFF;
    color: #999999;
    padding: 0.4em 0em 0.4em 0.5em;
    border-radius: 0.25em;
}

.leyenda-SolicitudHabilitacion {
    border: 1px solid #C4B559;
    background-color: #FFF8B5;
    color: #C4B559;
    padding: 0.4em 0em 0.4em 0.5em;
    border-radius: 0.25em;
}
.leyenda-Habilitado {
    border: 1px solid #B59D40;
    background-color: #F0E5A3;
    color: #B59D40;
    padding: 0.4em 0em 0.4em 0.5em;
    border-radius: 0.25em;
}
.leyenda-SolicitudAcreditacion {
    border: 1px solid #B3813D;
    background-color: #FFDB99;
    color: #B3813D;
    padding: 0.4em 0em 0.4em 0.5em;
    border-radius: 0.25em;
}
.leyenda-Acreditado {
    border: 1px solid #B37B1D;
    background-color: #FFC966;
    color: #B37B1D;
    padding: 0.4em 0em 0.4em 0.5em;
    border-radius: 0.25em;
}
.leyenda-SolicitudInscripcion {
    border: 1px solid #71A969;
    background-color: #E2FBDF;
    color: #71A969;
    padding:0.4em 0em 0.4em 0.5em;
    border-radius: 0.25em;
}
.leyenda-Inscrito {
    border: 1px solid #555454;
    background-color: #bfbfbf;
    color: #555454;
    padding: 0.4em 0em 0.4em 0.5em;
    border-radius: 0.25em;
}

.d-flex.flex-wrap a {
    text-decoration: none; /* Elimina el subrayado */
    font-weight: bold; /* Texto en negrita */
    transition: all 0.3s ease; /* Suaviza la transición de colores */
    cursor: pointer;
}

/* Efecto hover para cada estado - invierte los colores */
.leyenda-Creado:hover {
    background-color: #999999;
    color: #FFFFFF;
}

.leyenda-SolicitudHabilitacion:hover {
    background-color: #C4B559;
    color: #FFF8B5;
}

.leyenda-Habilitado:hover {
    background-color: #B59D40;
    color: #F0E5A3;
}

.leyenda-SolicitudAcreditacion:hover {
    background-color: #B3813D;
    color: #FFDB99;
}

.leyenda-Acreditado:hover {
    background-color: #B37B1D;
    color: #FFC966;
}

.leyenda-SolicitudInscripcion:hover {
    background-color: #71A969;
    color: #E2FBDF;
}

.leyenda-Inscrito:hover {
    background-color: #555454;
    color: #bfbfbf;
}

/* Estilo para elemento seleccionado - mantén esto si ya lo usas */
.seleccionado {
    background-color: #e9ecef;
    font-weight: bold;
}

.tabla-compacta {
    border-collapse: collapse;
}

    .tabla-compacta tr {
        line-height: 1;
        margin:0;
        padding:0;
    }

    .tabla-compacta td {
        padding: 0;
    }

.alinear-abajo {
    padding-bottom:-0.5rem;
}