/* ==========================================================================
   GAME SAMA - Estilos de Diseño Premium
   ========================================================================== */

/* Variables y Tokens de Diseño */
:root {
    /* Paleta de colores HSL */
    --bg-main: hsl(240, 25%, 6%);
    --bg-surface: hsl(240, 20%, 10%);
    --bg-surface-hover: hsl(240, 20%, 14%);
    --border-color: hsla(240, 15%, 20%, 0.6);
    
    --text-primary: hsl(220, 30%, 96%);
    --text-secondary: hsl(220, 15%, 70%);
    --text-muted: hsl(220, 10%, 50%);
    
    --accent-primary: hsl(270, 85%, 60%);    /* Violeta Neón */
    --accent-secondary: hsl(185, 90%, 50%);  /* Cyan Neón */
    
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), hsl(290, 80%, 55%));
    --gradient-secondary: linear-gradient(135deg, var(--accent-secondary), hsl(210, 90%, 55%));
    --gradient-text: linear-gradient(135deg, hsl(220, 30%, 96%), hsl(220, 15%, 75%));
    --gradient-glow: linear-gradient(135deg, hsla(270, 85%, 60%, 0.15), hsla(185, 90%, 50%, 0.15));

    /* Fuentes */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Efectos */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --glow-primary: 0 0 20px hsla(270, 85%, 60%, 0.35);
    --glow-secondary: 0 0 20px hsla(185, 90%, 50%, 0.35);
    
    /* Layout */
    --max-width: 1200px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset de CSS */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

ul {
    list-style: none;
}

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

/* Fondo decorativo con luces de neón difusas */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.bg-glow-1 {
    background: radial-gradient(circle, hsla(270, 85%, 60%, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.bg-glow-2 {
    background: radial-gradient(circle, hsla(185, 90%, 50%, 0.1) 0%, transparent 70%);
    bottom: 20%;
    left: -200px;
}

/* Tipografía y Estilo de Texto */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.btn-secondary {
    background-color: hsla(240, 15%, 20%, 0.4);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: hsla(240, 15%, 20%, 0.7);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-main);
    border-color: var(--text-primary);
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background-color: hsla(270, 85%, 60%, 0.1);
    color: var(--accent-primary);
    border: 1px solid hsla(270, 85%, 60%, 0.2);
    border-radius: 99px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Encabezado Principal / Navbar */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: hsla(240, 25%, 6%, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid hsla(240, 15%, 20%, 0.3);
    transition: var(--transition-smooth);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent-primary);
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Sección Hero */
.hero-section {
    padding: 180px 0 100px 0;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-top: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Gráfico del Hero - Teléfono Animado */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    width: 280px;
    height: 570px;
    background: #0f172a;
    border: 12px solid #334155;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), var(--glow-primary);
    position: relative;
    overflow: hidden;
}

.device-screen {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1e1b4b 0%, #030712 100%);
    position: relative;
}

.game-preview-animation {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Elementos animados interactivos simulando un juego */
.game-character {
    position: absolute;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: characterPulse 3s infinite ease-in-out;
    box-shadow: 0 0 15px var(--accent-primary);
}

.game-particle {
    position: absolute;
    border-radius: 50%;
    background-color: var(--accent-secondary);
    box-shadow: 0 0 8px var(--accent-secondary);
}

.gp-1 {
    width: 12px;
    height: 12px;
    top: 25%;
    left: 30%;
    animation: floatParticle 4s infinite linear;
}

.gp-2 {
    width: 8px;
    height: 8px;
    top: 70%;
    left: 70%;
    animation: floatParticle 3s infinite linear reverse;
}

.gp-3 {
    width: 10px;
    height: 10px;
    top: 15%;
    left: 65%;
    animation: floatParticle 5s infinite linear;
}

/* Animaciones */
@keyframes characterPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        box-shadow: 0 0 15px var(--accent-primary);
    }
    50% {
        transform: translate(-50%, -60%) scale(1.15) rotate(45deg);
        box-shadow: 0 0 25px var(--accent-secondary);
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-30px) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(-60px) scale(0.8);
        opacity: 0;
    }
}

/* Sección Nosotros (About) */
.about-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background-color: hsla(240, 20%, 8%, 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 2.2rem;
    margin-top: 0.5rem;
    font-weight: 700;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 1rem auto 0 auto;
}

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

.about-info-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: var(--transition-smooth);
}

.about-info-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    background-color: var(--bg-surface-hover);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.about-info-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

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

/* Sección Juegos */
.games-section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.game-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-secondary);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5), var(--glow-secondary);
}

.game-card-img {
    height: 180px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
}

.status-soon {
    background-color: hsl(270, 85%, 60%);
    color: var(--text-primary);
}

.status-proto {
    background-color: hsl(185, 90%, 45%);
    color: hsl(240, 25%, 6%);
}

.status-design {
    background-color: hsl(20, 90%, 50%);
    color: var(--text-primary);
}

.game-icon-visual {
    font-size: 4rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    transition: var(--transition-smooth);
}

.game-card:hover .game-icon-visual {
    transform: scale(1.15) rotate(5deg);
}

.game-card-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.35rem;
}

.game-genre {
    color: var(--accent-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.game-card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.game-platforms {
    display: flex;
    gap: 0.5rem;
}

.platform-tag {
    background-color: hsla(240, 15%, 20%, 0.5);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Sección Contacto */
.contact-section {
    padding: 100px 0;
    background: radial-gradient(ellipse at bottom, hsla(270, 85%, 60%, 0.08) 0%, transparent 60%);
    border-top: 1px solid var(--border-color);
}

.contact-container {
    display: flex;
    justify-content: center;
}

.contact-card {
    background: linear-gradient(135deg, var(--bg-surface), hsla(240, 20%, 12%, 0.8));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3.5rem 3rem;
    text-align: center;
    max-width: 700px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

.contact-card h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-item {
    background-color: var(--bg-surface-hover);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.contact-icon {
    font-size: 1.3rem;
}

/* Pie de Página */
.main-footer {
    background-color: hsl(240, 25%, 4%);
    padding: 2.5rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.credits {
    color: var(--text-secondary);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-container {
        height: 60px;
    }

    .main-nav {
        display: none; /* Simplificado para móviles en landing sencilla */
    }

    .hero-section {
        padding: 130px 0 60px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

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