/* ///////////////Aspectos Generales/////////////// */


:root {
    font-size: 10px;
}

body {
    background-color: white;    
    width: 100vw;
    height: 100%;
    margin: 0px;
}


h1 {
    color: rgb(214, 194, 12);
    font-family: "Poppins", serif;
    font-size: 5rem;
    text-align: center;
}

h2{
    margin-top: 20px;
    color:rgb(0, 0, 0);
    font-family: "Poppins", serif;
    font-size: 3rem;
    text-align: center;
} 

 .mainbox {
width: 100%;
overflow-x: hidden;
} 

/* Estilos para el botón */
/* Estilos para el botón */
.whatsapp-button {
    position: fixed;
    bottom: 20px; /* Alineado al fondo */
    right: -60px;  /* Inicialmente fuera de la pantalla */
    width: 60px;
    height: 60px;
    background-color: #25D366;  /* Color del botón */
    border-radius: 50%;  /* Forma circular */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Sombra sutil */
    z-index: 1000; /* Asegura que el botón esté siempre sobre otros elementos */
    transition: right 0.5s ease, opacity 0.5s ease;  /* Transición para el movimiento y la opacidad */
    opacity: 0;  /* Inicialmente invisible */
}

.whatsapp-button.visible {
    right: 20px;  /* Se mueve a la posición visible */
    opacity: 1;   /* Se hace visible */
}

.whatsapp-button.hidden {
    right: -60px;  /* Se mueve fuera de la pantalla */
    opacity: 0;    /* Se oculta */
}

.whatsapp-button img {
    width: 30px;  /* Ancho de la imagen */
    height: 30px;  /* Alto de la imagen */
}




/* 
================================================
==-------------------SLIDER-------------------==
================================================
*/

@keyframes slide-animation {
    0% { transform: translateX(100%); opacity: 0; } /* Comienza fuera, entrando desde la derecha */
    20% { transform: translateX(0); opacity: 1; }  /* Se posiciona en el centro */
    30% { transform: translateX(0); opacity: 1; }  /* Pausa en el centro durante 3 segundos */
    50% { transform: translateX(-100%); opacity: 0; } /* Sale hacia la izquierda */
    100% { transform: translateX(-100%); opacity: 0; } /* Fuera de la pantalla */
}

.text-slider-wrapper {
    position: fixed;
    width: 100vw; /* Ocupa todo el ancho de la pantalla */
    overflow: hidden; /* Oculta los textos fuera del contenedor */
    background-color: #000; /* Fondo negro */
    padding: 5px 0; /* Espaciado vertical */
    margin: 0; /* Sin márgenes */
    z-index: 100;
    height: 30px; /* Ajusta el alto del contenedor al texto */
    display: flex;
    align-items: center; /* Centra verticalmente los textos */
}

.text-slider {
    position: relative; /* Contenedor relativo para posicionar las animaciones */
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute; /* Cada texto ocupa el mismo espacio */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #fff; /* Texto blanco */
    font-family: "Roboto", sans-serif;
    font-size: 2.5rem; /* Tamaño del texto */
    font-weight: bold; /* Texto en negrita */
    text-align: center; /* Centra el texto horizontalmente */
    animation: slide-animation 12s ease-in-out infinite; /* Animación continua */
    opacity: 0; /* Oculta por defecto */
}

.slide:nth-child(1) {
    animation-delay: 0s; /* Sin retraso para el primer texto */
}
.slide:nth-child(2) {
    animation-delay: 3s; /* Comienza después del primer texto */
}
.slide:nth-child(3) {
    animation-delay: 6s; /* Comienza después del segundo texto */
}
.slide:nth-child(4) {
    animation-delay: 9s; /* Comienza después del tercer texto */
}




/* 
================================================
==-------------------BANNER-------------------==
================================================
*/

.banner {
    position: relative; /* Hace que los elementos hijos con posición absoluta se alineen respecto a este contenedor */
    width: 100%; /* Ancho del contenedor */
    height: 900px; /* Ajusta el alto del contenedor según lo necesites */
    overflow: hidden; /* Evita que el texto o la imagen se desborden */
}

.banner img {
    width: 100%; /* La imagen ocupa todo el ancho del contenedor */
    height: 100%; /* La imagen ocupa todo el alto del contenedor */
    object-fit: cover; /* Ajusta la imagen sin distorsionarla */
}

.placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Aseguramos que esté sobre el video */
    display: block;
    filter: brightness(0.6);
}

/* Definición de la animación */
@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.large-screen {
    width: 100%;
    display: block;
    filter: brightness(0.8);
}

.small-screen {
    display: none;
}

/* Media query para pantallas de hasta 768px */
@media (max-width: 768px) {
    .large-screen {
        display: none;
    }

    .small-screen {
        display: block;
        filter: brightness(0.8);
    }
}

