/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #f0f2f5;
    background-color: #000;
}

html {
    scroll-behavior: smooth;
}

/* Encabezado */
.main-header {
    background: #000;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

.logo-wrapper a.logo-aceros-leon img {
    height: 70px;
    margin-right: 5px;
}

.logo-wrapper a.logo-grupo-king img {
    height: 70px;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #FFD700;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #f0f2f5;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: #FFD700;
}

/* Enlace de Descarga de Catálogo */
.catalogo-link {
    text-align: center;
    text-decoration: none;
    background-color: #FFD700;
    color: #000;
    padding: 0.8rem 1.5rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.catalogo-link:hover {
    background-color: #B8860B;
}

/* Sección Hero con video de fondo */
.hero-section {
    position: relative;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content {
    position: relative;
    padding: 2rem;
    background: rgba(0,0,0,0.5);
    border-radius: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: #FFD700;
    color: #000;
    padding: 0.8rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #B8860B;
    transform: scale(1.05);
}

/* Secciones de contenido */
.main-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.products-section, .services-section {
    background-color: #111;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #FFD700;
}

.product-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-item, .service-item {
    background-color: #222;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.product-item:hover, .service-item:hover {
    transform: translateY(-10px);
}

.product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.product-item h3, .service-item h3 {
    color: #FFD700;
    margin-bottom: 0.5rem;
}

/* Pie de página */
.main-footer {
    background-color: #111;
    color: #f0f2f5;
    padding: 3rem 2rem;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.footer-section h3 {
    color: #FFD700;
    margin-bottom: 1rem;
}

.footer-section a img {
    height: 30px;
    margin-right: 10px;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #444;
}

/* Botón de WhatsApp flotante */
.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-button img {
    width: 35px;
    height: 35px;
}

.whatsapp-button:hover {
    transform: scale(1.1);
}

/* --- Media Queries para móviles --- */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .main-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1rem 0.5rem;
    }
    
    .logo-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .logo-wrapper {
        flex-direction: row;
        align-items: center;
    }

    .logo-wrapper a.logo-aceros-leon img {
        height: 55px;
        margin-right: 10px;
    }
    
    .logo-wrapper a.logo-grupo-king img {
        height: 55px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #000;
        transform: translateX(-100%);
        transition: transform 0.4s ease-in-out;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        height: 100%;
    }

    .main-nav ul li {
        margin: 1.5rem 0;
    }

    .main-nav.nav-active {
        transform: translateX(0);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .main-content {
        padding: 0 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }
    
    .products-section, .services-section {
        background-color: #111;
    }

    .product-grid, .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .catalogo-link {
        display: block;
        margin: 1rem auto;
        width: 90%;
    }
}









