﻿/* Bootstrap 5 subraya todos los enlaces; Bootstrap 4 solo al pasar el mouse */
a {
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Botón "×" de los modales (la clase .close no existe en Bootstrap 5) */
.close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    padding: 0;
    background-color: transparent;
    border: 0;
}

    .close:hover {
        color: #000;
        text-decoration: none;
        opacity: .75;
    }

.modal-header .close {
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -5px;
    margin-left: -5px;
}

    .form-row > .col, .form-row > [class*="col-"] {
        padding-right: 5px;
        padding-left: 5px;
    }

.btn-block {
    display: block;
    width: 100%;
}

/* Modernizr agrega la clase "placeholder" al elemento <html>.
   En Bootstrap 5 esa clase es un componente de carga (opacidad 50% y cursor de espera)
   que termina aplicándose a toda la página. Aquí se anula solo para <html>. */
html.placeholder {
    display: block;
    min-height: auto;
    vertical-align: baseline;
    cursor: auto;
    background-color: #ffffff;
    opacity: 1;
}

.botonVerdeAgua:disabled, .botonVerdeAgua.disabled {
    background-color: #66cccc;
    color: #000033;
}

.botonVerdeAguaSelect:disabled, .botonVerdeAguaSelect.disabled {
    background-color: #66cccc;
    color: black;
}

.botonAmarillo:disabled, .botonAmarillo.disabled {
    background-color: #FBBA40;
    color: black;
}

.btnAmarillo:disabled, .btnAmarillo.disabled {
    background-color: #EFB230;
    color: #000;
}

.botonAzul:disabled, .botonAzul.disabled,
.botonAzulSelect:disabled, .botonAzulSelect.disabled,
.botonAzulBeneficiario:disabled, .botonAzulBeneficiario.disabled,
.btn-confirmacion:disabled, .btn-confirmacion.disabled {
    background-color: #000033;
    color: white;
}

.botonGris:disabled, .botonGris.disabled {
    background-color: #808080;
    color: #000038;
}

/* Botones al pasar el mouse, al presionarlos o con foco de teclado:
Bootstrap 5 les pone fondo transparente; Bootstrap 4 conservaba el color. */
.btn.botonVerdeAgua:hover, .btn.botonVerdeAgua:focus-visible, .btn.botonVerdeAgua:active, .btn.botonVerdeAgua.active,
.btn.botonVerdeAguaSelect:hover, .btn.botonVerdeAguaSelect:focus-visible, .btn.botonVerdeAguaSelect:active, .btn.botonVerdeAguaSelect.active {
    background-color: #66cccc;
}

.btn.botonAmarillo:hover, .btn.botonAmarillo:focus-visible, .btn.botonAmarillo:active, .btn.botonAmarillo.active {
    background-color: #FBBA40;
}

.btn.btnAmarillo:focus-visible, .btn.btnAmarillo:active, .btn.btnAmarillo.active {
    background-color: #EFB230;
}

.btn.btnAmarillo:hover {
    background-color: #80d4dc;
}

.btn.botonAzul:hover, .btn.botonAzul:focus-visible, .btn.botonAzul:active, .btn.botonAzul.active,
.btn.botonAzulSelect:hover, .btn.botonAzulSelect:focus-visible, .btn.botonAzulSelect:active, .btn.botonAzulSelect.active,
.btn.botonAzulBeneficiario:hover, .btn.botonAzulBeneficiario:focus-visible, .btn.botonAzulBeneficiario:active, .btn.botonAzulBeneficiario.active,
.btn.btn-confirmacion:hover, .btn.btn-confirmacion:focus-visible, .btn.btn-confirmacion:active, .btn.btn-confirmacion.active {
    background-color: #000033;
}

.btn.botonGris:hover, .btn.botonGris:focus-visible, .btn.botonGris:active, .btn.botonGris.active {
    background-color: #808080;
}

.form-control[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}

/* Columnas: en Bootstrap 4 cada col-* fijaba su tamaño con flex-basis, y eso ganaba
   sobre el "width: 100%" de la clase propia .Control (forms.css). En Bootstrap 5 las
   columnas usan width y .Control lo pisa, estirando el campo. Se restaura el flex-basis. */
.col-1 {
    flex: 0 0 8.333333%;
}

