:root {
    --color1: rgb(0, 0, 0);
    --color2: rgb(7, 123, 255);
    --color4: #afafaf;
    --color5: #1d1d1d;
    --color6: #ffffff;
    --titulo: 3.5vw;
    --subtitulos: 1.5vw;
    --parrafos: 1vw;
    --margenes: 60px;
    --espacios: 10px;
    --espacios-contenido: 45px;
    --altura: auto;
}

* {
    padding: 0;
    margin: 0;
    line-height: 1.75;
}

html {
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

main {
    width: 100%;
}

.body:-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.body:-webkit-scrollbar-track {
    background-color: transparent;
    border-radius: 10px;
}

.body:-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}


/*menu*/

nav {
    width: 100%;
    height: 70px;
    position: fixed;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);
    z-index: 100;
    -webkit-text-stroke: .1px rgb(0, 0, 0);
    color: #ffffff;
}

.nav1 {
    background-color: #1d1d1d34;
    height: 80px;
    color: #ffffff;
    z-index: 100;
}

.nav2 {
    background: rgb(48, 48, 48);
    height: 85px;
    color: var(--color6);
    z-index: 100;
}

.contenedor-nav {
    display: flex;
    margin: auto;
    width: 90%;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    height: inherit;
    overflow: hidden;
    z-index: 100;
}

nav .enlaces a {
    display: inline-block;
    padding: 5px 0;
    margin-right: 17px;
    font-size: 18px;
    font-weight: 300;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    color: inherit;
    z-index: 100;
}

nav .enlaces a:hover {
    border-bottom: 3px solid var(--color2);
    transition: 0.6s;
    cursor: pointer;
    z-index: 100;
}

.logo,
.logo img {
    height: 100px;
}

.icono {
    display: none;
    font-size: 26px;
    padding: 23.5px 20px;
}

.preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-image: url('../images/default.gif');
    background-color: rgb(63, 63, 63);
    justify-content: center;
}


/*banner*/

.inicio {
    height: 100vh;
    width: 100%;
}

.banner {
    height: 100vh;
    width: 100%;
    position: center;
    background-color: var(--color6);
    background-size: cover;
    object-fit: cover;
    z-index: 10;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.712);
    background-image: url('./Imagenes/baner1.png');
    animation: movimientobanner 20s infinite linear alternate;
    display: flex;
    align-items: center;
    border-radius: 10px;
}


/*
@keyframes movimientobanner {
    form {
        background-position: top;
    }
    to {
        background-position: bottom;
    }
    0% {
        background-image: url('Imagenes/baner1.jpg');
    }
    16% {
        background-image: url('Imagenes/baner1.jpg');
    }
    17% {
        background-image: url('Imagenes/baner2.jpg');
    }
    33% {
        background-image: url('Imagenes/baner2.jpg');
    }
    34% {
        background-image: url('Imagenes/baner3.jpg');
    }
    49% {
        background-image: url('Imagenes/baner3.jpg');
    }
    50% {
        background-image: url('Imagenes/baner4.jpg');
    }
    66% {
        background-image: url('Imagenes/baner4.jpg');
    }
    67% {
        background-image: url('Imagenes/baner5.jpg');
    }
    83% {
        background-image: url('Imagenes/baner5.jpg');
    }
    84% {
        background-image: url('Imagenes/baner6.jpg');
    }
    100% {
        background-image: url('Imagenes/baner6.jpg');
    }
}
*/

.logoab {
    margin-right: 10%;
    width: 30%;
}

.logoab img {
    height: 100%;
    width: 100%;
}


/*Portada*/


/*main*/

.iconos {
    width: 100%;
    height: 30vh;
    background-color: #006eff00;
    bottom: 0px;
    position: absolute;
    /*  box-shadow: 0 0 10px 0 rgba(0, 0, 0, .5);*/
}

.contenedor {
    height: 30vh;
    width: 100%;
    text-align: center;
    overflow: hidden;
    display: flex;
}

.contenedor-iconos {
    width: 40%;
    height: auto;
    margin: 10px;
    justify-content: space-between;
    text-align: center;
    background-color: #272727de;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.712);
}

