/* ── Tabla trámites y requisitos ─────────────────────────────── */

.tramites-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.tramites-table thead tr {
    background-color: #26348b;
    color: #ffffff;
}

.tramites-table thead th {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.tramites-table thead th:first-child {
    width: 38%;
}

.tramites-table tbody tr {
    border-bottom: 1px solid #e8eaf3;
    transition: background 0.15s;
}

.tramites-table tbody tr:last-child {
    border-bottom: none;
}

.tramites-table tbody tr:hover {
    background-color: #f4f5fb;
}

.tramite-nombre {
    padding: 14px 20px;
    font-weight: 600;
    color: #1a1a2e;
    vertical-align: top;
    line-height: 1.5;
}

.tramite-requisitos {
    padding: 14px 20px;
    color: #555555;
    vertical-align: top;
    line-height: 1.7;
}

.tramite-sin-req span {
    display: inline-block;
    font-size: 0.75rem;
    color: #aaaaaa;
    font-style: italic;
}

/* Separador visual entre grupos de filas */
.tramites-table tbody tr:nth-child(odd) {
    background-color: #fafbff;
}
.tramites-table tbody tr:nth-child(odd):hover {
    background-color: #f4f5fb;
}

@media (max-width: 640px) {
    .tramites-table,
    .tramites-table thead,
    .tramites-table tbody,
    .tramites-table th,
    .tramites-table td,
    .tramites-table tr {
        display: block;
    }

    .tramites-table thead {
        display: none;
    }

    .tramites-table tbody tr {
        border: 1px solid #d0d4ef;
        border-radius: 6px;
        margin-bottom: 12px;
        padding: 4px 0;
    }

    .tramite-nombre {
        font-size: 0.9rem;
        border-bottom: 1px solid #e8eaf3;
    }

    .tramite-requisitos {
        font-size: 0.82rem;
    }

    .tramite-nombre::before {
        content: 'Trámite';
        display: block;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #26348b;
        margin-bottom: 4px;
    }

    .tramite-requisitos::before {
        content: 'Requisitos';
        display: block;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 1px;
        text-transform: uppercase;
        color: #26348b;
        margin-bottom: 4px;
    }
}

/* ── Lista de trámites ───────────────────────────────────────── */

.tramites-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 760px;
}

.tramites-lista li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f4f5fb;
    border: 1px solid #d0d4ef;
    border-left: 4px solid #26348b;
    border-radius: 6px;
    padding: 14px 18px;
    font-size: 0.92rem;
    color: #333333;
    line-height: 1.5;
}

.tramites-lista li i {
    color: #26348b;
    font-size: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}
