/********** Template CSS **********/
:root {
    --primary: #13C5DD;
    --secondary: #354F8E;
    --light: #EFF5F9;
    --dark: #1D2A4D;
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-left: 0;
        padding: 10px 0;
    }
}

/* Ajustes para navbar en móviles */
.navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 0;
}

.navbar-brand h1 {
    margin: 0;
    line-height: 1;
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
    margin-left: auto; /* Empuja el botón a la derecha */
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

/* Estilos para el modal del video */
.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 85vh; /* Limita la altura máxima al 85% del viewport */
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    object-fit: contain; /* Mantiene la relación de aspecto */
}

/* Ajustes para dispositivos móviles */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 0;
        max-width: 100%;
    }
    
    .modal-content {
        height: 100vh;
        border-radius: 0;
    }
    
    .modal-body {
        height: calc(100vh - 60px); /* Resta la altura del header */
    }
    
    .video-container {
        max-height: 90vh;
    }
}

/* Para tablets y dispositivos medianos */
@media (min-width: 769px) and (max-width: 1024px) {
    .video-container {
        max-height: 80vh;
    }
    
    .modal-dialog {
        max-width: 90%;
    }
}

/* Ajustes específicos para orientación horizontal en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .video-container video {
        width: 100%;
        height: auto;
        max-height: 85vh;
    }
}

/* Estilo para la instrucción de audio */
.audio-instruction {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    border: none !important;
    z-index: 10;
    max-width: 90%;
    text-align: center;
}

/* Mejoras visuales para el modal de video */
.modal-header {
    background: var(--primary);
    color: white;
    border-bottom: none;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* Asegurar que el contenedor use flexbox */
.navbar > .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Ajustes específicos para móviles */
@media (max-width: 991.98px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        flex: 1; /* Ocupa el espacio disponible */
    }
    
    .navbar-brand img {
        max-height: 50px; /* Controla el tamaño del logo */
        width: auto;
    }
    
    .navbar-toggler {
        order: 2; /* Asegura que esté después del logo */
    }
    
    .navbar-collapse {
        order: 3; /* El menú colapsable va después */
        width: 100%;
    }
}

.hero-header {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-carousel .owl-item {
    width: 100%;
    height: 100vh;
}

.hero-carousel .item {
    width: 100%;
    height: 100vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Overlay */
.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(13, 71, 161, 0.7), rgba(25, 118, 210, 0.5));
    z-index: 1;
}

.slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    padding: 0 15px;
}

.service-item {
    position: relative;
    height: 350px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    background: var(--primary);
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 20px;
    height: 20px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}

.separador {
    text-align: center;
    display: flex;
    padding: 33px;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;    /* Centra verticalmente */
}

/* Estilos para el modal de imágenes */
#imageModal .modal-content {
    border-radius: 10px;
    overflow: hidden;
}

#imageModal .modal-header {
    background-color: var(--primary);
    color: white;
    border-bottom: none;
    padding: 15px 20px;
}

#imageModal .modal-body {
    padding: 0;
}

#imageModal .carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

#imageModal .carousel-control-prev,
#imageModal .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 15px;
}

#imageModal .btn-close {
    filter: invert(1);
}

/* Efecto hover para las imágenes de noticias */
.blog-1, .blog-2, .blog-3 {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.blog-1:hover, .blog-2:hover, .blog-3:hover {
    transform: scale(1.02);
}

/* Estilo para títulos clickeables */
.bg-light .h3 {
    transition: color 0.3s ease;
}


.bg-light .h3:hover {
    color: var(--primary);
}
