@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* */

body {
    font-family: 'Oswald', sans-serif;
    line-height: 1.6;
}

/* efecto chispa */
#sparkle-container {

    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    background-color: rgb(255, 182, 24);
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

/* estylos para la bara vertica */
/* Estilo para navegadores WebKit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px; /* Ancho de la barra de desplazamiento */
}
::-webkit-scrollbar-track {
    background: #151324; /* Color de fondo de la pista */
}
::-webkit-scrollbar-thumb {
    background-color: #0795a8; /* Color de la barra de desplazamiento */
    border-radius: 10px; /* Bordes redondeados de la barra de desplazamiento */
}
::-webkit-scrollbar-thumb:hover {
    background: #34b6dd; /* Color de la barra de desplazamiento al pasar el cursor por encima */
}


/* estylos para el encabezado */
.container {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden; 
}

header {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgb(7, 26, 58) 0%, rgb(7, 37, 54) 54%, rgba(13, 35, 48, 0.13) 100%);
}

.banerfondo {
    width: 52%;
    position: absolute;
    top: 20%;
}

/* Párrafo dentro del banner */
.banerfondo p {
    font-family: "Open Sans", sans-serif;
    color: white;
    font-size: 1.3rem;
    width: 85%;
    margin: 20px auto;
    text-align: justify;
}

/* Estilo del botón */
.banerfondo button {
    font-family: 'Oswald', sans-serif;
    padding: 15px 30px;
    font-size: 1.3rem;
    border: none;
    background-color: #18ade7;
    border-radius: 15px;
    display: block;
    margin: 20px auto;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 1px 1px 10px rgba(0, 153, 255, 0.945);
    transition: background-color 0.4s ease;
}

.banerfondo button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #1b67f5;
    transition: left 0.4s ease;
}

.banerfondo button:hover::before {
    left: 0;
}

.banerfondo button a {
    color: white;
    
    text-decoration: none;
    position: relative;
    z-index: 1; /* Asegura que el texto esté encima de la animación */
}


/* Estilos para el h1 flotante */
.cambiando h1 {
    line-height: 1.3;
    font-size: 5.5rem;
    color: #ffffff;
    padding-left: 70px;
    font-family: "Open Sans", sans-serif;
    font-weight: 800;
    animation: float 4s ease-in-out infinite;
}

/* Animación de flotación */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Estilo del contenedor de la imagen del banner */

.banerimg {
    width: 100%;
    background-color: rgba(13, 35, 48, 1);
    display: flex;
    justify-content: right;
    height: 110vh;
}

.banerimg img {
    
    width: 60%;
    background-color: rgba(13, 35, 48, 1);
}
/* Estilos para los servicios */
.servicios {
    display: flex;
    width: 200%;
    margin: 20px 0;
}

.servicios h2 {
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    display: flex;
    font-size: 2.5em;
    color: #fafafa;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 0.1em solid black;
    animation: blink-caret 0.75s step-end infinite;
    text-align: left;
    padding-left: 70px;
}
@media (max-width: 1570px){
    .banerimg img {
    
        width: 70%;
        background-color: rgba(13, 35, 48, 1);
    }
    
}
@media (max-width: 1500px){
    .servicios h2 {
        font-size: 2em;
    }
    .cambiando h1 {
        font-size: 5rem;
    }
    .banerfondo p {
        font-size: 1.3rem;
        width: 82%;
    }
    .banerfondo {
        width: 55%;
        position: absolute;
        top: 20%;
    }
}
@media (max-width: 1300px){
    .banerimg img {
        width: 75%;
    }
    .cambiando h1 {
        font-size: 4rem;
    }
    .banerfondo p {
        font-size: 1.2rem;
        width: 80%;
    }
}
@media (max-width: 1200px){
    .banerimg img {
        width: 80%;
    }
}
@media (max-width: 1100px){
    .banerimg img {
        width: 95%;
    }
    .cambiando h1 {
        font-size: 3.5rem;
        padding-left: 55px;
    }
    .servicios h2{
        font-size: 1.6em;
        padding-left: 58px;
    }
}
@media (max-width: 1000px){

    .banerimg img {
        width: 100%;
    }
    header {
        background: linear-gradient(90deg, rgb(5, 15, 32) 0%, rgba(13, 35, 48, 0.808) 54%, rgba(13, 35, 48, 0.842) 100%);
    }
    .banerfondo {
        width: 75%;
        top: 20%;
        left: 12%;
    }
}
@media (max-width: 800px){
    .container {
        height: 70vh;
    }
    header {
        height: 70vh;
    }
    .banerimg {
        height: 80vh;
    }
    .cambiando h1{
        padding-left: 0;
        text-align: center;
    } 
    .servicios h2{
        font-size: 1.6em;
        padding-left: 0;
    }

    .banerfondo p {
        font-size: 1rem;
        width: 100%;
    }
}
@media (max-width: 600px){
    .container {
        height: 60vh;
    }
    header {
        height: 60vh;
    }
    .banerimg {
        height: 70vh;
    }
    .cambiando h1{
        font-size: 2.5rem;
    } 
    .banerfondo button {
        padding: 10px 20px;
        font-size: 1.3rem;
        margin: 10px auto;
    }
}
@media (max-width: 500px){
    .container {
        height: 80vh;
    }
    header {
        
        height: 80vh;
    }
    .banerimg {
        width: 120%;
        height: 80vh;
    }
    .banerfondo p {
        width: 70%;
    }
    .banerfondo {
        width: 100%;
        top: 20%;
        left: 0%;
    }
    .servicios{
        text-align: center;
        width: 100%;
        justify-content: center;
    }
    .servicios h2 .servitext{
       display: none;
    }
    .servicios h2{
        text-align: center;
       
        justify-content: center;
        align-items: center;
       
    }
    .span{
        text-align: center;
    }
}
@media (max-width: 500px){
    .container {
        height: 75vh;
    }
    header {
        
        height: 70vh;
    }
    .banerimg {
        width: 150%;
        height: 75vh;
    }
    .banerfondo p {
        width: 75%;
    }
}
/* Estilo del texto animado */
#services {
    color: #09efff;
    border: none;
    display: inline-block;
    animation: shine 1.5s infinite ease-in-out;
}
@keyframes shine {
    0% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(22, 220, 255, 0.87);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(127, 237, 245, 0.8);
    }
    100% {
        opacity: 1;
        text-shadow: 0 0 5px rgba(106, 225, 243, 0.781);
    }
}

