/* ==========================================================================
   VARIABLES & BASE RESET - ESTILO OSCURO MODERNO / TECH
   ========================================================================== */
:root {
    --bg-main: #090d16;
    --bg-alt: #0d1321;
    --bg-card: rgba(17, 24, 39, 0.78);
    --bg-card-hover: rgba(24, 34, 54, 0.92);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(56, 189, 248, 0.4);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-primary: #38bdf8;      /* Cyan tech */
    --accent-secondary: #818cf8;    /* Indigo */
    --accent-emerald: #10b981;      /* Emerald status/success */
    --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --accent-gradient-2: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 28px rgba(56, 189, 248, 0.2);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    color: inherit;
}

/* ==========================================================================
   BACKGROUND DECORATION
   ========================================================================== */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 90px 90px, 48px 48px, 48px 48px;
    mask-image: radial-gradient(ellipse 85% 65% at 50% 25%, #000 45%, transparent 100%);
    pointer-events: none;
    z-index: -2;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.bg-glow-1 {
    width: 440px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0%, rgba(168, 85, 247, 0.55) 38%, rgba(79, 70, 229, 0.25) 70%, transparent 100%);
    filter: blur(42px);
    opacity: 0.55;
    top: -110px;
    left: 52%;
    transform: translateX(-50%);
}

.bg-glow-2 {
    width: 480px;
    height: 480px;
    background: var(--accent-secondary);
    filter: blur(130px);
    opacity: 0.14;
    bottom: 10%;
    right: -120px;
}

/* ==========================================================================
   LAYOUT & UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5.5rem 0;
}

.section-alt {
    background-color: rgba(13, 19, 33, 0.65);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 0.9rem;
}

.section-title {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.85rem;
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-secondary {
    background: var(--accent-gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.8rem 1.45rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.22s ease;
    border: 1px solid transparent;
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-sm {
    padding: 0.55rem 1.1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #060911;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-bracket {
    color: var(--accent-primary);
}

.logo-dot {
    color: var(--accent-secondary);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.3rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.45rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    padding-top: 8.5rem;
    padding-bottom: 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.42);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #6ee7b7;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
}

.availability-badge strong {
    color: #f8fafc;
    font-weight: 700;
}

.availability-badge .badge-sep {
    color: rgba(110, 231, 183, 0.55);
    margin: 0 0.15rem;
}

.status-dot {
    width: 9px;
    height: 9px;
    background-color: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 12px #10b981;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.65; }
}

.hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.35rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.2rem;
}

.hero-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.social-pill svg {
    width: 16px;
    height: 16px;
    color: var(--accent-primary);
}

.social-pill .copy-icon {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    margin-left: 0.15rem;
}

.social-pill:hover {
    color: var(--text-primary);
    border-color: var(--border-highlight);
    background: rgba(56, 189, 248, 0.07);
}

/* ==========================================================================
   ÓRBITA / CONSTELACIÓN DE TECNOLOGÍAS (ESTILO DAKSH NAUNI)
   ========================================================================== */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-orbit-scene {
    position: relative;
    width: 470px;
    height: 470px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ejes y líneas del radar */
.orbit-axis {
    position: absolute;
    background: rgba(255, 255, 255, 0.055);
    pointer-events: none;
}

.axis-h {
    width: 100%;
    height: 1px;
}

.axis-v {
    width: 1px;
    height: 100%;
}

.axis-d1 {
    width: 100%;
    height: 1px;
    transform: rotate(45deg);
}

.axis-d2 {
    width: 100%;
    height: 1px;
    transform: rotate(-45deg);
}

/* Anillos concéntricos */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.075);
    pointer-events: none;
}

.ring-1 {
    width: 185px;
    height: 185px;
    border-color: rgba(129, 140, 248, 0.14);
}

.ring-2 {
    width: 320px;
    height: 320px;
    border-color: rgba(56, 189, 248, 0.11);
}

.ring-3 {
    width: 445px;
    height: 445px;
}

/* Puntos luminosos en la órbita */
.orbit-spark {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 12px #fff, 0 0 20px var(--accent-primary);
    animation: pulseSpark 3s ease-in-out infinite;
}

