/********** Template CSS **********/

.back-to-top {
    position: fixed;
    display: none;
    left: 30px;    
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 500;
}

/*** Spinner ***/
#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;
}


/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff !important;
  border-radius: 20px;
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--bs-primary-dark) !important;
  border-color: var(--bs-primary-dark) !important;
  color: #fff !important;
}

.btn-outline-primary {
  color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  background-color: transparent !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
  background-color: var(--bs-primary-light) !important;
  border-color: var(--bs-primary-dark) !important;
  color: #fff !important;
}

.btn-secondary,
.btn-outline-secondary:hover {
  background-color: #014478;  
  color: var(--bs-light);
  border-radius: 10px;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

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

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    font-weight: normal;
}

/*Boton formulario al pasar el mouse*/
form .btn-primary:hover, form .btn-primary:focus {
  background-color: #fff !important;
  color: #014478 !important;      /* azul corporativo */
  border-color: #014478 !important;
}

.icon-box-primary,
.icon-box-light {
    position: relative;
    padding: 0 0 10px 10px;
    z-index: 1;
}

.icon-box-primary i,
.icon-box-light i {
    font-size: 60px;
    line-height: 0;
}

.icon-box-primary::before,
.icon-box-light::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 35px;
    left: 0;
    bottom: 0;
    border-radius: 35px;
    transition: .5s;
    z-index: -1;
}

.icon-box-primary::before {
    background: var(--bs-primary);
}

.icon-box-light::before {
    background: var(--bs-light);
}


/*** Navbar ***/
.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 18px;
    padding: 20px 18px 20px 0;
    color: var(--bs-light); 
    font-size: 18px;
    font-weight: 500;
    outline: none;
    /*border-right: 1px dotted #b0b0b0;*/
    box-shadow: none;
}
.navbar .navbar-nav .nav-link:last-child {
    border-right: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .sticky-top {
        margin-top: -34px;
    }

    .navbar {
        height: 68px;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
@media (min-width: 992px) {
    .header-carousel,
    .page-header,
    .main-content,
    .container-fluid.py-5,
    .container-fluid.feature,
    .container-fluid:not(.sticky-top):not(.text-white) {
        margin-top: 24px !important;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    background: rgba(3, 27, 78, .3);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 3.5rem;
    background-color: var(--bs-primary);
    border: 15px solid var(--bs-primary);
}

@media (max-width: 767.98px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(3, 27, 78, .3), rgba(3, 27, 78, .3)), url(../img/testimonial.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--bs-white);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--bs-white);
}

/* Ejemplo: dropdown dentro de breadcrumb más pequeño y discreto */
.breadcrumb .dropdown-menu {
  background-color: #014478;
  border: #fff;
  font-size: 0.9rem;
  min-width: auto;
}



/*** Features ***/
.feature {
    background: linear-gradient(rgba(3, 27, 78, .3), rgba(3, 27, 78, .3)), url(../img/feature.jpg) left center no-repeat;
    background-size: cover;
}

.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

.experience .progress {
    height: 5px;
}

.experience .progress .progress-bar {
    width: 0px;
    transition: 3s;
}

.experience .nav-pills .nav-link {
    color: var(--dark);
}

.experience .nav-pills .nav-link.active {
    color: #FFFFFF;
}

.experience .tab-content hr {
    width: 30px;
}


/*** About ***/
.about-fact {
    width: 220px;
    height: 220px;
    box-shadow: 0 0 30px rgba(0, 0, 0, .1);
    color: #fff !important;
    border: 2px solid rgba(0,0,0,0.07);
}

@media (min-width: 576px) {
    .about-fact.mt-n130 {
        margin-top: -200px;
        

    }
}

.about-fact.bg-secondary {
  background: #014478 !important; /* azul corporativo */
}
/* Para 'Años de Experiencia', forzar el color igual al de Premios Ganados */
.about-fact .display-1.text-white.mb-0[data-toggle="counter-up"] {
  color: #fff !important;
}
.about-fact.bg-primary, .about-fact .display-1.text-white.mb-0[data-toggle="counter-up"] {
  background: var(--bs-primary) !important;
}

.about-fact.bg-dark {
  background: #014478 !important; /* azul corporativo */
}

.bg-primary.w-100.h-100.mt-n5.ms-n5.d-flex.flex-column.align-items-center.justify-content-center {
  background: var(--bs-primary) !important;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 36px;
    height: 46px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: var(--bs-primary);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--bs-primary);
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 90px;
    height: 90px;
    background: var(--bs-primary);
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: 3px;
    border-left: 30px solid #FFFFFF;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Service ***/
.container-service {
    position: relative;
}

.container-service::before {
    position: absolute;
    content: '';
    background: var(--bs-light);
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 0 70%);
    z-index: -1;
}

