body{
    background-image: url("../img/textura.jpg");
    background-repeat: repeat;
    background-position: center;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

div, body, header, nav, ul, footer{
    box-sizing: border-box;
}

.main-wrapper, header, footer{
    width: 100%;
}

h1, h2, h3, h4, h5, h6{
    overflow-wrap: break-word;
}

p{
    overflow-wrap: break-word;
}

*{
    box-sizing: border-box;
    text-decoration: none;
}

header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

header{
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}

/*Barra Menú*/

.container-menu {
    width: 100%;
    height: 70px;
    background-color: #001689;
    box-shadow: 0 0 10px 0 #000;
    padding: 0px 20px;
}

.menu {
    margin: auto;
    height: 100%;
}

.menu nav {
	width: 100vw;
    height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.menu nav > ul {
    height: 100%;
    display: flex;
    justify-content: center;
	align-items: center;
}

.menu nav  ul  li {
    height: 100%;
    position: relative;
    list-style: none;
}

.menu nav > ul > li:first-child > a {
    width: 100px;
    background-image: url(../img/logos-hahn/hahn-logo-menu2.png);
    background-size: 100px;
    background-repeat: no-repeat;
    background-position: center center;
}

.menu nav > ul > li:first-child:hover > a {
    width: 100px;
    background-image: url(../img/logos-hahn/hahn-logo-menu2.png);
    background-size: 100px;
    background-repeat: no-repeat;
    background-position: center center;
}

.menu nav > ul > li > a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0 20px;
    color: #fff;
    font-size: 0.9rem;
    transition: all 300ms ease;
}

.menu nav > ul > li > a:hover {
    transform: scale(1.1);
    background: #0002;
    border-radius: 10px;
    box-shadow:  0 0 10px #000;
}

/*Submenu*/

.menu nav > ul > li > ul {
    width: 230px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    position: absolute;
    top: 90px;
    left: -5px;
    padding: 15px 15px;
    visibility: hidden;
    opacity: 0;
    box-shadow:  0 0 10px #000;
    z-index: 10;
    transition: all 300ms ease;
}

.menu nav > ul > li:hover > ul {
    visibility: visible;
    opacity: 1;
    top: 70px;
}

.menu nav > ul > li > ul:before {
    content: "";
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 12px solid #fff;
    position: absolute;
    top: -12px;
    left: 40px;
}

.menu nav > ul > li > ul > li > a {
    display: block;
    color: #808080;
    padding: 4px;
    padding-left: 14px;
    margin-top: 5px;
    font-size: 0.7rem;
    transition: all 300ms ease;
}

.menu nav > ul > li > ul > li > a:hover {
    background: #ffcd00;
    color: #001689;
    transform: scale(1.1);
    padding-left: 20px;
    font-size: 0.7rem;
    box-shadow:  0 0 10px #000;
}

/*Submenu-2*/

.menu nav ul li ul li {
    position: relative;
}

.menu nav ul li ul li .submenu-2 {
    position: absolute;
    top: 0;
    left: 210px; /* la anchura de tu submenú padre */
    width: 210px; /*la anchura del submenú hijo*/
    visibility: hidden;
    opacity: 0;
    background: #fff;
    border-radius: 10px;
    padding: 20px 0px;
    box-shadow: 0 0 10px #000;
    transition: all 300ms ease;
    z-index: 10;
}

.menu nav ul li ul li:hover .submenu-2 {
    visibility: visible;
    opacity: 1;
}

.menu nav ul li ul li .submenu-2 li a {
    padding: 4px 8px;
    color: #808080;
    font-size: 0.7rem;
    transition: all 300ms ease;
    display: block;
}

.menu nav ul li ul li .submenu-2 li a:hover {
    background: #001689;
    color: #ffcd00;
    transform: scale(1);
    padding-left: 20px;
    box-shadow: 0 0 10px #000;
}

.submenu-2 {
    position: relative;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.menu-icon .line {
    width: 30px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

#menu-toggle {
    display: none;
}

#menu-toggle + .menu-icon {
    height: 100vh;
    top: 15px; 
}

/*Elementos Responsivos Menú*/

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

    /*Menú*/

    .menu nav > ul {
        flex-direction: column;
        align-items: first baseline;
        background-color: #001689;;
        position: fixed;
        left: 0;
        top: 50px;
        width: 100%;
        height: 300px;
        transition: all 300ms ease;
        z-index: 100;
        opacity: 0;
        visibility: hidden;
    }

    .menu-icon {
        display: flex;
    }

    .menu nav ul li ul {
        left: 70px;
    }

    .menu nav ul li:hover ul {
        top: 50px;
    }

    #menu-toggle:checked + .menu-icon {
        height: 100vh;
        top: 15px;
    }

    #menu-toggle:checked + .menu-icon .line:nth-child(1) {
        transform: rotate(45deg) translate(15px, 3px);
    }

    #menu-toggle:checked + .menu-icon .line:nth-child(2) {
        transform: scale(0);
    }

    #menu-toggle:checked + .menu-icon .line:nth-child(3) {
        transform: rotate(-45deg) translate(15px, -3px);
    }

    #menu-toggle:checked ~nav > ul {
        height: 300px;
        visibility: visible;
        opacity: 1;
    }
}