.spark-1 { top: 48%; left: 29%; animation-delay: 0s; }
.spark-2 { top: 28%; right: 24%; animation-delay: 1s; }
.spark-3 { bottom: 26%; left: 42%; animation-delay: 2s; }

@keyframes pulseSpark {
    0%, 100% { opacity: 0.35; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Tarjetas cuadradas de cristal esmerilado (Glassmorphism) */
.tech-glass-node {
    position: absolute;
    width: 78px;
    height: 78px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
    animation: floatNode 5s ease-in-out infinite;
}

.tech-glass-node:hover {
    transform: translateY(-6px) scale(1.1) !important;
    background: rgba(255, 255, 255, 0.11);
    border-color: var(--accent-primary);
    box-shadow: 0 16px 34px rgba(56, 189, 248, 0.28), inset 0 1px 2px rgba(255, 255, 255, 0.3);
    z-index: 5;
}

.node-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.tech-glass-node:hover .node-label {
    color: var(--text-primary);
}

/* Posiciones distribuidas en las órbitas como en la imagen */
.node-java {
    top: 4%;
    left: 22%;
    animation-delay: 0s;
}

.node-android {
    top: 12%;
    right: 17%;
    animation-delay: 0.7s;
}

.node-sql {
    top: 30%;
    left: 36%;
    animation-delay: 1.4s;
}

.node-html {
    top: 46%;
    left: 10%;
    animation-delay: 2.1s;
}

.node-css {
    top: 39%;
    right: 6%;
    animation-delay: 0.4s;
}

.node-ide {
    top: 56%;
    left: 43%;
    animation-delay: 1.8s;
}

.node-smr {
    bottom: 13%;
    left: 20%;
    animation-delay: 1.1s;
}

.node-github {
    bottom: 8%;
    right: 22%;
    animation-delay: 2.5s;
}

. node-git {
    bottom: 24%;
    right: 8%;
}

@keyframes floatNode {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 540px) {
    .tech-orbit-scene {
        width: 330px;
        height: 330px;
    }
    .ring-1 { width: 130px; height: 130px; }
    .ring-2 { width: 225px; height: 225px; }
    .ring-3 { width: 315px; height: 315px; }
    .tech-glass-node {
        width: 62px;
        height: 62px;
        border-radius: 15px;
    }
    .tech-glass-node svg {
        width: 26px;
        height: 26px;
    }
}

/* ==========================================================================
   SOBRE MÍ / VALUE CARDS
   ========================================================================== */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.85rem;
    transition: all 0.25s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
}

.value-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 1.2rem;
}

.value-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
}

.value-card p {
    font-size: 0.94rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   STACK TÉCNICO
   ========================================================================== */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stack-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.85rem;
    transition: border-color 0.25s ease;
}

.stack-card:hover {
    border-color: var(--border-highlight);
}

.stack-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.stack-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(129, 140, 248, 0.16));
    border: 1px solid rgba(56, 189, 248, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.stack-card-header h3 {
    font-size: 1.15rem;
    margin-bottom: 0.15rem;
}

.stack-card-header span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-badge {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    padding: 0.42rem 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.skill-badge.highlight {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.32);
    color: var(--text-primary);
    font-weight: 500;
}

.skill-badge:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-1px);
}

/* ==========================================================================
   PROYECTOS DESTACADOS
   ========================================================================== */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2.5rem;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gradient);
    color: #060911;
    border-color: transparent;
    font-weight: 600;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.28s ease;
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-highlight);
    box-shadow: var(--shadow-card);
}

.project-banner {
    padding: 1.4rem 1.6rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.banner-java {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(56, 189, 248, 0.1));
}

.banner-android {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(56, 189, 248, 0.1));
}

.banner-desktop {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.16), rgba(56, 189, 248, 0.1));
}

.banner-web {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(236, 72, 153, 0.1));
}

.banner-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-type-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    background: rgba(9, 13, 22, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
}

.banner-icon {
    color: var(--text-secondary);
    width: 22px;
    height: 22px;
}

.banner-code-preview {
    background: rgba(9, 13, 22, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.55rem 0.85rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: #a5d6ff;
    overflow-x: auto;
    white-space: nowrap;
}

/* Vistas Previas Visuales en Tarjetas de Proyecto (RRHH) */
.visual-status-pill,
.visual-live-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(9, 13, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
}

.visual-live-link {
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.45);
    transition: all 0.2s ease;
}

