/* css/styles.css */

/* --- Variables y Configuración --- */
:root {
    --bg-color: #000000;
    --bg-secondary: #0a0f1a;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;

    --accent-blue: #38bdf8;
    --accent-purple: #8b5cf6;
    --accent-gold: #ffd700;
    --accent-green: #3ddc84;
    --accent-hover: #0284c7;

    --glass-bg: rgba(30, 30, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);

    --card-radius: 20px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 1200px;
    --nav-height: 70px;
    --section-spacing: 5rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 32%),
        radial-gradient(circle at top right, rgba(255, 215, 0, 0.12), transparent 28%),
        radial-gradient(circle at bottom, rgba(61, 220, 132, 0.10), transparent 30%),
        #000000;
}

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

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    z-index: 1001;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

@media (min-width: 768px) {
    .nav-link {
        display: block;
    }
}

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

.nav-cta {
    background: linear-gradient(135deg, var(--accent-gold), #ffb703);
    color: #000;
    padding: 10px 20px;
    border-radius: 980px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.22);
}

.nav-cta:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #ffe866, var(--accent-gold));
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.35);
}

/* --- Layout Generales --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.narrow-container {
    max-width: 800px;
}

section {
    padding: var(--section-spacing) 0;
    width: 100%;
}

.section-dark {
    background-color: transparent;
}

.section-light {
    background: rgba(10, 15, 26, 0.88);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.04em;
}

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

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 2rem);
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
    width: 100%;
}

@media (min-width: 992px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
        justify-content: center;
        gap: 5rem;
    }
    
    .hero-text {
        flex: 1;
        align-items: flex-start;
        max-width: 600px;
    }
    
    .hero-image {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 4.7rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-blue) 50%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 500px;
}

/* --- Botones --- */
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 600px) {
    .hero-actions {
        flex-direction: row;
        width: auto;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 980px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

@media (min-width: 600px) {
    .btn {
        width: auto;
    }
}

/* Botón Android */
.btn-android {
    background: linear-gradient(135deg, #3DDC84 0%, #1FBF66 100%);
    color: #06140b;
    box-shadow: 0 4px 20px rgba(61, 220, 132, 0.3);
}

.btn-android:hover {
    background: linear-gradient(135deg, #50e995 0%, #25d973 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(61, 220, 132, 0.5);
}

/* Botón iOS */
.btn-ios {
    background: linear-gradient(135deg, #f5f5f7 0%, #d9d9df 100%);
    color: #000000;
    box-shadow: 0 4px 20px rgba(245, 245, 247, 0.18);
}

.btn-ios:hover {
    background: linear-gradient(135deg, #ffffff 0%, #eeeeee 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 245, 247, 0.32);
}

/* --- Mockup Responsivo --- */
.phone-mockup {
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9/19;
    background: #1c1c1e;
    border-radius: 36px;
    border: 6px solid #333;
    position: relative;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(56, 189, 248, 0.18);
    margin: 0 auto;
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

/* --- Gameplay Gallery --- */
.gameplay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.gallery-card {
    border-radius: 24px;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    aspect-ratio: 9/16;
    max-width: 320px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.08);
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 45px rgba(56, 189, 248, 0.18);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Gameplay Wide --- */
.gameplay-wide {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.wide-card {
    border-radius: 24px;
    overflow: hidden;
    background: #1a1a1a;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    aspect-ratio: 16/9;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.08);
}

.wide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 45px rgba(255, 215, 0, 0.16);
}

.wide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .gameplay-wide {
        grid-template-columns: 1fr;
    }
}

/* --- Features --- */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    padding: 2rem;
    border-radius: var(--card-radius);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(30, 30, 30, 0.75);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* --- Video Section --- */
.section-video {
    background: transparent;
}

.video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center, rgba(56, 189, 248, 0.15), transparent 40%),
        #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* --- About --- */
.section-about {
    background: rgba(10, 15, 26, 0.88);
    border-top: 1px solid var(--glass-border);
}

.section-about h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.section-about p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.2rem);
}

/* --- Footer --- */
footer {
    padding: 60px 0 40px;
    background-color: #050505;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.footer-copy p {
    color: #444;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

/* --- Animaciones --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 1.5rem);
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .phone-mockup {
        max-width: 250px;
    }

    .section-header {
        margin-bottom: 2.2rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1rem;
    }

    .nav-cta {
        padding: 9px 16px;
        font-size: 0.8rem;
    }

    .hero-text h1 {
        font-size: 2.55rem;
    }

    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 360px) {
    :root {
        --nav-height: 60px;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }
}

/* --- Legal Pages: Privacy, Terms, Technical --- */

.nav-link.active {
    color: var(--text-primary);
}

.legal-main {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 5rem;
}

.legal-card {
    background: rgba(10, 15, 26, 0.82);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.24);
    color: #bae6fd;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.legal-header h1 {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.06em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue), var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.legal-body {
    color: rgba(245, 245, 247, 0.86);
    font-size: 1.05rem;
    line-height: 1.85;
}

.legal-body p {
    margin-bottom: 1.4rem;
}

.legal-intro {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.legal-highlight {
    margin: 2rem 0;
    padding: 1.3rem 1.5rem;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #dbeafe;
}

.legal-body h2 {
    margin-top: 2.6rem;
    margin-bottom: 1rem;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    font-weight: 850;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.legal-body ul {
    margin: 1rem 0 1.8rem;
    padding-left: 1.2rem;
}

.legal-body li {
    margin-bottom: 0.9rem;
    color: var(--text-secondary);
}

.legal-body li::marker {
    color: var(--accent-blue);
}

.legal-body strong {
    color: var(--text-primary);
    font-weight: 800;
}

.legal-body a {
    color: var(--accent-blue);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.legal-body a:hover {
    color: var(--accent-gold);
}

.legal-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 600px) {
    .legal-actions {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .legal-main {
        padding-top: calc(var(--nav-height) + 2rem);
        padding-bottom: 3.5rem;
    }

    .legal-body {
        font-size: 1rem;
        line-height: 1.75;
    }

    .legal-card {
        border-radius: 22px;
    }
}

/* --- Press Kit Page Extra --- */

.press-hero-header p {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.press-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .press-layout {
        grid-template-columns: 340px 1fr;
        align-items: start;
    }
}

.press-sidebar {
    position: relative;
    padding: 2rem;
    border-radius: 24px;
}

@media (min-width: 992px) {
    .press-sidebar {
        position: sticky;
        top: calc(var(--nav-height) + 2rem);
    }
}

.press-sidebar h2,
.press-block h2,
.press-assets h2,
.press-contact h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.press-facts {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.press-facts li {
    display: grid;
    gap: 0.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.press-facts li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.press-facts span {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.press-facts strong {
    color: var(--text-primary);
    font-size: 0.98rem;
    line-height: 1.4;
}

.press-content {
    display: grid;
    gap: 2rem;
}

.press-block {
    padding: 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.press-kicker {
    display: inline-flex;
    margin-bottom: 0.9rem;
    color: var(--accent-gold);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.press-block p {
    color: rgba(245, 245, 247, 0.82);
    font-size: 1.02rem;
    line-height: 1.75;
    margin-bottom: 1.2rem;
}

.press-block p:last-child {
    margin-bottom: 0;
}

.press-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 700px) {
    .press-points {
        grid-template-columns: repeat(2, 1fr);
    }
}

.press-points article {
    padding: 1.4rem;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.press-points article:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.28);
    background: rgba(15, 23, 42, 0.92);
}

.press-points h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.press-points p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

.press-assets {
    margin-top: 3rem;
    padding: 3rem 2rem;
    border-radius: 28px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(255, 215, 0, 0.16), transparent 32%),
        radial-gradient(circle at bottom, rgba(56, 189, 248, 0.14), transparent 36%),
        rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.press-assets-content {
    max-width: 760px;
    margin: 0 auto;
}

.press-assets p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.7rem;
}

.asset-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.asset-list span {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.22);
    font-size: 0.85rem;
    font-weight: 700;
}

.press-contact {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.press-contact p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

@media (min-width: 768px) {
    .press-contact {
        grid-template-columns: 1fr auto;
    }
}

@media (max-width: 600px) {
    .press-block,
    .press-sidebar,
    .press-contact {
        padding: 1.4rem;
        border-radius: 20px;
    }

    .press-assets {
        padding: 2rem 1.2rem;
        border-radius: 22px;
    }
}