.service-item {
    position: relative;
    height: 100%;
    padding: 45px 30px;
    background: var(--bs-white);
    box-shadow: 0 10px 30px rgba(1, 68, 120, 0.08);
    border: 1px solid rgba(1, 68, 120, 0.08);
    border-radius: 16px;
    z-index: 1;
}

.service-item::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    left: 0;
    bottom: 0;
    transition: .5s;
    background: var(--bs-primary);
    border-radius: 20px;
}

.service-item:hover::before {
    height: 100%;
    top: 0;
}

.service-item * {
    position: relative;
    transition: .5s;
    z-index: 1;
}

.service-item:hover h5,
.service-item:hover p {
    color: var(--bs-white);
}

.service-item:hover .icon-box-primary::before {
    background: var(--bs-dark);
}

.service-item:hover .icon-box-primary i {
    color: var(--bs-white) !important;
}
.service-item:hover .btn-primary {
  background-color: #fff !important;      /* fondo blanco */
  color: var(--bs-primary) !important;    /* texto azul */
  border-color: #fff !important;          /* borde blanco */
}
.service-item:hover .btn-primary:hover {
  background-color: var(--bs-primary-dark) !important; /* vuelve a tono oscuro al pasar sobre el botón */
  color: #fff !important;
  border-color: var(--bs-primary-dark) !important;
}

/* Modern product card variant for product listing pages */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(1, 68, 120, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(1, 68, 120, 0.08);
  overflow: hidden;
}
.product-card .product-media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 180px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}
.product-card .product-media img {
  object-fit: contain;
  width: 100%;
  height: 180px;
}
.product-card .product-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}
.product-card .product-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #012e53;
}
.product-card .product-features {
  margin: 0 0 8px 16px;
}
.product-card .product-features li {
  margin-bottom: 4px;
}
.product-card .product-actions {
  margin-top: auto;
}
.product-card .btn {
  border-radius: 10px;
}

/***Cartas con especificaciones de productos***/
.card {
  position: relative;
  background: #ffffff;
  border: none;
  border-radius: 20px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.4s ease;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(1, 68, 120, 0.2);
}

/* Imagen superior */
.card-img-top {
  border-radius: 20px 20px 0 0;
  transition: transform 0.4s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Contenido */
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Título del producto */
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bs-primary);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

.card:hover .card-title {
  color: var(--bs-primary-dark);
}