/* Para dar un retraso secuencial a cada letra */
h2 span:nth-child(1) { animation-delay: 0s; }
h2 span:nth-child(2) { animation-delay: 0.1s; }
h2 span:nth-child(3) { animation-delay: 0.2s; }
h2 span:nth-child(4) { animation-delay: 0.3s; }
h2 span:nth-child(5) { animation-delay: 0.4s; }
h2 span:nth-child(6) { animation-delay: 0.5s; }
/* Repetir según la cantidad de letras */
@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: rgb(70, 187, 255);
    }
}


/* Estilo de la sección */
section {
    padding: 20px;
    background-color: rgb(240, 240, 240);
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 50px;
}
section .servTitulo{
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
}
section .servTitulo h1{
    font-size: 3rem;
    color: #181431;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    letter-spacing: 2px;
    text-transform: uppercase;
}

section .servTitulo hr {
    width: 130px;
    border: 2px solid #181431;
    margin: 0 auto;
}

section .servicioMuestra {
    position: relative;
    width: 23%;
    height: 300px;
    text-align: center;
    color: #fafafa;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section .servicioMuestra:hover {
    transform: scale(1.05);
}

section .servicioMuestra::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    z-index: 1;
}

section .sv1::before {
    background-image: url(/img/imgConstruccion.jpg);
}

section .sv2::before {
    background-image: url(/img/imgMantenimiento.jpg);
}

section .sv3::before {
    background-image: url(/img/imgFabricacion.jpg);
}

section .sv4::before {
    background-image: url(/img/imgDesarrollo.jpg);
}

section .servicioMuestra:hover::before {
    transform: scale(1.2); /* Agrandamiento hacia adentro */
}

section .serv {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    padding: 40px 30px;
    background-color: rgba(3, 3, 3, 0.685);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 10px;
}

section .serv h2 {
    margin: 0;
    font-size: 1.5em;
    color: #ffffff;
}

section .serv h3 {
    font-size: 1em;
    color: #e6e6e6;
    margin-top: 10px;
}
/* **************** */

/* contenido para el video */

.car .servTitulo {
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 20px;
}

.car .servTitulo h1 {
    font-size: 3rem;
    color: #181431;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.car .servTitulo hr {
    width: 50px;
    border: 2px solid #181431;
    margin: 0 auto;
}


.carousel-container {
    width: 100%; /* Ajusta este valor según el tamaño deseado (150px * 6) */
    height: 400px; /* Ajusta este valor según el tamaño deseado */
    overflow: hidden;
    position: relative;
    margin: 0 auto; /* Centra el carrusel en la página */
}
.carousel-container button {
    margin: 0 auto;
    display: block;
    border: none;
    width: 150px;
    height: 50px;
    border-radius:7px;
    background-color: #92bdee;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.carousel-container button:hover {
    background-color: #0795a8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.carousel-container button a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #505050;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.carousel-container button:hover a {
    color: #ffffff;
}

.carousel-container button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.5s;
}

.carousel-container button:hover::before {
    left: 100%;
}


.carousel-slide {
    display: flex;
    width: calc(100% / 5 * 20); /* 20 imágenes en total */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: calc(100% / 20); /* 100% dividido por el número total de imágenes */
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    text-decoration: none;
    font-size: 16px;
    z-index: 10;
}

