/* ── Servidores course theme ─────────────────────────────────────
   Slightly darker variant of the desarrollo-web blue palette.
   styles.css defaults: primary #1a5276 · secondary #2980b9
──────────────────────────────────────────────────────────────── */

:root {
    --primary-color:   #133d5e;   /* darker navy-blue  */
    --secondary-color: #1f6fa3;   /* darker medium-blue */
}

/* ── Section icon badges ─────────────────────────────────────── */

.icon-badge.server {
    background: linear-gradient(135deg, #133d5e, #1f6fa3);
    color: white;
}

.icon-badge.gold {
    background: linear-gradient(135deg, #1f6fa3, #2980b9);
    color: white;
}

.icon-badge.shield {
    background: linear-gradient(135deg, #7b1e1e, #c0392b);
    color: white;
}

/* ── Step list for installation guides ───────────────────────── */

.step-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    counter-reset: step-counter;
}

.step-list li {
    counter-increment: step-counter;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(19, 61, 94, 0.08);
}

.step-list li:last-child {
    border-bottom: none;
}

.step-list li::before {
    content: counter(step-counter);
    flex: 0 0 32px;
    height: 32px;
    background: linear-gradient(135deg, #133d5e, #1f6fa3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.9rem;
    margin-top: 2px;
}

/* ── OS comparison cards ─────────────────────────────────────── */

.os-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.os-card {
    border-radius: 10px;
    padding: 14px 16px;
    border-left: 5px solid;
}

.os-card.windows  { border-color: #0078d4; background: #e8f4fd; }
.os-card.ubuntu   { border-color: #e95420; background: #fdf0ec; }
.os-card.redhat   { border-color: #cc0000; background: #fdeaea; }
.os-card.debian   { border-color: #a80030; background: #fdeaee; }
.os-card.rocky    { border-color: #10b981; background: #e6f9f3; }

.os-card .os-name {
    font-weight: 900;
    font-size: 1rem;
    margin-bottom: 5px;
}

.os-card p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ── Requirement tiles ───────────────────────────────────────── */

.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin: 14px 0;
}

.req-item {
    background: white;
    border: 1px solid rgba(19, 61, 94, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: center;
}

.req-item .req-icon {
    font-size: 1.6rem;
    color: #133d5e;
    margin-bottom: 6px;
}

.req-item .req-label {
    font-size: 0.78rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.req-item .req-value {
    font-size: 1.05rem;
    font-weight: 900;
    color: #133d5e;
    margin-top: 2px;
}

/* ── Roadmap tiles (unit progress) ───────────────────────────── */

.req-item.completed {
    border-color: #10b981;
    background: #ecfdf5;
}

.req-item.completed .req-icon {
    color: #10b981;
}

.req-item .req-status {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 999px;
}

.req-item.completed .req-status {
    background: rgba(16, 185, 129, 0.15);
    color: #0d9668;
}

.req-item:not(.completed) .req-status {
    background: rgba(19, 61, 94, 0.08);
    color: #666;
}

/* ── Server Manager feature tiles ────────────────────────────── */

.sm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.sm-tile {
    background: white;
    border: 1px solid rgba(19, 61, 94, 0.1);
    border-top: 4px solid #1f6fa3;
    border-radius: 10px;
    padding: 14px 16px;
}

.sm-tile h4 {
    margin: 0 0 6px;
    color: #133d5e;
    font-size: 1rem;
}

.sm-tile p {
    margin: 0;
    font-size: 0.87rem;
    color: #555;
    line-height: 1.5;
}

/* ── Responsive tables with horizontal scroll ─────────────────── */

@media (max-width: 768px) {
    .comparison-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
}
