/* --- VARIABLES (Estilo Plano / Flat Design) --- */
:root {
    --bg-color: #1e1e24; /* Gris oscuro mate */
    --text-color: #f4f4f9; /* Blanco crudo */
    --primary-color: #ff4757; /* Rojo vibrante plano */
    --secondary-color: #2ed573; /* Verde vibrante plano */
    --card-bg: #2b2b36; /* Fondo de tarjetas */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'VT323', monospace;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* --- NAVEGACIÓN --- */
nav {
    background-color: var(--bg-color);
    padding: 1rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 4px solid var(--primary-color); /* Borde sólido, sin sombras */
}

.logo {
    font-size: 2rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    font-family: 'VT323', monospace;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

nav a:hover {
    color: var(--primary-color);
}

/* --- SECCIONES GENERALES --- */
section {
    padding: 100px 2rem 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* --- HERO (Inicio) --- */
header.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--card-bg); /* Fondo sólido */
    border-bottom: 4px solid var(--text-color);
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* --- BOTONES (Estilo plano y bloque) --- */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-family: 'VT323', monospace;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: transform 0.1s;
}

.btn:hover {
    transform: translateY(-3px); /* Pequeño salto en lugar de cambiar de color */
    background-color: #ff6b81; /* Un tono un poco más claro */
}

.btn:active {
    transform: translateY(2px); /* Sensación de presionado */
}

/* --- CAJAS / TARJETAS --- */
.historia-content, .descarga-box, .creador-content {
    background-color: var(--card-bg);
    padding: 2rem;
}

/* --- PERSONAJES --- */
.grid-personajes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.carta-personaje {
    background-color: var(--card-bg);
    padding: 1.5rem;
    text-align: center;
}

.imagen-placeholder {
    width: 150px;
    height: 150px;
    background-color: var(--bg-color);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-weight: bold;
}

/* --- CREADOR --- */
.creador-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    color: var(--secondary-color);
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.social-links a:hover {
    color: var(--text-color);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-bg);
    margin-top: 2rem;
    font-size: 0.9rem;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .creador-content {
        flex-direction: column;
        text-align: center;
    }
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 { font-size: 3.5rem; }
}