/********** Template CSS **********/
:root {
    --primary: #212121;
    --secondary: #b80b13;
    --light: #f7f7f7;
    --dark: #6f1724;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.my-6 {
    margin-top: 6rem;
    margin-bottom: 6rem;
}

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


/*** 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 {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover {
    color: #FFFFFF;
}

.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;
    font-weight: normal;
}


/*** Navbar ***/
.navbar {
    top: 0;
    position: absolute;
    z-index: 1000;
    backdrop-filter: blur(10px); /* Efecto de vidrio */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Borde sutil */
    width: 100%;
    height: 55px;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    position: fixed;
    background-color: rgba(0, 0, 0, 0.1) !important; /* Color sólido cuando baja */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
    padding: 0 15px;
    height: auto;
    width: auto;
}

.navbar-brand img {
    height: 30px;
    width: auto;
}

.navbar-nav {
    margin-left: auto;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #b80b13 !important;
    transform: translateY(-2px);
}

.navbar.sticky-top {
    top: 0px;
    transition: .5s;
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 30px
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
    background-color: transparent;
}

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


@media (max-width: 768px) { /* Para pantallas más pequeñas que tablets */
    .navbar {
        background-color: rgba(0, 0, 0, 0.8) !important; /* Fondo oscuro para visibilidad */
        position: fixed;
        width: 100%;
        transition: all 0.3s ease-in-out;
    }

    .navbar .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5);
    }

    .navbar .navbar-toggler-icon {
        filter: invert(1); /* Hace el icono blanco */
    }

    .navbar-collapse {
        background-color: rgba(0, 0, 0, 0.9); /* Fondo oscuro en el menú desplegable */
        padding: 15px;
    }

    .navbar-nav .nav-link {
        color: white !important;
        text-align: center;
        padding: 10px;
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 5px;
    }

  }

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

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

@media (min-width: 992px) {
    .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 ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, .75);
    z-index: 1;
}

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

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

#header-carousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



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

    .carousel-caption h3 {
        font-size: 28px !important; /* Reducimos el tamaño del h3 en móviles */
    }

    .carousel-caption h4 {
        font-size: 18px !important; /* Ajustamos el h4 */
    }

    .carousel-caption h6 {
        font-size: 14px !important; /* Ajustamos el h6 */
    }

    .metal-container .row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
        margin: 0;
        align-items: center;
        text-align: center;
    }

    .metal-container .col-md-4 {
        width: 100% !important;
        padding: 0 !important;
    }
}








.page-header {
    background: linear-gradient(rgba(0, 0, 0, .75), rgba(0, 0, 0, .75)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #999999;
}


/*** Facts ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

@media (max-width: 768px) {
    .facts .row > div {
      margin-bottom: 20px; 
      display: block; 
    }
    
    .facts .row { 
      display: flex; 
      flex-direction: column; 
    }
  }


/*** Courses ***/
.courses {
    min-height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/carousel-1.jpg) center center no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

.courses-item .courses-overlay {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.courses-item:hover .courses-overlay {
    height: 100%;
    opacity: 1;
}


/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .75);
    overflow: hidden;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-social {
    height: 100%;
    opacity: 1;
}

.team-item .bg-light {
    height: 300px; 
    display: flex;
    flex-direction: column;
}

.team-item ul {
    flex-grow: 1;
    margin-bottom: 0;
}

.team-item h3 {
    min-height: 50px; 
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    height: 40px;
    margin-top: 25px;
    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: transparent;
    border: 2px solid var(--primary);
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 40px;
    height: 40px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}


/*** Footer ***/
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--light);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #092139;
}

.copyright a {
    color: var(--primary);
}

.copyright a:hover {
    color: var(--light);
}

.underline {
    display: inline-block;
    position: relative;
}
.underline::after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px; /* Grosor del subrayado */
    width: 100%;
    background-color: #b80b13; /* Color rojo */
}

.underlineb{
    position: relative;
    font-size: 24px;
    font-weight: bold;
}

.underlineb::after{
    content: ''; /* Pseudo-elemento para el subrayado */
    position: absolute;
    bottom: -10px; /* Distancia desde el texto */
    left: 0;
    width: 30%; /* Subraya el 70% del ancho del texto */
    height: 4px; /* Grosor del subrayado */
    background-color: #b80b13; /* Color del subrayado */
}

/*** Lista personalida ***/
.listado li {
    position: relative;
    padding-left: 25px; /* Espacio para el icono */
}

.listado li::before {
    content: '✔'; /* Ícono de check */
    position: absolute;
    left: 0; /* Ubicación del check */
    color: white; /* Color del ícono */
    font-size: 16px; /* Tamaño del ícono */
}

/*** Valores ***/

.valores {
    top: -50px; 
    left: 40px; 
    width: 80px; 
    height: 90px; 
    border-radius: 50%; 
    border-style: solid;    /* Añadimos el estilo del borde */
    border-width: 2px;    /* Añadimos el grosor del borde */
    border-color: #b80b13; /* Color del borde */
    background-color: #292727; 
    padding: 15px; 
    text-align: center; 
    z-index: 1; 
}

.experiencia{
    border-radius: 50%; 
    background-color: #292727;
    text-align: center;
    height: 100px;
    width: 100px; 
    padding-top: 15px;
}


/*** Estilos para spinner de imagenes ***/


