*{
    margin: 0;
}

a:active,
a:hover, 
a {
  outline: 0;
  text-decoration: none;

}

@font-face {
    font-family: "FlamaCondensedSB";
    src: url(../fonts/FlamaCondensed-Semibold.otf);
}

@font-face {
    font-family: "FlamaCondensedM";
    src: url(../fonts/FlamaCondensed-Medium.otf);
}

@font-face {
    font-family: "FlamaCondensedLight";
    src: url(../fonts/FlamaCondensed-Light.otf);
}

@font-face {
    font-family: "FlamaCondensedBook";
    src: url(../fonts/FlamaCondensed-Book.otf);
}

nav {
    width: 100%;
    position: relative;
    background-image: url(../img/bgNav.png);
    background-position: 100% center;
}



.mbNav{
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 320px;
    background-color: #ffdd00;
    z-index: 90;
    display: flex;
    flex-direction: column;
    padding: 9.6rem 3rem 3.6rem 3.6rem;
    box-sizing:border-box;
    -webkit-transition: all 0.5s ease;
    transition: all 0.5s ease;
    justify-content: space-between;
    transform: translateX(100%);
}

.mbNav a{
    color: white;
    text-decoration: none;
    font-family: "FlamaCondensedM";
    font-size: 2em;
}


.header-nav__close {
    display: block;
    height: 30px;
    width: 30px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 10%;
    right: 30px;
    font: 0 / 0 a;
    text-shadow: none;
    color: transparent;
    z-index: 800;
}

.header-nav__close span::before {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.header-nav__close span::before, .header-nav__close span::after {
    content: "";
    display: block;
    height: 2px;
    width: 12px;
    background-color: #FFFFFF;
    position: absolute;
    top: 50%;
    left: 9px;
    margin-top: -1px;
}

*, *::before, *::after {
    box-sizing: inherit;
}

.header-nav__close span::after {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}
.header-nav__close span::before, .header-nav__close span::after {
    content: "";
    display: block;
    height: 2px;
    width: 12px;
    background-color: #FFFFFF;
    position: absolute;
    top: 50%;
    left: 9px;
    margin-top: -1px;
}

.redesLinks{
    display: flex;

}

.redesLinks img{
    width: 30px;
    height: 30px;
}

.toggleMenu{
    display: none;
}

.quad{
    position: absolute;
    width: 40%;
    height: 100%;
    -webkit-transform: skew(-15deg) !important;
    -moz-transform: skew(-15deg) !important;
    -o-transform: skew(-15deg) !important;
    background-color: #ffdd00;
    top: 0;
    right: 0;

}

.contNav {
    width: 60%;
    margin: auto;
    padding: 1% 0%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    width: 180px;
    margin: 0% 6px;
}

.itemsNav {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "FlamaCondensedSB";
    color: #4c4b47;
    font-size: 1.5rem;
    box-sizing: border-box;
    flex: 1;
}

.itemsNav a {
    color: #4c4b47;
    margin: 0% 5%;
    box-sizing: border-box;
}

.redesNav {
    display: flex;
    align-items: center;
    justify-content: center;
}

.redesNav a {
    margin: 0% 3%;
}

.redesNav a img {
    width: 30px;
}


.swiper{
    height: 600px;
    width: 100%;
}

.swiper-slide{
    background-position: center center;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url(../img/banner_1.png);
}

.b2{
    background-image: url(../img/banner_2.png);
}

.b3{
    background-image: url(../img/banner_3.png);
}

.textBanner{
    position:absolute;
    transform: translate(0%, -50%);
    top: 35%;
    left: 10%;
    width: 45%;
    text-align: center;
}

.b2 .textBanner{
    top: 60%;
    left: 0%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.b2 .textBanner img{
    width: 200px;
    object-fit: contain;
}

.b3 .textBanner{
    left: 5%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.404) 0%, rgba(0, 0, 0, 0.336) 80%);
}

.textBanner p{
    
    font-family: "FlamaCondensedLight";
    color: white;
    font-size: 4rem;
    letter-spacing: 0.1em;
    line-height: 100%;
    margin-bottom: 4%
}

.textBanner p span{
    font-family: "FlamaCondensedM";
}

/* EMPRESA SECCIÓN */

.logoProductos{
    width: 180px;

}


#empresa{
    font-family: "FlamaCondensedSB";
    color: #6e6d6d;
    text-align: center;
    margin-top: 15px;
    width: 80%;
    margin: auto;
}

.contenido{
    margin: 2% 0%;
}