.carousel-btn.prev {
    left: 5px;
}

.carousel-btn.next {
    right: 5px;
}

/* responsive */

@media (max-width: 1600px) {
    .contenido h1 {
        font-size: 2em;
    }

    .boton-empezar {
        font-size: 1.25em;
        padding: 12px 25px;
    }
}


@media (max-width: 1300px){
    .imagenInicio {
        display: flex;
    }
    section .servTitulo h1{
        font-size: 2.5rem;
    }
    
    section .servTitulo hr {
        width: 110px;
    }
    .car .servTitulo h1{
        font-size: 2.5rem;
    }
    .carousel-container {
        width: 100%; /* Ajusta este valor según el tamaño deseado (150px * 6) */
        height: 300px; /* Ajusta este valor según el tamaño deseado */
    }
}
@media (max-width: 1200px){

    .boton-empezar {
        font-size: 1.3em;
        padding: 10px 22px;
        border-radius: 10px;
        margin: 0 auto;
        display: block;
        width: 120px;
    }
}
@media (max-width: 1100px){
    section{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    section .contenidoInicio{
        width: 44%;
        padding: 0;
        margin: 10px 15px;
        display: block;
        border-radius: 7px;
        box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.171);
    }
    .mant{
        background-image: url(/img/imgMantenimiento.jpg);
        background-size: cover;
        width: 100%;
    }
    .des{
        background-image: url(/img/imgDesarrollo.jpg);
        background-size: cover;
    }
    .cons{
        background-image: url(/img/imgConstruccion.jpg);
        background-size: cover;
    }
    .fabr{
        background-image: url(/img/imgFabricacion.jpg);
        background-size: cover;
    }
    section .contenidoInicio .cont1{
        width: 100%;
        height: 100%;
        background-color: rgba(16, 16, 41, 0.836);
        padding: 20px 0;
        color: white;
        border-radius: 7px;
    }
    section .contenidoInicio .imagenInicio{
        display: none;
    }
    section .contenidoInicio .imagenInicio img{
        display: none;
    }

    section .contenidoInicio .cont1 h1{
        font-size: 30px;
    }
    section .contenidoInicio .cont1 h2{
        color: rgb(231, 231, 231);
    }
    section .contenidoInicio .cont1 p{
        color: rgb(222, 220, 238);
    }
    section .contenidoInicio .cont1 ul{
        color: rgb(234, 233, 245);
        
    }
    section .contenidoInicio .cont1 button a{
        background: linear-gradient(90deg, rgba(97,185,178,1) 22%, rgb(219, 76, 124) 100%);
    }
}
@media(max-width: 1000px){

   
    section .servicioMuestra {
        height: 250px;
    }
    section .serv h2 {
        margin: 0;
        font-size: 1.2em;
    }
    
    section .serv h3 {
        font-size: 1em;
    }


    .carousel-slide {
        width: calc(100% / 4 * 20); /* 20 imágenes en total */
    }
}
@media(max-width: 910px){
    section .servTitulo h1{
        font-size: 2rem;
    }
    
    section .servTitulo hr {
        width: 90;
    }
    .car .servTitulo h1{
        font-size: 2rem;
    }
    
    .car .servTitulo hr {
        width: 90;
    }
   
}
@media (max-width: 864px){

   
    section .servicioMuestra {
        position: relative;
        width: 45%;
    }
    
}
@media (max-width:650px) {
    .carousel-slide {
        width: calc(100% / 3 * 20); /* 20 imágenes en total */
    }
}
@media (max-width: 520px) {
    
    .contenido h1 {
        font-size: 1.5em; 
        }
        .contenido p {
        font-size: 1em;
        }
        .boton-empezar {
        font-size: 1em;
            padding: 10px 20px;
        }

        section .contenidoInicio{
            width: 90%;
            margin: 10px 15px;
        }    
        section .servTitulo h1{
            font-size: 1.5rem;
        }
        
        section .servTitulo hr {
            width: 90;
        }
        .car .servTitulo h1{
            font-size: 1.5rem;
        }
        
        .car .servTitulo hr {
            width: 90;
        }
        .carousel-slide {
            width: calc(100% / 2 * 20); /* 20 imágenes en total */
        }
}

@media (max-width: 444px) {
    .contenido h1 {
        font-size: 1.4em; 
        }
        .contenido h3{
            display: block;
            font-size: 1em;
        }
        .contenido p {
        display: none;
        }
        .boton-empezar {
        font-size: 1em;
            padding: 10px 20px;
            margin-top: 10px;
        }
        section .servicioMuestra {
            position: relative;
            width: 98%;
        }
        
        .carousel-slide {
            width: calc(100% / 1 * 20); /* 20 imágenes en total */
        }
}

/*  */

li .inicio{
    color: rgb(255, 142, 14);
}
.nosotros, .galeria, .contactenos, .servicio{
    color: rgb(255, 255, 255);
}

