body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;

}

#spinner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo semitransparente */
    z-index: 9999; /* Asegura que el spinner esté al frente */
}

.spinner {
  font-size: 10px;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  position: relative;
  text-indent: -9999em;
  animation: mulShdSpin 1.1s infinite ease;
  transform: translateZ(0);
}
@keyframes mulShdSpin {
  0%,
  100% {
    box-shadow: 0em -2.6em 0em 0em #ffffff, 1.8em -1.8em 0 0em rgba(255,255,255, 0.2), 2.5em 0em 0 0em rgba(255,255,255, 0.2), 1.75em 1.75em 0 0em rgba(255,255,255, 0.2), 0em 2.5em 0 0em rgba(255,255,255, 0.2), -1.8em 1.8em 0 0em rgba(255,255,255, 0.2), -2.6em 0em 0 0em rgba(255,255,255, 0.5), -1.8em -1.8em 0 0em rgba(255,255,255, 0.7);
  }
  12.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.7), 1.8em -1.8em 0 0em #ffffff, 2.5em 0em 0 0em rgba(255,255,255, 0.2), 1.75em 1.75em 0 0em rgba(255,255,255, 0.2), 0em 2.5em 0 0em rgba(255,255,255, 0.2), -1.8em 1.8em 0 0em rgba(255,255,255, 0.2), -2.6em 0em 0 0em rgba(255,255,255, 0.2), -1.8em -1.8em 0 0em rgba(255,255,255, 0.5);
  }
  25% {
    box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.5), 1.8em -1.8em 0 0em rgba(255,255,255, 0.7), 2.5em 0em 0 0em #ffffff, 1.75em 1.75em 0 0em rgba(255,255,255, 0.2), 0em 2.5em 0 0em rgba(255,255,255, 0.2), -1.8em 1.8em 0 0em rgba(255,255,255, 0.2), -2.6em 0em 0 0em rgba(255,255,255, 0.2), -1.8em -1.8em 0 0em rgba(255,255,255, 0.2);
  }
  37.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.2), 1.8em -1.8em 0 0em rgba(255,255,255, 0.5), 2.5em 0em 0 0em rgba(255,255,255, 0.7), 1.75em 1.75em 0 0em #ffffff, 0em 2.5em 0 0em rgba(255,255,255, 0.2), -1.8em 1.8em 0 0em rgba(255,255,255, 0.2), -2.6em 0em 0 0em rgba(255,255,255, 0.2), -1.8em -1.8em 0 0em rgba(255,255,255, 0.2);
  }
  50% {
    box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.2), 1.8em -1.8em 0 0em rgba(255,255,255, 0.2), 2.5em 0em 0 0em rgba(255,255,255, 0.5), 1.75em 1.75em 0 0em rgba(255,255,255, 0.7), 0em 2.5em 0 0em #ffffff, -1.8em 1.8em 0 0em rgba(255,255,255, 0.2), -2.6em 0em 0 0em rgba(255,255,255, 0.2), -1.8em -1.8em 0 0em rgba(255,255,255, 0.2);
  }
  62.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.2), 1.8em -1.8em 0 0em rgba(255,255,255, 0.2), 2.5em 0em 0 0em rgba(255,255,255, 0.2), 1.75em 1.75em 0 0em rgba(255,255,255, 0.5), 0em 2.5em 0 0em rgba(255,255,255, 0.7), -1.8em 1.8em 0 0em #ffffff, -2.6em 0em 0 0em rgba(255,255,255, 0.2), -1.8em -1.8em 0 0em rgba(255,255,255, 0.2);
  }
  75% {
    box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.2), 1.8em -1.8em 0 0em rgba(255,255,255, 0.2), 2.5em 0em 0 0em rgba(255,255,255, 0.2), 1.75em 1.75em 0 0em rgba(255,255,255, 0.2), 0em 2.5em 0 0em rgba(255,255,255, 0.5), -1.8em 1.8em 0 0em rgba(255,255,255, 0.7), -2.6em 0em 0 0em #ffffff, -1.8em -1.8em 0 0em rgba(255,255,255, 0.2);
  }
  87.5% {
    box-shadow: 0em -2.6em 0em 0em rgba(255,255,255, 0.2), 1.8em -1.8em 0 0em rgba(255,255,255, 0.2), 2.5em 0em 0 0em rgba(255,255,255, 0.2), 1.75em 1.75em 0 0em rgba(255,255,255, 0.2), 0em 2.5em 0 0em rgba(255,255,255, 0.2), -1.8em 1.8em 0 0em rgba(255,255,255, 0.5), -2.6em 0em 0 0em rgba(255,255,255, 0.7), -1.8em -1.8em 0 0em #ffffff;
  }
}

