@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
    --purple:        #7C3AED;
    --purple-light:  #A78BFA;
    --pink:          #EC4899;
    --cyan:          #06B6D4;
    --bg:            #0F0A1E;
    --bg-elevated:   #1A1133;
    --bg-overlay:    #251B45;
    --border:        rgba(124, 58, 237, 0.25);
    --text:          #EDE9FE;
    --text-muted:    #94A3B8;
    --gradient:      linear-gradient(135deg, var(--purple), var(--pink));
    --gradient-game: linear-gradient(135deg, var(--purple), var(--cyan));
    --shadow-glow:   0 0 40px rgba(124, 58, 237, 0.25);
    --radius:        16px;
    --radius-sm:     10px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

img { display: block; max-width: 100%; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Navbar ────────────────────────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(15, 10, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
    border-color: var(--border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

#navbar nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img { height: 36px; border-radius: 8px; }

.nav-links { display: flex; gap: 8px; align-items: center; }

.nav-links a {
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s, background 0.2s;
}

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

.nav-links a:last-child {
    background: var(--gradient);
    color: white;
    -webkit-text-fill-color: white;
}

.nav-links a:last-child:hover { opacity: 0.9; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-orbs { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
}

.orb-1 {
    width: 600px; height: 600px;
    background: var(--purple);
    top: -200px; left: -200px;
    animation: float 8s ease-in-out infinite;
}

.orb-2 {
    width: 400px; height: 400px;
    background: var(--pink);
    bottom: -100px; right: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.orb-3 {
    width: 300px; height: 300px;
    background: var(--cyan);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-overlay);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple-light);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
}

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

.hero > .container p, .hero-content > p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.5);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover { background: var(--bg-overlay); border-color: var(--purple); }

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 16px 32px;
    border-radius: var(--radius);
}

.stat { text-align: center; }
.stat-number { display: block; font-size: 1.3rem; font-weight: 800; color: var(--purple-light); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ─── Section Commons ───────────────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 4rem; }

.section-tag {
    display: inline-block;
    background: var(--bg-overlay);
    border: 1px solid var(--border);
    color: var(--purple-light);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.ai-tag { color: var(--cyan); border-color: rgba(6, 182, 212, 0.3); }
.gaming-tag { color: #A3E635; border-color: rgba(163, 230, 53, 0.3); }

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ─── Features — Mensajería ─────────────────────────────────────────────── */
.features { padding: 100px 0; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--purple);
    box-shadow: var(--shadow-glow);
}

.feature-card .icon {
    width: 52px; height: 52px;
    background: var(--gradient);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin-bottom: 1.2rem;
}

.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ─── Features — AI ─────────────────────────────────────────────────────── */
.features-ai {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent, var(--bg-elevated) 50%, transparent);
}

.ai-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
}

.ai-card {
    background: var(--bg);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ai-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.15);
}

.ai-card-main {
    border-color: rgba(6, 182, 212, 0.4);
    background: linear-gradient(135deg, var(--bg-elevated), rgba(6, 182, 212, 0.05));
}

.ai-icon {
    width: 52px; height: 52px;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: white;
    margin-bottom: 1.2rem;
}

.ai-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; }
.ai-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.2rem; }

.ai-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-chips span {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--cyan);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* ─── Features — Gaming ─────────────────────────────────────────────────── */
.features-gaming { padding: 100px 0; }

.gaming-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.game-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.game-card:not(.coming):hover {
    transform: translateY(-6px);
    border-color: #A3E635;
    box-shadow: 0 0 40px rgba(163, 230, 53, 0.15);
}

.game-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: white;
    margin: 0 auto 1.2rem;
}

.game-icon.domino  { background: var(--gradient); }
.game-icon.parchis { background: var(--gradient-game); }
.game-icon.more    { background: var(--bg-overlay); border: 1px dashed var(--border); font-size: 1.4rem; }

.game-card h3 { font-weight: 700; margin-bottom: 0.6rem; }
.game-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.2rem; }