.titleSection{
    font-size: 75px;
    font-family: "FlamaCondensedSB";
    color: #6e6d6d;
    text-align: center;
    line-height: 100%;
}

#empresa h2{
    font-size: 35px;
    margin-bottom: 1%;
}

#empresa .contenido p{
    font-family: "FlamaCondensedM";
    font-size: 22px;
    line-height: 150%;
    margin: 2% 0%;
}

.quadEmpresa{
   width: 100%;
   
   position: relative;
}

.quadEmpresa img{
    height: 100%;
    width: 100%;
    object-fit: contain;
}


.absoluteTxt{
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translate(-50%, 0%) skew(312deg);
    background-color: #ffdd00;
    padding: 1% 5%;
    display: inline-block;
    box-sizing: content-box; /* Asegura que el padding sume al tamaño total */
    width: max-content;
}

.styleabs{
    transform: skew(-312deg);
    font-family: "FlamaCondensedLight";
    font-size: 2.4rem;
    letter-spacing: 0.1em;
    margin: 0; /* Elimina márgenes del p */
    color: #383838
    
}


.styleabs span{
    font-family: "FlamaCondensedM";
}

.catTitle{
    transform:skew(312deg);
    background-color: #ffdd00;
    padding: 1% 0%;
    display: inline-block;
    box-sizing: content-box; /* Asegura que el padding sume al tamaño total */
    width: 800px;
}

.catTitle p{
    transform: skew(-312deg);
    font-family: "FlamaCondensedM";
    font-size: 3rem;
    text-align: center;
    margin: 0; /* Elimina márgenes del p */
    color: #6f6e6e
    
}

#productos{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4% 0%;
}

.contCat{
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2% 0%;
}

.infoCat{
    width: 100%;
    display: flex;
    height: min-content;
    margin: 2% 0%;
}

.itemsCat{
    width: 50%;
    display: flex;
    
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;

}

.item{
    display: flex;
    align-items: center;
    font-family: "FlamaCondensedM";
    color: #6f6e6e;
    font-size: 1.7rem;
    width: 100%;
    z-index: 70;
    justify-content: flex-end;
}

.item img{
    width: 20px;
    height: 20px;
}

.item p{
    margin: 0% 2%;
}

.relativeCat{
    position: relative;
    width: 50%;
    min-height: 400px;
}

.relativeCat img{
    position: absolute;
}

.reverse{
    flex-direction: row-reverse;
}


#repuestos{
    transform: translate(0%, -50%);
    top: 50%;
    left: 2%;
}

#agricola{
    height: 600px;
    top: -55%;
    right: 2%;
}

#pesados{
    top: -18%;
    height: 600px;
}

#livianos{
    right: 2%;
}


#contacto{
    display: flex;
    justify-content: center;
    background-position: center center;
    background-image: url(../img/bgContacto.png);
    background-size: cover;
}

.contContact{
    width: 50%;    
    padding: 2% 0%;
    box-sizing: border-box;
    
}

.txtAlign{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    text-align: center;
   
}

.txtAlign h2{
    color: #ffdd00;
    
}

.txtAlign p, .txtAlign a{
    font-family: "FlamaCondensedM";
    color: #ffdd00;
    text-decoration: none;
    font-size: 1.5rem;
}


.fixedButtons{
    position: fixed;
    bottom: 10%;
    right: 3%;
    z-index: 50;
}

.fixedButtons a{
    width: 60px;
    height: 60px;
    display: block;
    border-radius: 50px;
    background-color: #afafaf;
    margin: 10% 0%;
    padding: 15px;
    box-sizing: border-box;
    transition: 0.3s;
}

.fixedButtons a:hover{
    background-color: #8a8a8a;
}

.fixedButtons a img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* RESPONSIVE */

@media only screen and (max-width: 1300px) {
    
    /* RESPONSIVE NAV */
    .contNav{
        width: 85%;
    }



    .styleabs {
        
        font-size: 2rem;
        
    }

    .textBanner p{
        font-size: 3.5rem;
        line-height: 100%;
        margin-bottom: 4%
    }

    .b2 .textBanner img {
        width: 180px;
        object-fit: contain;
    }
    /* RESPONSIVE PRODUCTOS */
    #repuestos{
        height: 350px;
        left: 2%;
    }

    #agricola {
        height: 500px;
        top: -35%;
        right: 0%;
    }
    #pesados {
        top: 0%;
        height: 450px;
    }
    #livianos {
        
        top: 0%;
        height: 400px;
    }


    /* RESPONSIVE CONTACTO */
    .contContact {
        width: 60%;
    }
}

