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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #ec4899;
    --android-green: #3ddc84;
    --ios-blue: #007aff;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-light: #f1f5f9;
    --text-gray: #94a3b8;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 25px 80px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* ===========================
   Partículas de Fondo
   =========================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.particle:nth-child(1) {
    background: var(--primary-color);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    background: var(--secondary-color);
    top: 60%;
    right: 10%;
    animation-delay: 4s;
}

.particle:nth-child(3) {
    background: #10b981;
    bottom: 10%;
    left: 50%;
    animation-delay: 8s;
}

.particle:nth-child(4) {
    background: var(--ios-blue);
    top: 40%;
    left: 70%;
    animation-delay: 12s;
}

.particle:nth-child(5) {
    background: #fbbf24;
    bottom: 30%;
    left: 20%;
    animation-delay: 16s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 200px;
    height: auto;
    border-radius: 25px;
    filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

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

.main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 60px;
    font-weight: 300;
}

/* ===========================
   Download Section
   =========================== */
.download-section {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.download-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
}

.android-card::before {
    background: linear-gradient(90deg, var(--android-green), #00d857);
}

.ios-card::before {
    background: linear-gradient(90deg, var(--ios-blue), #0051d5);
}

.download-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.android-card .card-icon {
    background: linear-gradient(135deg, var(--android-green), #00d857);
}

.ios-card .card-icon {
    background: linear-gradient(135deg, var(--ios-blue), #0051d5);
}

.card-content {
    text-align: center;
    width: 100%;
}

.card-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.card-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ===========================
   Botones
   =========================== */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.android-btn {
    background: linear-gradient(135deg, var(--android-green), #00d857);
    color: white;
}

.ios-btn {
    background: linear-gradient(135deg, #1f2937, #000000);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ios-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.android-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(61, 220, 132, 0.4);
}

/* ===========================
   Wishlist Section (iOS)
   =========================== */
.coming-soon-text {
    font-size: 1rem;
    margin-bottom: 30px;
}

.wishlist-section {
    margin-top: 30px;
    padding: 30px;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.wishlist-intro {
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.8;
}

.wishlist-intro strong {
    color: var(--ios-blue);
    font-size: 1.2rem;
}

.form-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-container iframe {
    display: block;
    min-height: 400px;
}

.privacy-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 15px;
    text-align: center;
    justify-content: center;
}

.privacy-note svg {
    flex-shrink: 0;
    opacity: 0.7;
}

/* ===========================
   Social Media Section
   =========================== */
.social-section {
    margin-top: 80px;
    text-align: center;
}

.social-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.social-btn:hover::before {
    left: 100%;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.social-btn svg {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.instagram-btn {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.instagram-btn:hover {
    box-shadow: 0 15px 40px rgba(131, 58, 180, 0.5);
}

.tiktok-btn {
    background: linear-gradient(135deg, #000000, #00f2ea, #ff0050);
}

.tiktok-btn:hover {
    box-shadow: 0 15px 40px rgba(0, 242, 234, 0.5);
}

/* ===========================
   Features Section
   =========================== */
.features {
    margin-top: 80px;
    padding: 60px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.feature-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.feature-item:hover .feature-icon-img {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.5));
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.feature-item p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 40px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

/* ===========================
   Animaciones
   =========================== */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .hero {
        padding: 40px 20px;
    }

    .logo {
        max-width: 150px;
    }

    .download-card {
        padding: 30px 20px;
    }

    .wishlist-section {
        padding: 20px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

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

    .footer .container {
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    .form-container iframe {
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .download-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .card-content h3 {
        font-size: 1.5rem;
    }

    .card-content p {
        font-size: 1rem;
    }
}

/* ===========================
   Mejoras de Accesibilidad
   =========================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Mejora del contraste en modo alto contraste */
@media (prefers-contrast: high) {
    .download-card {
        border: 2px solid white;
    }
    
    .gradient-text {
        -webkit-text-fill-color: var(--text-light);
    }
}
