/* 1. Configuración General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Evita scroll horizontal innecesario */
}

/* 2. Navegación (Navbar) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: absolute;
    width: 100%;
    z-index: 101; /* Por encima de todo */
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}

.logo {
    color: white;
    font-size: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    z-index: 102;
}

.logo span { color: #c0392b; }

/* Enlaces para PC */
.nav-list {
    display: flex;
    list-style: none;
    z-index: 101;
}

.nav-list li a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 400;
    transition: 0.3s;
}

.nav-list li a:hover { color: #f1c40f; }

/* 3. Menú Hamburguesa (Botón) */
.menu-toggle {
    display: none; /* Oculto en PC */
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 102;
    padding: 10px;
}

.bar {
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: all 0.3s ease-in-out;
    display: block;
}

/* 4. Sección Hero con Video */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

/* 5. Botones */
.hero-btns { margin-top: 30px; }

.btn-main, .btn-primary {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    background: #c0392b;
    color: white;
    transition: 0.3s;
    display: inline-block;
}

.btn-main:hover { background: #a93226; }

/* 6. RESPONSIVE (Móviles) */
@media (max-width: 768px) {
    .navbar { padding: 20px; }

    .menu-toggle { display: flex; } /* Mostramos botón hamburguesa */

    .nav-list {
        display: none; /* Escondemos menú original */
        flex-direction: column;
        position: fixed; /* Fixed para que cubra toda la pantalla */
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        justify-content: center;
        align-items: center;
        z-index: 100;
    }

    .nav-list.active { display: flex; }

    .nav-list li { margin: 20px 0; }
    
    .nav-list li a { font-size: 1.5rem; }

    .hero-content h1 { font-size: 2.5rem; }

    /* Animación X de la hamburguesa */
    .menu-toggle.open .bar:nth-child(1) { transform: translateY(11px) rotate(45deg); }
    .menu-toggle.open .bar:nth-child(2) { opacity: 0; transform: translateX(-20px); }
    .menu-toggle.open .bar:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }
}