/* Main Section */

.main-wrapper{
    max-width: 1280px;
    display: flex;
    margin-top: 70px;
    flex-grow: 1;
}

main {
    box-sizing: border-box;
    width: 1100px;
}

h1{
    font-weight: 700;
    font-size: 1.5rem;
    font-style: italic;
    color: #4A4A49;
}

h2{
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    font-style: italic;
    color: #4A4A49;
}

.reflex {
    font-weight: 600;
    font-size: 1.2rem;
    text-align: center;
    font-style: italic;
    color: #001689;
}

.align-left {
    text-align: left;
    font-size: 1.1rem;
}

.align-left-blanco {
    text-align: left;
    font-size: 1.1rem;
    color: #fff;
    margin-left: 20px;
}

.align-left-blanco-2 {
    text-align: left;
    font-size: 1.5rem;
    color: #fff;
    margin-left: 20px;
}

.balazo-ventajas {
    margin-top: 10px;
    margin-bottom: 10px;
}

h3{
    font-weight: 700;
    font-size: 1.2rem;
    text-align: left;
    color: #001689;
}

h4{
    font-weight: 600;
    font-size: 0.7rem;
    color: #fff;
}

h5{
    font-weight: 600;
    font-size: 1.3rem;
    text-align: center;
    color: #001689;
    background-color: #ffcd00;
    border-radius: 5px;
    box-shadow: 0 0 10px 0 #005;
}

p{
    font-weight: 400;
    font-size: 1rem;
    text-align: justify;
    line-height: 1.3rem;
    color: #4A4A49;
}

.texto-blanco {
    font-weight: 400;
    font-size: 0.9rem;
    text-align: justify;
    line-height: 1.3rem;
    color: #fff;
    margin-left: 20px;
    margin-right: 20px;
}

.balazo-inicial {
    font-weight: 700;
    font-size: 0.9rem;
    font-style: italic;
    color: #001689;
    text-align: justify;
    line-height: 1.3rem;
}

.balazo-secundario {
    font-weight: 600;
    font-size: 0.9rem;
    font-style: italic;
    color: #4A4A49;
    text-align: justify;
    line-height: 1.3rem;
}

.texto-rojo-bold {
    font-weight: 600;
    font-size: 0.9rem;
    color: #e30613;
    text-align: justify;
    line-height: 1.3rem;
}

.texto-encabezado{
    font-weight: 700;
    text-align: left;
    font-size: 1.5rem;
    font-style: italic;
    color: #4A4A49;
}

table{
    width: 100%;
    margin: auto;
}

th{
    font-weight: 400;
    font-size: 0.8rem;
    color: #001689;
    background-color: #ffcd00;
    border-radius: 4px;
}

.azul {
    font-size: 0.8rem;
    color: #fff;
    background-color: #001689;
    border-radius: 4px;
}

td{
    font-weight: 300;
    font-size: 0.8rem;
    color: #4A4A49;
    background-color: #fff;
    text-align: center;
}

.logo-circular {
    width: 200px;
}

.logo-superior {
    margin-left: 10px;
    width: 150px;
}

.logo-trucks {
width: 200px;
margin-left: 25px;
}

.encabezado-principal {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    gap: 10px;
    width: 790px;
}

.encabezado {
    box-sizing: border-box;
    width: 370px;
}

.encabezado img {
    width: 370px;
}

.cuadro-gris {
    box-sizing: border-box;
    display: block;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 790px;
    border-radius: 8px;
    background-color: #0006;
    box-shadow: 0 0 10px 0 #000;
}

.cuadro-gris img {
    width: 750px;
    margin-left: 20px;
}

.intro-metaltrak {
    width: 800;
    height: 470px;
    background-image: url("../img/puertas-enrollables/metaltrak/metaltrak-principal.png");
}

.metaltrak-1 {
    width: 500px;
    margin-left: 20px;
}

.metaltrak-2 {
    width: 250px;
    margin-right: 10px;
    margin-top: 10px;
}

.metaltrak-2 img {
    width: 250px;
}