.h1banner {
    position: absolute; /* Posiciona el texto relativo al contenedor */
    top: 50%; /* Centra verticalmente */
    left: 50%; /* Centra horizontalmente */
    transform: translate(-50%, -50%); /* Ajusta el punto de referencia al centro del texto */
    color: white; /* Color del texto (ajústalo según tu diseño) */
    font-size: 5rem; /* Tamaño del texto */
    font-weight: bold; /* Negrita */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Sombra para destacar sobre la imagen */
    margin: 0; /* Elimina márgenes predeterminados */
    text-align: center; /* Centra el texto si es multilinea */
    h1{
        color: white;
    }

    .logobanner {
        width: 100%;
        height: 100%;
    }

    .greenlink{
        font-size: 2.5rem;
        font-weight: 500;
        font-family: "Roboto", sans-serif;
        text-decoration: none;
        color: rgb(255, 255, 255);
        background-color: #19722b;
        margin: 20px;
        border: 10px;
        border-radius: 50px;
        padding: 10px 15px;
        text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animación suave */
    }

    .whitelink{
        font-size: 2.5rem;
        font-weight: 500;
        font-family: "Roboto", sans-serif;
        text-decoration: none;
        color: rgb(255, 255, 255);
        background-color: rgb(255, 81, 0);
        margin: 20px;
        border: 10px;
        border-radius: 50px;
        padding: 10px 15px;
        text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.5);
        transition: transform 0.3s ease, box-shadow 0.3s ease; /* Animación suave */
    }

    .greenlink:hover{
        background-color: #3f7c4b;
        box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); /* Añade una sombra al botón al hacer hover */
        transform: scale(1.4); /* Crece un 10% */
    }

    .whitelink:hover{
        background-color: #dd7d00;
        box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3); /* Añade una sombra al botón al hacer hover */
        transform: scale(1.4); /* Crece un 10% */
    }

}

/* 
================================================
==--------------------MAIN--------------------==
================================================
*/


/* ///////////////Section Nosotros/////////////// */


.us{
    /* background-color: red; */
    margin-top: 100px;
    margin-bottom: 100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    p{
        width: 35%;
        font-family: "Roboto", sans-serif;
        font-size: 1.8rem;
        font-weight: 300;
        text-align: center;
        color: rgb(0, 0, 0);
        justify-content: center;
    }

}

.carroussel-wrapper {
    width: 60%; /* Ajusta al ancho completo del contenedor */
    left: 50%;
    overflow: hidden; /* Oculta el contenido que desborda */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0; /* Espaciado superior e inferior */
}

.carroussel {
    display: flex;
    flex-wrap: nowrap; /* Evita que las filas se rompan */
    gap: 10px; /* Espaciado entre imágenes */
    animation: slide 50s linear infinite; /* Animación continua */
}


.carroussel img:hover {
    transform: scale(1.05); /* Aumenta el tamaño al pasar el cursor */
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.carroussel img {
    width: 374px;
    height: 374px;
    object-fit: cover; /* Ajusta las imágenes sin deformarlas */
    border-radius: 10px; /* Bordes redondeados (opcional) */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para resaltar */
    transition: transform 0.3s ease; /* Suavidad al hacer hover */
}
/* ///////////////Section servicios/////////////// */


.services {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    justify-content: center;
}

.services {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.services::before,
.services::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    filter: brightness(0.6); /*  Aplica el filtro de brillo solo al fondo */
}

.services::before {
    background-image: url('../assets/images/services/nsfondo2.png'); /* Imagen superior */
    animation: paneoAnimation 80s infinite linear; /* Animación de 10 segundos, continua y fluida */
}

.services::after {
    background-image: url('../assets/images/services/nsfondo1.png'); /* Imagen inferior */
    z-index: -2; /* Debajo de la imagen superior */
}

/* Animación para paneos de revelación de izquierda a derecha */
@keyframes paneoAnimation {
    0% {
        clip-path: inset(0 100% 0 0); /* Imagen superior completamente oculta en la parte derecha */
    }
    50% {
        clip-path: inset(0 0 0 0); /* Imagen superior se muestra completamente al desplazarse hacia la izquierda */
    }
    100% {
        clip-path: inset(0 100% 0 0); /* Imagen superior se oculta completamente nuevamente deslizándose hacia la derecha */
    }
}

.services::before {
    animation-timing-function: ease-in-out;
}


.services h2 {
    margin-top: 100px;
    margin-bottom: 50px;
    color: rgb(255, 255, 255);
    font-family: "Poppins", serif;
    font-size: 3rem;
    text-align: center;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.5);
}