.fade-out {
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}
    .navbar-nav .nav-link {
        color: white !important;
        padding-left: 10px;
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.5);
        color: black !important; 
    }
    
    .navbar-light .navbar-toggler {
        color: white !important;
        border-color: white !important;
    }
    
    .navbar-light .navbar-brand {
        color: white !important;
    }

    .bg-custom {
        background-color: #263f7c;
        background-image: url('/static/home/img/f_home_DICAT.png');
        background-repeat: no-repeat; 
        background-size: 90%;
        background-position: center; 
        background-position-y: top;
        position: -webkit-sticky; /* Soporte para navegadores basados en WebKit */
        position: sticky;
    }

    .navbar-toggler.custom-toggler {
        border-color: white; /* Color del borde del botón */
    }

    .navbar-toggler.custom-toggler .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    }

    h2{
        color: #2d4b94;
        font: normal normal 800 26px / 34px "Open Sans", Helvetica, Arial, Verdana, sans-serif;
        text-transform: none;
        letter-spacing: normal;
        font-size: 26px;
        margin-block-end: 10px;
        font-weight: 800;
        margin-bottom: 10px;
        text-size-adjust: 100%;
    }
    .justificado {
        text-align: justify; 
        margin-block-end: 10px;
        font-size: 17px;
        margin-right: 5px;
        margin-left: 5px;
    }
    .enlace {
        color: rgb(225, 47, 124);
        text-decoration-color: rgb(225, 47, 124);
        text-decoration-line: none;
        cursor: pointer;
        font-weight: bold;
    }
    .enlaces-top {
        font-size: 16px;
        color: white;
        text-decoration: none;
        font-family: 'Roboto', sans-serif;
        font-weight: 300;
    }
    .pt-60 {
        padding-top: 60px;
    }
    .pb-50{
        padding-bottom: 50px;
    }
    .text-copy {
        font-family: "Open Sans", Helvetica, Arial, Verdana, sans-serif;
        font-size: 12px;
        font-weight: bolder;
    }

    .nav-tabs .nav-link:not(.active){
        color: rgb(255, 255, 255);
        background-color: rgb(179, 39, 109);
        border-color: rgb(179, 39, 109);
        font-family: "Open Sans", Helvetica, Arial, Verdana, sans-serif;
        font-size: 17px;
        height: 56px;
        padding-top: 15px;
        margin-right: 10px;
        border-radius: 0;
        font-weight: 300;
    }
    .nav-tabs .nav-link.active {
        color: rgb(179, 39, 109); 
        border-color: rgb(204, 204, 204);
        border-top: 1;
        border-left: 1;
        border-right: 1;
        border-bottom: 0;
        font-family: "Open Sans", Helvetica, Arial, Verdana, sans-serif;
        font-size: 17px;
        height: 56px;
        padding-top: 15px;
        margin-right: 10px;
        border-radius: 0;
        background-color: #f9f9f9;
        font-weight: 300;
    }
    .text-tab{
        font-family: "Open Sans", Helvetica, Arial, Verdana, sans-serif;
        font-size: 17px;
    }
    .tab-content .tab-pane.active {
        border-left: 1px solid rgb(204, 204, 204); /* Borde izquierdo */
        border-right: 1px solid rgb(204, 204, 204); /* Borde derecho */
        border-bottom: 1px solid rgb(204, 204, 204); /* Borde inferior */
        background-color: #f9f9f9;
        padding: 10px;  
    }
    /* Mantiene el botón a la izquierda y ajusta su altura */
    .navbar-toggler {
        position: absolute;        /* Posición absoluta para que no dependa de la altura del navbar */
        left: 80vw;                /* Margen a la izquierda */
        top: 30px;                 /* Ajusta el top para que no se solape */
        height: auto;              /* Permite que el botón conserve su propio alto */
        z-index: 1050;             /* Asegura que esté siempre encima de otros elementos */
        padding: 5px 10px;         /* Ajusta el padding según necesites */
    }

    /* Opcional: Ajuste para pantallas grandes */
    @media (min-width: 992px) {
        .navbar-toggler {
            display: none;         /* Oculta el botón en pantallas grandes si no lo necesitas */
        }
    }
    .menu-text {
        color: black; /* Cambia el color del texto del menú */
        display: block; /* Hace que el texto ocupe todo el ancho del menú */


    }
    a.menu-text{
        font-size: 16px;
        font-weight:500;
        line-height: 20px;
        text-transform: none;
        text-decoration: none;
        block-size: 35px;
        padding: 10px 20px;
    }
    .text-overlay {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #242424;
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-weight: bold;
    }
    .img-container {
        position: relative;
        width: 100%;
        padding-top: 75%; /* Aspect ratio 4:3 */
        overflow: hidden;
    }
    .img-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top; /* Ensure the overflow happens from top to bottom */
    }
    .curtain {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(128, 128, 128, 0.5);
        transform: translateY(100%);
        transition: transform 0.5s ease-in-out;
    }
    .card:hover .curtain {
        transform: translateY(0);
    }
    .menu-text {
        color: black; /* Cambia el color del texto del menú */
        display: block; /* Hace que el texto ocupe todo el ancho del menú */


    }
    a.menu-text{
        font-size: 16px;
        font-weight:500;
        line-height: 20px;
        text-transform: none;
        text-decoration: none;
        block-size: 35px;
        padding: 10px 20px;
    }
    .text-overlay {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        background-color: #242424;
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-weight: bold;
    }
    .img-container {
        position: relative;
        width: 100%;
        padding-top: 75%; /* Aspect ratio 4:3 */
        overflow: hidden;
    }
    .img-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top; /* Ensure the overflow happens from top to bottom */
    }
    .curtain {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(128, 128, 128, 0.5);
        transform: translateY(100%);
        transition: transform 0.5s ease-in-out;
    }
    .card:hover .curtain {
        transform: translateY(0);
    }

    /* Activa el dropdown al pasar el cursor */
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
        /* Opcional: para una transición suave */
        transition: all 0.3s ease;
    }

    /* Opcional: cambia el estilo del link cuando el dropdown está abierto */
    .navbar-nav .dropdown:hover .nav-link {
        color: #7594b6; /* Ajusta el color según tu preferencia */
    }