:root {
    --bg-color: #050508;
    --text-main: #f0f0f0;
    --text-muted: #8a8a9a;
    --accent: #00e5ff;
    --accent-hover: #00b3cc;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Barra de Navegación --- */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 8, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
}

.nav-logo {
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--text-main);
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s, text-shadow 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

/* --- Fin Navegación --- */

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.4;
}

.wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

/* Header / Hero */
.hero {
    text-align: center;
    margin-top: 5rem;
    animation: fadeIn 1.5s ease-out;
}

.profile-pic {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    margin-bottom: 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.profile-pic:hover {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -1.5px;
}

.tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 2.5rem;
}

.actions .btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn.primary {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    backdrop-filter: blur(10px);
}

.btn.primary:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Gallery Section */
.gallery-section h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(10, 10, 12, 0.5);
    border: 1px solid var(--glass-border);
    aspect-ratio: 4/3;
    transition: transform 0.4s ease, border-color 0.4s;
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.download-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s;
    width: fit-content;
    display: inline-block;
}

.download-btn:hover {
    background: #fff;
    color: #000;
}

/* Collab Section */
.collab-section {
    text-align: center;
    margin-top: 2rem;
}

.collab-section h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.collab-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

.email-btn {
    display: inline-block;
    background-color: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.email-btn:hover {
    background-color: var(--accent);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--glass-border);
    color: #555;
    font-size: 0.85rem;
    margin-top: 4rem;
}

.visitor-counter {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.visitor-counter p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .wrapper { padding: 1.2rem; gap: 2.5rem; }
    .hero { margin-top: 5rem; }
    .hero h1 { font-size: 2.4rem; }
    .nav-links { gap: 1rem; }
    .nav-links a { font-size: 0.8rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
    .nav-content { padding: 0 1rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2rem; }
    .hero .tagline { font-size: 1rem; }
    .nav-logo { font-size: 1.1rem; }
    .nav-links { gap: 0.8rem; }
}

/* Estilos para controles móviles de juegos */
.mobile-controls {
    display: none;
    position: fixed;
    bottom: 20px;
    width: 100%;
    left: 0;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1001;
    pointer-events: none;
}

.control-group {
    display: flex;
    gap: 15px;
    pointer-events: auto;
}

.ctrl-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    user-select: none;
    touch-action: manipulation;
    backdrop-filter: blur(5px);
}

.ctrl-btn:active {
    background: var(--accent);
    color: black;
}

@media (max-pointer: coarse) {
    .mobile-controls {
        display: flex;
    }
}

/* --- BANNER DE OBJETIVO (SUSCRIPTORES) --- */
.sub-goal {
    margin: 3rem auto 1rem auto;
    max-width: 900px;
    background: linear-gradient(135deg, rgba(82, 0, 204, 0.4) 0%, rgba(0, 229, 255, 0.1) 100%);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 25px rgba(82, 0, 204, 0.2);
    transition: transform 0.3s;
}

.sub-goal:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 30px rgba(0, 229, 255, 0.3);
}

.goal-icon {
    font-size: 3.5rem;
    text-shadow: 0 0 15px var(--accent);
}

.goal-text {
    flex-grow: 1;
}

.goal-text h3 {
    margin: 0 0 0.5rem 0;
    color: #fff;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.goal-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.sub-button {
    margin-top: 0;
    white-space: nowrap;
    padding: 10px 25px;
    font-size: 0.95rem;
    background: rgba(82, 0, 204, 0.5);
    text-decoration: none;
    color: white;
    border-radius: 30px;
    border: 1px solid var(--accent);
    transition: all 0.3s ease;
}

.sub-button:hover {
    background: rgba(0, 229, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

/* Ajuste móvil para el banner */
@media (max-width: 768px) {
    .sub-goal {
        flex-direction: column;
        text-align: center;
    }
}