.contenedor-iconos:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.contenedor-iconos .iconos-individual {
    width: 30%;
    margin: 50%;
}

.contenedor-iconos img {
    width: 20%;
    height: 20%;
}

.iconos h3 {
    font-size: 2.5vh;
    color: #ffffff;
}

.iconos p {
    font-size: var(--parrafos);
    color: #ffffff;
}

main .portafolio {
    padding: 6% 0;
}


/*tablas de medidas*/


/*COMERCIAL*/


/* Contenedor principal */

.productos {
    width: 100%;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 4px 20px rgb(0 0 0 / 0.1);
}


/* Título principal */

.productos>.nuestros-productos>h1 {
    font-family: 'Baloo Tammudu 2';
    text-align: center;
    font-size: 8vh;
    margin-top: 40px;
    margin-bottom: 40px;
    color: #222222;
    /* Azul oscuro */
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* Categorías */

.producto-categoria {
    border-radius: 10px;
    margin-bottom: 40px;
    border-left: 5px solid #272727;
    padding-left: 20px;
    overflow-y: auto;
    /* Hace que el div tenga scroll interno */
    /* para efecto parallax básico */
    background-position: center center;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.712);
}

#aceros-carbon {
    background-image: url('./Imagenes/fotos_comercial/comercial3.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

#aceros-inox {
    background-image: url('./Imagenes/fotos_inox/comercial.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

#aceros-especiales {
    background-image: url('./Imagenes/fotos_espe/1018.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

#plasticos-industriales {
    background-image: url('./Imagenes/fotos_plasticos/nylacero.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.producto-categoria h2 {
    text-align: center;
    font-family: 'Baloo Tammudu 2';
    font-size: 7vh;
    color: #ffffff;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.producto-categoria h2:hover {
    color: #1976d2;
}


/* Lista de productos */

.productos-lista {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}


/* Subcategorías individuales */

.producto-subcategoria {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.712);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.producto-subcategoria:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgb(0 0 0 / 0.15);
}

.producto-subcategoria h3 {
    font-family: 'Baloo Tammudu 2';
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.4rem;
    border-bottom: 2px solid #1976d2;
    padding-bottom: 6px;
}


/* Texto de descripción */

.producto-subcategoria p {
    font-size: 1rem;
    color: #ffffff;
    white-space: pre-line;
    /* Para respetar los saltos de línea <br> */
}


/* Responsive */

@media (max-width: 768px) {
    .productos {
        padding: 20px 15px;
    }
    .producto-categoria h2 {
        font-size: 1.6rem;
    }
    .producto-subcategoria h3 {
        font-size: 1.2rem;
    }
}


/*descarga de pdf*/

.catalogo {
    height: 100vh;
    width: 100%;
    position: relative;
    background-image: url('Imagenes/catalogo.jpg');
    object-fit: cover;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.712);
    display: flex;
    align-items: center;
}

.catalogopdf {
    display: none;
    margin-left: 10%;
}

.descargar h1 {
    font-family: 'Baloo Tammudu 2';
    color: var(--color5);
    font-size: var(--titulo);
    text-align: left;
}

.descargar h2 {
    width: 40%;
    font-family: 'Secular One', sans-serif;
    color: var(--color5);
    font-size: var(--subtitulos);
    text-align: left;
}

.botondescarga {
    font-family: Arial, Helvetica, sans-serif;
    font-size: var(--subtitulos);
    text-align: center;
    border-width: 5px;
    border-style: solid;
    border-color: var(--color2);
    height: 8%;
    width: 30%;
    color: var(--color2);
    background-color: var(--color6)f;
    border-radius: 15px;
}

.botondescarga:hover {
    color: var(--color6);
    background-color: var(--color2);
    text-decoration: none;
    border-color: var(--color6);
    cursor: pointer;
}


/*nosotros*/

.quinessomos {
    width: 100%;
    height: 100vh;
    position: relative;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.712);
    background-color: var(--color6);
    background-image: url('Imagenes/nosotros.png');
    object-fit: cover;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.slide-content h1 {
    margin-right: 10%;
    margin-bottom: 20px;
    font-family: 'Baloo Tammudu 2';
    color: var(--color5);
    font-size: var(--titulo);
}

.slide-content h2 {
    margin-bottom: var(--subtitulos);
    font-family: 'Secular One', sans-serif;
    color: var(--color5);
    font-size: 1;
    text-align: right;
    margin-right: 10%;
}

.slide-content p {
    width: 40%;
    float: right;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--color5);
    font-size: 1vw;
    text-align: justify;
    position: right;
    margin-right: 10%;
}

