/* ============================================
   AKustom15 Landing Page — Design System
   ============================================ */

/* --- Variables de Color --- 
   MODIFICA ESTOS VALORES para personalizar los colores */
:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --accent-1: #6366f1;
    --accent-2: #8b5cf6;
    --accent-3: #a78bfa;
    --gradient-accent: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --glass-blur: blur(20px);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 40px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* --- Scrollbar Personalizado --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 3px;
}

/* --- Navegación --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: background var(--transition-fast), backdrop-filter var(--transition-fast);
}

.nav.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-subtle);
    transition: border-color var(--transition-fast);
}

.nav-brand:hover .nav-logo {
    border-color: var(--accent-1);
}

.nav-brand-name {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition-fast);
    border-radius: 1px;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.hero-logo-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-subtle);
    flex-shrink: 0;
    position: relative;
    background: var(--bg-secondary);
}

.hero-logo-container::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: var(--gradient-accent);
    z-index: -1;
    opacity: 0.5;
}

.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.hero-brand-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-3) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 480px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    background: var(--gradient-accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

/* --- Canvas 3D del Hero --- */
.hero-canvas-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.hero-canvas {
    width: 100%;
    max-width: 550px;
    height: auto;
    display: block;
    cursor: pointer;
    filter: drop-shadow(0 20px 60px rgba(99, 102, 241, 0.15));
    transition: filter var(--transition-smooth), transform var(--transition-smooth);
}

.hero-canvas:hover {
    filter: drop-shadow(0 30px 80px rgba(99, 102, 241, 0.25));
    transform: scale(1.03);
}


/* --- Sección de Setups Destacados --- */
.section {
    padding: 6rem 2rem;
    position: relative;
}

.section-inner {
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--accent-3);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

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

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Galería de Setups --- */
.setups-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.setup-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 9/16;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.setup-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.1);
}

.setup-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.setup-card:hover img {
    transform: scale(1.05);
}

.setup-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.25rem 1.25rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition-smooth);
}

.setup-card:hover .setup-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.setup-card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.setup-card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Placeholder para imágenes faltantes */
.setup-card .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(145deg, #111 0%, #0a0a15 100%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

/* --- Carrusel de Apps --- */
.apps-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0 3rem;
    scrollbar-width: none; /* Firefox */
}
.apps-carousel::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.app-poster-card {
    position: relative;
    flex: 0 0 320px; /* Ancho base */
    aspect-ratio: 1080 / 1350; /* Proporción 4:5 exacta solicitada */
    border-radius: var(--radius-xl);
    overflow: hidden;
    scroll-snap-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: var(--text-primary);
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.app-poster-card:hover {
    transform: scale(1.08) translateY(-10px);
    border-color: var(--accent-1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(99, 102, 241, 0.2);
    z-index: 10;
}

.app-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-poster-card:hover .app-poster-img {
    transform: scale(1.05); /* Efecto extra a la imagen por dentro */
}

.app-poster-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

.app-poster-card:hover .app-poster-overlay {
    transform: translateY(0);
}

.app-poster-title {
    font-weight: 800;
    font-size: 1.35rem;
    margin-top: 0.2rem;
}

.app-poster-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.app-card-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.app-card-badge.icons {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.app-card-badge.widgets {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.app-poster-card .placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(145deg, #111 0%, #0a0a15 100%);
    color: var(--text-muted);
}

/* --- Sección Características --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Sección Lo Nuevo --- */
.lo-nuevo-section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.lo-nuevo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.lo-nuevo-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.lo-nuevo-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lo-nuevo-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.lo-nuevo-app-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.lo-nuevo-app-name {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.lo-nuevo-app-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.lo-nuevo-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 400px;
    perspective: 1000px;
}

.lo-nuevo-stack {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-smooth);
}

.lo-nuevo-container:hover .lo-nuevo-stack {
    transform: scale(1.05);
}

.lo-nuevo-img-stack {
    position: absolute;
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.1);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, z-index 0s;
    transform-origin: center center;
    cursor: pointer;
}

/* Fallback para diseño anterior si se usa */
.lo-nuevo-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), 0 0 30px rgba(99, 102, 241, 0.2);
    transform: rotate(2deg);
    transition: transform var(--transition-smooth);
}

.lo-nuevo-container:hover .lo-nuevo-img {
    transform: rotate(0deg) scale(1.05);
}

@media (max-width: 1024px) {
    .lo-nuevo-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 2rem;
    }
    .lo-nuevo-content {
        align-items: center;
    }
    .lo-nuevo-img {
        transform: rotate(0deg);
    }
}

