* {
    box-sizing: border-box;
    font-family: "Poppins";
    font-size: 20px;
    font-weight: 300;
    margin: 0px;
}

/* Assets */
:root{
    --negro: #202124;;
    --blanco: #fff;
    --rojo: #E22B2B;
    --amarillo: #FFC938;
    --gris: #3B3B3B;
    --gris-claro: #999;
}

/* Base */
a .btn-fill {
    color: var(--rojo);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    padding: 16px 20px;
    align-items: center;
    border-radius: 8px;
    background: var(--amarillo);
    width: fit-content;
}

#btn{
    text-decoration: none;
}

section {
    padding: 8rem 5rem;
    width: 100%;
}

.ctn-box{
    display: flex;
    margin: 0px 100px;    
}

h2 {
    color: var(--blanco);
    font-family: Poppins;
    font-size: 48px;
    font-style: normal;
    font-weight: 600;
    line-height: 115.32%; /* 55.354px */
    letter-spacing: -0.48px;
}

h3 {
    color: var(--rojo);
    font-size: 3rem;
    font-style: normal;
    font-weight: 500;
    line-height: 115.32%; /* 3.45963rem */
    letter-spacing: -0.03rem;
}

h4 {
    color: var(--amarillo);
    text-align: center;
    font-size: 2rem;
    font-style: normal;
    font-weight: 500;
    line-height: 115.32%; /* 2.30638rem */
    letter-spacing: -0.02rem;
}

h5 {
    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.16px;
}

/* Header */

header {
    z-index: 1;
    position: fixed;
    display: flex;
    width: 100%;
    padding: 20px 10.16rem;
    align-items: left;
    background: var(--rojo);
}

header nav {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

header div.mn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

header ul {
    display: flex;
    flex-direction: row;
    padding: 0px;
    gap: 50px;
}

header li {
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    gap: -3px;
}

header a {
    text-decoration: none;
}

header p {
    color: var(--blanco);
    font-size: 1.2rem;
    font-weight: 600;
    
}

header .gr {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.bar {
    width: 1px;
    height: 3px;
    transition: width 0.2s ease; /* Transición suave */
}

header a:hover .bar{
    width: 33px;
    background: var(--amarillo);
}

header a:active .bar {
    width: 100%;
    background: var(--amarillo);
}

/* Body */
/*Init*/

/*Overlay*/
.ov {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Estilos de los overlays */

.overlay-content {
    background-color: var(--amarillo);
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    position: relative;
    height: fit-content;
    text-align: center;
    padding: auto;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.ov:target {
    display: flex;
}

/* Mostrar el overlay cuando el enlace es clickeado */
.overlay:target {
    display: flex;
}

.overlay .close-btn {
    display: flex;
    justify-content: right;
}

.overlay h4 {
    color: var(--rojo);
    font-size: 24px;
    font-weight: 600;
    text-align: left;
}

.overlay h5 {
    color: var(--rojo);
    font-size: 16px;
    font-weight: 600;
}

.overlay a {
    color: var(--rojo);
    font-size: 16px;
    font-weight: 300;
    text-decoration: none;
}

.overlay ul {
    display: flex;
    padding: 5px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.overlay ul div {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.overlay li {
    list-style-type: none;
    padding-left: 0;
    font-size: 20px;
    font-weight: 500;
    text-align: left;
}

/* Estilo para el video de fondo */
#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que el video cubra todo el fondo sin distorsionar */
    z-index: -1; /* Manda el video al fondo, detrás del contenido */
}

.init {
    position: relative;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.38) 100%);
}

.init #ctn {
    margin: 50px 0px 20px;
}

.init.cnt {
    position: relative;
    z-index: 1;
    display: flex;
    width: 682px;
    flex-direction: column;
    gap: 60px;
    width: 100%; /* Asegura que la sección tome el 100% del ancho */
    min-height: 100vh; /* Para que el video ocupe al menos la altura completa de la ventana */
    padding: 20px;
    color: white;
}

.init div {
    gap: 30px;
}

.init.mtbrnd{
    display: flex;
    align-items: center;
    gap: 25px;
}

/*Confían*/
.clnt {
    display: flex;
    width: 100%;
    padding: 40px 0px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background: var(--rojo);
}


.loop {
    width: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
}

.loop-ctn {
    display: flex;
    animation: loop 20s linear infinite;
    gap: 60px;
}

@keyframes loop {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% / 2));
    }
}

