:root {
    --primary-blue: #007BFF;
    --neon-blue: #00F3FF; 
    --dark-bg: #080808;
    --dark-card-bg: #111;
    --text-light: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(26, 26, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --neon-box-glow: 0 0 15px rgba(0, 243, 255, 0.3), 0 0 30px rgba(0, 123, 255, 0.2);
    --subtle-text-glow: 0 0 5px rgba(0, 243, 255, 0.8), 0 0 15px rgba(0, 123, 255, 0.5);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    /* Tipografía secundaria global */
    font-family: 'Inter', sans-serif; 
    
    /* Fondo con textura de cuadrícula Blueprint */
    background-image: 
        linear-gradient(rgba(0, 243, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Tipografía de Títulos */
h1, h2, .section-title, .project-type-label, .platform-btn, nav a {
    font-family: 'Orbitron', sans-serif;
}

header {
    background-color: rgba(8, 8, 8, 0.9);
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav ul { list-style: none; display: flex; gap: 2rem; }
nav a {
    color: var(--text-light);
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}
nav a:hover { color: var(--neon-blue); }
.logo-img { height: 35px; filter: drop-shadow(0 0 3px rgba(0, 243, 255, 0.3)); }

/* --- SECCIÓN HERO (PANTALLA COMPLETA) --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    padding: 0 5%;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(8,8,8,0.4) 0%, rgba(8,8,8,0.9) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    margin-top: 60px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--text-light);
    text-shadow: var(--subtle-text-glow);
    letter-spacing: 2px;
}

.hero h1 span { color: var(--neon-blue); }

.hero-slogan {
    color: var(--text-muted);
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* --- SECCIÓN SOBRE MÍ --- */
.about-section {
    padding: 6rem 5%;
    background-color: var(--dark-card-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.profile-img-placeholder {
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background-color: #000000;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.profile-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.profile-img-placeholder:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--neon-box-glow);
}

.about-text h2 {
    font-size: 2.2rem;
    color: var(--neon-blue); 
    margin-bottom: 1rem;
    text-shadow: var(--subtle-text-glow);
}

/* Insignias Stack Tecnológico */
.tech-stack {
    display: flex;
    gap: 12px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.tech-badge {
    background-color: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.3);
    color: var(--neon-blue);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- SECCIÓN DE PROYECTOS (DESTACADO Y ZIG-ZAG) --- */
.games-section { padding: 6rem 5%; }

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: var(--text-light);
    text-shadow: var(--subtle-text-glow);
}
.section-title span { color: var(--neon-blue); }

/* Etiquetas de categoría */
.project-type-label {
    background-color: rgba(0, 243, 255, 0.1);
    color: var(--neon-blue);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--neon-blue);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}
.absolute-label { position: absolute; top: 20px; right: 20px; z-index: 10; }
.static-label { display: inline-block; margin-bottom: 1rem; }

/* Grupo de botones en fila */
.row-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.center-buttons { justify-content: center; }

/* --- 1. PROYECTO DESTACADO --- */
.featured-project-container {
    max-width: 1100px;
    margin: 0 auto 6rem auto;
}
.featured-project {
    background-color: var(--glass-bg);
    border: 1px solid var(--neon-blue); /* Borde especial brillante */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--neon-box-glow);
    position: relative;
    text-align: center;
    transition: transform 0.3s ease;
}
.featured-project:hover { transform: translateY(-5px); }

.featured-media {
    width: 100%;
    height: 450px;
    position: relative;
}
.featured-info {
    padding: 3rem 2rem;
    border-top: 1px solid var(--glass-border);
}
.featured-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

/* --- 2. RECORRIDO ZIG-ZAG --- */
.zigzag-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem; /* Espacio grande entre cada proyecto */
}

.zigzag-item {
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* La clase reverse invierte el orden para Animaciones */
.zigzag-item.reverse {
    flex-direction: row-reverse;
}

.zigzag-media {
    flex: 1.2; /* El video/imagen ocupa un poco más de espacio que el texto */
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.zigzag-media:hover {
    transform: scale(1.03);
    border-color: var(--neon-blue);
}

.media-fill {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Adapta el video/imagen sin deformarlo */
    display: block;
}

.zigzag-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.left-align { align-items: flex-start; text-align: left; }
.right-align { align-items: flex-end; text-align: right; }

.zigzag-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.zigzag-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* --- RESPONSIVIDAD (Actualiza la parte de móviles) --- */
@media (max-width: 900px) {
    .zigzag-item, .zigzag-item.reverse {
        flex-direction: column;
        gap: 2rem;
    }
    .zigzag-info.left-align, .zigzag-info.right-align {
        align-items: center;
        text-align: center;
    }
    .row-buttons { justify-content: center; }
    .featured-media { height: 280px; }
    .zigzag-media { width: 100%; height: 250px; }
}

/* --- FOOTER --- */
footer {
    padding: 4rem 5% 2rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-content { text-align: center; max-width: 600px; margin-bottom: 3rem; }
.reminder-box {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 8px;
}
.reminder-text { color: var(--text-muted); }
.reminder-text strong { color: var(--text-light); }
.smile { display: block; margin-top: 10px; color: var(--neon-blue); }
.footer-bottom { width: 100%; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 1.5rem; text-align: center; }
.footer-credit { font-size: 0.85rem; color: #555; }

/* --- ANIMACIONES DE SCROLL --- */
.oculto {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 900px) {
    .hero h1 { font-size: 3rem; }
    .about-container { flex-direction: column; text-align: center; }
    .tech-stack { justify-content: center; }
}

@media (max-width: 600px) {
    .games-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.2rem; }
    .hero-slogan { font-size: 1rem; }
    .row-buttons { flex-direction: column !important; }
    header { flex-direction: column; gap: 15px; }
}