#nprogress {
    pointer-events: none;
  }
  #nprogress .bar {
    background: #f6df00;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
  }
  #nprogress .peg {
    display: block;
    position: absolute;
    right: 0px;
    width: 100px;
    height: 100%;
    box-shadow: 0 0 10px #f6df00, 0 0 5px #f6df00;
    opacity: 1;
    -webkit-transform: rotate(3deg) translate(0px, -4px);
    -ms-transform: rotate(3deg) translate(0px, -4px);
    transform: rotate(3deg) translate(0px, -4px);
  }
  #nprogress .spinner {
    display: block;
    position: fixed;
    z-index: 1031;
    top: 15px;
    right: 15px;
  }
  #nprogress .spinner-icon {
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: solid 2px transparent;
    border-top-color: #f6df00;
    border-left-color: #f6df00;
    border-radius: 50%;
    -webkit-animation: nprogresss-spinner 400ms linear infinite;
    animation: nprogress-spinner 400ms linear infinite;
  }
  .nprogress-custom-parent {
    overflow: hidden;
    position: relative;
  }
  .nprogress-custom-parent #nprogress .spinner,
  .nprogress-custom-parent #nprogress .bar {
    position: absolute;
  }
  @-webkit-keyframes nprogress-spinner {
    0% {
      -webkit-transform: rotate(0deg);
    }
    100% {
      -webkit-transform: rotate(360deg);
    }
  }
  @keyframes nprogress-spinner {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }


  .team-item:hover #zinc,
  .team-item:hover #cobre,
  .team-item:hover #alumnio,
  .team-item:hover #acero {
      display: block !important;
      transition: all 1s ease;
      opacity: 1;
  }
  
  #zinc,
  #cobre,
  #alumnio,
  #acero {
      transition: all 1s ease;
      opacity: 0;
  }
  
  /*** Stilo personalizado para portada ***/
  .image-container {
    opacity: 0;
    transition: all 0.5s ease;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.image-container:hover {
    opacity: 1;
    cursor: pointer;
}

.image-container:hover h6 {
    color: #ffd700;
    transition: all 0.3s ease;
    transform: scale(1.1);
}

.tercerportada{
    opacity: 0;
    background-color: #212121;
}

/*** Banderas ***/

.flag-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flag-button {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

.banderas {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.flag-button:hover .banderas {
    transform: scale(1.1);
    filter: brightness(1.2);
}

@media (max-width: 768px) {
    .flag-container {
        position: absolute;
        top: 10px;
        right: 100px; /* Mover a la izquierda del menú */
    }

    .banderas {
        width: 25px; /* Reducir tamaño en pantallas pequeñas */
    }
}


.recaptcha-container {
    transform: scale(0.6); /* Escala el reCAPTCHA al 80% */
    transform-origin: 0 0; /* Ajusta el origen del escalado para que sea desde la esquina superior izquierda */
}

.mivi{
    padding: 5% 15% 2% 15%; 
    background-color: #212121;
}
.mivi:hover{
    color: #FFFFFF;
    border: 2px solid #6f1724; /* Define el grosor y estilo del borde */
    background-color: #212121;
    transition: all 0.3s ease;
}

.integridad{
    background-color: #212121;
    border: none;
}
.integridad:hover{
    color: #FFFFFF;
    border: 2px solid #6f1724; /* Define el grosor y estilo del borde */
    background-color: #212121;
    transition: all 0.3s ease;
}

.fortaleza {
    padding: 15% 10% 0% 10%; 
    border: none;
    background-color: transparent;
    transition: all 0.3s ease; /* Transición suave */
}

.fortaleza:hover {
    color: #FFFFFF;
    border: 2px solid #6f1724; /* Define el grosor y estilo del borde */
    background-color: #212121;
    transition: all 0.3s ease; /* Transición suave para el cambio */
}


/* Para mantener las dos columnas en pantallas pequeñas */
@media (max-width: 768px) {
    .tecnologia .row {
        display: flex; /* Usar flexbox para mantener las columnas lado a lado */
        flex-wrap: nowrap; /* Evitar que las columnas se apilen */
        justify-content: space-between; /* Espacio uniforme entre columnas */
    }

    .tecnologia .col-md-6 {
        flex: 0 0 48%; /* Cada columna ocupará aproximadamente el 48% del ancho */
        text-align: center; /* Centrar contenido */
        margin-bottom: 10px; /* Separación entre filas (si es necesario) */
    }

    .tecnologia img {
        max-width: 100%; /* Mantener imágenes responsivas */
        height: auto; /* Proporciones originales */
    }

    .tecnologia p {
        font-size: 14px; /* Ajustar el tamaño del texto */
    }

    .tecnologia a {
        margin: 5px auto; /* Centrar el botón */
    }
}

@media (max-width: 768px) {
    .modal-custom .row-custom {
        display: flex; /* Usar flexbox */
        flex-wrap: wrap; /* Permitir que las imágenes se apilen */
        justify-content: center; /* Centrarlas horizontalmente */
        gap: 10px; /* Separación entre imágenes */
    }

    .modal-custom .col-custom {
        flex: 0 0 70%; /* Ancho del 70% */
        max-width: 70%; /* Limitar el ancho máximo */
        text-align: center; /* Asegurar que el contenido esté centrado */
    }

    .modal-custom img {
        margin-bottom: 10px; /* Separación entre imágenes */
        display: block; /* Garantizar que se comporten como bloques */
        margin-left: 70px; /* Centrar horizontalmente */
        margin-right: auto; /* Centrar horizontalmente */
    }
}