.visual-live-link:hover {
    background: rgba(16, 185, 129, 0.18);
    transform: translateY(-1px);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.visual-preview-box {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.visual-window-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.42rem 0.75rem;
    background: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.win-dots {
    display: inline-flex;
    gap: 5px;
}

.win-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.win-dots i:nth-child(1) { background: #ef4444; }
.win-dots i:nth-child(2) { background: #f59e0b; }
.win-dots i:nth-child(3) { background: #10b981; }

.win-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Proyecto 1: Consola Java I/O */
.visual-terminal-body {
    padding: 0.65rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.73rem;
}

.term-menu-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.term-tag {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #7dd3fc;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.68rem;
}

.term-output-box {
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid #38bdf8;
    padding: 0.35rem 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.term-line {
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.term-line.success {
    color: #6ee7b7;
    font-weight: 600;
}

.term-muted {
    color: #64748b;
}

/* Proyecto 2: Monitor de Procesos */
.monitor-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    padding: 0.65rem 0.75rem;
}

.monitor-metric {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    padding: 0.4rem 0.55rem;
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.metric-val {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: #f8fafc;
    margin-top: 0.1rem;
}

.metric-val span {
    color: #94a3b8;
    font-weight: 400;
}

.metric-val.status-alive {
    color: #6ee7b7;
}

/* Proyecto 3: Esquema y Tabla SQL */
.sql-schema-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
    background: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.sql-node {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #bae6fd;
    padding: 0.14rem 0.45rem;
    border-radius: 4px;
}

.sql-node.highlight {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.38);
    color: #6ee7b7;
}

.sql-rel {
    color: var(--text-muted);
    font-size: 0.65rem;
}

.visual-sql-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
    text-align: left;
}

.visual-sql-table th {
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.visual-sql-table td {
    padding: 0.38rem 0.65rem;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.sql-badge-ok {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.66rem;
    font-weight: 600;
}

/* Proyecto 4: Mini Navegador Antares Digital */
.mini-antares-site {
    font-size: 0.7rem;
    background: #f8fafc;
    color: #0f172a;
}

.mini-antares-nav {
    background: #000;
    color: #fff;
    padding: 0.35rem 0.65rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
}

.mini-nav-items {
    display: flex;
    gap: 0.5rem;
    color: #cbd5e1;
}

.mini-nav-items .active {
    color: #4da3ff;
    font-weight: 600;
}

.mini-antares-hero {
    background: linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.52)), url("repositorios-github/web-portal-elearning-antares/hero.jpg") center/cover no-repeat;
    padding: 0.65rem 0.5rem;
    text-align: center;
    color: #fff;
}

.mini-hero-overlay {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.mini-hero-overlay span {
    font-weight: 700;
    font-size: 0.74rem;
}

.mini-hero-overlay small {
    font-size: 0.62rem;
    color: #e2e8f0;
}

.mini-antares-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
    padding: 0.45rem 0.55rem;
    background: #fff;
}

.mini-card-item {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.28rem 0.3rem;
    text-align: center;
    font-size: 0.62rem;
    font-weight: 600;
    color: #1e293b;
}

.project-action-icons {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

/* Resumen para RRHH y Vista Visual Interactiva dentro del Modal */
.modal-hr-summary {
    margin-bottom: 1.15rem;
    padding: 0.95rem 1.15rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(56, 189, 248, 0.08));
    border: 1px solid rgba(16, 185, 129, 0.32);
    border-radius: var(--radius-sm);
}

.hr-summary-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6ee7b7;
    margin-bottom: 0.35rem;
}

.hr-summary-header svg {
    width: 15px;
    height: 15px;
}

.modal-hr-summary p {
    margin-bottom: 0 !important;
    font-size: 0.9rem;
    color: #f1f5f9 !important;
    line-height: 1.5;
}

.modal-visual-section {
    margin-bottom: 1.4rem;
    padding: 1.1rem;
    background: rgba(9, 13, 22, 0.65);
    border: 1px solid rgba(56, 189, 248, 0.24);
    border-radius: var(--radius-sm);
}

.modal-visual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.65rem;
}

.modal-visual-header h4 {
    margin-bottom: 0 !important;
}

.visual-interactive-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
}

.modal-visual-container {
    margin-top: 0.5rem;
}

.sim-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.6rem 0.75rem;
    background: rgba(17, 24, 39, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sim-btn {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.32rem 0.68rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.sim-btn:hover {
    border-color: var(--accent-primary);
    color: #fff;
}

.sim-btn.active {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    color: #7dd3fc;
}

.project-content {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
}

.project-description {
    font-size: 0.94rem;
    color: var(--text-secondary);
    margin-bottom: 1.35rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.4rem;
}

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.project-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: none;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
}

.btn-text svg {
    width: 16px;
    height: 16px;
}

.btn-text:hover {
    text-decoration: underline;
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.btn-icon svg {
    width: 17px;
    height: 17px;
}

.btn-icon:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.1);
}

/* ==========================================================================
   FORMACIÓN / TIMELINE
   ========================================================================== */
.timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(56, 189, 248, 0.3);
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.timeline-item {
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -2.45rem;
    top: 1.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-primary);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.timeline-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 0.3rem;
}

.timeline-header h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.timeline-place {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-badge {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
}

.timeline-badge.badge-completed {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: var(--accent-primary);
}

.timeline-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}

.module-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.025);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.module-item svg {
    width: 17px;
    height: 17px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.module-item strong {
    color: var(--text-primary);
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-box {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.contact-link-card:hover {
    border-color: var(--border-highlight);
    background: rgba(56, 189, 248, 0.06);
}

.contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.12);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.contact-details span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.contact-details strong {
    font-size: 0.95rem;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-primary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-copy svg {
    width: 14px;
    height: 14px;
}

.btn-copy:hover {
    background: var(--accent-primary);
    color: #060911;
}

.external-arrow {
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.contact-form {
    background: rgba(9, 13, 22, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.contact-form h3 {
    font-size: 1.25rem;
    margin-bottom: 1.35rem;
}

.form-group {
    margin-bottom: 1.15rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    background: #060911;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   MODAL & TOAST
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 9, 17, 0.82);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.modal-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #111827;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md);
    max-width: 780px;
    max-height: 88vh;
    overflow-y: auto;
    width: 100%;
    padding: 2rem;
    position: relative;
    box-shadow: var(--shadow-card);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-header h3 {
    font-size: 1.45rem;
    margin-top: 0.65rem;
    margin-bottom: 1rem;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.modal-body h4 {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.modal-features {
    margin-bottom: 1.35rem;
    padding-left: 1.2rem;
    list-style: disc;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.modal-features li {
    margin-bottom: 0.4rem;
}

.modal-code-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.modal-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.modal-code-header h4 {
    margin-bottom: 0;
}

.btn-copy-code {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--accent-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-code svg {
    width: 14px;
    height: 14px;
}

.btn-copy-code:hover {
    background: var(--accent-primary);
    color: #060911;
}

.modal-code-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    background: #080c15;
    padding: 0.5rem 0.65rem 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.modal-code-tab {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.45rem 0.85rem;
    border-radius: 6px 6px 0 0;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s ease;
}

.modal-code-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.modal-code-tab.active {
    background: #0d1321;
    color: var(--accent-primary);
    border-color: var(--border-color);
    font-weight: 600;
}

.modal-code-viewer {
    background: #0d1321;
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: 1.15rem;
    max-height: 310px;
    overflow: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.55;
    color: #e2e8f0;
    white-space: pre;
    tab-size: 4;
}

.modal-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #111827;
    border: 1px solid var(--accent-emerald);
    color: var(--text-primary);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-card);
    z-index: 300;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast svg {
    color: var(--accent-emerald);
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 960px) {
    .hero-grid,
    .stack-grid,
    .projects-grid,
    .modules-grid,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 7rem;
    }

    .contact-box {
        padding: 1.85rem;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        background: #0d1321;
        border-bottom: 1px solid var(--border-color);
        padding: 1.5rem;
        display: none;
    }

    .nav.open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .mobile-toggle {
        display: flex;
    }
}