/*Eleginos*/
.ele {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 4.75rem;
    align-self: stretch;
}


.ele .ctn {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.ele .ctn-box {
    gap: 6rem;
}

.ele img {
    border-radius: 15px;
    height: 500px;
    width: auto;
}

.ele .cntc {
    display: flex;
    gap: 10px;
}

.ele .cntc h4 {
    color: var(--rojo);
    font-size: 1.2rem;
}

/*Emp*/
.emp {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: flex-start;
    gap: 4.75rem;
    background: var(--gris);
}

.emp .ctn {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.emp p {
    font-weight: 300;
    color: var(--blanco);
}

.emp h3 {
    color: var(--amarillo);
}

.emp img {
    border-radius: 15px;
    height: 390px;
    width: auto;
}

.emp li {
    font-size: 1.5rem;
    color: var(--blanco);
    text-decoration: dotted;
    font-weight: 500;
}

.emp ::marker {
    color: var(--amarillo);
}

/*Sol*/
.sol {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    background: var(--gris);
    color: var(--gris);
}

.sol .ctn-box{
    flex-direction: column;
    
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    background: var(--gris);
    color: var(--gris);
}

.sol h4 {
    color: var(--rojo);
}

.sol h3 {
    color: var(--amarillo);
}

.sol .cnt-cl {
    display: flex;
    gap: 3rem;
    width: 1400px;
}

.sol .cl {
    display: flex;
    flex-direction: column;
    gap: 1.88rem;
    width: 545px;
}

.sol #nt {
    font-size: 16px;
    font-weight: 300;   
}

.sol li {
    width: 232px;
}

.sol .sec-cl {
    background-color: var(--blanco);
    padding: 30px;
    border-radius: 20px;
}

.sol .cl-ad {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.cl-ad ul {
    display: flex;
    flex-direction: column;
    padding-left: 0;
    gap:1.88rem;
}

.cl-ad li {
    list-style-type: none; /* Elimina el punto */
    padding-left: 0;
    font-size: 20px;
    font-weight: 500;

}

.sol .cl .sec-cl {
    display: flex;
    flex-direction: column;
    gap:1.25rem;
}

/*footer*/
footer {
    background: var(--rojo);
    color: var(--blanco);
    display: flex;
    padding: 60px 264px;
    justify-content: space-between;
}

footer nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

footer ul {
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer li {
    list-style-type: none; /* Elimina el punto */
    font-size: 16px;
}

footer a {
    color: var(--blanco);
    font-size: 16px;
}

.foot {
    display: flex;
    background: var(--rojo);
    color: var(--amarillo);
    justify-content: center;
    font-size: 12px;
}

.foot a {
    background: var(--rojo);
    color: var(--amarillo);
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
}

/*Contacto*/
.contacto {
    display: flex;
    flex-direction: row;
    height: 110vh;
    overflow-y: scroll;
}

.contacto h2 {
    color: var(--rojo);
}

.contacto #line {
    height: 2px;
    width: 300px;
    background-color: var(--rojo);
    border-radius: 1px;
}

.map {
    position: sticky;
    width: 600px; /* Asegura que el iframe tenga un tamaño adecuado */
    display: flex;
    flex-direction: column;
    top: 110px;
    gap: 30px;

}

.contacto iframe {
    border-radius: 20px;
}

.contacto .scrl {
    padding: 70px 90px;
    overflow-y: auto; /* Habilita el scroll solo en esta columna */
    overflow-x: hidden;
    gap: 50px;
    display: flex;
    justify-content: left;
    align-items: center;
    flex-direction: column;
    overflow-y: scroll; /* Activa el scroll solo en el eje Y */
    scrollbar-width: none; /* Firefox: Oculta la barra de scroll */
    -ms-overflow-style: none; /* IE y Edge: Oculta la barra de scroll */
}

/* Webkit (Chrome, Safari, Edge) */
.contacto .scrl::-webkit-scrollbar {
    display: none; /* Oculta la barra de scroll en navegadores basados en Webkit */
}

.contacto ul {
    gap: 8px;
    width: 400px;
    display: flex;
    flex-direction: column;
    padding-left: 0px;
    justify-content: left;
    align-items: flex-start;
    justify-content: left;
}

.contacto h4 {
    font-size: 24px;
    font-weight: 600;
    color: var(--rojo);
    text-align: left;
}

.contacto h5 {
    color: var(--rojo);
    font-size: 16px;
    font-weight: 600;
}

.contacto li {
    list-style-type: none; /* Elimina el punto */
}

.initnos {
    background-image: 
        linear-gradient(0deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.38) 100%), 
        url('/resources/img/autotec-bg.png');
    background-size: cover; /* Ajusta la imagen para cubrir toda la sección */
    background-position: center; /* Centra la imagen */
    background-repeat: no-repeat; /* Evita que la imagen se repita */
    position: relative; /* Asegura que el contenido dentro se posicione correctamente */
    height: 90vh;
    top: 110px;
    color: var(--blanco);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Nosotros */

.initnos h3 {
    color: var(--blanco);
}

.initnos p {
    width: 70%;
    background: var(--rojo);
    padding: 30px;
}

.hac {
    background: var(--gris);
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 11rem;
}

.hac p {
    width: 70%;
    color: var(--blanco);
}

.hac h3{
    color: var(--amarillo);
}

.his {
    background: var(--rojo);
    display: flex;
    gap: 5,75rem;
}

.his div {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.his p {
    color: var(--blanco);
}

.his img {
    margin-left: 70px;
    width: 50%;
    border-radius: 15px;
}

.his h3{
    color: var(--amarillo);
}

.eqp ul {
    gap: 8px;
    width: 400px;
    display: flex;
    flex-direction: column;
    padding-left: 0px;
    justify-content: left;
    align-items: flex-start;
    justify-content: left;
    margin-top: 30px;
}

.eqp li {
    list-style-type: none;
}

.eqp h5 {
    color: var(--rojo);
    font-size: 16px;
    font-weight: 600;
}

.eqp div {
    display: flex;

}

/*Soluciones*/
.dia-ini {
    background-color: var(--gris);
}

.dia-ini .ctn-box {
    display: flex;
    gap: 8rem;
}

.dia-ini .ctn {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.dia-ini .servicio {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.dia-ini h3 {
    color: var(--amarillo);
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
}

.dia-ini p {
    color: var(--blanco);
}

.dia-ini h4 {
    color: var(--blanco);
    font-size: 36px;
    font-style: normal;
    font-weight: 600;
    text-align: left;
}

.dia-ini .ejes {
    display: flex;
    width: 650px;
    padding: 60px;
    border-radius: 15px;
    background-color: var(--blanco);
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    align-self: stretch;
}

.dia-ini .ejes h4 {
    color: var(--rojo);
    font-size: 36px;
    font-weight: 500;
}

.dia-ini ul {
    gap: 8px;
    width: 400px;
    display: flex;
    flex-direction: column;
    padding-left: 0px;
    justify-content: left;
    align-items: flex-start;
    justify-content: left;
    margin-top: 30px;
}

.dia-ini li {
    display: flex;
    gap: 12px;
    align-items: center;
    list-style-type: none;
}

.dia-ini li h5 {
    color: var(--gris);
    font-size: 32px;
    font-weight: 500;
}

.ser-alquiler h3 {
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
}

.ser-alquiler img {
    border-radius: 15px;
    height: 500px;
    width: auto;
}

.ser-alquiler .ctn-box {
    gap: 6rem;
}

.ser-alquiler .ctn {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}

.tras h3 {
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
}

.tras img {
    border-radius: 15px;
    height: 500px;
    width: auto;
}

.tras .ctn-box {
    gap: 6rem;
}

.tras .ctn {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}