/* --- Stats Bar --- */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Sección Wallpapers (3D Coverflow) --- */
.wallpapers-section {
    padding-bottom: 5rem;
    overflow: hidden;
}

.coverflow-wrapper {
    position: relative;
    width: 100%;
    height: 600px;
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1500px; /* Profundidad 3D */
}

.coverflow-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.coverflow-item {
    position: absolute;
    width: 300px;
    height: 500px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    user-select: none;
    -webkit-user-drag: none;
}

.coverflow-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.coverflow-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Solo mostrar el overlay en el item central (activo) cuando se hace hover */
.coverflow-item.active:hover .coverflow-overlay {
    opacity: 1;
}

.coverflow-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.coverflow-download-btn {
    background: rgba(99, 102, 241, 0.15); /* Color de acento suave (accent-1) */
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto; /* Para que sea clickeable */
    
    /* Efecto Liquiglass */
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.1), inset 0 0 10px rgba(99, 102, 241, 0.1);
}

.coverflow-download-btn:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.2), inset 0 0 15px rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.coverflow-item.active:hover .coverflow-title,
.coverflow-item.active:hover .coverflow-download-btn {
    transform: translateY(0);
}

/* Flechas de navegación del Coverflow */
.coverflow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.coverflow-btn:hover {
    background: var(--accent-1);
    transform: translateY(-50%) scale(1.1);
}

.coverflow-btn.prev-btn {
    left: 10%;
}

.coverflow-btn.next-btn {
    right: 10%;
}

@media (max-width: 768px) {
    .coverflow-wrapper {
        height: 500px;
    }
    .coverflow-item {
        width: 240px;
        height: 400px;
    }
    .coverflow-btn.prev-btn {
        left: 2%;
    }
    .coverflow-btn.next-btn {
        right: 2%;
    }
}

/* --- Footer --- */
.footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-subtle);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.footer-brand span {
    font-weight: 700;
    font-size: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

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

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* --- Animaciones de Scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays para grupos */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }
.stagger-9 { transition-delay: 0.9s; }
.stagger-10 { transition-delay: 1.0s; }

/* --- Separador decorativo entre secciones --- */
.section-divider {
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* --- Partículas de fondo --- */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-1);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-content {
        align-items: center;
    }
    .hero-brand {
        justify-content: center;
    }
    .hero-subtitle {
        margin: 0 auto;
    }
    .hero-cta {
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .setups-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-bar {
        gap: 2rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero {
        padding: 5rem 1.2rem 2rem;
        min-height: auto;
    }
    .hero-canvas-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        max-width: 280px;
        margin: 0 auto;
    }
    .hero-canvas {
        max-width: 260px;
        filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.15));
    }
    .hero-inner {
        gap: 1.5rem;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section {
        padding: 3rem 1rem;
    }
    .section-header {
        margin-bottom: 2rem;
    }
    .setups-gallery {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
        gap: 1rem;
    }
    .setup-card {
        aspect-ratio: 9/16;
    }
    .setup-card-overlay {
        opacity: 1;
        transform: translateY(0);
    }
    .setup-card-title {
        font-size: 0.9rem;
    }
    .setup-card-desc {
        font-size: 0.75rem;
    }
    .apps-carousel {
        gap: 1rem;
        padding: 0.5rem 0 2rem;
    }
    .app-poster-card {
        flex: 0 0 200px;
    }
    .app-poster-overlay {
        transform: translateY(0);
        padding: 1.5rem 1rem 1rem;
    }
    .app-poster-title {
        font-size: 1rem;
    }
    .app-poster-desc {
        font-size: 0.8rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .feature-card {
        padding: 1.5rem 1rem;
    }
    .stats-bar {
        gap: 1rem;
        padding: 2rem 1rem;
    }
    .stat-number {
        font-size: 1.5rem;
    }
    .stat-label {
        font-size: 0.75rem;
    }
    .lo-nuevo-container {
        padding: 2rem 1.2rem;
        gap: 2rem;
    }
    .lo-nuevo-visual {
        min-height: 280px;
    }
    .lo-nuevo-stack {
        height: 320px;
        max-width: 240px;
    }
    .lo-nuevo-img-stack {
        max-width: 220px;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }
    .socials-grid {
        gap: 1rem;
    }
    .social-card {
        width: 100px;
        padding: 1rem 0.5rem;
    }
    .social-icon {
        font-size: 1.8rem;
    }
    .social-name {
        font-size: 0.8rem;
    }
    /* Reduce animation heaviness on mobile */
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        transition-duration: 0.4s;
    }
    .stagger-1, .stagger-2, .stagger-3, .stagger-4,
    .stagger-5, .stagger-6, .stagger-7, .stagger-8 {
        transition-delay: 0s;
    }
}

