/* --- Configuración General (Reset) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #fff;
    overflow-x: hidden; /* Evita scroll horizontal no deseado */
}

/* --- 1. Barra de Navegación (Estilos Arreglados) --- */
.navbar {
    width: 100%;
    background: white;
    border-bottom: 1px solid #eee;
    position: fixed; /* Mantiene la barra fija arriba */
    top: 0;
    left: 0;
    z-index: 1000; /* Asegura que esté por encima de TODO */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1400px; /* Contenedor para que no se pegue a los bordes en pantallas enormes */
    margin: 0 auto;
}

.logo {
    font-family: 'Archivo Black', sans-serif;
    font-size: 24px;
    letter-spacing: -1px;
    color: #000;
}

.nav-links ul {
    display: flex;
    list-style: none;
    gap: 20px; /* Espacio entre enlaces */
}

.nav-links ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links ul li a:hover {
    color: #707072;
}

.icons {
    display: flex;
    gap: 15px;
    font-size: 18px;
    cursor: pointer;
}

/* --- 2. Sección Hero (Arreglada: Video de extremo a extremo) --- */
.hero {
    width: 100%;
    height: 100vh; /* Ocupa el 100% de la altura de la ventana */
    position: relative; /* Contenedor de referencia para el video absoluto */
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el contenido */
    color: white;
    margin-top: 60px; /* Margen para que no se meta detrás de la navbar fija */
    overflow: hidden; /* Corta lo que sobre del video */
}

/* Solución para el video de extremo a extremo exacto */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Clave: el video cubre todo sin deformarse */
    z-index: -2; /* Envía el video al fondo, detrás de la overlay y el texto */
}

/* Capa oscura (Overlay) para legibilidad del texto */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Capa negra al 40% de opacidad */
    z-index: -1; /* Entre el video y el texto */
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    z-index: 1; /* Asegura que el texto esté al frente */
}

.hero-content h1 {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(40px, 8vw, 70px); /* Tamaño responsivo */
    line-height: 0.9;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.hero-btns .btn-main {
    display: inline-block;
    background: white;
    color: black;
    padding: 12px 28px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

.hero-btns .btn-main:hover {
    background: #e5e5e5;
}

/* --- 3. Sección de Productos (Corregida: ABAJO del video) --- */
.products {
    width: 100%;
    padding: 60px 0;
    background-color: #fff;
    position: relative;
    z-index: 10; /* Asegura que esta sección no se meta detrás del video */
}

.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.products h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 28px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Grilla responsiva */
    gap: 30px;
}

.product-card {
    cursor: pointer;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px); /* Pequeño efecto al pasar el mouse */
}

.product-card img {
    width: 100%;
    height: auto;
    background-color: #f5f5f5;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-card p {
    color: #707072;
    font-size: 15px;
}