/* Texto descriptivo */
.card-text {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Lista de características */
.card-body ul {
  margin-bottom: 1.5rem;
  padding-left: 20px;
}

.card-body li {
  color: #333;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

/* Botón */
.card .btn-primary {
  align-self: flex-start;
  background-color: #014478!important;
  /*border: none;*/
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 10px 20px;
}

/* Botón dentro de la card cuando se pasa el mouse sobre la tarjeta */
/*.card:hover .btn-primary {
  background-color: #fff !important;
  color: var(--bs-primary) !important;
  border: 1px solid #fff !important;
}

/* Y cuando pasás el mouse sobre el botón (dentro de la card en hover) */
.card:hover .btn-primary:hover {
  background-color: var(--bs-primary-dark) !important;
  color: #014478 !important;
  border-color: var(--bs-primary-dark) !important;
}

/*** Team ***/
.container-team {
    position: relative;
}

.container-team::before {
    position: absolute;
    content: '';
    background: var(--bs-light);
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    clip-path: polygon(0 70%, 100% 30%, 100% 100%, 0% 100%);
    z-index: -1;
}

.team-item {
    background: var(--bs-white);
    box-shadow: 0 0 45px rgba(0, 0, 0, .05);
}

.team-item .team-social {
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    right: 0;
    transition: .5s;
    background: var(--bs-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-item:hover .team-social {
    width: 100%;
    left: 0;
}

.team-item .team-social .btn {
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social .btn {
    opacity: 1;
}


/*** Testimonial ***/
.testimonial {
    background: linear-gradient(rgba(3, 27, 78, .3), rgba(3, 27, 78, .3)), url(../img/testimonial.jpg) left center no-repeat;
    background-size: cover;
}

.testimonial-item img {
    width: 60px !important;
    height: 60px !important;
    border-radius: 60px;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin-left: 15px;
    color: var(--bs-primary);
    font-size: 30px;
    line-height: 0;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--bs-dark);
}

/*** Contact ***/
@media (min-width: 992px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 0px;
        height: 100%;
        top: 0;
        left: 50%;
        border-left: 1px dashed rgba(255, 255, 255, .2);
    }
}

@media (max-width: 991.98px) {
    .contact-info::after {
        position: absolute;
        content: "";
        width: 100%;
        height: 0px;
        top: 50%;
        left: 0;
        border-top: 1px dashed rgba(255, 255, 255, .2);
    }
}

/*** Footer ***/
.footer {
    background: linear-gradient(rgba(3, 27, 78, 0.363), rgba(3, 27, 78, 0.452)), url(../img/footer.png) center center no-repeat;
    background-size: cover;
    position: relative;
    font-size: 17px;
}

.footer .btn-social {
    width: 40px;
    height: 40px;
    text-align: center;
    padding: 0;
    font-size: 16px;
    line-height: 40px;
    transition: all 0.3s ease-in-out;
}

.footer .btn-social:hover {
    background-color: var(--bs-primary);
    color: #fff;
    border-color: var(--bs-primary);
}

.footer .btn-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    padding-left: 0;
}

.footer .btn-link:hover {
    color: var(--bs-primary);
    text-decoration: none;
    transform: translateX(3px);
}

.footer .copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}


/* Logo global styles */
/* Efecto hover para bloques de contacto en la brand */
.brand-contact {
  transition: box-shadow 0.3s, transform 0.3s;
  border-radius: 12px;
  background: rgba(255,255,255,0.85);
  padding: 0.5rem 1.2rem;
  cursor: pointer;
}
.brand-contact:hover {
  box-shadow: 0 6px 24px rgba(1,68,120,0.18);
  transform: translateY(-6px) scale(1.04);
  background: #fff;
}
.logo-img {
  height: 200px; 
  object-fit: contain;
}

@media (max-width: 991.98px) {

  body, html {
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    background: #fff !important;
  }
  /* Logo más pequeño en mobile */
  /*.logo-img {
    max-width: 200px !important;
    height: 120px !important;
    margin-bottom: 0 !important;
  }*/

  /* Contenedor blanco del logo con margen inferior */
  .navbar .navbar-brand.d-lg-none {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100vw;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
    text-align: center;
    overflow: visible;
    margin-bottom: 16px !important;
    border-radius: 16px;
  }
  /* Separación extra debajo del contenedor blanco */
  .navbar.bg-white {
    margin-bottom: 16px !important;
    background: #fff !important;
    box-shadow: 0 4px 24px 0 rgba(1, 68, 120, 0.10);
  }
  /* Icono hamburguesa azul */
  .navbar-toggler {
    color: #014478 !important;
    border-color: #014478 !important;
    background: transparent !important;
  }
  .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(1,68,120,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
  }
  /* Links del navbar en mobile en azul */
  .navbar .navbar-nav .nav-link {
    color: #014478 !important;
    text-shadow: none !important;
    font-weight: 600;
  }
  .navbar .navbar-nav .nav-link:hover,
  .navbar .navbar-nav .nav-link.active {
    color: #012e53 !important;
    background: rgba(1,68,120,0.08);
  }
  .container-fluid.text-white.pt-4.pb-2.d-none.d-lg-flex,
  .container-fluid.text-white.pt-4.pb-5.d-none.d-lg-flex {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    background: transparent !important;
  }

  /* Ajustes para el bloque "Años de Experiencia" en móviles */
  .bg-primary.w-100.h-100.mt-n5.ms-n5 {
    margin-top: 0 !important;
    margin-left: 0 !important;
    height: auto !important;
    min-height: 120px !important;
    padding: 1rem !important;
    border-radius: 12px !important;
  }
  .bg-primary.w-100.h-100.mt-n5.ms-n5 .icon-box-light i {
    font-size: 36px !important;
    line-height: 1 !important;
  }
  .bg-primary.w-100.h-100.mt-n5.ms-n5 .display-1 {
    font-size: 2.5rem !important;
    line-height: 1 !important;
    margin-bottom: 0.25rem !important;
  }
  .bg-primary.w-100.h-100.mt-n5.ms-n5 small {
    font-size: 0.9rem !important;
  }
}

.footer .logo-img {
  height: 180px;
}

/* Fondo sutil y moderno para el navbar */
/* Modern navbar design */
.navbar.bg-white {
  background: linear-gradient(90deg, #014478 0%, #2971be 100%)!important; /* azul corporativo */
  box-shadow: 0 4px 24px 0 rgba(1, 68, 120, 0.10);
  border-radius: 16px;
  padding: 0.5rem 2rem !important;
  min-height: 64px;
  backdrop-filter: blur(6px);
  border: none;
  margin-top: 16px !important;
}

.navbar.bg-white .dropdown-menu {
  background-color: rgba(1, 68, 120, 0.8) !important;
  color: #fff;
  border:none;
  box-shadow: none !important;
}

.navbar.bg-white .dropdown-menu::before {
  display: none !important;
}

.navbar.bg-white .dropdown-menu .dropdown-item {
  color: #fff;
}

.navbar.bg-white .dropdown-menu .dropdown-item:hover,
.navbar.bg-white .dropdown-menu .dropdown-item:focus,
.navbar.bg-white .dropdown-menu .dropdown-item.active {
  background-color: rgba(1, 68, 120, 1) !important;
  color: #fff !important;
}

@media (min-width: 992px) {
  .navbar {
    height: 56px !important;
  }
}

@media (min-width: 992px) {
  .navbar.bg-white {
    margin-top: -3px !important;
  }
}

@media (min-width: 992px) {
  .container-fluid.text-white.pt-4.pb-5.d-none.d-lg-flex,
  .container-fluid.text-white.pt-4.pb-2.d-none.d-lg-flex {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
  .navbar {
    margin-top: 0 !important;
    top: 0 !important;
  }
}

.navbar .navbar-brand.d-lg-none,
.navbar .navbar-brand {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus {
  background: transparent !important;
  box-shadow: none !important;
}

.logo-img {
  display: block;
  margin: 0 auto;
  background: transparent !important;
  box-shadow: none !important;

}

@media (max-width: 991.98px) {
  .navbar.bg-white {
    background-color: #ffffff !important;
    background-image: none !important;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0 !important;
    padding-top: 0.25rem !important;   
    padding-bottom: 0.25rem !important;
    min-height: 48px;                 /* Más bajo que los 64px de desktop */
  }
}

