.cc-page,
.ccf-page {
    max-width: 1480px;
    margin: 0 auto;
}

.cc-project-card {
    padding: 22px 22px 18px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(59,130,246,.08), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,245,249,.94));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 34px rgba(148, 163, 184, 0.16);
}

.cc-project-card__head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.cc-project-card__logo-wrap {
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    padding: 8px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(226,232,240,.92));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.cc-project-card__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 22px;
}

.cc-project-card__headline {
    min-width: 0;
}

.cc-project-card__kicker {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 6px;
}

.cc-project-card__title {
    font-size: 1.18rem;
    line-height: 1.25;
    color: #24304d;
    margin: 0;
}

.cc-project-card__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.cc-project-pill {
    position: relative;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(148, 163, 184, 0.14);
    overflow: hidden;
}

.cc-project-pill::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #94a3b8;
}

.cc-project-pill--default::before {
    background: linear-gradient(180deg, #64748b, #475569);
}

.cc-project-pill--warning::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.cc-project-pill--success::before {
    background: linear-gradient(180deg, #10b981, #047857);
}

.cc-project-pill__label {
    display: block;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 4px;
}

.cc-project-pill__value {
    display: block;
    font-size: 1.22rem;
    font-weight: 800;
    line-height: 1;
    color: #24304d;
}

.cc-project-card__cta {
    min-width: 100%;
    font-weight: 700;
    letter-spacing: .01em;
}

.cc-hero,
.ccf-hero {
    padding: 22px 26px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(237,242,247,.9));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 36px rgba(148, 163, 184, 0.16);
}

.cc-kicker,
.ccf-kicker {
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.cc-kicker {
    color: #b45309;
}

.cc-title,
.ccf-title {
    line-height: 1.15;
    color: #24304d;
    margin-bottom: 6px;
}

.cc-title {
    font-size: 1.85rem;
}

.ccf-title {
    font-size: 1.9rem;
}

.cc-subtitle,
.ccf-subtitle {
    font-size: .96rem;
    color: #667085;
    margin-bottom: 0;
}

.cc-chip-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.cc-chip {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 78px;
    padding: 12px 15px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.88));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

.cc-chip-label {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 5px;
}

.cc-chip-value {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    color: #24304d;
}

.cc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, .9fr);
    gap: 18px;
    align-items: start;
}

.cc-panel {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,245,249,.92));
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    box-shadow: 0 16px 28px rgba(148, 163, 184, 0.14);
    overflow: hidden;
}

.cc-panel-header {
    padding: 18px 20px 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.cc-panel-body {
    padding: 18px 20px 20px;
}

.cc-section-tag {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}

.cc-section-title {
    font-size: 1.28rem;
    line-height: 1.15;
    color: #24304d;
    margin-bottom: 6px;
}

.cc-section-copy {
    color: #667085;
    font-size: .92rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.cc-field-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.cc-field-full {
    grid-column: 1 / -1;
}

.cc-aside-stack {
    display: grid;
    gap: 16px;
}

.cc-status-card {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(241,245,249,.94));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 14px 24px rgba(148, 163, 184, 0.13);
}

.cc-status-title {
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 10px;
}

.cc-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.cc-stat-box {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.cc-stat-label {
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 4px;
}

.cc-stat-value {
    font-size: .98rem;
    font-weight: 700;
    color: #24304d;
    line-height: 1.4;
}

.cc-upload-box {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.cc-flow-hint {
    margin-bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(148,163,184,.14);
    background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,250,252,.92));
}

.cc-flow-hint--info {
    background: linear-gradient(180deg, rgba(239,246,255,.96), rgba(255,255,255,.98));
    border-color: rgba(59,130,246,.18);
}

.cc-flow-hint--primary {
    background: linear-gradient(180deg, rgba(219,234,254,.96), rgba(255,255,255,.98));
    border-color: rgba(37,99,235,.18);
}

.cc-flow-hint--warning {
    background: linear-gradient(180deg, rgba(255,251,235,.96), rgba(255,255,255,.98));
    border-color: rgba(245,158,11,.18);
}

.cc-flow-hint--success {
    background: linear-gradient(180deg, rgba(236,253,245,.96), rgba(255,255,255,.98));
    border-color: rgba(16,185,129,.18);
}

.cc-flow-hint__title {
    font-size: .94rem;
    font-weight: 800;
    color: #24304d;
    margin-bottom: 4px;
}

.cc-flow-hint__body {
    font-size: .9rem;
    line-height: 1.5;
    color: #475569;
}

.cc-observacion-card {
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 14px 24px rgba(148, 163, 184, 0.11);
    padding: 16px 18px;
}

.cc-log-item {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.cc-inline-form {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.cc-mini-label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
}

.ccf-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.ccf-stat {
    position: relative;
    padding: 14px 16px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(248,250,252,.9));
    border: 1px solid rgba(148, 163, 184, 0.14);
    overflow: hidden;
}

.ccf-stat::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    opacity: .95;
}

