/* ─── PROJECT PAGES — CSS COMPARTIDO ─────────────────────────────────────── */

:root {
    --bg: #0e0e0e;
    --bg2: #161616;
    --bg3: #1e1e1e;
    --cream: #e8d9c0;
    --cream2: #f5ede0;
    --muted: #888;
    --muted2: #555;
    --border: #262626;
    --accent: #d4a96a;
    --white: #f5f5f5;
}

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

html {
    scroll-behavior: smooth;
    touch-action: manipulation;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 22px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(14, 14, 14, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: -0.5px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
    padding: 10px 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.nav-back::before {
    content: '←';
}

.nav-back:hover {
    color: var(--cream);
}

.project-hero {
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding: 140px 5% 80px;
    position: relative;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.project-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.15);
    transform: scale(1.05);
}

.project-hero-content {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.project-category {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.project-category::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.project-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(40px, 6vw, 80px);
    color: var(--cream2);
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 24px;
}

.project-hero h1 em {
    font-style: italic;
    color: var(--accent);
}

.project-hero-meta {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.meta-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted2);
    margin-bottom: 6px;
}

.meta-value {
    font-size: 14px;
    color: var(--muted);
}

.meta-value strong {
    color: var(--white);
    font-weight: 500;
}

.project-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-tag::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(28px, 4vw, 44px);
    color: var(--cream2);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 50px;
}

.process-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.process-step {
    padding: 40px;
    border: 1px solid var(--border);
    border-right: none;
}

.process-step:last-child {
    border-right: 1px solid var(--border);
}

.step-num {
    font-family: 'DM Serif Display', serif;
    font-size: 48px;
    color: var(--border);
    line-height: 1;
    margin-bottom: 20px;
}

.step-title {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    color: var(--cream2);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.step-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.7;
}

.detail-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.detail-text h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: var(--cream2);
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.detail-text p {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.detail-text p strong {
    color: var(--white);
    font-weight: 500;
}

.detail-img {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    touch-action: manipulation;
}

.detail-img img {
    width: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
}

.detail-img-placeholder {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 48px;
    color: var(--border);
}

.img-overlay-btn {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 12px 16px;
    min-height: 44px;
    background: rgba(14, 14, 14, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--cream2);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (pointer: fine) {
    .img-overlay-btn {
        transition: background 0.2s, color 0.2s, transform 0.2s;
    }

    .img-overlay-btn:hover {
        background: var(--cream);
        color: var(--bg);
        transform: translateY(-2px);
    }
}

.stat-highlight {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 60px 0 0;
}

.stat-block {
    padding: 40px;
    border: 1px solid var(--border);
    border-right: none;
    text-align: center;
}

.stat-block:last-child {
    border-right: 1px solid var(--border);
}

.stat-big {
    font-family: 'DM Serif Display', serif;
    font-size: 52px;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-small {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.result-section {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 60px;
}

.result-item {
    padding: 40px;
    border: 1px solid var(--border);
    border-right: none;
}

.result-item:last-child {
    border-right: 1px solid var(--border);
}

.result-icon {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--accent);
}

.result-title {
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    color: var(--cream2);
    margin-bottom: 10px;
}

.result-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.techs-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border);
}

.techs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}

.tech-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 8px 18px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 99px;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: border-color 0.2s, color 0.2s;
}

