/* css/styles.css */

/* --- Variables y Configuración --- */
:root {
    --bg-color: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent-blue: #2997ff;
    --accent-hover: #0077ed;
    --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;
}

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: 700;
    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; /* Oculto en móvil por defecto */
}

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

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

.nav-cta {
    background-color: var(--text-primary);
    color: #000;
    padding: 10px 20px;
    border-radius: 980px;
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-cta:hover { transform: scale(1.02); background-color: #fff; }

/* --- 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: var(--bg-color); }
.section-light { background-color: var(--bg-secondary); }

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

/* Tipografía Responsiva (Clamp) */
.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.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; /* Asegura centrado vertical/horizontal del contenedor */
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
    width: 100%; /* Asegura que tome el ancho disponible */
}

/* Desktop Hero - CORRECCIÓN DE CENTRADO EN LAPTOP */
@media (min-width: 992px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
        justify-content: center; /* Antes space-between, ahora center para agrupar */
        gap: 5rem; /* Aumentado el gap para mejor separación visual central */
    }
    
    .hero-text {
        flex: 1;
        align-items: flex-start;
        max-width: 600px; /* Evita que el texto se estire demasiado */
    }
    
    .hero-image {
        flex: 1;
        display: flex;
        justify-content: center; /* Centra la imagen en su columna */
        align-items: center;
    }
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #2997ff 0%, #bd00ff 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 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 980px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

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

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
    box-shadow: 0 4px 20px rgba(41, 151, 255, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(41, 151, 255, 0.5);
}

.btn-secondary {
    background-color: var(--text-primary);
    color: #000;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.25);
}

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

@media (min-width: 600px) {
    .hero-actions {
        flex-direction: row;
        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);
    margin: 0 auto;
}

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

/* --- Gameplay Gallery (Grid Layout Original) --- */
.gameplay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-content: center; /* Asegura que los items se centren si sobran espacios */
}

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

.gallery-card:hover {
    transform: translateY(-10px);
}

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

/* --- Gameplay WIDE (Nueva fila) --- */
.gameplay-wide {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Fuerza 2 columnas en desktop/tablet */
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

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

.wide-card:hover {
    transform: translateY(-5px);
}

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

/* Responsive para la nueva fila Wide */
@media (max-width: 768px) {
    .gameplay-wide {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
}

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

@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;
}

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

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

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

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

/* --- Video Section --- */
.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: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 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; }

/* Ajustes finales para móviles muy pequeños */
@media (max-width: 360px) {
    :root { --nav-height: 60px; }
    .hero-text h1 { font-size: 2.2rem; }
}

/* --- ESTILOS PARA PÁGINAS LEGALES Y TÉCNICAS --- */

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

.legal-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--card-radius);
    padding: 3rem;
}

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

.legal-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.legal-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-body {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #e0e0e0;
}

.legal-body h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.legal-body ul {
    list-style: disc;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.legal-body li { margin-bottom: 0.5rem; padding-left: 0.5rem; }

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

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

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

@media (max-width: 768px) {
    .legal-card { padding: 1.5rem; border-radius: 16px; }
    .legal-main { padding-top: calc(var(--nav-height) + 1rem); }
    .legal-body { font-size: 1rem; }
    .legal-header h1 { font-size: 2rem; }
}

/* Estilos extra para Technical Docs (heredados si es necesario) */
.tech-hero { padding-top: 120px; padding-bottom: 60px; text-align: center; }
.tech-badge-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.tech-badge { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 6px 14px; border-radius: 6px; font-size: 0.85rem; color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; justify-content: center; }
.tech-card { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 1.5rem; border-radius: 12px; }
.tech-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-primary); display: flex; align-items: center; gap: 10px; }
.tech-card p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }
.deps-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; justify-content: center; }
.dep-item { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--accent-blue); background: rgba(41, 151, 255, 0.1); padding: 8px 12px; border-radius: 4px; text-align: center; }
.code-window { background: #1e1e1e; border: 1px solid #333; border-radius: 12px; overflow: hidden; font-family: 'JetBrains Mono', monospace; margin: 2rem 0; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.code-header { background: #2d2d2d; padding: 10px 15px; display: flex; gap: 6px; border-bottom: 1px solid #333; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.code-content { padding: 20px; overflow-x: auto; color: #d4d4d4; font-size: 0.9rem; line-height: 1.6; }
.tree-line { display: block; } .tree-comment { color: #6a9955; margin-left: 15px; font-style: italic; } .tree-folder { color: var(--accent-blue); font-weight: bold; } .tree-file { color: var(--text-primary); }
.tech-screens { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 40px; justify-content: center; }
.screen-placeholder { aspect-ratio: 16/9; background: #111; border: 1px solid var(--glass-border); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 0.9rem; }
.tech-list { list-style: none; }
.tech-list li { position: relative; padding-left: 25px; margin-bottom: 12px; color: var(--text-secondary); }
.tech-list li::before { content: "▹"; position: absolute; left: 0; color: var(--accent-blue); }



/* --- ESTILOS ESPECÍFICOS PARA PRESS KIT (Agregar al final de styles.css) --- */

.press-header {
    text-align: center;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2rem;
}

.press-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Layout de dos columnas: Sidebar (Fact Sheet) + Contenido */
.press-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 992px) {
    .press-layout {
        grid-template-columns: 300px 1fr; /* Sidebar fijo, contenido fluido */
    }
}

/* Estilos del Fact Sheet */
.fact-sheet {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fact-sheet li {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.5rem;
}

.fact-sheet strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

.fact-sheet span, .fact-sheet a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.press-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Sección de Assets */
.press-section {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.press-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.asset-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
}

.asset-preview {
    height: 200px;
    background-image: 
        linear-gradient(45deg, #1a1a1a 25%, transparent 25%), 
        linear-gradient(-45deg, #1a1a1a 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, #1a1a1a 75%), 
        linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    background-color: #111; /* Patrón de ajedrez para ver transparencias */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.asset-preview img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.asset-info {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
}

.asset-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.btn-download {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-download:hover {
    background: var(--accent-blue);
    color: white;
}