/* --- RESET & BASICS --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }
body { background-color: #050505; color: #e0e0e0; scroll-behavior: smooth; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- VARIABLES --- */
:root { --neon: #00f2ff; --dark-bg: #0a0a0a; --card-bg: #111; --text-gray: #888; }

/* --- NAV --- */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; background: rgba(5,5,5,0.95); backdrop-filter: blur(10px); position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid #222; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; color: #fff; }
.logo span { color: var(--neon); }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a:hover { color: var(--neon); }

/* --- HERO --- */
.hero { min-height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at center, #151515 0%, #050505 70%); padding-top: 80px; }
.badge { background: rgba(0, 242, 255, 0.1); padding: 5px 15px; border-radius: 20px; font-size: 0.75rem; color: var(--neon); border: 1px solid var(--neon); letter-spacing: 1px; }
.hero h1 { font-size: 4rem; margin: 25px 0 15px; line-height: 1.1; color: #fff; }
.highlight { background: linear-gradient(90deg, #fff, var(--neon)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero h2 { font-size: 1.5rem; color: var(--text-gray); font-weight: 400; margin-bottom: 30px; }
.cta-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* --- BOTONES --- */
.btn { padding: 12px 30px; border-radius: 5px; font-weight: bold; cursor: pointer; border: none; }
.primary { background: var(--neon); color: #000; }
.primary:hover { box-shadow: 0 0 25px rgba(0, 242, 255, 0.4); transform: translateY(-2px); }
.secondary { background: transparent; border: 1px solid #333; color: #fff; }
.secondary:hover { border-color: #fff; background: #fff; color: #000; }

/* --- HALFVIBE SECTION --- */
.halfvibe-section { padding: 80px 20px; background: #080808; text-align: center; border-top: 1px solid #222; border-bottom: 1px solid #222; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 10px; color: #fff; }
.section-title p { color: #888; margin-bottom: 40px; }
.subtitle-badge { display: inline-block; background: rgba(0, 242, 255, 0.1); color: #00f2ff; border: 1px solid #00f2ff; padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; margin-bottom: 15px; letter-spacing: 1px; }
.game-console { position: relative; width: 100%; max-width: 1000px; height: 600px; margin: 0 auto; background: #000; border: 2px solid #333; border-radius: 12px; overflow: hidden; box-shadow: 0 0 50px rgba(0,0,0,0.5); transition: 0.3s; }
.game-console:hover { border-color: #00f2ff; box-shadow: 0 0 30px rgba(0, 242, 255, 0.15); }
.game-console iframe { width: 100%; height: 100%; border: none; }
.server-status { position: absolute; top: 15px; left: 15px; background: rgba(0,0,0,0.8); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: bold; display: flex; align-items: center; gap: 8px; pointer-events: none; border: 1px solid #333; }
.dot { width: 8px; height: 8px; background-color: #0f0; border-radius: 50%; box-shadow: 0 0 5px #0f0; }
.game-info { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.tech-stack { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tech-pill { background: #151515; color: #aaa; padding: 8px 15px; border-radius: 20px; font-size: 0.9rem; border: 1px solid #333; display: flex; align-items: center; gap: 8px; }
.tech-pill i { color: #00f2ff; }
.btn-fullscreen { padding: 12px 30px; background: transparent; color: #00f2ff; border: 1px solid #00f2ff; border-radius: 5px; font-weight: bold; text-transform: uppercase; font-size: 0.9rem; }
.btn-fullscreen:hover { background: #00f2ff; color: #000; box-shadow: 0 0 20px rgba(0, 242, 255, 0.4); }

/* --- PROYECTOS GRID --- */
.projects { padding: 80px 5vw; background: #050505; }
.projects h2 { font-size: 2.5rem; margin-bottom: 50px; text-align: center; color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.card { background: var(--card-bg); border-radius: 12px; overflow: hidden; border: 1px solid #222; transition: 0.3s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); border-color: #333; }
.card-img-container { width: 100%; height: 180px; overflow: hidden; background: #000; border-bottom: 1px solid #222; }
.card-img-container img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.card:hover .card-img-container img { transform: scale(1.05); }
.card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.card-icon-placeholder { height: 180px; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--neon); background: #151515; border-bottom: 1px solid #222; }
.card h3 { font-size: 1.4rem; margin-bottom: 10px; color: #fff; }
.card p { color: var(--text-gray); font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.tags span { background: #1a1a1a; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; color: #aaa; border: 1px solid #333; }
.btn-card { text-align: center; padding: 10px; background: #fff; color: #000; border-radius: 5px; font-weight: bold; font-size: 0.9rem; margin-top: auto; }
.btn-card:hover { background: var(--neon); }

/* --- FOOTER --- */
footer { text-align: center; padding: 80px 20px; background: #020202; border-top: 1px solid #111; }
.socials { display: flex; gap: 20px; justify-content: center; margin-bottom: 40px; }
.socials a:hover { color: var(--neon); }
.copyright { font-size: 0.8rem; opacity: 0.5; }

/* --- WHATSAPP & CHAT --- */
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center; font-size: 30px; box-shadow: 2px 2px 3px #999; z-index: 100; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); background-color: #128C7E; }

.chat-window { position: fixed; bottom: 110px; right: 40px; width: 300px; height: 400px; background: #111; border: 1px solid #00f2ff; border-radius: 10px; z-index: 101; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 0 20px rgba(0,0,0,0.8); }
.chat-window.hidden { display: none; }
.chat-header { background: #00f2ff; color: #000; padding: 10px; font-weight: bold; display: flex; justify-content: space-between; }
.close-chat { background: none; border: none; font-weight: bold; cursor: pointer; }
.chat-messages { flex: 1; padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.message { padding: 8px 12px; border-radius: 10px; font-size: 0.9rem; max-width: 80%; }
.message.bot { background: #222; color: #fff; align-self: flex-start; border: 1px solid #333; }
.message.user { background: #00f2ff; color: #000; align-self: flex-end; }
.chat-input-area { display: flex; border-top: 1px solid #333; padding: 5px; }
.chat-input-area input { flex: 1; padding: 10px; background: #000; color: #fff; border: none; outline: none; }
.chat-input-area button { background: #00f2ff; border: none; padding: 0 15px; cursor: pointer; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) { .nav-links { display: none; } .game-console { height: 400px; } }