/* --- FUNDAMENTOS --- */
:root {
    --accent: #344eaa;
    --bg: #0b0b0b;
    --glass: rgba(11, 11, 11, 0.75);
}

* {
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg);
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
}
/* Bloquear selección de texto en toda la web */
body {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none;      /* IE 10 y superior */
  user-select: none;          /* Estándar (Chrome, Firefox, Opera) */
}

/* Si quieres que los campos de texto SÍ se puedan usar */
input, textarea {
  user-select: text;
}

/* --- NAVEGACIÓN (APPLE STYLE) --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    padding: 12px 10%;
    background: rgba(0, 0, 0, 0.9);
}

.logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -1px;
    text-shadow: 0 0 15px rgba(52, 78, 170, 0.3);
}

.nav-links {
    display: flex; 
    gap: 30px; 
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover { color: white; }

/* --- HERO --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0b0b0b 100%);
}

.hero-content {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.text-group { flex: 1; max-width: 500px; }

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 20px;
}

.btn-main {
    display: inline-block;
    padding: 14px 35px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.4s;
    margin-top: 20px;
}

.btn-main:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

.hero-image img {
    max-width: 500px;
    height: auto;
    filter: drop-shadow(0 0 50px rgba(52, 78, 170, 0.2));
}

/* --- SECCIONES --- */
.section-padding { padding: 120px 10%; }

.section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--accent);
    margin-bottom: 60px;
    text-align: center;
}

.alternate-bg { background-color: #050505; }

/* --- GRIDS --- */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.game-card {
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
}

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
    transition: 0.5s;
}

.game-info {
    position: absolute;
    bottom: 0; padding: 30px;
    transition: 0.5s;
}

.game-card:hover::before { background: rgba(52, 78, 170, 0.2); }
.game-info p { opacity: 0; transform: translateY(10px); transition: 0.4s; }
.game-card:hover .game-info p { opacity: 1; transform: translateY(0); }

/* --- REVEAL ANIMATION --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- FOOTER --- */
.main-footer {
    padding: 80px 10% 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
}
/* --- PRELOADER --- */
#preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: #0b0b0b;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Por encima de TODO */
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-content { text-align: center; }

.loader-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: #344eaa;
    letter-spacing: 5px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 10px;
}

.progress {
    width: 0;
    height: 100%;
    background: #344eaa;
    animation: load 2s forwards ease-in-out;
}

.loader-status {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
}

/* Animaciones */
@keyframes load {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Clase para ocultar el loader */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
:root {
    --bg-dark: #000000;      /* Negro puro, ahorro de energía y elegancia */
    --text-main: #ffffff;    /* Blanco puro para títulos */
    --text-dim: #a1a1a1;     /* Gris Apple para descripciones */
    --accent-blue: #344eaa;  /* El núcleo de NeoCorp */
}

/* El Hero con un degradado de "Luz de Luna" */
.hero {
    background: radial-gradient(circle at 70% 30%, #1a1a1a 0%, #000000 100%);
}

/* Tarjetas con estilo "White Ghost" al pasar el mouse */
.game-card:hover {
    border: 1px solid rgba(255, 255, 255, 0.8); /* Borde blanco brillante */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* Botones con inversión de color (Efecto Apple) */
.btn-main {
    background-color: #ffffff;
    color: #000000;
    mix-blend-mode: screen; /* Esto hace que el botón "interactúe" con el fondo */
}
.eco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.eco-item {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.eco-item:hover {
    border-top: 1px solid var(--accent);
}

.eco-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 20px;
    filter: grayscale(1); /* Minimalismo Apple */
    transition: 0.3s;
}

.eco-item:hover .eco-icon {
    filter: grayscale(0); /* Al pasar el mouse, "cobra vida" */
}

.eco-item h3 {
    font-size: 1.1rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.eco-item p {
    font-size: 0.8rem;
    color: var(--text-dim);
}
/* Resaltar NeoEngine */
.engine-highlight {
    background: linear-gradient(145deg, #111, #000);
    border: 1px solid rgba(52, 78, 170, 0.3) !important;
    border-radius: 15px;
    padding: 30px !important;
}

.btn-install {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 20px;
    background-color: var(--accent); /* Tu azul #344eaa */
    color: white;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-install:hover {
    background-color: white;
    color: black;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Ajuste general para los iconos del ecosistema */
.eco-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}