/* ============================================================
   1. CONFIGURACIÓN DE RAÍZ Y RESET
   ============================================================ */
:root {
    --cherry: #e61d42;
    --violet: #7E22CE;
    --bg-light: #fbfbfd;
    --white: #ffffff;
    --text-main: #1d1d1f;
    --text-sec: #86868b;
    --border: rgba(0,0,0,0.08);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-main);
    padding-top: 85px; /* Altura del header */
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

/* ============================================================
   2. HEADER ESTRUCTURA (SITE-HEADER)
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    z-index: 10000;
    border-bottom: 1px solid var(--border);
}

.header-wrapper {
    width: 92%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

/* ============================================================
   3. NAVEGACIÓN Y BOTONES (ESCRITORIO)
   ============================================================ */
@media (min-width: 1025px) {
    .nav-container {
        display: flex;
        align-items: center;
        flex: 1;
        justify-content: flex-end; /* Empuja todo a la derecha */
        gap: 50px;
    }

    .nav-main ul {
        display: flex;
        gap: 30px;
        list-style: none;
    }

    .nav-main a {
        text-decoration: none;
        color: var(--text-main);
        font-weight: 600;
        font-size: 0.95rem;
        transition: var(--transition);
    }

    .nav-main a:hover {
        color: var(--cherry);
    }

    .header-actions {
        display: flex;
        gap: 12px;
        align-items: center;
    }

    /* Estilos de Botones */
    .btn-platform, .btn-contact {
        padding: 12px 24px;
        border-radius: 12px;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: var(--transition);
    }

    .btn-platform {
        background: #f0f0f2;
        color: var(--text-main);
    }

    .btn-platform:hover {
        background: #e5e5e7;
    }

    .btn-contact {
        background: var(--cherry);
        color: white !important;
        box-shadow: 0 4px 12px rgba(230, 29, 66, 0.15);
    }

    .btn-contact:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(230, 29, 66, 0.25);
    }

    .menu-toggle {
        display: none;
    }
}

/* ============================================================
   4. VERSIÓN MÓVIL (TABLET Y CELULAR)
   ============================================================ */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        cursor: pointer;
        z-index: 10002;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--text-main);
        border-radius: 10px;
        transition: var(--transition);
    }

    /* Animación hamburguesa a X */
    .menu-toggle.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%; /* Oculto por defecto */
        width: 85%;
        height: 100vh;
        background: var(--white);
        padding: 120px 40px 40px;
        display: flex;
        flex-direction: column;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        box-shadow: -20px 0 50px rgba(0,0,0,0.15);
        z-index: 10001;
    }

    .nav-container.active {
        right: 0;
    }

    .nav-main ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .nav-main a {
        text-decoration: none;
        color: var(--text-main);
        font-size: 1.6rem;
        font-weight: 700;
    }

    .header-actions {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: auto; /* Empuja botones al fondo del menú móvil */
        padding-top: 30px;
        border-top: 1px solid var(--border);
    }

    .btn-platform, .btn-contact {
        width: 100%;
        text-align: center;
        padding: 18px;
        border-radius: 16px;
        text-decoration: none;
        font-weight: 700;
        font-size: 1.1rem;
        justify-content: center;
    }

    .btn-platform { background: var(--bg-light); color: var(--text-main); }
    .btn-contact { background: var(--cherry); color: white !important; }
}

/* ============================================================
   5. BOMBA ATÓMICA PARA LA PALABRA "IDIOMA" (home.css fallback)
   ============================================================ */
#index-page .hero-content h1 span {
    font-size: 100% !important;
    display: inline-block !important;
    vertical-align: baseline !important;
    background: linear-gradient(135deg, #F97316 0%, #D61E43 50%, #7E22CE 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    padding: 0 5px;
}