.col-2 {
    flex: 0 0 16.666667%;
}

.col-3 {
    flex: 0 0 25%;
}

.col-4 {
    flex: 0 0 33.333333%;
}

.col-5 {
    flex: 0 0 41.666667%;
}

.col-6 {
    flex: 0 0 50%;
}

.col-7 {
    flex: 0 0 58.333333%;
}

.col-8 {
    flex: 0 0 66.666667%;
}

.col-9 {
    flex: 0 0 75%;
}

.col-10 {
    flex: 0 0 83.333333%;
}

.col-11 {
    flex: 0 0 91.666667%;
}

.col-12 {
    flex: 0 0 100%;
}

@media (min-width: 576px) {
    .col-sm-1 {
        flex: 0 0 8.333333%;
    }

    .col-sm-2 {
        flex: 0 0 16.666667%;
    }

    .col-sm-3 {
        flex: 0 0 25%;
    }

    .col-sm-4 {
        flex: 0 0 33.333333%;
    }

    .col-sm-5 {
        flex: 0 0 41.666667%;
    }

    .col-sm-6 {
        flex: 0 0 50%;
    }

    .col-sm-7 {
        flex: 0 0 58.333333%;
    }

    .col-sm-8 {
        flex: 0 0 66.666667%;
    }

    .col-sm-9 {
        flex: 0 0 75%;
    }

    .col-sm-10 {
        flex: 0 0 83.333333%;
    }

    .col-sm-11 {
        flex: 0 0 91.666667%;
    }

    .col-sm-12 {
        flex: 0 0 100%;
    }
}

@media (min-width: 768px) {
    .col-md-1 {
        flex: 0 0 8.333333%;
    }

    .col-md-2 {
        flex: 0 0 16.666667%;
    }

    .col-md-3 {
        flex: 0 0 25%;
    }

    .col-md-4 {
        flex: 0 0 33.333333%;
    }

    .col-md-5 {
        flex: 0 0 41.666667%;
    }

    .col-md-6 {
        flex: 0 0 50%;
    }

    .col-md-7 {
        flex: 0 0 58.333333%;
    }

    .col-md-8 {
        flex: 0 0 66.666667%;
    }

    .col-md-9 {
        flex: 0 0 75%;
    }

    .col-md-10 {
        flex: 0 0 83.333333%;
    }

    .col-md-11 {
        flex: 0 0 91.666667%;
    }

    .col-md-12 {
        flex: 0 0 100%;
    }
}

@media (min-width: 992px) {
    .col-lg-1 {
        flex: 0 0 8.333333%;
    }

    .col-lg-2 {
        flex: 0 0 16.666667%;
    }

    .col-lg-3 {
        flex: 0 0 25%;
    }

    .col-lg-4 {
        flex: 0 0 33.333333%;
    }

    .col-lg-5 {
        flex: 0 0 41.666667%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
    }

    .col-lg-7 {
        flex: 0 0 58.333333%;
    }

    .col-lg-8 {
        flex: 0 0 66.666667%;
    }

    .col-lg-9 {
        flex: 0 0 75%;
    }

    .col-lg-10 {
        flex: 0 0 83.333333%;
    }

    .col-lg-11 {
        flex: 0 0 91.666667%;
    }

    .col-lg-12 {
        flex: 0 0 100%;
    }
}

@media (min-width: 1200px) {
    .col-xl-1 {
        flex: 0 0 8.333333%;
    }

    .col-xl-2 {
        flex: 0 0 16.666667%;
    }

    .col-xl-3 {
        flex: 0 0 25%;
    }

    .col-xl-4 {
        flex: 0 0 33.333333%;
    }

    .col-xl-5 {
        flex: 0 0 41.666667%;
    }

    .col-xl-6 {
        flex: 0 0 50%;
    }

    .col-xl-7 {
        flex: 0 0 58.333333%;
    }

    .col-xl-8 {
        flex: 0 0 66.666667%;
    }

    .col-xl-9 {
        flex: 0 0 75%;
    }

    .col-xl-10 {
        flex: 0 0 83.333333%;
    }

    .col-xl-11 {
        flex: 0 0 91.666667%;
    }

    .col-xl-12 {
        flex: 0 0 100%;
    }
}

.col, [class^="col-"], [class*=" col-"] {
    position: relative;
}