.act-page {
    max-width: 1200px;
    padding: 1.25rem 1rem 2.5rem;
}

.act-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.act-top h1 {
    margin: 0;
    font-size: 1.4rem;
    color: #0f172a;
}

.act-top p {
    margin: 0.2rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.module-back a {
    color: #047857;
    font-weight: 600;
    text-decoration: none;
}

.act-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.act-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    text-decoration: none;
    border: 1px solid #6ee7b7;
    color: #047857;
    background: #fff;
}

.act-btn-primary {
    background: #059669;
    color: #fff;
    border-color: #059669;
}

.act-btn-outline {
    background: #fff;
}

.act-kpi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.act-kpi-item {
    text-align: center;
    padding: 0.75rem;
    background: #ecfdf5;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #065f46;
}

.act-kpi-item span {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
}

.act-hint {
    margin: 0 0 0.75rem;
    color: #64748b;
    font-size: 0.88rem;
}

.act-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.act-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #166534;
}

.act-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.3rem;
    background: #059669;
    color: #fff;
    border-radius: 999px;
    font-size: 0.72rem;
}

.act-matrix {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.act-matrix th,
.act-matrix td {
    padding: 0.45rem 0.35rem;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
    vertical-align: middle;
}

.act-matrix thead th {
    background: #047857;
    color: #fff;
    font-weight: 700;
}

.act-matrix .act-prov {
    text-align: left;
    min-width: 130px;
    font-weight: 600;
}

.act-prov a {
    color: #0f172a;
    text-decoration: none;
}

.act-prov a:hover {
    color: #059669;
    text-decoration: underline;
}

.act-pending {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    color: #94a3b8;
}

.act-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 6px;
    font-weight: 800;
}

.act-check.ok {
    background: #dcfce7;
    color: #15803d;
}

.act-check.no {
    background: #f1f5f9;
    color: #cbd5e1;
}

.act-total {
    font-weight: 800;
    color: #047857;
}

.act-th-icon {
    font-size: 1rem;
}

.act-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: #64748b;
}

.act-detalle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.act-detalle-card {
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.act-detalle-card h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.act-detalle-card h3 a {
    color: #0f172a;
    text-decoration: none;
}

.act-registrado {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
}

.act-detalle-list {
    margin: 0 0 0.5rem;
    padding: 0;
    list-style: none;
    font-size: 0.88rem;
}

.act-detalle-list li {
    padding: 0.2rem 0;
}

.act-obs {
    margin: 0.5rem 0;
    font-size: 0.85rem;
    color: #475569;
    font-style: italic;
}

.act-muted {
    font-size: 0.75rem;
    color: #94a3b8;
}

.act-form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.act-form input,
.act-form select,
.act-form textarea {
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font: inherit;
}

.act-coord {
    margin: -0.5rem 0 1rem;
    font-size: 0.88rem;
    color: #047857;
    font-weight: 600;
}

.act-fieldset {
    border: none;
    margin: 0 0 1.25rem;
    padding: 0;
}

.act-fieldset legend {
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.act-groups {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.act-group {
    border: 1px solid #d1fae5;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.act-group-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(90deg, #ecfdf5, #f0fdf4);
    border-bottom: 1px solid #d1fae5;
}

.act-group-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.act-group-head h3 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.act-group-head p {
    margin: 0.15rem 0 0;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
}

.act-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    padding: 0.75rem;
}

.act-sub-card {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    color: #334155;
    transition: border-color 0.15s, background 0.15s;
}

.act-sub-card:has(input:checked) {
    border-color: #059669;
    background: #ecfdf5;
}

.act-sub-card input {
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: #059669;
}

.act-detalle-bloque {
    margin-bottom: 0.65rem;
}

.act-detalle-bloque:last-child {
    margin-bottom: 0;
}

.act-detalle-titulo {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #065f46;
}

.act-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.65rem;
}

.act-check-card {
    cursor: pointer;
    margin: 0;
}

.act-check-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.act-check-inner {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    min-height: 100%;
}

.act-check-card input:checked + .act-check-inner {
    border-color: #059669;
    background: #ecfdf5;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.act-check-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.act-check-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: #0f172a;
}

.act-check-desc {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 400;
    line-height: 1.35;
}

.act-form-card {
    max-width: 920px;
}

@media (max-width: 720px) {
    .act-matrix {
        font-size: 0.72rem;
    }

    .act-check-grid {
        grid-template-columns: 1fr;
    }
}