.ccf-stat--total::before {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.ccf-stat--closed::before {
    background: linear-gradient(180deg, #22c55e, #15803d);
}

.ccf-stat--warning::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.ccf-stat--danger::before {
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

.ccf-stat--info::before {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
}

.ccf-stat--muted::before {
    background: linear-gradient(180deg, #94a3b8, #64748b);
}

.ccf-stat--total {
    background: linear-gradient(180deg, rgba(219,234,254,.86), rgba(255,255,255,.95));
}

.ccf-stat--closed {
    background: linear-gradient(180deg, rgba(220,252,231,.86), rgba(255,255,255,.95));
}

.ccf-stat--warning {
    background: linear-gradient(180deg, rgba(254,243,199,.9), rgba(255,255,255,.96));
}

.ccf-stat--danger {
    background: linear-gradient(180deg, rgba(254,226,226,.9), rgba(255,255,255,.96));
}

.ccf-stat--info {
    background: linear-gradient(180deg, rgba(219,234,254,.88), rgba(255,255,255,.95));
}

.ccf-stat--resolved::before {
    background: linear-gradient(180deg, #14b8a6, #0f766e);
}

.ccf-stat--resolved {
    background: linear-gradient(180deg, rgba(204,251,241,.88), rgba(255,255,255,.95));
}

.ccf-stat--muted {
    background: linear-gradient(180deg, rgba(241,245,249,.95), rgba(255,255,255,.98));
}

.ccf-stat-label {
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 4px;
}

.ccf-stat-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #24304d;
}

.ccf-alert-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(254,226,226,.9), rgba(255,255,255,.96));
    border: 1px solid rgba(239,68,68,.16);
    color: #991b1b;
}

.ccf-alert-strip__label {
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.ccf-alert-strip__value {
    font-size: .92rem;
    font-weight: 800;
    text-align: right;
}

.ccf-toolbar {
    position: sticky;
    top: 12px;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 14px;
    border-radius: 22px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 16px 28px rgba(148, 163, 184, 0.14);
}

.ccf-list {
    display: grid;
    gap: 10px;
}

.ccf-row {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 2.35fr) minmax(132px, .72fr) minmax(138px, .72fr) minmax(210px, .95fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,247,251,.94));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 12px 22px rgba(148, 163, 184, 0.1);
    overflow: hidden;
}

.ccf-row::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    border-radius: 22px 0 0 22px;
    background: rgba(148,163,184,.5);
}

.ccf-row--pendiente {
    background:
        radial-gradient(circle at top right, rgba(148,163,184,.08), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(244,247,251,.94));
}

