/* =========================================
   1. RESET Y BASE
   ========================================= */
body {
    background-color: #f7f7f7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* =========================================
   2. NAVBAR & HEADER (GLOBAL)
   ========================================= */
header {
    position: sticky;
    top: 0;
    /* Z-INDEX NUCLEAR */
    z-index: 100000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #000;
    padding: 15px 40px;
    height: 80px;
    position: relative;
}

/* Ocultamos enlaces de texto siempre */
.navbar-left,
.navbar-right > a:not(.nav-login):not(.hamburger-btn) {
    display: none;
}

/* Estilos comunes de enlaces */
.navbar a {
    text-decoration: none;
    transition: color 0.3s;
}

/* Icono Login */
.nav-login {
    color: #fff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    padding: 5px;
}
.nav-login:hover { color: #3fffe0; }

/* Idioma */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 11px;
}
.language-switcher a {
    color: #fff;
    opacity: 0.7;
    font-size: 0.95rem;
    font-weight: bold;
}
.language-switcher a:hover,
.language-switcher .active-lang {
    opacity: 1;
    color: #3fffe0;
    text-decoration: underline;
}

/* Botón Hamburguesa */
.hamburger-btn {
    display: block;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
}
.hamburger-btn:hover { color: #3fffe0; }

/* =========================================
   3. COMPORTAMIENTO ESPECÍFICO DE PC
   (Pantallas grandes: +993px) - ARREGLADO
   ========================================= */
@media (min-width: 993px) {

    /* LOGO CENTRADO */
    .navbar-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 101;
        display: flex;
        justify-content: center;
    }
    .navbar-logo { height: 60px; width: auto; }

    /* Contenedor Derecha */
    .navbar-right {
        display: flex;
        align-items: center;
        margin-left: auto;
        z-index: 103;
    }

    /* MENÚ DESPLEGABLE: CAJITA PEQUEÑA */
    .nav-links {
        display: none; /* Oculto */
        flex-direction: column;
        position: absolute;
        top: 80px;
        right: 40px;
        width: 260px; /* Un poco más ancho */

        background: #000;
        padding: 15px 0; /* Más aire arriba y abajo del contenedor */
        border-radius: 0 0 10px 10px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.7);
        border: 1px solid #333;
        border-top: none;
        z-index: 99999;
    }

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

    /* ENLACES - AQUI ESTÁ EL CAMBIO DE ESPACIADO */
    .nav-links a {
        color: #fff;
        margin: 0;
        /* MUCHO MÁS PADDING: 18px arriba/abajo */
        padding: 18px 30px;
        font-weight: 600;
        font-size: 1.05rem;
        text-align: left;
        border-bottom: 1px solid #1a1a1a;

        /* FORZAR SIN SUBRAYADO */
        text-decoration: none !important;

        display: block;
        transition: all 0.2s ease;
    }

    .nav-links a:hover {
        background-color: #111;
        color: #3fffe0;
        padding-left: 35px; /* Efecto de desplazamiento al pasar ratón */
    }

    .nav-links a:last-child { border-bottom: none; }
}


/* =========================================
   4. COMPORTAMIENTO ESPECÍFICO DE MÓVIL
   (Pantallas pequeñas: -992px)
   ========================================= */
@media (max-width: 992px) {

    .navbar {
        padding: 10px 20px;
        height: 70px;
        justify-content: space-between;
    }

    /* LOGO A LA IZQUIERDA */
    .navbar-center {
        position: static;
        transform: none;
        order: -1;
        margin: 0;
    }
    .navbar-logo { height: 40px; }

    /* Contenedor derecha */
    .navbar-right {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* MENÚ PANTALLA COMPLETA */
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 60px;

        position: fixed;
        top: 70px;
        left: 0;
        width: 100vw;
        height: calc(100vh - 70px);

        background-color: #000000;
        z-index: 99999;

        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: all 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .nav-links a {
        color: #fff;
        font-size: 1.5rem;
        margin: 15px 0;
        text-transform: uppercase;
        letter-spacing: 1px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #222;
        padding-bottom: 10px;
        text-decoration: none !important;
    }
    .nav-links a:hover {
        color: #3fffe0;
    }

    #hero-buttons { flex-direction: column; width: 100%; align-items: center; }
    #hero-buttons .btn-hero { width: 100%; max-width: 300px; }
    #hero-title { font-size: 2rem; }
}

@media (max-width: 400px) {
    .language-switcher { display: none; }
    .navbar { padding: 10px 15px; }
}


/* =========================================
   5. ESTILOS RESTO DE PÁGINA
   ========================================= */
#hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 1;
    filter: brightness(0.65);
}

#hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    z-index: 2;
}

#hero-content {
    position: relative;
    z-index: 3;
    padding: 40px 15px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#hero-title {
    color: #ffffff;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
    margin-bottom: 8px;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

#hero-subtitle {
    color: rgba(255,255,255,0.95);
    margin-bottom: 30px;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

#hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

#hero-buttons .btn-hero {
    background: #1a1a1a;
    color: #3fffe0;
    border: 2px solid #1a1a1a;
    border-radius: 40px;
    padding: 12px 28px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

#hero-buttons .btn-hero:hover {
    background: #00ffd6;
    color: #000000;
    transform: translateY(-4px);
}

#features {
    background: #fff;
    color: #222;
    padding: 50px 0;
}

#features-title {
    color: #212121;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 30px;
}

#features .card {
    border: none;
    border-radius: 18px;
    padding: 20px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#features .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

#features .card h5 {
    font-size: 2rem;
    font-weight: 800;
    color: #3fffe0;
    margin-bottom: 15px;
}

#cta {
    background: linear-gradient(135deg, #3fffe0, #111);
    padding: 60px 20px;
    text-align: center;
}

#cta-title { font-weight: 800; font-size: 2rem; margin-bottom: 10px; color: #fff; }
#cta-sub { margin-bottom: 25px; color: #fff; }

#btn-cta {
    background-color: #00ffd6;
    color: black;
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

#btn-cta:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-4px);
}