.services p {
    width: 35%;
    margin-top: 50px;
    margin-bottom: 50px;
    font-family: "Roboto", sans-serif;
    font-size: 2rem;
    text-align: center;
    color: rgb(255, 255, 255);
    font-weight: 300;
    justify-content: center;
    text-shadow: 4px 6px 8px rgba(0, 0, 0, 0.788);
}

.services .serviceitemcontainer {
    display: flex;
    margin-bottom: 200px;
    width: 80%;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.services .serviceitem {
    background-color: #0000006b;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    width: 350px;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

h3{
    color:rgb(255, 255, 255);
    font-family: "Poppins", serif;
    font-size: 1.7rem;
    text-align: center;
}
p{
    width: 80%;
    margin-top: 0px;
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
    text-align: center;
    color: rgb(255, 255, 255);
    justify-content: center;
    font-weight: 400;
}

}

.srvicon {
    margin-top: 30px;
}

/* ///////////////Section beneficios/////////////// */

.benefits {
    margin-top: 100px;
    margin-bottom: 100px;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.flipboxcontainer {
    width: 70%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
    justify-content: center;
}

.flipbox {
    
    position: relative;
    width: 360px; /* Ajusta según sea necesario */
    height: 360px; /* Ajusta según sea necesario */
    perspective: 1000px; /* Permite efecto 3D */
    h3{
        color:rgb(255, 255, 255);
        font-family: "Poppins", serif;
        font-size: 2rem;
        text-align: center;
        text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.5);
    }
    p{
        width: 80%;
        font-family: "Roboto", sans-serif;
        font-size: 1.5rem;
        text-align: center;
        color: rgb(255, 255, 255);
        font-weight: 500;
        justify-content: center;
        text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.801);
    }
}
  
  .flipbox-front,
  .flipbox-back {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    
  }
  
  .touchicon{
    display: none;
  }

  .flipbox-front {
    z-index: 2;
  }
  
  .flipbox-back {
    transform: rotateY(180deg);
    z-index: 1;
  }
  
  .flipbox:hover .flipbox-front {
    transform: rotateY(180deg);
  }
  
  .flipbox:hover .flipbox-back {
    transform: rotateY(360deg); /* Vuelve a la posición original */
  }

  .flipbox:nth-child(1) .flipbox-front {
    background: url('../assets/images/benefits/a1.png') no-repeat center center/cover;
  }
  .flipbox:nth-child(2) .flipbox-front {
    background: url('../assets/images/benefits/b1.png') no-repeat center center/cover;
  }
  .flipbox:nth-child(3) .flipbox-front {
    background: url('../assets/images/benefits/c1.png') no-repeat center center/cover;
  }
  .flipbox:nth-child(4) .flipbox-front {
    background: url('../assets/images/benefits/d1.png') no-repeat center center/cover;
  }
  .flipbox:nth-child(5) .flipbox-front {
    background: url('../assets/images/benefits/e1.png') no-repeat center center/cover;
  }
  .flipbox:nth-child(6) .flipbox-front {
    background: url('../assets/images/benefits/f1.png') no-repeat center center/cover;
  }
  .flipbox:nth-child(1) .flipbox-back {
    background: url('../assets/images/benefits/a2.png') no-repeat center center/cover;
  }
  .flipbox:nth-child(2) .flipbox-back {
    background: url('../assets/images/benefits/b2.png') no-repeat center center/cover;
  }
  .flipbox:nth-child(3) .flipbox-back {
    background: url('../assets/images/benefits/c2.png') no-repeat center center/cover;
  }
  .flipbox:nth-child(4) .flipbox-back {
    background: url('../assets/images/benefits/d2.png') no-repeat center center/cover;
  }
  .flipbox:nth-child(5) .flipbox-back {
    background: url('../assets/images/benefits/e2.png') no-repeat center center/cover;
  }
  .flipbox:nth-child(6) .flipbox-back {
    background: url('../assets/images/benefits/f2.png') no-repeat center center/cover;
  }
  
/* ///////////////Section ventajas/////////////// */

.advantages {
    position: relative; /* Necesario para posicionar la capa */
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: space-around;
    background-image: url('../assets/images/advantajes/ventajas.JPG');
    background-size: cover;
    background-position: top ;
    background-attachment: fixed;
    z-index: 1;
    overflow: hidden; /* Evita que el overlay salga del contenedor */
}

.advantages h2 {
    position: relative;
    z-index: 4; /* Asegura que esté por encima del overlay */
    color: #FFFFFF;
    font-family: "Poppins", serif;
    font-size: 2.5rem;
    text-align: center;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.5);
}

.advantages h3 {
    position: relative;
    z-index: 4; /* Asegura que esté por encima del overlay */
    color: #ffffff;
    font-family: "Poppins", serif;
    font-size: 2rem;
    text-align: center;
    text-shadow: 2px 4px 6px rgba(0, 0, 0, 0.5);
}