@media only screen and (max-width: 1000px) {
    .catTitle{
        width: 600px;
    }

    /* RESPONSIVE PRODUCTOS */
    
    #agricola {
        height: 426px;
        top: -8%;
        right: 2%;
    }
   
    nav{
        background-position: 80% center;
    }
    .swiper-slide {
        background-position: center center;
    }
}

@media only screen and (max-width: 900px) {
    /* RESPONSIVE NAV */
    nav{
        width: 100%;
    }
    .contNav{
        width: 85%;
        padding: 2% 0%;
    }

    .itemsNav a{
        margin: 0% 2%;
        font-size: 0.9em;
    }

    .logo{
        width: 160px;
    }
    
    /* RESPONSIVE EMPRESA */
    .titleSection {
        font-size: 70px;
        
    }

    #empresa h2 {
        font-size: 30px;
        
    }

    #empresa .contenido p {
        
        font-size: 19px;
        
    }

    .styleabs {
        font-size: 1.5rem;
    }

    /* RESPONSIVE PRODUCTOS */
    .catTitle p {
        
        font-size: 2.5rem;
        
    }


    .contCat{
        width: 100%;
    }


    #agricola {
        width: 100%;
        object-fit: contain;
        top: -23%;
        right: 2%;
        height: auto;
    }

    #livianos {
        height: auto;
        width: 100%;
        object-fit: contain;
    }

    #pesados {
        height: auto;
        width: 100%;
        object-fit: contain;
    }

    .item p{
        font-size: 0.8em;
    }

    .catTitle {
        width: 450px;
    }
    .relativeCat {
        
        min-height: 350px;
    }
}

@media only screen and (max-width: 800px) {
    #empresa{
        width: 90%;
    }
    .textBanner p {
        font-size: 3rem;
        line-height: 100%;
        margin-bottom: 4%;
    }
    .b2 .textBanner img {
        width: 150px;
        object-fit: contain;
    }
    
    #repuestos {
        height: auto;
        width: 100%;
        object-fit: contain;
    }



    #agricola{
        height: 390px;
    }
    
   

    #pesados {
        top: 0%;
        height: 350px;
    }


    #livianos {
        margin-right: 20px;
        height: 300px;
    }

    .relativeCat{
        min-height: 300px;
    }
    .contCat {
        width: 100%;
    }

    .txtAlign p, .txtAlign a{
        font-size: 1em;
    }
    #empresa .contenido p {
        
        line-height: 125%;
    }
}


@media only screen and (max-width: 700px) {
    .logoProductos {
        width: 120px;
    }

/* aca empiza el nav que intente hacer. El boton funciona pero cuando se activa la lista de links aparace el boton detras de los iconos de "redesNAv". Nose porque. */


    .contNav {
        width: 95%;
    }

    .logo {
        width: 130px;
    }

    .itemsNav {
        display: none; /* Oculta los enlaces de navegación por defecto en pantallas pequeñas */
        flex-direction: column;
        width: 100%;
        background-color: none;
        padding: 10px;
        position: relative;
        right: -197px;
    }

    .toggleMenu {
        display: block;
        position: absolute; /* Muestra el botón de toggle en pantallas pequeñas */
        right: 0%;
    }
   
    
    /* Estilos para el botón de toggle */
    .toggleMenu button {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        
    }

    .contNav {
        justify-content: flex-start;
    }

    .redesNav{
        margin-left: 4%;
    }
    
    


    /* Aca termina el boton que intente hacer */
    .swiper{
        height: 500px;
    }
    .swiper-slide{
        background-image: url(../img/banner_1_mobile.png);
        background-size: 100% 100%;
        background-size: cover;
    }
    .b2{
        background-image: url(../img/banner_2_mobile.png);
    }
    .b3{
        background-image: url(../img/banner_3_mobile.png);
    }
    .textBanner, .b2 .textBanner, .b3 .textBanner{
        transform: translate(-50%, 0%);
        left: 50%;
        top: auto;
        bottom: 20%;
        width: 80%;
    }

    .b2 .textBanner{
        background: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(0,0,0,0.19931722689075626) 40%);
    }
    .b3 .textBanner{
        background: transparent;
    }

    .textBanner p {
        font-size: 2.5rem;
    
    }
    /* RESPONSIVE PRODUCTOS */

    .catTitle {
        width: 400px;
    }

    .catTitle p {
        font-size: 2rem;
    }

    .infoCat {
        width: 100%;
        flex-direction: column-reverse;
        align-items: center;
    }

    .relativeCat {
        min-height: auto;
    }

    .relativeCat img {
        position: static;
        transform: none !important;
        height: auto !important;
    }

    .item{
        justify-content: center;
    }


    #empresa .contenido p {
        font-size: 17px;
    }

    .titleSection {
        font-size: 60px;
    }

    #empresa h2 {
        font-size: 27px;
    }

    

    .styleabs {
        font-size: 1.5rem;
    }

    #empresa {
        width: 100%;
    }

    .contenido {
        margin: 2% 5%;
    }

    .item p {
        font-size: 0.7em;
    }
    

    /* RESPONSIVE CONTACTOS */

    .txtAlign p, .txtAlign a{
        font-family: "FlamaCondensedM";
        color: #ffdd00;
        text-decoration: none;
        font-size: 1rem;
    }

    .contContact {
        width: 60%;
    }
}