.ccf-row--pendiente::before {
    background: linear-gradient(180deg, #94a3b8, #64748b);
}

.ccf-row--pendiente_fuera_plazo {
    background:
        radial-gradient(circle at top right, rgba(239,68,68,.08), transparent 30%),
        linear-gradient(180deg, rgba(255,252,252,.98), rgba(254,242,242,.94));
}

.ccf-row--pendiente_fuera_plazo::before {
    background: linear-gradient(180deg, #ef4444, #dc2626);
}

.ccf-row--revision {
    background:
        radial-gradient(circle at top right, rgba(59,130,246,.08), transparent 30%),
        linear-gradient(180deg, rgba(248,251,255,.98), rgba(239,246,255,.94));
}

.ccf-row--revision::before {
    background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.ccf-row--observaciones {
    background:
        radial-gradient(circle at top right, rgba(245,158,11,.08), transparent 30%),
        linear-gradient(180deg, rgba(255,252,245,.98), rgba(255,247,237,.94));
}

.ccf-row--observaciones::before {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.ccf-row--atendidas {
    background:
        radial-gradient(circle at top right, rgba(20,184,166,.08), transparent 30%),
        linear-gradient(180deg, rgba(245,255,253,.98), rgba(240,253,250,.94));
}

.ccf-row--atendidas::before {
    background: linear-gradient(180deg, #14b8a6, #0f766e);
}

.ccf-row--sin_observaciones {
    background:
        radial-gradient(circle at top right, rgba(34,197,94,.08), transparent 30%),
        linear-gradient(180deg, rgba(247,254,249,.98), rgba(240,253,244,.94));
}

.ccf-row--sin_observaciones::before {
    background: linear-gradient(180deg, #22c55e, #15803d);
}

.ccf-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-shadow: 0 6px 14px rgba(148, 163, 184, 0.16);
}

.ccf-name {
    font-size: 1rem;
    font-weight: 700;
    color: #24304d;
    line-height: 1.35;
    margin-bottom: 4px;
}

.ccf-meta {
    font-size: .86rem;
    color: #667085;
    line-height: 1.45;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ccf-meta b {
    color: #334155;
}

.ccf-stack-label {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 3px;
}

.ccf-stack-value {
    font-size: .92rem;
    font-weight: 700;
    color: #24304d;
    line-height: 1.4;
}

.ccf-stack-note {
    margin-top: 4px;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.35;
}

.ccf-stack-note--success {
    color: #166534;
}

.ccf-stack-note--danger {
    color: #b91c1c;
}

.ccf-stack-note--info {
    color: #1d4ed8;
}

.ccf-stack-note--muted {
    color: #64748b;
}

.ccf-status {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
}

.ccf-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.ccf-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.ccf-process-meta {
    display: grid;
    gap: 6px;
}

.ccf-process-note {
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.35;
}

.ccf-process-note--success {
    color: #166534;
}

.ccf-process-note--danger {
    color: #b91c1c;
}

.ccf-process-note--info {
    color: #1d4ed8;
}

.ccf-process-note--muted {
    color: #64748b;
}

.ccf-pdf-link {
    font-size: .8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.ccf-empty {
    padding: 24px;
    border-radius: 22px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(148, 163, 184, 0.16);
    color: #64748b;
    text-align: center;
}

@media (max-width: 1399.98px) {
    .ccf-row {
        grid-template-columns: 56px minmax(0, 2fr) minmax(130px, .75fr) minmax(190px, .95fr) auto;
    }

    .ccf-col-fecha {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .cc-project-card {
        padding: 18px 18px 16px;
    }

    .cc-project-card__head {
        gap: 14px;
    }

    .cc-project-card__logo-wrap {
        width: 74px;
        height: 74px;
        flex: 0 0 74px;
        border-radius: 24px;
    }

    .cc-project-card__title {
        font-size: 1.05rem;
    }

    .cc-layout {
        grid-template-columns: 1fr;
    }

    .cc-inline-form,
    .ccf-toolbar {
        grid-template-columns: 1fr;
    }

    .ccf-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ccf-row {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 12px;
    }

    .ccf-col-oficio,
    .ccf-col-fecha,
    .ccf-col-obs {
        display: none;
    }

    .ccf-actions {
        grid-column: 2;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        margin-top: 6px;
    }
}

@media (max-width: 767.98px) {
    .cc-project-card__head {
        align-items: flex-start;
    }

    .cc-hero,
    .ccf-hero,
    .cc-panel-body,
    .cc-panel-header,
    .cc-status-card {
        padding: 16px;
    }

    .cc-title {
        font-size: 1.5rem;
    }

    .ccf-title {
        font-size: 1.55rem;
    }

    .cc-field-group,
    .cc-stat-grid,
    .cc-chip-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .cc-project-card {
        padding: 16px;
        border-radius: 22px;
    }

    .cc-project-card__head {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .cc-project-card__headline {
        width: 100%;
    }

    .cc-project-card__stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
