/**
 * Archivo: /assets/css/landing.css
 * Estilos de la página de bienvenida (Landing Page)
 */

/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(233, 78, 27, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 122, 69, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 60% 20%, rgba(255, 154, 108, 0.08) 0%, transparent 30%);
    animation: bgFloat 25s ease-in-out infinite;
}

.bg-pattern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 90%, rgba(233, 78, 27, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(255, 122, 69, 0.06) 0%, transparent 30%);
    animation: bgFloat 30s ease-in-out infinite reverse;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(3%, 3%) scale(1.02); }
    66% { transform: translate(-2%, 1%) scale(0.98); }
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: 50%;
    opacity: 0.4;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { left: 20%; top: 60%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 35%; top: 40%; animation-delay: 4s; animation-duration: 22s; }
.particle:nth-child(4) { left: 50%; top: 80%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 65%; top: 30%; animation-delay: 3s; animation-duration: 19s; }
.particle:nth-child(6) { left: 80%; top: 70%; animation-delay: 5s; animation-duration: 21s; }
.particle:nth-child(7) { left: 90%; top: 10%; animation-delay: 2.5s; animation-duration: 17s; }

@keyframes particleFloat {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.4; }
    25% { transform: translateY(-30px) translateX(10px); opacity: 0.6; }
    50% { transform: translateY(-15px) translateX(-10px); opacity: 0.3; }
    75% { transform: translateY(-40px) translateX(5px); opacity: 0.5; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(15, 20, 32, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-brand);
    opacity: 0.7;
    transition: all 0.4s ease;
}

nav.scrolled {
    background: rgba(15, 20, 32, 0.8);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 0 60px rgba(233, 78, 27, 0.08);
}

nav.scrolled::after {
    opacity: 1;
    box-shadow: 0 0 20px rgba(233, 78, 27, 0.5), 0 0 40px rgba(233, 78, 27, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-cta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--dark-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    z-index: 1;
}

.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.slide.active .slide-bg img {
    transform: scale(1);
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(15, 20, 32, 0.95) 0%, 
        rgba(15, 20, 32, 0.85) 40%, 
        rgba(15, 20, 32, 0.7) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: rgba(233, 78, 27, 0.15);
    border: 1px solid rgba(233, 78, 27, 0.3);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    width: fit-content;
    backdrop-filter: blur(10px);
    animation: slideIn 0.6s ease backwards;
}

.slide.active .slide-badge {
    animation-delay: 0.2s;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.badge-icon {
    font-size: 1.1rem;
}

.slide-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    max-width: 700px;
    animation: slideIn 0.6s ease backwards;
}

.slide.active .slide-title {
    animation-delay: 0.3s;
}

.slide-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 550px;
    line-height: 1.7;
    animation: slideIn 0.6s ease backwards;
}

.slide.active .slide-description {
    animation-delay: 0.4s;
}

.slide-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    animation: slideIn 0.6s ease backwards;
}

.slide.active .slide-cta {
    animation-delay: 0.5s;
}

.slide-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: slideIn 0.6s ease backwards;
}

.slide.active .slide-stats {
    animation-delay: 0.6s;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

/* Slide Features */
.slide-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    animation: slideIn 0.6s ease backwards;
}

.slide.active .slide-features {
    animation-delay: 0.5s;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(233, 78, 27, 0.1);
    border-color: rgba(233, 78, 27, 0.3);
}

.feature-tag svg {
    color: var(--primary-light);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
}

.slider-arrow {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-dot.active {
    background: rgba(255, 255, 255, 0.2);
}

.dot-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--gradient-brand);
    border-radius: 2px;
}

.slider-dot.active .dot-progress {
    animation: dotProgress 6s linear forwards;
}

@keyframes dotProgress {
    from { width: 0; }
    to { width: 100%; }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.7;
    z-index: 5;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.3; }
}

/* Sections */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    padding: 0.4rem 1rem;
    background: rgba(233, 78, 27, 0.1);
    border: 1px solid rgba(233, 78, 27, 0.2);
    border-radius: 100px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Visual Section */
.visual-section {
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(233, 78, 27, 0.02) 50%, transparent 100%);
    overflow: hidden;
}

.visual-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(233, 78, 27, 0.3), transparent);
}

/* Visual Steps */
.visual-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.visual-step {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(145deg, var(--dark-surface) 0%, var(--dark-elevated) 100%);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s ease;
}

.visual-step:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 
        0 20px 40px rgba(233, 78, 27, 0.15),
        0 0 60px rgba(233, 78, 27, 0.1);
}

.visual-step-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.visual-step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.visual-step:hover .visual-step-image img {
    transform: scale(1.05);
}

.visual-step-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 13, 13, 0.9) 100%);
}

.visual-step-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 48px;
    height: 48px;
    background: var(--gradient-brand);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(233, 78, 27, 0.4);
}

.visual-step-content {
    padding: 1.5rem;
}

.visual-step h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.visual-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Platforms Section */
.platforms-section {
    padding: 6rem 2rem;
    background: var(--dark-surface);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.platforms-visual {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.platforms-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

.platforms-image img {
    width: 100%;
    height: auto;
    border-radius: 24px;
}

.platforms-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.platforms-content > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.platform-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(145deg, var(--dark) 0%, rgba(34, 34, 40, 0.8) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.platform-card:hover {
    border-color: var(--border-glow);
    transform: translateX(5px) scale(1.02);
}

.platform-card-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-brand);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.platform-card-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.platform-card-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-card {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(145deg, var(--dark-surface) 0%, var(--dark-elevated) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 32px;
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(233, 78, 27, 0.5);
}

.cta-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.cta-image {
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
}

.cta-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    color: var(--text-subtle);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .visual-steps {
        grid-template-columns: 1fr;
    }

    .platforms-visual,
    .cta-card {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .nav-cta .btn-text {
        display: none;
    }

    .nav-cta .btn {
        padding: 0.7rem;
        min-width: 44px;
    }
}

@media (max-width: 768px) {
    nav { padding: 0.75rem 1rem; }
    .nav-links { display: none; }
    
    .mobile-menu-btn {
        display: flex;
    }

    .hero-slider {
        min-height: 100vh;
    }

    .slide-content {
        padding: 7rem 1.5rem 6rem;
        justify-content: flex-start;
        padding-top: 9rem;
    }

    .slide-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .slide-description {
        font-size: 1rem;
    }

    .slider-nav {
        bottom: 2rem;
        gap: 1rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
    }

    .slider-dot {
        width: 30px;
    }

    .scroll-indicator {
        display: none;
    }

    .slide-cta {
        flex-direction: column;
    }

    .slide-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-card {
        padding: 2rem;
    }

    .cta-image {
        display: none;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .platform-cards {
        grid-template-columns: 1fr;
    }
}
