/* ==========================================================================
   DOWNLOAD PAGE - ESTILO LEMON.ME - 100% RESPONSIVE
   ========================================================================== */

/* Variables CSS - Estilo Lemon */
:root {
    /* Colores principales */
    --primary-green: #00ff88;
    --primary-purple: #8b5cf6;
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Otros */
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

/* Container */
.download-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

/* ==========================================================================
   HERO SECTION - ESTILO LEMON
   ========================================================================== */

.download-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: var(--spacing-xl) 0;
}

.download-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--primary-green);
    color: var(--bg-dark);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    min-width: 140px;
    justify-content: center;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.download-btn i {
    font-size: 1.25rem;
}

.hero-features {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feature-pill i {
    color: var(--primary-green);
    font-size: 0.75rem;
}

/* Visual del hero */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    min-height: 500px;
}

.phone-container {
    position: relative;
    max-width: 280px;
    margin: 0 auto;
    z-index: 3;
}

.phone-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.float-card {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow);
    animation: float 4s ease-in-out infinite;
    min-width: auto;
    z-index: 10;
}

.float-card i {
    color: var(--primary-green);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.card-1 {
    top: 8%;
    right: -12%;
    animation-delay: 0s;
    background: linear-gradient(135deg, var(--bg-card), rgba(0, 255, 136, 0.05));
}

.card-2 {
    top: 52%;
    left: -18%;
    animation-delay: 1.5s;
    background: linear-gradient(135deg, var(--bg-card), rgba(139, 92, 246, 0.05));
}

.card-3 {
    bottom: 18%;
    right: -8%;
    animation-delay: 3s;
    background: linear-gradient(135deg, var(--bg-card), rgba(0, 255, 136, 0.05));
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        opacity: 0.9;
    }
    50% { 
        transform: translateY(-15px) scale(1.05); 
        opacity: 1;
    }
}

/* ==========================================================================
   BENEFITS SECTION
   ========================================================================== */

.benefits-section {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-dark);
    position: relative;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 70% 20%, rgba(139, 92, 246, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(0, 255, 136, 0.02) 0%, transparent 50%);
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.benefit-item {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 300px;
    width: 100%;
}

.benefit-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.benefit-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-purple));
    transform: scaleX(0);
    transition: var(--transition);
}

.benefit-item:hover::before {
    transform: scaleX(1);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-purple));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-lg);
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
    flex-shrink: 0;
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.benefit-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    padding: var(--spacing-xxl) 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.cta-btn {
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--border-radius);
    min-width: 200px;
}

.cta-btn:hover .btn-content {
    border-color: var(--primary-green);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.15);
}

.btn-content i {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.btn-text {
    text-align: left;
}

.btn-text small {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1;
}

.btn-text strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1;
}

.trust-indicators {
    display: flex;
    gap: var(--spacing-xl);
    justify-content: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

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

.trust-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    
    .hero-text {
        text-align: left;
    }
    
    .download-buttons,
    .hero-features {
        justify-content: flex-start;
    }
    
    .hero-description {
        margin-left: 0;
        margin-right: 0;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-lg);
        max-width: 1200px;
    }
    
    .benefit-item {
        min-width: 250px;
    }
    
    .cta-buttons {
        flex-wrap: nowrap;
    }
    
    .float-card {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
    
    .card-1 {
        right: -25%;
        top: 15%;
    }
    
    .card-2 {
        left: -30%;
        top: 45%;
    }
    
    .card-3 {
        right: -20%;
        bottom: 25%;
    }
}

@media (min-width: 992px) {
    .benefits-grid {
        gap: var(--spacing-xl);
    }
    
    .benefit-item {
        min-width: 300px;
    }
}

@media (min-width: 1024px) {
    .float-card {
        font-size: 0.9rem;
        padding: 1rem 1.25rem;
    }
    
    .card-1 {
        right: -35%;
        top: 12%;
    }
    
    .card-2 {
        left: -40%;
        top: 48%;
    }
    
    .card-3 {
        right: -30%;
        bottom: 22%;
    }
    
    .phone-container {
        max-width: 320px;
    }
}

@media (max-width: 767px) {
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .float-card {
        display: none;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        max-width: 100%;
    }
    
    .benefit-item {
        min-width: auto;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .trust-indicators {
        gap: var(--spacing-lg);
    }
    
    .hero-visual {
        min-height: 400px;
    }
    
    .phone-container {
        max-width: 250px;
    }
    
    .benefit-item {
        padding: var(--spacing-lg);
    }
    
    .benefit-icon {
        width: 70px;
        height: 70px;
    }
    
    .benefit-icon i {
        font-size: 1.75rem;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

.hero-visual {
    animation: slideInRight 0.8s ease-out;
}

.benefit-item {
    animation: fadeInUp 0.8s ease-out;
}

.benefit-item:nth-child(1) {
    animation-delay: 0.1s;
}

.benefit-item:nth-child(2) {
    animation-delay: 0.3s;
}

.benefit-item:nth-child(3) {
    animation-delay: 0.5s;
}

/* Mejora para elementos flotantes en pantallas muy pequeñas */
@media (max-width: 480px) {
    .float-card {
        display: none !important;
    }
    
    .hero-visual {
        min-height: 350px;
    }
    
    .phone-container {
        max-width: 220px;
    }
}
