/* RESET Y CONFIGURACIÓN GLOBAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIABLES CSS */
:root {
    --color-primary: #4161BF;
    --color-primary-dark: #335AA6;
    --color-secondary: #2E62A6;
    --color-neutral-light: #F2F2F2;
    --color-neutral-dark: #737373;
    --color-white: #FFFFFF;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    width: 100%;
}

.logo-container {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-logo {
    filter: brightness(0) invert(1);
    max-width: 300px;
    height: auto;
}

/* MENÚ PRINCIPAL - CORREGIDO */
.main-nav {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-top: 1rem;
    padding: 0 1rem;
    max-width: 100%;
}

.nav-btn {
    background: transparent;
    border: 2px solid var(--color-white);
    color: var(--color-white);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    font-weight: 600;
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--color-white);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* FLECHA ANIMADA - CENTRADA */
.scroll-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(2px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* MENÚ LATERAL */
.side-menu {
    position: fixed;
    top: 7%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    flex-direction: row;
    gap: 0.5rem;
    z-index: 999;
    background: var(--color-primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.side-menu.visible {
    opacity: 0.95;
    visibility: visible;
}

.side-nav-btn {
    background: var(--color-secondary);
    border: none;
    color: var(--color-white);
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    white-space: nowrap;
    width: 100%;
    text-align: left;
    font-weight: 600;
}

.side-nav-btn:hover {
    background: var(--color-primary);
    transform: translateX(5px);
}

/* SECCIONES */
.section {
    padding: 5rem 2rem;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--color-primary-dark);
}

.welcome-section {
    background: var(--color-neutral-light);
    padding: 6rem 2rem 8rem;
}

.welcome-section .section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.welcome-text {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-neutral-dark);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-quote {
    font-style: italic;
    font-size: 1.5rem;
    text-align: center;
    margin: 3rem auto;
    padding: 2rem;
    border-left: 5px solid var(--color-primary);
    background: var(--color-white);
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.v-cut {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 50px;
    background: var(--color-neutral-light);
    clip-path: polygon(0 0, 50% 100%, 100% 0);
}

.footer {
    background: var(--color-primary-dark);
    color: var(--color-white);
    text-align: center;
    padding: 2rem;
}

/* Añadir al final del archivo CSS */
.side-menu.visible {
    opacity: 0.95 !important;
    visibility: visible !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .side-menu {
        display: none;
    }

    .hero-logo {
        max-width: 250px;
    }

    .main-nav {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        padding: 0;
    }

    .nav-btn {
        padding: 0.6rem 1.5rem;
        width: 100%;
    }

    .welcome-section .section-title {
        font-size: 2rem;
    }
}