:root {
    --bg-color: #0c0f0e;
    --card-bg: #141a17;
    --border-color: #223028;
    --text-main: #e2e8f0;
    --text-muted: #8a9991;
    --accent: #10b981; /* Verde terminal elegante */
    --accent-glow: rgba(16, 185, 129, 0.15);
    --font-mono: 'Courier New', Courier, monospace;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    padding: 0; /* Limpiamos el padding general del body para el menú fijo */
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 1rem 2rem 1rem; /* Empuja todo el contenido hacia abajo para dejar lugar al menú fijo */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header estilo terminal / pro */
header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 3rem;
}

.terminal-path {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Secciones */
section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Tarjeta de presentación / sistema estrella */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.tech-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: var(--accent-glow);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.features-list li {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

.features-list li strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 0.25rem;
}

/* Vidriera de capturas con estilo ventana de sistema */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.window-mockup {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.window-header {
    background: #18221c;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #33443a;
}

.window-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.screenshot-box {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-align: center;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.email-link {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.email-link:hover {
    opacity: 0.8;
    text-decoration: none;
    color: inherit;
}

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.whatsapp-link:hover {
    color: #25d366;
}

.whatsapp-icon {
    fill: currentColor;
    width: 16px;
    height: 16px;
}

/* Menú de navegación fijo (Fixed Terminal Nav) */
.terminal-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px dashed var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.nav-prompt {
    color: var(--accent);
    font-family: var(--font-mono);
}

.terminal-nav a {
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.terminal-nav a:hover {
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.terminal-nav a.active {
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Letra invertida para el isotipo / nombre del sistema
.inverted-j {
    display: inline-block;
    transform: rotate(180deg);
}*/

/* Botón Volver Arriba fijo a la derecha */
#back-to-top,
#back-to-top:link, 
#back-to-top:visited, 
#back-to-top:hover, 
#back-to-top:active {
    position: fixed;
    bottom: 25px;
    right: 25px;
    color: inherit !important;
    text-decoration: none !important;
    font-family: monospace;
    z-index: 999;
    display: inline-block;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}