@media (max-width: 480px) {
    .hero-logo-container {
        width: 60px;
        height: 60px;
    }
    .hero-brand-text {
        font-size: 1.5rem;
    }
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    .coverflow-wrapper {
        height: 380px;
    }
    .coverflow-item {
        width: 200px;
        height: 340px;
    }
    .coverflow-btn {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    .coverflow-btn.prev-btn {
        left: 0;
    }
    .coverflow-btn.next-btn {
        right: 0;
    }
}

/* ============================================
   SECCIÓN DE CONTACTO & SOCIALES
   ============================================ */
.socials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: var(--spacing-xl);
}

.social-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) 1rem;
    width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-1);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.social-icon {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-smooth);
}

.social-card:hover .social-icon {
    color: var(--accent-3);
    transform: scale(1.1);
}

.social-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ==========================================================================
   MODAL (SETUPS)
   ========================================================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transform: translateY(50px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Scrollbar para el modal */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-1) var(--bg-primary);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}
.modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 10px;
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-secondary);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-1);
    text-decoration: none;
}

.modal-body {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
}

@media (min-width: 900px) {
    .modal-body {
        flex-direction: row;
        padding: 3rem;
        gap: 3rem;
        align-items: flex-start;
    }
}

.modal-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-subtle);
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
}

.modal-info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.modal-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

.modal-section {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.modal-section h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-section h3 i {
    color: var(--accent-1);
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
}

.modal-list li i {
    color: var(--accent-2);
    font-size: 0.9rem;
}

.modal-tutorial-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.modal-tutorial-text p {
    margin-bottom: 0.8rem;
}

.modal-tutorial-text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   BOTÓN FLOTANTE TELEGRAM
   ============================================ */
.floating-telegram {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc, #00a2ff);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.3);
    z-index: 1000;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.floating-telegram:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 136, 204, 0.5);
    color: #ffffff;
}

/* ============================================
   MOBILE-LAST OVERRIDES (must be at the end)
   ============================================ */
@media (max-width: 768px) {
    /* --- Floating Telegram --- */
    .floating-telegram {
        bottom: 16px;
        right: 16px;
        width: 46px;
        height: 46px;
        font-size: 22px;
        box-shadow: 0 6px 16px rgba(0, 136, 204, 0.3);
    }

    /* --- Modal full-screen on mobile --- */
    .modal {
        padding: 0;
        align-items: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: none;
        border-radius: 12px;
        margin: 0;
        border: none;
        transform: translateY(0) scale(1);
    }
    .modal.show .modal-content {
        transform: translateY(0) scale(1);
    }
    .modal-body {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    .modal-image-container {
        border-radius: 10px;
    }
    .modal-image {
        max-height: 45vh;
        border-radius: 10px;
    }
    .modal-title {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }
    .modal-desc {
        font-size: 0.9rem;
    }
    .modal-info-container {
        gap: 1rem;
    }
    .modal-section {
        padding: 0.8rem;
        border-radius: 10px;
    }
    .modal-section h3 {
        font-size: 0.95rem;
        gap: 0.5rem;
        margin-bottom: 0.6rem;
        padding-bottom: 0.4rem;
    }
    .modal-list {
        gap: 0.5rem;
    }
    .modal-list li {
        font-size: 0.85rem;
    }
    .modal-tutorial-text {
        font-size: 0.85rem;
    }
    .close-modal {
        top: 8px;
        right: 12px;
        font-size: 28px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0,0,0,0.5);
        border-radius: 50%;
        color: #fff;
    }

    /* --- Coverflow mobile --- */
    .coverflow-wrapper {
        height: 400px;
        perspective: 800px;
    }
    .coverflow-item {
        width: 220px;
        height: 370px;
    }
    .coverflow-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    .coverflow-btn.prev-btn {
        left: 4px;
    }
    .coverflow-btn.next-btn {
        right: 4px;
    }

    /* --- Disable particles on mobile --- */
    .particles {
        display: none;
    }

    /* --- Kill all stagger delays on mobile --- */
    .stagger-1, .stagger-2, .stagger-3, .stagger-4,
    .stagger-5, .stagger-6, .stagger-7, .stagger-8,
    .stagger-9, .stagger-10 {
        transition-delay: 0s !important;
    }

    /* --- Faster reveal animations --- */
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        transition-duration: 0.3s !important;
    }
}