.advantages p {
    position: relative;
    z-index: 4; /* Asegura que esté por encima del overlay */
    width: 80%;
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
    text-align: center;
    color: #FFFFFF;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.8);
}

.advantages::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.555); /* Oscurece la imagen con transparencia */
    z-index: 2; /* Coloca la capa por encima del fondo */
}

.advcontainer {
    display: flex;
    gap: 20px;
    z-index: 3; /* Asegura que el contenido esté por encima del overlay */
    position: relative;
}

.advitem {
    width: 250px;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
}

/* ///////////////Section Equipos/////////////// */

.equipment {
    width: 100%;
    margin-top: 70px;
    margin-bottom: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
}

.equipmentinfo {
    /* background-color: red; */
    width: 60%;
    padding-bottom: 70px;
    height: auto;
    display: flex;
    margin-bottom: 50px;
}
.equipmentleft {

    width: 50%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    
}

.equipmentmainimg{
    width: 500px;
    height: 500px;
    /* background-color: blue; */
}

.equipmentmainquery{
    width: 500px;
    height: 500px;
    /* background-color: blue; */
    display: none;
}

.equipmentslider-container {
    position: relative;
    width: 480px; /* Ajusta el ancho según lo necesario */
    padding: 30px;
    overflow: hidden; /* Asegúrate de ocultar el contenido que desborda */
    display: flex;
    align-items: center;
}

.equipmentslider {
    display: flex;
    gap: 10px; /* Espaciado entre imágenes */
    overflow-x: auto; /* Habilita el desplazamiento horizontal */
    scroll-behavior: smooth; /* Para un desplazamiento suave */
}

.equipmentslider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.equipmentsliderimg {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left-arrow {
    left: 5px;
}

.right-arrow {
    right: 5px;
}

.equipmentright {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;

    
}

.equipmentitem{
    width: 80%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    flex-direction: row;
    justify-content: space-evenly;
}

h3{
    color:rgb(0, 0, 0);
    font-family: "Poppins", serif;
    font-size: 4rem;
    text-align: center;
}
p{
    width: 80%;
    font-family: "Roboto", sans-serif;
    font-size: 1.7rem;
    text-align: left;
    color: rgb(0, 0, 0);
    justify-content: center;
    font-weight: 300;
}


/* 
================================================
==-------------------FOOTER-------------------==
================================================
*/

.contact-footer {
    position: relative;
    height: 500px;
    background-image: url('../assets/images/contact/contacto.jpg'); /* Reemplaza con la ruta de la imagen */
    background-size: cover;
    background-position: center ;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 50px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
  }
  
  .contact-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Oscurece la imagen */
    z-index: 1;
  }
  
  .contact-content {
    height: 500px;
    width: 600px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-evenly;
  }

  .contactitem{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
  }
  
  .contact-content h2 {
    color: white;
    font-size: 36px;
    margin-bottom: 10px;
  }
  
  .contact-content p {
    width: auto;
    font-size: 16px;
    margin: 5px 0;
    text-align: center;
    color: white;
    font-size: 2rem;
  }
  
  .contact-content a {
    color: white;
    text-decoration: none;
    font-family: "Roboto", sans-serif;

  }
  
  .footer-buttons {
    margin-top: 20px;
  }
  
  .footer-button {
    display: inline-block;
    margin: 0 30px;
    margin-bottom: 30px;
    padding: 10px 20px;
    background-color: rgb(255, 255, 255);
    color: black;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
  }
  
  .footer-buttons a:nth-child(1) {
    background-color: #075e54; /* Verde de WhatsApp */
    color: white;
  }
  
  /* Botón de Email */
  .footer-buttons a:nth-child(2) {
    background-color: #007BFF; /* Azul */
    color: white;
  }

 

  
  /* Efecto hover para ambos botones */
  .footer-buttons a:nth-child(1):hover {
    background-color: #1DA851; /* Verde más oscuro */
  }
  
  .footer-buttons a:nth-child(2):hover {
    background-color: #0056b3; /* Azul más oscuro */
  }
  
  .backtotop {
    background-color: rgb(255, 81, 0);
    color: white;
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    color: black;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
  }

  .backtotop:hover{
    background-color: #411d00;
  }

  /* Estilo del popup */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 20px;
    z-index: 1000;
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.popup input {
    width: 80%;
    padding: 10px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.popup button {
    margin-top: 10px;
}

/* Fondo oscuro detrás del popup */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Botón personalizado */
.footer-button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    color: white;
    background-color: #007BFF;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.footer-button:hover {
    background-color: #0056b3;
}

.contactbutton{
    background-color: #075e54; /* Verde de WhatsApp */
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 5px;
    border: 0px;
}

.contactbutton:hover{
    background-color: #023630; /* Verde de WhatsApp */
}