/********** Template CSS **********/
:root {
    --primary: #2878EB;
    --secondary: #111827;
    --light: #ECF4FF;
    --dark: #120F2D;
}

[class^=flaticon-]:before,
[class*=" flaticon-"]:before,
[class^=flaticon-]:after,
[class*=" flaticon-"]:after {
    font-size: inherit;
    margin-left: 0;
}


/* Altura fija del carrusel */
#header-carousel .carousel-item {
    height: 550px;       
    position: relative;
}

/* Las imágenes se adaptan sin deformarse */
#header-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;      
    object-position: center; 
}

#header-carousel .carousel-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35); 
    z-index: 1;
}

/* Asegura que el contenido del caption esté por encima del overlay */
#header-carousel .carousel-caption {
    z-index: 2;
}

/* Ajustar responsive en pantallas pequeñas */
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        height: 380px; /* Más pequeño para móviles */
    }

    #header-carousel .carousel-caption h1 {
        font-size: 2rem;
    }

    #header-carousel .carousel-caption h5 {
        font-size: 1rem;
    }
}

/* Imagen normal */
.faviconImg .icon {
    width: 100px;
    height: 100px;
    transition: filter 0.3s ease;
}

/* Efecto hover para invertir los iconos */
.service-item:hover .faviconImg .icon {
    filter: invert(1);
    transition: filter 0.3s ease;
}

/*Favicon pequeño*/
.faviconImgSmall {
    width: 120px;
    justify-content: center;
}

/*Cortina de Servicios modernizado*/

#navServicios .dropdown-menu {
    border-radius: 0.5rem;
    /* Bordes redondeados */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    /* Sombra suave */
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    /* Animación suave */
    background-color: #ffffff;
    /* Fondo blanco */
    min-width: 220px;
    /* Ancho mínimo */
    border: 1px solid #e0e0e0;
    /* Borde sutil */
}

/* Efecto al pasar el mouse por los items */
#navServicios .dropdown-item {
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    color: #333;
    font-weight: 500;
}

#navServicios .dropdown-item:hover {
    background-color: #0d6efd;
    /* Color bootstrap primary */
    color: #fff;
    transform: translateX(5px);
    /* Efecto pequeño de movimiento */
    border-radius: 0.5rem;
    margin-right: -03px;
    margin-left: -05px;
}

/* Animación al abrir/cerrar */
#navServicios .dropdown-menu.show {
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInDropdown 0.3s forwards;
}

@keyframes fadeInDropdown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner {
    background-color: #120f2d;
    height: 450px;
}

/*Footer*/

.contacto-footer {
    justify-content: space-between;
}

/*Botón para subir a arriba*/
.fast-scroll {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.fast-scroll:hover {
    background-color: #0d6efd;
    /* color al pasar el mouse */
    transform: translateY(-4px);
}

/*Para visión y misión*/

.flex-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-bottom-width: 5px;
    border-radius: 0.5rem;
    padding: 2rem;
    min-height: 250px;
    height: auto;
    width: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flex-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tarjeta {
    min-height: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-list {
  padding-left: 0px;
  margin-top: 15px;
}

.service-list li {
  margin-bottom: 6px;
  line-height: 1.4;
}


/* Ajuste para centrado visual tipo pirámide */
@media (min-width: 768px) {

    .tarjeta:nth-child(1),
    .tarjeta:nth-child(2) {
        margin-bottom: 1.5rem;
    }

    .tarjeta:nth-child(3) {
        margin-top: -0.5rem;
    }
}

#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    opacity: 0;
    transform: translateY(20px);
    /* Empieza un poco abajo */
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Transición suave */
    background-color: #111827;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

#scrollTopBtn.show {
    opacity: 1;
    transform: translateY(0);
    /* Se mueve a su posición */
}

#scrollTopBtn:hover {
    background-color: #0056b3;
}

/*Para el botón de WA*/
.btn-whatsapp-blue {
    background-color: #0d6efd;
    /* Azul principal */
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    transition: all 0.3s ease;
    box-shadow: 0px 2px 6px rgba(13, 110, 253, 0.25);
}

.btn-whatsapp-blue:hover {
    background-color: #120f2d;
    /* Azul más oscuro */
    transform: translateY(-3px);
    /* Movimiento hacia arriba */
    box-shadow: 0px 6px 14px rgba(13, 110, 253, 0.4);
    /* Brillo al pasar */
    color: #fff;
}

.btn-whatsapp-blue i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-whatsapp-blue:hover i {
    transform: scale(1.1);
    /* Ícono crece un poco */
}





h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary,
.btn-primary:hover,
.btn-secondary:hover {
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.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: 45px;
    bottom: 45px;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 50px;
    margin-right: 50px;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 0;
}

.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;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-left: 0;
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 15, 45, .5);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

.carousel-indicators {
    align-items: flex-end;
}

.carousel-indicators [data-bs-target] {
    width: 5px;
    height: 25px;
}

.carousel-indicators .active {
    height: 45px;
}

.hero-header {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-1.jpg) top right no-repeat;
    background-size: cover;
}

.service-item div {
    z-index: 1;
}

.service-item div::after {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 2px 2px 0 0;
    transition: .5s;
    z-index: -1;
}

.service-item div:hover::after {
    width: 100%;
    background: var(--primary);
}

.service-item * {
    transition: .5s;
}

.service-item:hover * {
    color: var(--light) !important;
}

.bg-offer {
    background: linear-gradient(rgba(18, 15, 45, .5), rgba(18, 15, 45, .5)), url(../img/carousel-2.jpg) top right no-repeat;
    background-size: cover;
}

.testimonial-carousel .owl-dots {
    height: 45px;
    margin-top: 5px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 5px;
    height: 25px;
    background: #DDDDDD;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    height: 45px;
    background: var(--primary);
}

.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item .testimonial-text * {
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.blog-date {
    position: absolute;
    width: 90px;
    height: 65px;
    top: 75px;
    left: -25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: var(--secondary);
}

.blog-date::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    top: -25px;
    left: 0;
    border: 13px solid;
    border-color: transparent #D34351 #D34351 transparent;
    z-index: -1;
}

.navbar-brand .brand-logo {
    height: 40px;
    /* ajusta a tu gusto */
    width: auto;
    display: block;
}

@media (min-width: 992px) {
    .navbar-brand .brand-logo {
        height: 100px;
    }
}

/* Botón secundario: base + hover */
.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: #fff !important;
}

.btn-secondary:hover {
    background-color: #000 !important;
    /* o var(--primary) si lo quieres azul al hover */
    border-color: #000 !important;
}

/* Utilidades Bootstrap que usa tu navbar */
.bg-secondary {
    background-color: var(--secondary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.border-secondary {
    border-color: var(--secondary) !important;
}