#slider {
    margin: 0 auto;
    max-width: 100%;
    text-align: right;
}

#slider input[type=radio] {
    display: none;
}

#slider label {
    cursor: pointer;
    text-decoration: none;
}

#slides {
    padding: 10px;
    position: relative;
    z-index: 1;
}

#overflow {
    width: 100%;
    overflow: hidden;
}

#slide1:checked~#slides .inner {
    margin-left: 0;
}

#slide2:checked~#slides .inner {
    margin-left: -100%;
}

#slide3:checked~#slides .inner {
    margin-left: -200%;
}

#slide4:checked~#slides .inner {
    margin-left: -300%;
}

#slides .inner {
    transition: margin-left 800ms cubic-bezier(0.770, 0.000, 0.175, 1.000);
    width: 400%;
    line-height: 0;
    height: 80%;
}

#slides .slide {
    width: 25%;
    float: left;
    display: block;
    height: 100%;
}

#slides .slide_1 {}

#slides .slide_2 {}

#slides .slide_3 {}

#slides .slide_4 {}

.slide-content {
    padding: 10px;
}

#controls {
    margin: -130px 0 0 0;
    width: 100%;
    height: 50px;
    z-index: 3;
    position: relative;
}

#controls label {
    transition: opacity 0.2s ease-out;
    display: none;
    width: 50px;
    height: 50px;
    opacity: .4;
}

#controls label hover {
    opacity: 1;
}

#slide1:checked~#controls label:nth-child(2),
#slide2:checked~#controls label:nth-child(3),
#slide3:checked~#controls label:nth-child(4),
#slide4:checked~#controls label:nth-child(1) {
    background: url(/Imagenes/flechad.png)no-repeat;
    float: right;
    margin: 0 - 50px 0 0;
    display: block;
}

#slide1:checked~#controls label:nth-last-child(2),
#slide2:checked~#controls label:nth-last-child(3),
#slide3:checked~#controls label:nth-last-child(4),
#slide4:checked~#controls label:nth-last-child(1) {
    background: url(/Imagenes/flechai.png)no-repeat;
    float: left;
    margin: 0 0 0 - 50px;
    display: block;
}

#bullets {
    margin: 100px 0 0;
    text-align: center;
}

#bullets label {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    background: #ccc;
    margin: 0 10px;
}

#slide1:checked~#bullets label:nth-child(1),
#slide2:checked~#bullets label:nth-child(2),
#slide3:checked~#bullets label:nth-child(3),
#slide4:checked~#bullets label:nth-child(4) {
    background: #444;
}

@media screen and (max-width:900px) {
    #slide1:checked~#controls label:nth-child(2),
    #slide2:checked~#controls label:nth-child(3),
    #slide3:checked~#controls label:nth-child(4),
    #slide4:checked~#controls label:nth-child(1),
    #slide1:checked~#controls label:nth-child(2),
    #slide2:checked~#controls label:nth-child(3),
    #slide3:checked~#controls label:nth-child(4),
    #slide4:checked~#controls label:nth-child(1) {
        margin: 0;
    }
}


/*Infrestuctura*/

.infrestructura {
    height: 100vh;
    width: 100%;
    position: relative;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.712);
}

#infrestructura {
    display: flex;
    background-color: #031625;
}

.item {
    transform: translate3d(0, 0, 0);
    position: relative;
    width: 25%;
    height: 100%;
    min-height: 100%;
    color: var(--color6);
    overflow: hidden;
    transition: width 0.5s ease;
}

