/**
 * ELECTRONICHART DESIGN SYSTEM v2026
 * Harold Boris Coronado Rocha
 * Arquitectura: Mobile-First · WCAG AA · Core Web Vitals Optimizado
 */

/* ══════════════════════════════════════════
   TOKENS DE DISEÑO
══════════════════════════════════════════ */
:root {
    --bg:          #04080F;
    --bg-card:     #0D1117;
    --bg-widget:   #080D13;
    --border:      #1C2333;
    --border-hover:#2D3B55;
    --green:       #00FF94;
    --green-dim:   rgba(0, 255, 148, 0.12);
    --green-glow:  rgba(0, 255, 148, 0.25);
    --purple:      #7B61FF;
    --purple-dim:  rgba(123, 97, 255, 0.12);
    --amber:       #F59E0B;
    --text:        #E8EDF5;
    --text-muted:  #5A6478;
    --text-mid:    #94A3B8;
    --mono:        'JetBrains Mono', monospace;
    --sans:        'Inter', sans-serif;
    --max:         1300px;
    --radius:      8px;
    --radius-sm:   5px;
    --shadow:      0 4px 24px rgba(0,0,0,0.5);
}

/* ══════════════════════════════════════════
   RESET
══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.7;
    /* Grilla de circuito impreso de fondo */
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 32px 32px;
    background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }

/* ══════════════════════════════════════════
   BOOT HERO / TERMINAL
══════════════════════════════════════════ */
.boot-header {
    position: relative;
}

.boot-terminal {
    max-width: var(--max);
    margin: 0 auto;
    padding: 3.5rem 1.5rem 3rem;
}

/* Barra de terminal */
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #0A0E17;
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 0.6rem 1rem;
}

.dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.dot-red   { background: #FF5F57; }
.dot-amber { background: #FEBC2E; }
.dot-green { background: #28C840; }

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

/* Cuerpo del terminal */
.terminal-body {
    background: #060A10;
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius) var(--radius);
    padding: 2rem 1.8rem 2.5rem;
}

.boot-line {
    font-family: var(--mono);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    line-height: 1.9;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
    animation-delay: var(--d, 0s);
}

.boot-line .prompt {
    color: var(--green);
    margin-right: 0.5rem;
    user-select: none;
}

.boot-line .cmd { color: #CBD5E1; }

.boot-line.output {
    color: var(--text);
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.tag-inline {
    background: var(--green-dim);
    color: var(--green);
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--green-glow);
    margin-left: 0.5rem;
}

.cta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-left: 0;
    margin-top: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   NAVEGACIÓN STICKY
══════════════════════════════════════════ */
.site-nav {
    background: rgba(4, 8, 15, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    flex-wrap: wrap;
}

.nav-brand {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.nav-brand strong { color: var(--green); }

.nav-links {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.nav-links a {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.3rem 0.6rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--green);
    border-color: var(--green);
    background: var(--green-dim);
    outline: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    cursor: pointer;
}

@media (max-width: 700px) {
    .nav-links { display: none; width: 100%; flex-direction: column; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }

    .project-toolbar {
        align-items: flex-start;
    }

    .project-filters {
        width: 100%;
    }

    .filter-chip {
        flex: 1 1 calc(50% - 0.45rem);
        text-align: center;
    }

    .project-toggle {
        width: 100%;
    }

    .profile-body {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

/* ══════════════════════════════════════════
   LAYOUT GRID (MAIN + ASIDE)
══════════════════════════════════════════ */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: var(--max);
    margin: 0 auto;
    padding: 1.5rem 1rem;
    align-items: start;
}

@media (min-width: 1080px) {
    .layout-grid {
        grid-template-columns: 1fr 340px;
        padding: 2.5rem 2rem;
    }
}

/* Main rack */
#modular-rack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ══════════════════════════════════════════
   CARDS (MÓDULOS)
══════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: border-color 0.2s;
}

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

.card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #070C13;
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 1.2rem;
}

.card-head.drag-handle { cursor: grab; }
.card-head.drag-handle:active { cursor: grabbing; }

.card-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid var(--green-glow);
    padding: 0.1rem 0.45rem;
    border-radius: 3px;
    flex-shrink: 0;
}

.card-head h2 {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    flex: 1;
}

.drag-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
    opacity: 0.4;
    user-select: none;
    flex-shrink: 0;
}

.card-body { padding: 1.75rem; }

/* Drag ghost state */
.is-dragging {
    border: 1px dashed var(--green) !important;
    opacity: 0.25;
}

/* ══════════════════════════════════════════
   TIPOGRAFÍA DE CONTENIDO
══════════════════════════════════════════ */
.lead-text {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.card-body p { color: var(--text-mid); margin-bottom: 0.75rem; }
.card-body p:last-child { margin-bottom: 0; }

.card-body h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.card-body h4 {
    font-size: 0.85rem;
    color: var(--purple);
    font-family: var(--mono);
    margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════
   BOTONES CTA
══════════════════════════════════════════ */
.btn-primary {
    display: inline-block;
    background: var(--green);
    color: #04080F;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: opacity 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 18px var(--green-glow);
    white-space: nowrap;
}

.btn-primary:hover, .btn-primary:focus-visible {
    opacity: 0.88;
    box-shadow: 0 0 28px var(--green-glow);
    outline: none;
}

.btn-primary.large { padding: 0.9rem 2rem; font-size: 0.9rem; }
.btn-primary.full  { display: block; text-align: center; margin-bottom: 0.6rem; }

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-secondary:hover, .btn-secondary:focus-visible {
    border-color: var(--green);
    color: var(--green);
    outline: none;
}

.btn-secondary.large { padding: 0.9rem 2rem; }
.btn-secondary.full  { display: block; text-align: center; }

.btn-ghost {
    display: inline-block;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.82rem;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.btn-ghost:hover { color: var(--green); border-color: var(--green); }
.btn-ghost.full  { display: block; text-align: center; }

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ══════════════════════════════════════════
   STACK GRID (HABILIDADES)
══════════════════════════════════════════ */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.stack-block {
    background: rgba(7, 12, 19, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.1rem;
    transition: border-color 0.2s;
}

.stack-block:hover { border-color: var(--green); }

.stack-block h3 {
    font-size: 0.82rem;
    font-family: var(--mono);
    color: var(--green);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.tag {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-mid);
    background: #0A0F1A;
    border: 1px solid var(--border);
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
}

.tag.accent {
    color: var(--purple);
    border-color: var(--purple-dim);
    background: var(--purple-dim);
}

.skill-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.skill-bar span {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.skill-fill-wrap {
    flex: 1;
    background: #1C2333;
    height: 5px;
    border-radius: 3px;
    overflow: hidden;
}

/* Usamos pseudo-elemento con CSS var en el JS-less approach */
.skill-bar::before {
    content: '';
    display: block;
    width: var(--pct, 80%);
    height: 5px;
    background: linear-gradient(90deg, var(--purple), var(--green));
    border-radius: 3px;
    flex: none;
}

/* Override: wrap + fill approach */
.skill-bar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
}

.skill-fill {
    grid-column: 1;
    height: 5px;
    background: linear-gradient(90deg, var(--purple), var(--green));
    border-radius: 3px;
    width: var(--pct, 80%);
}

.skill-bar span { grid-column: 2; }

/* ══════════════════════════════════════════
   PROYECTOS
══════════════════════════════════════════ */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.project-item:last-child { border-bottom: none; padding-bottom: 0; }
.project-item:first-child { padding-top: 0; }

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.project-type {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid var(--green-glow);
    padding: 0.1rem 0.5rem;
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.project-stack {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.project-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.project-item p {
    font-size: 0.9rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 0.85rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-item {
    position: relative;
}

.project-item p {
    color: var(--text-mid);
}

.project-item:not(.expanded) p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-item.expanded {
    border-color: var(--green);
    box-shadow: 0 0 0 1px rgba(0, 255, 148, 0.08), var(--shadow);
}

.project-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.9rem;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}

.project-toggle:hover,
.project-toggle:focus-visible {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-dim);
    outline: none;
    transform: translateY(-1px);
}

.project-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    background: rgba(7, 12, 19, 0.7);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.toolbar-label {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

.project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.filter-chip {
    appearance: none;
    border: 1px solid var(--border);
    background: rgba(10, 15, 26, 0.95);
    color: var(--text-muted);
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.03em;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, transform 0.2s, background 0.2s;
}

.filter-chip:hover,
.filter-chip:focus-visible {
    border-color: var(--green);
    color: var(--green);
    outline: none;
    transform: translateY(-1px);
}

.filter-chip.is-active {
    background: var(--green-dim);
    border-color: var(--green);
    color: var(--green);
}

.project-item[hidden] {
    display: none !important;
}

/* ══════════════════════════════════════════
   TIMELINE (EXPERIENCIA)
══════════════════════════════════════════ */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--green), var(--purple));
    border-radius: 1px;
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding: 0 0 2rem 1.2rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.63rem;
    top: 0.45rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-hover);
}

.timeline-item.featured::before {
    border-color: var(--green);
    background: var(--green);
    box-shadow: 0 0 10px var(--green-glow);
}

.timeline-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
}

.tl-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.tl-badge {
    font-family: var(--mono);
    font-size: 0.6rem;
    color: var(--green);
    background: var(--green-dim);
    border: 1px solid var(--green-glow);
    padding: 0.05rem 0.4rem;
    border-radius: 3px;
}

.timeline-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.timeline-content h4 {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--purple);
    margin-bottom: 0.6rem;
}

.timeline-content ul {
    list-style: disc;
    padding-left: 1.1rem;
}

.timeline-content ul li {
    font-size: 0.88rem;
    color: var(--text-mid);
    margin-bottom: 0.3rem;
    line-height: 1.55;
}

.timeline-content ul li strong { color: var(--text); }

/* ══════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════ */
.contact-body .lead-text { margin-bottom: 1.5rem; }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--bg-widget);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s;
}

