.clc-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 16px 56px;
}

.clc-header h1 {
    margin: 6px 0 14px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.clc-eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #0f766e;
    font-weight: 700;
}

.clc-counter,
.clc-status {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
}

.clc-counter {
    background: #ecfeff;
    color: #164e63;
}

.clc-status-ok {
    margin-left: 8px;
    background: #e7f8ee;
    color: #1f7a45;
}

.clc-status-error {
    margin-left: 8px;
    background: #fdeaea;
    color: #b42318;
}

.clc-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0 24px;
}

.clc-legend span {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 700;
}

.clc-legend i {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: block;
}

.clc-summary {
    margin: 28px 0 24px;
}

.clc-summary h2,
.clc-size-group h2 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
}

.clc-summary-table-wrap {
    overflow-x: auto;
    border: 1px solid #dbe3ea;
    border-radius: 8px;
}

.clc-summary-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
    background: #ffffff;
}

.clc-summary-table th,
.clc-summary-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.clc-summary-table thead th {
    background: #f8fafc;
    color: #0f172a;
}

.clc-summary-table tbody tr:last-child th,
.clc-summary-table tbody tr:last-child td {
    border-bottom: 0;
}

.clc-size-group {
    margin-top: 28px;
}

.clc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
}

.clc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    aspect-ratio: 1 / 1;
    min-height: 230px;
    padding: 16px;
    border: 2px solid var(--clc-color);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
    overflow: auto;
}

.clc-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 8px;
    background: var(--clc-color);
}

.clc-card strong {
    margin-top: 8px;
    font-size: 22px;
    line-height: 1.1;
}

.clc-card b {
    color: var(--clc-color);
}

.clc-card-ocupado {
    background: #fff7f7;
}

.clc-card-en_proceso {
    background: #fffaf0;
}

.clc-button,
.clc-card button {
    margin-top: auto;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #0f766e;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.clc-button:hover,
.clc-card button:hover {
    background: #115e59;
    color: #ffffff;
}

.clc-card button:disabled {
    opacity: .65;
    cursor: wait;
}

.clc-card input {
    width: 100%;
    min-height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 10px;
}

.clc-card form {
    display: grid;
    gap: 8px;
}

.clc-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
}

.clc-copy {
    margin: 24px 0;
}

.clc-final-copy {
    margin-top: 32px;
}

.clc-faq {
    margin-top: 36px;
}

.clc-faq h2 {
    margin-bottom: 12px;
}

.clc-faq details {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
}

.clc-faq summary {
    font-weight: 700;
    cursor: pointer;
}

.clc-contract-box {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.clc-contract-code {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background: #0f766e;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: .08em;
    margin: 10px 0;
}

.clc-contract-text {
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

@media (max-width: 560px) {
    .clc-page {
        padding-inline: 12px;
    }

    .clc-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .clc-card {
        min-height: 220px;
        padding: 14px;
    }
}
