/* Variables de Diseño Moderno */
:root {
    --primary-color: #007bff;
    --dark-color: #1e1e24;
    --light-color: #f4f4f9;
    --text-color: #333;
    --white: #ffffff;
    --console-bg: #151515;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

.container {
    width: 85%;
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
}

.text-center { text-align: center; }
.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--dark-color); }
.text-white { color: var(--white); }

/* Navegación */
.navbar {
    background: var(--dark-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 85%;
    margin: auto;
}
.logo {
    color: var(--white);
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: bold;
}
.nav-links {
    display: flex;
    list-style: none;
}
.nav-links li a {
    color: #ccc;
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}
.nav-links li a:hover { color: var(--primary-color); }

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1510915228340-29c85a43dcfe?auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
}
.hero-content h1 { font-size: 3rem; margin-bottom: 10px; }
.hero-content h1 span { color: var(--primary-color); }
.hero-content p { font-size: 1.2rem; margin-bottom: 20px; }
.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.7rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}
.btn:hover { background: #0056b3; }

/* Secciones */
.section { padding: 4rem 0; text-align: center; }
.section h2 { font-size: 2.2rem; margin-bottom: 2rem; position: relative; }
.section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/* Grid de Habilidades */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: left;
}
.card h3 { margin-bottom: 1rem; color: var(--primary-color); }
.card ul { list-style-position: inside; }
.card ul li { margin-bottom: 0.5rem; }

/* Historial / Experiencia */
.timeline { max-width: 800px; margin: auto; text-align: left; }
.timeline-item {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin-bottom: 20px;
    position: relative;
}
.timeline-item .date { font-weight: bold; color: #666; display: block; margin-bottom: 5px; }

/* Consola Interactiva JS */
.console-container {
    max-width: 700px;
    margin: 2rem auto 0;
    background: var(--console-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    text-align: left;
}
.console-header {
    background: #222;
    padding: 10px;
    display: flex;
    align-items: center;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.console-header .title { color: #aaa; font-family: monospace; font-size: 0.9rem; margin-left: 10px; }
.console-body { padding: 20px; font-family: 'Courier New', Courier, monospace; color: #00ff00; }
.comment { color: #777; margin-bottom: 15px; }
.btn-group button {
    background: #333;
    border: 1px solid #555;
    color: #fff;
    padding: 5px 15px;
    margin-right: 10px;
    cursor: pointer;
    font-family: monospace;
    transition: all 0.3s;
}
.btn-group button:hover { background: var(--primary-color); border-color: var(--primary-color); }
.console-output {
    margin-top: 20px;
    background: #0a0a0a;
    padding: 15px;
    border-radius: 4px;
    color: #ddd;
    white-space: pre-wrap;
    min-height: 120px;
}

/* Footer */
.footer { background: #111; color: #777; text-align: center; padding: 2rem; font-size: 0.9rem; }

/* Responsivo */
@media(max-width: 768px) {
    .nav-container { flex-direction: column; }
    .nav-links { margin-top: 10px; }
    .hero-content h1 { font-size: 2rem; }
}