:root {
    --bg-dark: #0a0a0a;
    --bg-charcoal: #121212;
    --bg-card: #1e1e1e;
    --text-main: #F5F5F0;
    --text-muted: #A0A0A0;
    --accent-bronze: #C5832B;
    --accent-bronze-hover: #A66D23;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-jp: 'Noto Serif JP', serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-jp);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3 { font-family: var(--font-heading), var(--font-jp); font-weight: 400; }
ruby { font-family: var(--font-heading); letter-spacing: 0.1em; }
rt { font-family: var(--font-jp); font-size: 0.4em; color: var(--accent-bronze); letter-spacing: 0; }

/* Navegación */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-text { font-size: 1.5rem; color: var(--accent-bronze); }

.nav-links {
    display: none; /* Oculto en móvil por ahora (requiere menú hamburguesa) */
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--accent-bronze); }

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,10,0.6), rgba(18,18,18,0.95));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin-top: 60px; /* offset por el nav */
}

.main-title { font-size: 3.5rem; margin-bottom: 1rem; }
.subtitle { font-size: 1.2rem; color: var(--accent-bronze); margin-bottom: 1.5rem; }
.description { font-size: 1rem; color: var(--text-muted); margin-bottom: 2rem; }
.tagline { font-size: 0.9rem; font-style: italic; margin-bottom: 3rem; }

/* Botones */
.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    border: 1px solid var(--accent-bronze);
    color: var(--accent-bronze);
    text-decoration: none;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-bronze);
    color: var(--bg-dark);
}

/* Why Us Section */
.dark-section {
    padding: 6rem 5%;
    background-color: var(--bg-charcoal);
}

.container { max-width: 1200px; margin: 0 auto; }

.section-heading {
    text-align: center;
    font-size: 2rem;
    color: var(--accent-bronze);
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-top: 2px solid var(--accent-bronze);
    text-align: left;
}

.icon-placeholder {
    width: 40px;
    height: 40px;
    background-color: var(--accent-bronze);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.feature-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.feature-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0.8rem; }

/* Desktop Media Query */
@media (min-width: 768px) {
    .nav-links { display: flex; align-items: center; }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .main-title { font-size: 5rem; }
    .subtitle { font-size: 1.5rem; }
}

/* --- ESTILOS PARA MENÚ MÓVIL Y BOTÓN FLOTANTE --- */

/* Botón Hamburguesa (oculto en escritorio) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001; /* Siempre por encima del menú */
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--accent-bronze);
    transition: all 0.4s ease;
}

/* Botón Flotante (Volver Arriba) */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: rgba(18, 18, 18, 0.7);
    border: 1px solid var(--accent-bronze);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-bronze);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    backdrop-filter: blur(5px);
}

.back-to-top:hover {
    background-color: var(--accent-bronze);
    color: var(--bg-dark);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Responsive: Comportamiento en Smartphones */
@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }

    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto fuera de la pantalla por defecto */
        width: 100vw;
        height: 100vh;
        background-color: rgba(10, 10, 10, 0.98);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
    }

    #nav-menu.active {
        right: 0; /* Aparece deslizando suavemente */
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
        text-align: center;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Animación del icono de hamburguesa a una "X" */
    .hamburger.toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.toggle span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}