#historia:hover .item {
    width: 23.3333%;
}

.item:before,
.item:after {
    transform: translate3d(0, 0, 0);
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.item:after {
    background-color: rgba(3, 22, 37, 0.85);
    opacity: 1;
    transition: opacity 0.5s ease;
}

.item:before {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0)0%, rgba(0, 0, 0, 1)75%);
    z-index: 1;
    opacity: 0;
    transform: translate3d(0, 0, 0) translateY(30%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.item:hover {
    width: 30% !important;
}

.item:hover:after {
    opacity: 0;
}

.item:hover:before {
    opacity: 1;
    transform: translate3d(0, 0, 0) translateY(0);
    transition: opacity 1s ease, transform 1s ease 0.25s;
}

.item_bg {
    transform: translate3d(0, 0, 0);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    transition: filter 0.5s ease;
    filter: grayscale(100%);
}

#animemontacragas {
    animation: montacargas 28s infinite linear;
}

#animegrua {
    animation: grua 28s infinite linear;
}

#animeunidades {
    animation: unidad 28s infinite linear;
}

#animealmacen {
    animation: almacen 28s infinite linear;
}

@keyframes montacargas {
    0% {
        background-image: url('Imagenes/montacargas/montacargas.jpg');
    }
    25% {
        background-image: url('Imagenes/montacargas/montacargas.jpg');
    }
    26% {
        background-image: url('Imagenes/montacargas/montacargas1.jpg');
    }
    50% {
        background-image: url('Imagenes/montacargas/montacargas1.jpg');
    }
    51% {
        background-image: url('Imagenes/montacargas/montacargas2.jpg');
    }
    75% {
        background-image: url('Imagenes/montacargas/montacargas2.jpg');
    }
    76% {
        background-image: url('Imagenes/montacargas/montacargas3.jpg');
    }
    100% {
        background-image: url('Imagenes/montacargas/montacargas3.jpg');
    }
}

@keyframes grua {
    0% {
        background-image: url('Imagenes/grua/grua.jpg');
    }
    25% {
        background-image: url('Imagenes/grua/grua.jpg');
    }
    26% {
        background-image: url('Imagenes/grua/grua1.jpg');
    }
    50% {
        background-image: url('Imagenes/grua/grua1.jpg');
    }
    51% {
        background-image: url('Imagenes/grua/grua2.jpg');
    }
    75% {
        background-image: url('Imagenes/grua/grua2.jpg');
    }
    76% {
        background-image: url('Imagenes/grua/grua3.jpg');
    }
    100% {
        background-image: url('Imagenes/grua/grua3.jpg');
    }
}

@keyframes unidad {
    0% {
        background-image: url('Imagenes/unidades/unidad.jpg');
    }
    25% {
        background-image: url('Imagenes/unidades/unidad.jpg');
    }
    26% {
        background-image: url('Imagenes/unidades/unidad1.jpg');
    }
    50% {
        background-image: url('Imagenes/unidades/unidad1.jpg');
    }
    51% {
        background-image: url('Imagenes/unidades/unidad2.jpg');
    }
    75% {
        background-image: url('Imagenes/unidades/unidad2.jpg');
    }
    76% {
        background-image: url('Imagenes/unidades/unidad3.jpg');
    }
    100% {
        background-image: url('Imagenes/unidades/unidad3.jpg');
    }
}

@keyframes almacen {
    0% {
        background-image: url('Imagenes/almacenes/almacen.jpg');
    }
    25% {
        background-image: url('Imagenes/almacenes/almacen.jpg');
    }
    26% {
        background-image: url('Imagenes/almacenes/almacen1.jpg');
    }
    50% {
        background-image: url('Imagenes/almacenes/almacen1.jpg');
    }
    51% {
        background-image: url('Imagenes/almacenes/almacen2.jpg');
    }
    75% {
        background-image: url('Imagenes/almacenes/almacen2.jpg');
    }
    76% {
        background-image: url('Imagenes/almacenes/almacen3.jpg');
    }
    100% {
        background-image: url('Imagenes/almacenes/almacen3.jpg');
    }
}