.ventajas-herramientas {
    width: 800px;
    height: 275px;
    background-image: url("../img/puertas-enrollables/herramientas/balazo-background.png");
}

.ventajas-hm {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    height: auto;
    width: 760px;
}

.ventajas {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center ;
    height: auto;
    width: 230px;
    margin-bottom: 12px;
    margin-left: 15px;
}

.vm img {
    width: 35px;
    margin: 2px;
}

.vt p {
    width: 190px;
    height: auto;
    margin: 2px;
    text-align: left;
}

.triple-columna {
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    height: auto;
    gap: 10px;
    width: 1100px;
}

.columna {
    box-sizing: border-box;
    display: block;
    width: 33%;
}

.columna img {
    width: 380px;
}

.imagen-intro {
    width: 790px;
}

.gray{
    background-color: #ededed;
}

.text-aside{
    font-weight: 500;
    font-size: 1rem;
    font-style: italic;
    text-align: center;
    line-height: 1.3rem;
}

aside, main{
    padding: 10px 20px;
}

.main-wrapper aside{
    flex-grow: 1;
}

/*Menu Vertical*/

.secondary-navbar {
    width: 150px;
    margin-top: 50px;
}

.secondary-menu ul {
    width: 150px;
    background-color: #001689;
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 #000;
}

.secondary-menu ul li {
    position: relative; /* para el flujo y hover del submenú */
}

/* Enlaces principales */
.secondary-menu ul li a {
    box-sizing: border-box;
    color: #fff;
    display: block;
    font-size: 0.8rem;
    width: 100%;
    padding: 6px 12px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

/* Estilo al pasar sobre elementos principales */
.secondary-menu nav > ul > li > a:hover {
    transform: scale(1.1);
    background: #0002;
    border-radius: 10px;
    box-shadow: 0 0 10px #000;
}

/* Estilo para los submenús en flujo normal (apilados verticalmente) */
.secondary-menu ul ul {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    margin-left: 10px; /* opcional: un pequeño margen para distinguir */
    padding-left: 10px; /* espacio en los subenlaces */
}

/* Cuando pasas sobre el elemento principal con submenú, se despliega el submenú */
.secondary-menu ul li:hover > ul {
    max-height: 600px;
    opacity: 1;
    overflow: visible;
}

/* Estilo para los enlaces dentro del submenú */
.secondary-menu ul ul a {
    color: #4A4A49;
    background-color: #fff;
    padding: 6px 12px;
    cursor: pointer; /* cursor para indicar que son interactivos */
    transition: background-color 0.2s, box-shadow 0.2s;
}

/* Estilo en hover de los enlaces del submenú */
.secondary-menu ul ul a:hover {
    color: #001689;
    background-color: #ffcd00; /* color al pasar el cursor */
    box-shadow: inset 0 0 3px rgba(0,0,0,0.2);
}

/* Tercer Espacio del Main Wrapper*/

.datos{
    box-sizing: border-box;
    width: 210px;
    background-color: #ffcd00;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 #000;
    margin-top: 30px;
    padding-bottom: 20px;
}

.botones-trucks {
    box-sizing: border-box;
    margin-left: 25px;
    width: 210px;
    display: block;
    margin-top: 30px;
    justify-content: center;
    align-items: center;
}

.boton {
    box-sizing: border-box;
    width: 200px;
    height: auto;
    margin-top: 30px;
    background-color: #001689;
    box-shadow: 0 0 10px 0 #000;
    border-radius: 10px;
    border: 3px solid #e30613;
    padding: 10px;
}

.boton a {
    display: block;
    font-family: "Montserrat";
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.boton a:hover {
    transform: scale(1.1);
    background: #0002;
    border-radius: 10px;
    box-shadow: 0 0 10px #000;

}

/* Footer */

footer{
    margin-top: auto;
    background-color: #333;
    padding-left: 25%;
    width: 100%;
    height: 130px;
    text-align: center;
}


.footer{
    width: 500px;
    display: block;
    float: left;
    height: 100px;
    padding: 50px;
}

.siguenos{
    font-size: 1rem;
    color: #fff;
}

.footer-1{
    width: 500px;
    display: block;
    float: left;
    height: 90px;
}

.iconos{
    margin: 20px;
    width: 30px;
    transition: all 300ms ease;
}

/* Fin Footer*/
@media screen and (max-width: 1280px){
    footer{
        padding-left: 12.5%;
    }
}

@media screen and (max-width: 600px) {
    .main-wrapper{
        flex-direction: column;
    }
    .logo{
        margin-left: 20px;
        width: 400px;
    }
    .img-principal{
        margin-left: 20px;
        width: 400px;
    }
    footer{
        height: 260px;
        padding: initial;
    }
    h4{
        display: none;
    }
}