/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
}

/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% { -webkit-transform: perspective(120px) }
    50% { -webkit-transform: perspective(120px) rotateY(180deg) }
    100% { -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg) }
}

@keyframes sk-rotateplane {
    0% { transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
    50% { transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg); }
    100% { transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Heading ***/
p {
    padding: 5px 0;
    margin-bottom: 15px;
    text-align: justify;
} 

h1, h2, .fw-bold { font-weight: 800 !important; }
h3, h4, .fw-semi-bold { font-weight: 700 !important; }
h5, h6, .fw-medium { font-weight: 600 !important; }

/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary, .btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover { box-shadow: inset 0 0 0 0 var(--primary); }
.btn-secondary:hover { box-shadow: inset 0 0 0 0 var(--secondary); }

.btn-square { width: 36px; height: 36px; }
.btn-sm-square { width: 30px; height: 30px; }
.btn-lg-square { width: 48px; height: 48px; }

.btn-square, .btn-sm-square, .btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/********** CORRECCIÓN MENÚ DESKTOPS Y MÓVILES **********/

/* Estilo para pantallas grandes (Computadora - min-width: 992px) */
@media (min-width: 992px) {
    .navbar-dark {
        position: relative !important;
        background-color: #091E3E !important; /* Fondo azul oscuro institucional */
        border-bottom: 1px solid rgba(255, 255, 255, .1);
        z-index: 999;
    }

    .navbar-dark .navbar-nav .nav-link {
        color: #FFFFFF !important; /* Texto blanco totalmente visible */
        padding: 25px 0 !important;
        margin-left: 25px;
        font-size: 18px;
        font-weight: 600;
        transition: .3s;
    }

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active {
        color: #06A3DA !important; /* Color celeste en hover y activo */
    }

    .navbar-dark .navbar-brand h1 {
        color: #FFFFFF !important;
    }
}

/* Estilo para Celulares y Tablets (max-width: 991.98px) */
@media (max-width: 991.98px) {
    .navbar-dark {
        background-color: #091E3E !important;
        position: relative !important;
        z-index: 999;
    }

    .navbar-dark .navbar-collapse {
        background-color: #0d2850 !important;
        padding: 15px !important;
        border-radius: 0 0 8px 8px;
        margin-top: 10px;
    }

    .navbar-dark .navbar-nav .nav-link {
        color: #FFFFFF !important;
        padding: 10px 15px !important;
        margin-left: 0;
        display: block;
    }

    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active {
        color: #06A3DA !important;
    }

    .navbar-dark .navbar-nav .dropdown-menu {
        background-color: #0b264f !important;
        border: none !important;
    }

    .navbar-dark .navbar-nav .dropdown-item {
        color: #FFFFFF !important;
    }

    .navbar-dark .navbar-nav .dropdown-item:hover {
        background-color: var(--primary) !important;
        color: #FFFFFF !important;
    }
}

/*** Carrusel Adaptable ***/
.img-carrusel {
    width: 100% !important;
    height: 480px !important;
    object-fit: cover !important;
    object-position: center !important;
}

#header-carousel .carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .img-carrusel {
        height: 280px !important;
    }

    #header-carousel .carousel-caption h1 {
        font-size: 1.5rem !important;
    }

    #header-carousel .carousel-caption h5 {
        font-size: 0.85rem !important;
    }
}

/*** Títulos de Sección ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
    animation: section-title-run-sm 5s infinite linear;
}

.section-title.text-center::after {
    animation: section-title-run-center 5s infinite linear;
}

@keyframes section-title-run {
    0% { left: 0; } 50% { left: 145px; } 100% { left: 0; }
}

@keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; } 50% { left: 50%; margin-left: -75px; } 100% { left: 50%; margin-left: -75px; }
}

@keyframes section-title-run-sm {
    0% { left: 0; } 50% { left: 85px; } 100% { left: 0; }
}

/*** Tarjetas de Menú y Equipos ***/
.blog-item, .team-item {
    transition: .5s;
}

.blog-item:hover, .team-item:hover {
    box-shadow: 0 0 30px #DDDDDD;
}

.blog-item .blog-img img, .team-item .team-img img {
    transition: .5s;
}

.blog-item:hover .blog-img img, .team-item:hover .team-img img {
    transform: scale(1.1);
}

/*** Adaptación para Secciones Internas en Celular ***/
@media (min-width: 992px) {
    .hero-header-custom {
        padding-top: 160px !important;
        padding-bottom: 90px !important;
        margin-bottom: 90px;
    }
}

@media (max-width: 991.98px) {
    .hero-header-custom {
        padding-top: 60px !important;
        padding-bottom: 40px !important;
        margin-bottom: 30px !important;
    }

    .hero-header-custom h1 {
        font-size: 2rem !important;
    }

    .bg-header {
        padding-top: 60px !important;
    }
}

/*** Botón Volver Arriba ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 25px;
    bottom: 25px;
    z-index: 99;
}