@media only screen and (max-width: 600px){
    
    

    .absoluteTxt{
        width: 70%;
    }

    #empresa .contenido p {
        font-size: 14px;
        font-family: "FlamaCondensedBook";
    }

    .titleSection {
        font-size: 35px;
    }

    #empresa h2 {
        font-size: 24px;
    }

    .styleabs {
        font-size: 0.9rem;
    }
}

@media only screen and (max-width: 500px){
    

    .logo {
        width: 110px;
    }

    .swiper {
        height: 350px;
    }

    .textBanner p {
        font-size: 2rem;
    
    }
    .b2 .textBanner img {
        width: 120px;
        object-fit: contain;
    }
    .relativeCat{
        width: 60%;
    }
    .titleSection {
        font-size: 30px;
    }
    .redesNav a img {
        width: 22px;
    }
    

    .item p {
        font-size: 0.6em;
    }
    .item img {
        width: 15px;
        height: 15px;
    }
    .catTitle p {
        font-size: 1.8rem;
    }
    .catTitle {
        width: 70%;
    }
    .contContact {
        width: 80%;
       
    }
    .itemsCat {
        width: 100%
    }
    .txtAlign p, .txtAlign a{
        font-size: 0.8rem;
    }

    .styleabs {
        font-size: 0.8rem;
    }
}



 :root {
      --overlay: rgba(0,0,0,.45);
      --bg: #ffffff;
      --accent: #0d6efd;
      --radius: 14px;
    }

    /* Overlay */
    .popup-overlay {
      position: fixed;
      inset: 0;
      background: var(--overlay);
      display: none;               /* oculto por defecto */
      align-items: center;
      justify-content: center;
      z-index: 9999;
    }

    /* Ventana */
    .popup {
      width: min(92vw, 520px);
      background: transparent;
      transform: translateY(10px);
      opacity: 0;
      margin: auto;
      margin-top: 100px;
    }
    .popup:focus {
        outline: none !important; /* Elimina el borde por defecto */
      }

    .popup-header {
      padding: 14px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }
    .popup-title {
      font-size: 1.05rem;
      font-weight: 700;
      margin: 0;
    }
    .popup-close {
      appearance: none;
      border: 0;
      background: transparent;
      color:#ffffff;
      border-radius: 10px;
      padding: 6px 10px;
      cursor: pointer;
      line-height: 1;
      font-weight: 700;
      font-size: 25px;
    }
    .popup-close:hover { background: #e2e8f0; }

    .popup-body {
      padding: 18px;
      font-size: 0.975rem;
      line-height: 1.5;
    }

    .popup-actions {
      padding: 0 18px 18px 18px;
      display: flex;
      justify-content: flex-end;
      gap: 10px;
    }
    .btn {
      appearance: none;
      border: 0;
      border-radius: 10px;
      padding: 10px 14px;
      cursor: pointer;
    }
    .btn-primary { background: var(--accent); color: #fff; }
    .btn-primary:hover { filter: brightness(.92); }

    /* Animaciones simples con jQuery .fadeIn/.fadeOut + pequeñas transiciones */
    .popup.show {
      transform: translateY(0);
      opacity: 1;
      transition: transform .25s ease, opacity .25s ease;
    }

    .btn-apps {
      display: flex;
      flex-direction: column;
      top: 42%;
      right: 35%;
    }
    @media (max-width: 500px){
        .btn-apps {
      top: 42%;
      right: 25%;
    }
    }
/* Hay que ir reduciendo el ancho de a poco y ver donde va fallando la pagina y ajustarlo */