.item:hover .item_bg {
    filter: grayscale(0);
}

.year {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    border-top: 1px solid var(--color6);
    border-bottom: 1px solid var(--color6);
}

.year p {
    font-size: var(--subtitulos);
    text-align: center;
}

.content {
    transform: translate3d(0, 0, 0) translateY(30px);
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0 1.618em;
    top: 55%;
    opacity: 0;
}

.item:hover .content {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.75s ease 0.5s;
}

.content p {
    text-transform: uppercase;
    color: var(--color6);
    font-size: var(--parrafos);
}


/*contacto*/

.contacto {
    height: 120vh;
    width: 100%;
    position: relative;
    background-color: var(--color6);
    background-size: cover;
    background-position: cover;
    background-image: url('Imagenes/contactos.jpg');
    object-fit: cover;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.712);
}

.contenedor-contacto {
    width: 100%;
    height: 120vh;
    background-color: rgba(0, 22, 40, .6);
}

.contenedor-contacto h1 {
    height: 20%;
    font-size: var(--titulo);
    font-family: 'Baloo Tammudu 2';
    color: var(--color6);
    text-align: center;
}

.contactogeneral {
    display: flex;
    justify-content: center;
}

.numerostel {
    padding: 3%;
    width: auto;
    background-color: #0066ff;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.712);
}

.numerostel h1 {
    text-align: center;
    font-size: var(--subtitulos);
    font-family: 'Baloo Tammudu 2';
    color: var(--color6);
}

.numerostel h2 {
    text-align: center;
    font-size: var(--subtitulos);
    font-family: 'Baloo Tammudu 2';
    color: var(--color6);
}

.redes img {
    justify-content: center;
    width: 100px;
    height: 86px;
}

.enviarcotizacion {
    width: auto;
    height: 100%;
    padding: 3%;
    border-right: 10px;
    background-color: #ffffff;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.712);
}

.enviarcotizacion h1 {
    color: #1d1d1d;
    font-size: var(--subtitulos);
    font-family: 'Baloo Tammudu 2';
}

.enviarcotizacion label {
    color: var(--color5);
    font-size: var(--parrafos);
}

.enviarcotizacion {
    color: var(--color5);
}

.redes {
    display: flex;
    justify-content: center;
}

.pie {
    width: 100%;
    height: 15px;
    background-color: var(--color5);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.712);
    padding: 0%;
}

.pie h1 {
    color: var(--color6);
    text-align: center;
    font-size: 10px;
    font-family: Arial, Helvetica, sans-serif;
}

@media only screen and (max-width: 900px) {
     :root {
        --titulo: 8vw;
        --subtitulos: 5vw;
        --parrafos: 12px;
    }
    .nav1,
    .nav2 {
        height: auto;
    }
    .inicio {
        height: 500px;
    }
    .banner {
        height: 500px;
    }
    .iconos {
        display: none;
        height: 300px;
    }
    .contenedor {
        height: 300px;
        width: 100%;
    }
    .productos {
        height: 500px;
        background-position: right;
    }
    .nuestros-productos {
        display: block;
        color: #ffffff;
        width: 100%;
        -webkit-text-stroke: .4px rgb(255, 255, 255);
    }
    .nuestros-productos h2:hover {
        color: #006eff;
        font-size: var(--subtitulos);
    }
    .catalogo {
        height: 500px;
        background-position: center;
    }
    .catalogopdf {
        display: block;
        width: 100%;
    }
    .descargar h1 {
        -webkit-text-stroke: .4px rgb(255, 255, 255)
    }
    .descargar h2 {
        width: 80%;
    }
    .botondescarga {
        min-width: 200px;
    }
    .infrestructura {
        height: 600px;
    }
    .item:hover {
        width: 70% !important;
    }
    .enviarcotizacion label {
        justify-content: center;
    }
    .contactogeneral {
        display: block;
    }
    .numerostel h1 {
        font-size: 20px;
    }
    .numerostel h2 {
        font-size: 15px;
    }
}