/* ========================================
   APP.CSS - Estilos para la página de la aplicación
   ======================================== */

.app-hero {
    margin-top: 80px;
    padding: 5rem 0;
    background: var(--gradient-1);
    color: white;
    overflow: hidden;
}

.app-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.app-hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.app-hero-text .lead {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-icon {
    font-size: 2.5rem;
}

.btn-text small {
    display: block;
    font-size: 0.75rem;
    opacity: 0.7;
}

.btn-text strong {
    display: block;
    font-size: 1.2rem;
}

.app-stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.app-stat {
    text-align: center;
}

.app-stat strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.3rem;
}

.app-stat span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.app-hero-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background: #1a1a1a;
    border-radius: 45px;
    padding: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.phone-screen-display {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 35px;
    overflow: hidden;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.screenshot-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--gradient-3);
    color: white;
    font-size: 0.8rem;
}

.screenshot-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.screenshot-content h3 {
    color: var(--dark-color);
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.screenshot-content .subtitle {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.daily-lesson {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.lesson-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 12px;
}

.lesson-icon {
    font-size: 1.8rem;
}

.lesson-card strong {
    display: block;
    font-size: 0.85rem;
    color: var(--dark-color);
}

.lesson-card p {
    font-size: 0.75rem;
    color: var(--text-color);
    margin: 0;
}

.progress-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
}

.circle-content {
    text-align: center;
}

.circle-content strong {
    display: block;
    font-size: 2rem;
    color: var(--primary-color);
}

.circle-content span {
    font-size: 0.75rem;
    color: var(--text-color);
}

/* App Features Section */
.app-features-section {
    padding: 5rem 0;
    background: white;
}

.features-grid-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.feature-card {
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-color);
    line-height: 1.7;
}

/* How It Works */
.how-it-works {
    padding: 5rem 0;
    background: var(--light-color);
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 3rem;
    position: relative;
}

.step-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(74, 144, 226, 0.3);
}

.step-content h3 {
    color: var(--dark-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.step-content p {
    color: var(--text-color);
    line-height: 1.6;
    padding: 0 1rem;
}

.step-connector {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    position: relative;
    top: -60px;
}

/* App Modules */
.app-modules {
    padding: 5rem 0;
    background: white;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.module-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.module-card:hover {
    transform: translateY(-10px);
}

.module-header {
    padding: 2rem;
    color: white;
}

.module-header h3 {
    font-size: 1.6rem;
    margin: 0;
}

.module-body {
    padding: 2rem;
}

.module-body p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.module-body ul {
    list-style: none;
}

.module-body li {
    padding: 0.5rem 0;
    color: var(--text-color);
}

/* Screenshots Gallery */
.screenshots-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-item {
    text-align: center;
}

.screenshot-frame {
    width: 100%;
    aspect-ratio: 9/16;
    background: #1a1a1a;
    border-radius: 25px;
    padding: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.screen-content {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.screen-header {
    background: var(--gradient-3);
    color: white;
    padding: 1rem;
    text-align: center;
}

.screen-header h4 {
    font-size: 1rem;
    margin: 0;
}

.screen-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.welcome-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.progress-bar-demo {
    height: 10px;
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-3);
}

.mini-cards {
    display: flex;
    gap: 0.8rem;
}

.mini-card {
    flex: 1;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    font-size: 0.8rem;
    text-align: center;
}

.lesson-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.lesson-item {
    padding: 1rem;
    background: var(--light-color);
    border-radius: 10px;
    font-size: 0.85rem;
}

.lesson-item.active {
    background: var(--primary-color);
    color: white;
}

.lesson-item.locked {
    opacity: 0.5;
}

.question-demo {
    text-align: left;
}

.question-text {
    font-weight: 600;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option {
    padding: 0.8rem;
    background: var(--light-color);
    border-radius: 8px;
    font-size: 0.8rem;
}

.option.correct {
    background: var(--secondary-color);
    color: white;
}

.stats-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-color);
    border-radius: 12px;
}

.stat-circle {
    font-size: 2.5rem;
}

.stat-info strong {
    display: block;
    font-size: 1.2rem;
    color: var(--dark-color);
}

.stat-info span {
    font-size: 0.75rem;
    color: var(--text-color);
}

.achievement-demo {
    font-size: 2rem;
    text-align: center;
    margin-top: 1rem;
}

.screenshot-item > p {
    color: var(--text-color);
    font-weight: 600;
}

/* App Pricing */
.app-pricing {
    padding: 5rem 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--light-color);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s;
    border: 3px solid transparent;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured-pricing {
    background: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.featured-pricing:hover {
    transform: scale(1.08) translateY(-10px);
}

.popular-badge,
.save-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: var(--gradient-2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.pricing-card h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.price-display {
    margin: 2rem 0;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 1rem;
    color: var(--text-color);
    margin-left: 0.5rem;
}

.pricing-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-card .btn {
    width: 100%;
    margin-top: 1.5rem;
}

.pricing-note {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 15px;
}

.pricing-note p {
    margin: 0;
    font-size: 1.1rem;
}

/* App Testimonials */
.app-testimonials {
    padding: 5rem 0;
    background: var(--light-color);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.testimonial-app-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.testimonial-app-card:hover {
    transform: translateY(-10px);
}

.testimonial-app-card .stars {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-app-card p {
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.user-info strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.user-info span {
    font-size: 0.85rem;
    color: var(--text-color);
}

/* App FAQ */
.app-faq {
    padding: 5rem 0;
    background: white;
}

.faq-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Final CTA */
.final-cta {
    padding: 6rem 0;
    background: var(--gradient-1);
    color: white;
    text-align: center;
}

.final-cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.final-cta-content > p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.download-buttons-final {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.download-btn-large {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 3rem;
    background: white;
    color: var(--dark-color);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.download-btn-large:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.download-btn-large .btn-icon {
    font-size: 3rem;
}

.download-btn-large .btn-text small {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
}

.download-btn-large .btn-text strong {
    display: block;
    font-size: 1.5rem;
}

.trial-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .app-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .phone-mockup {
        max-width: 280px;
    }

    .features-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshots-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-slider {
        grid-template-columns: 1fr;
    }

    .faq-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .app-hero-text h1 {
        font-size: 2.5rem;
    }

    .app-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .features-grid-large {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }

    .step-connector {
        display: none;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured-pricing {
        transform: scale(1);
    }

    .download-buttons-final {
        flex-direction: column;
        align-items: center;
    }

    .final-cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .app-hero h1 {
        font-size: 1.8rem;
    }

    .app-hero p {
        font-size: 1rem;
    }

    .phone-mockup {
        width: 240px;
        height: 490px;
    }

    .phone-screen {
        font-size: 5rem;
    }

    .download-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .download-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .module-card {
        padding: 1.5rem;
    }

    .screenshots-gallery {
        grid-template-columns: 1fr;
    }

    .screenshot-card {
        height: 400px;
    }

    .pricing-card {
        padding: 2rem 1.5rem;
    }

    .app-cta h2 {
        font-size: 1.6rem;
    }
}