/* --- VARIABLES GLOBALES --- */
:root {
    --bg-black: #050505;
    --card-bg: #0f0f0f;
    --border-gray: #222;
    --gray-box-bg: #1a1a1a;
    --blue-accent: #3498db;
    --text-white: #ffffff;
    --text-muted: #888888;
    --dock-bg: rgba(20, 20, 20, 0.8);
}

/* --- RESET Y BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-black);
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center; /* Esto centra verticalmente para index.html */
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 150px;
}

/* Ajuste para páginas largas como Proyectos */
body:has(.container-proyectos) {
    align-items: flex-start;
}

/* --- CONTENEDORES PRINCIPALES --- */
.main-container {
    width: 100%;
    max-width: 500px;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 35px;
    border: 1px solid var(--border-gray);
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

.container-proyectos { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 40px 20px; 
}

/* --- TIPOGRAFÍA --- */
h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; }
.t-blue { color: var(--blue-accent); font-weight: 800; }
.description { font-size: 1.1rem; font-weight: 600; margin: 15px 0; }
.text-body { font-size: 1rem; color: var(--text-muted); line-height: 1.7; }
.sub-header { text-align: center; color: var(--text-muted); margin-bottom: 60px; letter-spacing: 2px; font-size: 0.8rem; text-transform: uppercase; }

/* --- EL CUADRITO GRIS --- */
.gray-box {
    background: var(--gray-box-bg);
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid #333;
    color: var(--text-white);
    font-size: 0.95em;
    font-weight: 600;
    display: inline-block;
}

/* --- GRILLA DE PROYECTOS (3 COLUMNAS) --- */
.projects-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

.project-card { 
    background: var(--card-bg); 
    border: 1px solid var(--border-gray); 
    padding: 35px; 
    border-radius: 20px; 
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1); 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    text-align: left;
}

.project-card:hover { 
    border-color: var(--blue-accent); 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.1); 
}

.project-badge { 
    position: absolute; top: 20px; right: 25px; 
    font-size: 0.65rem; color: var(--blue-accent); font-weight: bold; 
    border: 1px solid var(--blue-accent); padding: 3px 10px; border-radius: 6px; text-transform: uppercase;
}

.project-card h3 { margin: 10px 0 20px 0; font-size: 1.3rem; color: #fff; }
.blue-line { width: 30px; height: 2px; background: var(--blue-accent); margin-bottom: 20px; transition: 0.4s; }
.project-card:hover .blue-line { width: 60px; }
.project-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }

/* --- ACTIVIDAD DE DISCORD (LO QUE TENÍAS) --- */
.activity-wrapper { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 15px; }
.response-row { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.03); padding: 12px 18px; border-radius: 20px; width: 100%; }
.pfp-mini { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.msg-text { font-size: 0.85rem; color: #bbb; text-align: left; }

/* --- NAVEGACIÓN DOCK --- */
.dock-container { position: fixed; bottom: 25px; left: 0; width: 100%; display: flex; justify-content: center; z-index: 9999; }
.dock { background: var(--dock-bg); backdrop-filter: blur(15px); padding: 10px 15px; border-radius: 24px; display: flex; gap: 10px; border: 1px solid rgba(255, 255, 255, 0.1); }
.nav-item { text-decoration: none; font-size: 1.5rem; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 15px; transition: 0.3s; }
.nav-item:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.05); }
.nav-item.active { background: #222; border: 1px solid #444; position: relative; }
.nav-item.active::after { content: ''; position: absolute; bottom: 5px; width: 4px; height: 4px; background: white; border-radius: 50%; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .projects-grid { grid-template-columns: 1fr; } }