.tech-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.cta-section {
    padding: 100px 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.cta-section h2 {
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--cream);
    color: #0e0e0e;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: 6px;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--cream2);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--muted);
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    letter-spacing: 0.02em;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover {
    border-color: var(--cream);
    color: var(--cream);
}

.cursor {
    width: 10px;
    height: 10px;
    background: var(--cream);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease;
    mix-blend-mode: difference;
    display: none;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1px solid var(--cream);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    mix-blend-mode: difference;
    display: none;
}

body:hover .cursor {
    opacity: 1;
}

a,
button,
input,
textarea,
select {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (pointer: fine) {

    .custom-cursor-active .cursor,
    .custom-cursor-active .cursor-ring {
        display: block;
    }

    .custom-cursor-active,
    .custom-cursor-active body,
    .custom-cursor-active a,
    .custom-cursor-active button {
        cursor: none;
    }

    .custom-cursor-active input,
    .custom-cursor-active textarea,
    .custom-cursor-active select {
        cursor: auto;
    }
}

.float-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}

.float-trigger {
    pointer-events: auto;
}

.float-panel.open {
    pointer-events: auto;
}

.float-trigger {
    width: 56px;
    height: 56px;
    background: var(--cream);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
    position: relative;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.float-trigger:hover {
    transform: scale(1.1);
}

.float-trigger.open {
    background: var(--bg3);
    transform: rotate(45deg);
}

.float-trigger svg {
    width: 22px;
    height: 22px;
    color: var(--bg);
    transition: color 0.2s;
}

.float-trigger.open svg {
    color: var(--cream);
}

.float-panel {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    width: 320px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(16px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom right;
}

.float-panel.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.float-panel h4 {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    color: var(--cream2);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.float-panel>form>p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: max(16px, 14px);
    color: var(--white);
    outline: none;
    transition: border-color 0.2s;
    resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted2);
}

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

.form-group textarea {
    min-height: 80px;
}

.btn-send {
    width: 100%;
    padding: 13px;
    background: var(--cream);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.btn-send:hover {
    background: var(--cream2);
}

.form-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.form-success .check {
    width: 44px;
    height: 44px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 22px;
}

.form-success strong {
    display: block;
    color: var(--white);
    font-size: 16px;
    margin-bottom: 4px;
}

.form-success p {
    font-size: 14px;
    color: var(--muted);
    margin: 0;
}

footer {
    padding: 28px 5%;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

footer span {
    color: var(--muted);
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 768px) {

    .process-steps,
    .stat-highlight,
    .result-grid {
        grid-template-columns: 1fr;
    }

    .process-step,
    .stat-block,
    .result-item {
        border-right: 1px solid var(--border);
        border-bottom: none;
    }

    .process-step:last-child,
    .stat-block:last-child,
    .result-item:last-child {
        border-bottom: 1px solid var(--border);
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .float-panel {
        width: 290px;
    }

    .project-hero-meta {
        gap: 24px;
    }

    .img-overlay-btn {
        left: 0;
        bottom: 0;
        right: 0;
        border-radius: 0 0 8px 8px;
        justify-content: center;
        padding: 14px 16px;
    }
}


/* ═══════════════════════════════════════════════════════════════════
   COBOL PAGE — estilos específicos
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --green: #4ade80;
    --green2: #22c55e;
    --green-dim: rgba(74, 222, 128, 0.12);
    --green-glow: rgba(74, 222, 128, 0.06);
    --mono: 'JetBrains Mono', monospace;
    --terminal-bg: #0a0f0a;
}

/* ── HERO ─────────────────────────────────────────────────────────── */
.cobol-hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 130px 5% 100px;
    position: relative;
    overflow: hidden;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.cobol-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 40%, rgba(74, 222, 128, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 20% 80%, rgba(212, 169, 106, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

/* scanlines sutiles */
.cobol-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 3px,
            rgba(74, 222, 128, 0.012) 3px,
            rgba(74, 222, 128, 0.012) 4px);
    pointer-events: none;
}

.cobol-hero-inner {
    max-width: 1100px;
    margin: auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* eyebrow con cursor parpadeante */
.cobol-eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cobol-eyebrow::before {
    content: '>';
    animation: cblink 1.2s step-end infinite;
}

@keyframes cblink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.cobol-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(44px, 5.5vw, 72px);
    color: var(--cream2);
    letter-spacing: -2.5px;
    line-height: 1.0;
    margin-bottom: 28px;
}

.cobol-hero h1 em {
    font-style: italic;
    color: var(--green);
}

.cobol-hero-desc {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 440px;
}

/* ── TERMINAL CARD ────────────────────────────────────────────────── */
.terminal-card {
    background: var(--terminal-bg);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(74, 222, 128, 0.05),
        0 24px 60px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(74, 222, 128, 0.04);
}

.terminal-bar {
    background: #111;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}

.t-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.t-dot.red {
    background: #ff5f57;
}

.t-dot.yellow {
    background: #febc2e;
}

.t-dot.green {
    background: #28c840;
}

.terminal-title {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    margin-left: 8px;
    letter-spacing: 0.05em;
}

.terminal-body {
    padding: 24px 28px;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 2;
    overflow-x: auto;
}

.t-line {
    display: flex;
    white-space: pre;
}

.t-kw {
    color: #7dd3fc;
}

.t-str {
    color: #fbbf24;
}

.t-cmd {
    color: var(--cream);
}

.t-comment {
    color: #4a5568;
    font-style: italic;
}

.t-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--green);
    animation: cblink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

/* ── SECCIONES COBOL ──────────────────────────────────────────────── */
.cobol-section {
    padding: 100px 5%;
}

.cobol-section.alt {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cobol-section-inner {
    max-width: 1100px;
    margin: auto;
}

/* ── KNOWLEDGE GRID ───────────────────────────────────────────────── */
.knowledge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 60px;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.knowledge-card {
    background: var(--bg2);
    padding: 36px 32px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    transition: background 0.25s;
}

.knowledge-card:nth-child(3n) {
    border-right: none;
}

.knowledge-card:nth-child(4),
.knowledge-card:nth-child(5),
.knowledge-card:nth-child(6) {
    border-bottom: none;
}

.knowledge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.3s;
}

.knowledge-card:hover {
    background: var(--bg3);
}

.knowledge-card:hover::before {
    background: var(--green);
}

.kc-icon {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    margin-bottom: 18px;
    letter-spacing: 0.1em;
}

.kc-title {
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    color: var(--cream2);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.kc-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
}

/* ── CODE BLOCKS ──────────────────────────────────────────────────── */
.code-samples {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.code-block-wrap {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.code-block-wrap.visible {
    opacity: 1;
    transform: translateY(0);
}

.code-block-header {
    background: var(--bg3);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.code-block-title {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--cream);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.code-block-tag {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    background: var(--green-dim);
    padding: 3px 10px;
    border-radius: 99px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.code-block-body {
    background: var(--terminal-bg);
    padding: 28px 32px;
    overflow-x: auto;
}

.code-block-body pre {
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
    margin: 0;
    white-space: pre;
}

/* syntax colors dentro de <pre> */
.ck {
    color: #7dd3fc;
}

/* keyword    */
.cs {
    color: #fbbf24;
}

/* string     */
.cm {
    color: #4a5568;
    font-style: italic;
}

/* comment */
.cn {
    color: var(--green);
}

/* number     */
.cd {
    color: var(--cream);
}

/* division   */

/* ── TOOLS PILLS ──────────────────────────────────────────────────── */
.tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 48px;
}

.tool-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--muted);
    transition: border-color 0.25s, color 0.25s, background 0.25s;
}

.tool-pill:hover {
    border-color: var(--green);
    color: var(--green);
    background: var(--green-glow);
}

.tool-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

/* ── LEARNING / PROGRESO ──────────────────────────────────────────── */
.learning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 60px;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.learning-item {
    padding: 32px;
    background: var(--bg3);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.learning-item:nth-child(2n) {
    border-right: none;
}

.learning-item:nth-child(5),
.learning-item:nth-child(6) {
    border-bottom: none;
}

.learning-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.li-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.li-title {
    font-family: 'DM Serif Display', serif;
    font-size: 19px;
    color: var(--cream2);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.li-desc {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.li-bar-wrap {
    margin-top: 20px;
    height: 2px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
}

.li-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--green2), var(--green));
    border-radius: 99px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.learning-item.visible .li-bar {
    transform: scaleX(1);
}

/* ── CTA FINAL ────────────────────────────────────────────────────── */
.cobol-cta {
    padding: 100px 5%;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    text-align: center;
}

.cobol-cta p {
    font-size: 17px;
    color: var(--muted);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.75;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 20px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--cream);
}

/* ── COBOL MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cobol-hero-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .knowledge-grid {
        grid-template-columns: 1fr;
    }

    .knowledge-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .knowledge-card:last-child {
        border-bottom: none;
    }

    .learning-grid {
        grid-template-columns: 1fr;
    }

    .learning-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .learning-item:last-child {
        border-bottom: none;
    }

    .terminal-body {
        padding: 16px;
        font-size: 11px;
    }

    .code-block-body {
        padding: 20px 16px;
    }

    .code-block-body pre {
        font-size: 11px;
    }
}