/* --- 1. RESET Y VARIABLES --- */
/* --- RESET --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Scroll suave SIEMPRE, aunque el usuario tenga animaciones desactivadas */
html {
    scroll-behavior: smooth;
}

/* Opcional: si quieres forzar aún más que nunca se quite */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: smooth !important;
    }
}

:root {
    --primary-color: #00d4ff; /* Azul neón para tecnología */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --dark-bg: #0f0c29;
    --text-light: #ffffff;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    /* Fondo degradado animado para que la web se vea "viva" */
    background: linear-gradient(45deg, #0f0c29, #302b63, #24243e);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- 2. BARRA DE NAVEGACIÓN (INCREÍBLE) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8%;
    background: rgba(15, 12, 41, 0.7); /* Fondo semi-oscuro */
    backdrop-filter: blur(15px); /* Efecto cristal */
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed; /* Para que siempre esté arriba al bajar */
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    height: 45px;
    transition: transform 0.3s;
    border-radius: 50%;
}

.logo:hover { transform: scale(1.1); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* --- 3. MENÚ HAMBURGUESA (LÓGICA) --- */
#menu-check { display: none; }

.menu-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: 0.4s;
}

/* --- 4. SECCIONES DE LA WEB --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1rem;
}

.highlight { color: var(--primary-color); text-shadow: 0 0 15px rgba(0, 212, 255, 0.5); }

.btn-primary {
    display: inline-block;
    margin-top: 2rem;
    padding: 15px 35px;
    background: var(--primary-color);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 50px;
    transition: 0.4s;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--primary-color);
}

/* Servicios */
.services { padding: 100px 10%; text-align: center; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--glass-bg);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: 0.4s;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }

/* Contacto */
.contact { padding: 100px 10%; text-align: center; background: rgba(0,0,0,0.2); }

.email-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 20px 40px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 15px;
    transition: 0.3s;
}

.email-btn:hover { background: var(--primary-color); color: #000; }

/* RESPONSIVE - MÓVIL */
@media (max-width: 768px) {
    .menu-hamburger {
        display: flex;
        z-index: 1010;           /* importante para que esté encima */
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: rgba(15, 12, 41, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
        z-index: 1000;
    }

    /* Abrir menú */
    #menu-check:checked ~ .nav-links {
        right: 0;
    }

    /* Animación hamburguesa → X */
    #menu-check:checked ~ .menu-hamburger span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    #menu-check:checked ~ .menu-hamburger span:nth-child(2) {
        opacity: 0;
    }
    #menu-check:checked ~ .menu-hamburger span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Cerrar al hacer clic en cualquier enlace */
    .nav-links a {
        font-size: 1.5rem;
    }
}

/* ====================== APPS SECTION ====================== */

.apps {
    padding: 120px 10% 100px;
    min-height: 100vh;
}

.apps h1 {
    text-align: center;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    margin-bottom: 3rem;
    color: var(--text-light);
}

.apps-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Accordion Item */
.app-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    margin-bottom: 18px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.app-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.app-header {
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.3s;
}

.app-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.app-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.app-title i {
    color: var(--primary-color);
    font-size: 1.6rem;
}

.app-toggle {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.4s ease;
}

.app-item.active .app-toggle {
    transform: rotate(180deg);
}

/* Contenido del desplegable */
.app-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

.app-item.active .app-content {
    max-height: 600px;
    padding: 0 28px 30px;
}

.motivation {
    color: #ddd;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

/* Botón Play Store */
.play-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000;
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.play-store-btn:hover {
    background: #202020;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.2);
}

.play-store-btn i {
    font-size: 1.6rem;
    color: #00d4ff;
}

/* Icono de app pequeño */
.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(0, 212, 255, 0.3);
}

/* ====================== COMING SOON SECTION ====================== */

.coming-soon {
    min-height: 100vh;
    padding: 140px 10% 100px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(15,12,41,0.95), rgba(48,43,99,0.9));
}

.coming-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.coming-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 60px 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 212, 255, 0.15);
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.coming-content h1 {
    font-size: clamp(2.4rem, 7vw, 3.8rem);
    margin-bottom: 25px;
    line-height: 1.2;
}

.coming-description {
    font-size: 1.25rem;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

.coming-apps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.coming-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px 25px;
    transition: all 0.4s ease;
}

.coming-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.coming-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.9;
}

.coming-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: white;
}

.coming-card p {
    color: #bbb;
    margin-bottom: 20px;
}

.coming-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #00d4ff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.coming-footer {
    margin-top: 30px;
}

.coming-footer p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 20px;
}