/* --- NUEVO ESTILO DARK MODE (TIPO APP) --- */

/* 1. Configuración básica */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    /* DEGRADADO VERDE A NEGRO (Igual que tu imagen) */
    background: radial-gradient(circle at 50% 0%, #102915 0%, #050a06 40%, #000000 100%);
    background-attachment: fixed; /* Mantiene el fondo fijo al hacer scroll */
    color: #e0e0e0; /* Texto claro para que se lea sobre negro */
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* 2. Barra de Navegación (Ahora oscura) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    /* Fondo semitransparente oscuro */
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -1px;
    color: #fff; /* Logo blanco */
}

.btn-download {
    text-decoration: none;
    background: #4CAF50; /* Botón verde brillante */
    color: #000; /* Texto negro para contraste */
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.3); /* Resplandor verde */
}

.btn-download:hover {
    transform: scale(1.05);
    background: #5fe064;
    box-shadow: 0 0 25px rgba(76, 175, 80, 0.5);
}

/* 3. Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero h1 span {
    /* Texto con gradiente verde */
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: #aaa; /* Gris claro */
    margin-bottom: 2.5rem;
}

.store-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-store {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1); /* Botones translúcidos */
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-store:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* 4. SECCIÓN SCROLL (Sticky) */
.scroll-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 4rem 2rem;
    align-items: flex-start;
}

/* Columna Izquierda: El Móvil */
.phone-wrapper {
    width: 50%;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-frame {
    width: 300px !important;
    height: 600px !important;
    background: #000;
    border-radius: 45px;
    padding: 10px;
    /* Sombra con resplandor verde sutil detrás del móvil */
    box-shadow: 0 0 60px rgba(76, 175, 80, 0.15); 
    border: 4px solid #222; /* Borde gris oscuro */
    position: relative;
    flex-shrink: 0;
}

.phone-notch {
    width: 100px;
    height: 24px;
    background: #000;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #111;
    border-radius: 35px;
    overflow: hidden;
    position: relative;
}

/* Imágenes */
.phone-screen img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.phone-screen img.active {
    opacity: 1;
}

/* Columna Derecha: Textos */
.text-content {
    width: 50%;
    padding-top: 15vh;
}

.step-text {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 4rem;
    opacity: 0.1; /* Muy apagado cuando no está activo */
    transition: opacity 0.5s ease;
}

.step-text.active {
    opacity: 1; /* Blanco brillante cuando está activo */
}

.step-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff; /* Título blanco */
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.3); /* Pequeño brillo verde */
}

.step-text p {
    font-size: 1.25rem;
    color: #bbb; /* Texto descriptivo gris claro */
    line-height: 1.6;
}

/* 5. Footer */
footer {
    background: #000; /* Negro puro */
    color: #fff;
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
    border-top: 1px solid #111;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #4CAF50; /* Títulos del footer en verde */
}

.footer-col a {
    display: block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 0.8rem;
    opacity: 0.8;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
    color: #555;
    font-size: 0.9rem;
}

/* MÓVIL (Ajustes Responsive) */
@media (max-width: 768px) {
    .scroll-container {
        flex-direction: column;
    }

    .phone-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        margin-bottom: 2rem;
        top: auto;
    }

    .phone-frame {
        width: 260px !important;
        height: 520px !important;
        margin: 0 auto;
    }

    .text-content {
        width: 100%;
        padding-top: 0;
    }

    .step-text {
        min-height: auto;
        margin-bottom: 4rem;
        padding-left: 0;
        opacity: 1;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
/* --- EFECTOS DE ENTRADA (ANIMACIONES) --- */

/* 1. Definimos la animación: Deslizar hacia arriba y aparecer */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px); /* Empieza 40px más abajo */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Termina en su sitio */
    }
}

/* 2. Definimos la animación del Móvil: Un poco más suave */
@keyframes phoneEntrance {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(50px); /* Empieza pequeño y abajo */
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 3. Aplicamos las animaciones con RETRASO (Delay) para el efecto cascada */

/* El título entra primero (a los 0.2 segundos) */
.hero h1 {
    opacity: 0; /* Invisible al principio */
    animation: fadeInUp 0.8s ease-out forwards 0.2s;
}

/* El texto entra después (a los 0.4 segundos) */
.hero p {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards 0.4s;
}

/* Los botones de descarga entran después (a los 0.6 segundos) */
.store-buttons {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards 0.6s;
}

/* El móvil entra el último (a los 0.8 segundos) */
.phone-wrapper {
    opacity: 0;
    animation: phoneEntrance 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.8s;
}

/* La barra de navegación cae desde arriba suavemente */
.navbar {
    animation: fadeInDown 0.8s ease-out forwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}