.contact-card:hover { border-color: var(--green); }
.contact-card.static { cursor: default; }
.contact-card.static:hover { border-color: var(--border); }

.contact-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
    font-family: var(--mono);
    color: var(--green);
    font-weight: 700;
}

.contact-card div { display: flex; flex-direction: column; gap: 0.1rem; }

.contact-card strong {
    font-size: 0.78rem;
    color: var(--text);
    font-weight: 600;
}

.contact-card span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--mono);
    word-break: break-all;
}

/* ══════════════════════════════════════════
   PANEL LATERAL (WIDGETS)
══════════════════════════════════════════ */
.side-panel {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: sticky;
    top: 4rem;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.widget-head {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.07em;
    background: #070C13;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.1rem;
}

.widget-body { padding: 1.1rem; }

.profile-body {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.9rem;
    align-items: center;
}

.profile-photo {
    position: relative;
    width: 96px;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 30% 30%, rgba(123, 97, 255, 0.18), transparent 42%),
        radial-gradient(circle at 70% 70%, rgba(0, 255, 148, 0.18), transparent 46%),
        linear-gradient(160deg, #0b1119, #05080d);
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
    overflow: hidden;
}

.profile-photo::before {
    content: '';
    position: absolute;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 148, 0.15);
    background: linear-gradient(180deg, rgba(232,237,245,0.08), rgba(232,237,245,0.02));
    transform: translateY(4px);
}

.profile-photo span {
    position: relative;
    z-index: 1;
    font-family: var(--mono);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--green);
}

.profile-copy {
    display: grid;
    gap: 0.25rem;
}

.profile-copy strong {
    font-size: 0.92rem;
    color: var(--text);
    font-weight: 600;
}

.profile-copy p {
    margin: 0;
    line-height: 1.45;
}

/* Métricas NOC */
.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(28, 35, 51, 0.6);
    font-family: var(--mono);
    font-size: 0.78rem;
}

.metric-row:last-child { border-bottom: none; padding-bottom: 0; }

.metric-label { color: var(--text-muted); }
.metric-val   { color: var(--text); font-weight: 600; }
.metric-val.mono { letter-spacing: 0.04em; }

.muted { color: var(--text-muted); }
.small { font-size: 0.82rem; }

.status-online {
    color: var(--green);
    font-weight: 700;
}

/* Educación */
.edu-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(28, 35, 51, 0.5);
}

.edu-item:last-child { border-bottom: none; padding-bottom: 0; }
.edu-item:first-child { padding-top: 0; }

.edu-tag {
    font-family: var(--mono);
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 0.3rem;
}

.edu-tag.degree { color: var(--green);  background: var(--green-dim);  border: 1px solid var(--green-glow); }
.edu-tag.cert   { color: #60A5FA;       background: rgba(96,165,250,.1); border: 1px solid rgba(96,165,250,.25); }
.edu-tag.diplo  { color: var(--purple); background: var(--purple-dim);  border: 1px solid rgba(123,97,255,.25); }
.edu-tag.tech   { color: var(--amber);  background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.25); }

.edu-item h3 {
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.1rem;
    line-height: 1.4;
}

.edu-item p {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
}

/* CTA Widget */
.cta-widget .widget-body p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 3rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-inner p { font-family: var(--mono); font-size: 0.8rem; color: var(--text-muted); }
.footer-inner strong { color: var(--green); }

/* ══════════════════════════════════════════
   ACCESIBILIDAD & FOCUS
══════════════════════════════════════════ */
:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    html { scroll-behavior: auto; }
}

/* ══════════════════════════════════════════
   RESPONSIVE TWEAKS
══════════════════════════════════════════ */
@media (max-width: 600px) {
    .boot-terminal { padding: 1.5rem 0.75rem 1.5rem; }
    .terminal-body { padding: 1.25rem 1rem; }
    .card-body  { padding: 1.25rem; }
    .widget-body { padding: 0.85rem; }
    .cta-line   { flex-direction: column; }
    .cta-group  { flex-direction: column; }
    .contact-grid { grid-template-columns: 1fr; }
    .side-panel { position: static; }
}
.card {
    backdrop-filter: blur(14px);
    background:
    linear-gradient(
    180deg,
    rgba(255,255,255,0.02),
    rgba(255,255,255,0.01)
    );
}
.card:hover{
    transform: translateY(-4px);
    transition: .3s ease;
}