.game-badge {
    display: inline-block;
    background: rgba(163, 230, 53, 0.15);
    color: #A3E635;
    border: 1px solid rgba(163, 230, 53, 0.4);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}

.game-badge.soon {
    background: rgba(124, 58, 237, 0.15);
    color: var(--purple-light);
    border-color: var(--border);
}

.gaming-extras {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gaming-extra-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: border-color 0.3s;
}

.gaming-extra-card:hover { border-color: var(--purple); }

.gaming-extra-card i {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    display: block;
}

.gaming-extra-card h4 { font-weight: 700; margin-bottom: 0.5rem; font-size: 0.95rem; }
.gaming-extra-card p { color: var(--text-muted); font-size: 0.82rem; }

/* ─── Gallery ───────────────────────────────────────────────────────────── */
.gallery {
    padding: 100px 0;
    background: var(--bg-elevated);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(15,10,30,0.9));
    padding: 24px 16px 14px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

/* ─── Download ──────────────────────────────────────────────────────────── */
.download { padding: 100px 0; }

.download-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.download-text .section-tag { margin-bottom: 1rem; }

.download-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.download-text > p { color: var(--text-muted); margin-bottom: 2rem; }

.download-buttons { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 1.2rem; }

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-weight: 600;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    min-width: 160px;
}

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

.btn-download span { display: block; }
.btn-download .btn-small { font-size: 0.72rem; color: var(--text-muted); font-weight: 400; }
.btn-download .btn-big { font-size: 1rem; font-weight: 700; }

.btn-download.android {
    background: var(--gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 24px rgba(124,58,237,0.35);
}

.btn-download.android:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124,58,237,0.5);
}

.btn-download.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.apk-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.apk-note i { color: var(--cyan); flex-shrink: 0; margin-top: 3px; }

.phone-mockup {
    border-radius: 28px;
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: var(--shadow-glow);
    aspect-ratio: 9/16;
    max-height: 520px;
}

.phone-mockup img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Contact ───────────────────────────────────────────────────────────── */
.contact {
    padding: 100px 0;
    background: var(--bg-elevated);
    text-align: center;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 1rem;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
}

.newsletter-form input {
    flex: 1;
    padding: 15px 24px;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.newsletter-form input::placeholder { color: var(--text-muted); }

.newsletter-form button {
    padding: 14px 28px;
    background: var(--gradient);
    border: none;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.newsletter-form button:hover { opacity: 0.9; }

.newsletter-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6EE7B7;
    font-weight: 600;
    margin-top: 0.8rem;
}

.newsletter-success.show { display: flex; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-top {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo { margin: 0 auto 0.8rem; display: inline-flex; }

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

.footer-divider { height: 1px; background: var(--border); margin-bottom: 2rem; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 50px;
    transition: color 0.2s, background 0.2s;
}

.footer-links a:hover { color: var(--text); background: var(--bg-overlay); }

.copyright { color: var(--text-muted); font-size: 0.82rem; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ai-grid { grid-template-columns: 1fr; }
    .gaming-grid { grid-template-columns: 1fr 1fr; }
    .gaming-extras { grid-template-columns: 1fr 1fr; }
    .download-content { grid-template-columns: 1fr; }
    .download-visual { display: none; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 69px; left: 0; right: 0;
        background: rgba(15, 10, 30, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.open { display: flex; }

    .nav-links a { padding: 12px 20px; border-radius: var(--radius-sm); }

    .hamburger { display: flex; }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px 24px;
    }

    .stat-divider { width: 80px; height: 1px; }

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

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

    .footer-links { justify-content: center; }
}

@media (max-width: 480px) {
    .gaming-extras { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
    .newsletter-form { flex-direction: column; border-radius: var(--radius); }
    .newsletter-form input { border-radius: var(--radius) var(--radius) 0 0; padding: 14px 20px; }
    .newsletter-form button { border-radius: 0 0 var(--radius) var(--radius); justify-content: center; }
}
