/* VARIABLES Y TEMA */
:root {
    --bg-main: #181b26;
    --bg-panel: #222736;
    --bg-panel-header: #2d3448;
    --bg-card: #1b1f2c;
    --border-outer: #0f1118;
    --border-light: #48536f;
    --text-accent: #f5b041;
    --font-heading: 'Press Start 2P', cursive, monospace;
    --font-body: 'VT323', monospace;
}

/* EFECTO DE BORDES BISELADOS RETRO (INSET/OUTSET) */
.panel {
    background: var(--bg-panel);
    border: 3px solid var(--border-outer);
    box-shadow: 
        inset 1px 1px 0px var(--bg-card),
        inset -1px -1px 0px #000,
        3px 3px 0px rgba(0,0,0,0.5);
}

/* GRID PRINCIPAL RESPONSIVO */
.layout-grid {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: 16px;
}



:root {
    --bg-main: #181b26;
    --bg-panel: #222736;
    --bg-panel-header: #2d3448;
    --bg-card: #1b1f2c;
    
    --border-outer: #0f1118;
    --border-light: #48536f;
    --border-accent: #f5b041;
    
    --text-primary: #e6ebf2;
    --text-secondary: #9aa8bc;
    --text-accent: #f5b041;
    --text-link: #64b5f6;
    
    --font-heading: 'Press Start 2P', cursive, monospace;
    --font-body: 'VT323', monospace, sans-serif;
    
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
}

/* 2. RESET Y BASES */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.4;
    padding: var(--spacing-md);
    background-image: 
        radial-gradient(#2d3448 1px, transparent 1px);
    background-size: 16px 16px;
}

/* 3. CONTENEDOR PRINCIPAL */
.site-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* 4. COMPONENTE: PANEL RETRO (Border Inset / Outset Effect) */
.panel {
    background: var(--bg-panel);
    border: 3px solid var(--border-outer);
    box-shadow: 
        inset 1px 1px 0px var(--bg-card),
        inset -1px -1px 0px #000,
        3px 3px 0px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.panel-header {
    background: var(--bg-panel-header);
    color: var(--text-accent);
    font-family: var(--font-heading);
    font-size: 11px;
    padding: var(--spacing-sm) var(--spacing-md);
    border-bottom: 2px solid var(--border-outer);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.panel-body {
    padding: var(--spacing-md);
}

/*  HEADER PRINCIPAL */
.retro-header {
    background: var(--bg-panel-header);
    border: 3px solid var(--border-outer);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 3px 3px 0px rgba(0,0,0,0.5);
}
.retro-header h1 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text-accent);
    text-shadow: 2px 2px #000;
}
.header-status {
    background: #27ae60;
    color: #fff;
    font-size: 14px;
    padding: 2px 8px;
    border-radius: 2px;
    font-weight: bold;
}

/* 6. LAYOUT GRID RESPONSIVO (3 Columnas) */
.layout-grid {
    display: grid;
    grid-template-columns: 240px 1fr 240px;
    gap: var(--spacing-md);
}

/* Responsive para pantallas pequeñas */
@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

/* SIDEBAR */
.nav-links {
    list-style: none;
}

.nav-links li a {
    display: block;
    color: var(--text-primary);
    text-decoration: none;
    padding: 6px 10px;
    border-bottom: 1px dotted var(--border-light);
    transition: background 0.15s, color 0.15s;
}

.nav-links li a:hover,
.nav-links li a.active {
    background: var(--bg-panel-header);
    color: var(--text-accent);
}

.mini-feed {
    list-style: none;
}

.mini-feed li {
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--bg-card);
    padding: 4px;

    
}

.feed-date {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 8. SECCIONES CENTRALES */
.profile-card {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
}

@media (max-width: 600px) {
    .profile-card {
        flex-direction: column;
    }
}
/* Contenedor principal de la imagen de perfil */
.profile-avatar {
    position: relative;
    width: 160px;
    height: 160px;
    margin-right: 1.2rem;
    flex-shrink: 0;
    z-index: 3;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);


}

/* 1. Fondo Hexagonal */
.hex-bg {
    position: absolute;
    bottom: -8px;
    width: 100%;
    z-index: 1;
}

/* Base común para ambas capas de la imagen */
.avatar-img {
    position: absolute;
    bottom: -18px;
    transform: translateX(60%);
    width: 56%;
    height: auto;
    z-index: 3;
    pointer-events: none;
}


.avatar-box {
    width: 90px;
    height: 90px;
    background: var(--bg-card);
    border: 2px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    flex-shrink: 0;
}

.feature-list {
    margin-top: var(--spacing-sm);
    padding-left: 20px;
}

.feature-list li {
    margin-bottom: 4px;
}

/* Grid de Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.project-card {
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    padding: var(--spacing-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.project-thumb {
    height: 100px;
    background: #000;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 10px;
    border: 1px solid var(--border-light);
}

.btn-retro {
    display: inline-block;
    background: var(--bg-panel-header);
    color: var(--text-accent);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 9px;
    padding: 8px;
    text-align: center;
    border: 2px solid var(--border-outer);
    margin-top: auto;
}

.btn-retro:hover {
    background: var(--border-accent);
    color: #000;
}


.links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-btn {
    display: block;
    background: var(--bg-card);
    color: var(--text-link);
    text-decoration: none;
    padding: 8px;
    border: 1px solid var(--border-light);
    text-align: center;
}

.link-btn:hover {
    border-color: var(--border-accent);
    color: var(--text-accent);
}

/* 10. FOOTER ESTILO OS DE CONSOLA */
.retro-footer {
    background: var(--bg-panel-header);
    border: 3px solid var(--border-outer);
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    flex-wrap: wrap;
    font-family: var(--font-heading);
    font-size: 10px;
    color: var(--text-secondary);
    justify-content: center;
}

.footer-credit {
    color: var(--text-secondary);
}