.oce-final-back,
.oce-final-next,
.oce-submit-report {
    min-height: 46px;
    padding: 10px 19px;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.oce-final-back {
    border: 0;
    background: #E5EAE7;
    color: var(--green);
}

.oce-final-back:hover {
    background: #DCE3DF;
}

.oce-final-next,
.oce-submit-report {
    border: 0;
    background: var(--orange);
    color: var(--text);
}

.oce-final-next:disabled,
.oce-submit-report:disabled {
    cursor: default;
    opacity: .45;
}

/* IDENTIDAD */

.oce-identity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.oce-identity-choice {
    display: flex;
    min-height: 115px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 15px;
    border: 1px solid #D4DAD6;
    border-radius: 13px;
    background: #F3F5F2;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.oce-identity-choice strong {
    color: var(--green);
    font-size: 14px;
}

.oce-identity-choice span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.oce-identity-choice.is-selected {
    border: 2px solid var(--orange);
    background: #FFF1E2;
}

.oce-identity-field {
    margin-top: 15px;
}

.oce-identity-field[hidden] {
    display: none !important;
}

.oce-identity-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--green);
    font-size: 13px;
    font-weight: 750;
}

.oce-identity-field input {
    width: 100%;
    min-height: 45px;
    padding: 9px 12px;
    border: 1px solid #D4DAD6;
    border-radius: 9px;
    background: #FFFFFF;
    color: var(--text);
    font: inherit;
}

/* REVISION */

.oce-review {
    min-height: 0;
}

.oce-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 7px;
}

.oce-review-item {
    padding: 8px 10px;
    border: 1px solid #E0E3E0;
    border-radius: 9px;
    background: #FFFFFF;
}

.oce-review-wide {
    grid-column: 1 / -1;
}

.oce-review-item span,
.oce-review-story > span {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.oce-review-item strong {
    display: block;
    color: var(--text);
    font-size: 12px;
    line-height: 1.3;
}

.oce-review-story {
    margin-top: 7px;
    padding: 9px 11px;
    border: 1px solid #E0E3E0;
    border-radius: 9px;
    background: #FFFFFF;
}

.oce-review-story p {
    margin: 0;
    color: var(--text);
    font-size: 11px;
    line-height: 1.42;
}

/* DECLARACION */

.oce-declaration {
    padding: 15px;
    border: 1px solid #D4DAD6;
    border-radius: 12px;
    background: #FFFFFF;
}

.oce-declaration > p {
    margin: 0 0 14px;
    color: var(--text);
    font-size: 13px;
    line-height: 1.55;
}

.oce-declaration-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding-top: 12px;
    border-top: 1px solid #E7E7E2;
    color: var(--green);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.oce-declaration-check input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex: 0 0 auto;
}

.oce-official-warning {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #F3F5F2;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.oce-official-warning strong {
    color: var(--green);
}

.oce-submit-message {
    min-height: 20px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
}

.oce-submit-message.is-error {
    color: #A1372C;
}

/* RECIBIDO */

.oce-received-step {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.oce-received-mark {
    display: flex;
    width: 66px;
    height: 66px;
    align-items: center;
    justify-content: center;
    margin: 10px auto 15px;
    border-radius: 50%;
    background: #E5EAE7;
    color: var(--green);
    font-size: 32px;
    font-weight: 900;
}

.oce-received-step h1 {
    margin-bottom: 7px;
}

.oce-received-lead {
    margin: 0 0 18px;
    color: var(--muted);
}

.oce-received-card {
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 18px;
    border: 1px solid #D4DAD6;
    border-radius: 14px;
    background: #FFFFFF;
}

.oce-received-card > span {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.oce-received-card > strong {
    display: block;
    margin: 5px 0 10px;
    color: var(--green);
    font-size: 24px;
    letter-spacing: .03em;
}

.oce-received-status {
    color: var(--muted);
    font-size: 12px;
}

.oce-received-status b {
    color: var(--green);
}

.oce-received-note {
    max-width: 500px;
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 767px) {

    .oce-identity-grid {
        grid-template-columns: 1fr;
    }

    .oce-identity-choice {
        min-height: 82px;
    }

    .oce-review-grid {
        grid-template-columns: 1fr;
    }

    .oce-review-wide {
        grid-column: auto;
    }
}

/*
 * FIX QUIRÚRGICO · PASO 11 / REVISIÓN
 * Evita que la navegación se monte sobre el contenido
 * y compacta esta capa dentro del marco estable.
 */
@media (min-width: 768px) {

    .oce-wizard-step[data-step="11"] h1 {
        margin-top: 0;
        margin-bottom: 5px;
        font-size: 31px;
    }

    .oce-wizard-step[data-step="11"] .oce-wizard-help {
        margin-top: 0;
        margin-bottom: 9px;
    }

    .oce-wizard-step[data-step="11"] .oce-review-grid {
        gap: 5px;
    }

    .oce-wizard-step[data-step="11"] .oce-review-item {
        padding: 6px 9px;
    }

    .oce-wizard-step[data-step="11"] .oce-review-item span,
    .oce-wizard-step[data-step="11"] .oce-review-story > span {
        margin-bottom: 1px;
        font-size: 9px;
    }

    .oce-wizard-step[data-step="11"] .oce-review-item strong {
        font-size: 11px;
        line-height: 1.25;
    }

    .oce-wizard-step[data-step="11"] .oce-review-story {
        margin-top: 5px;
        padding: 7px 9px;
    }

    .oce-wizard-step[data-step="11"] .oce-review-story p {
        max-height: 48px;
        overflow: hidden;
        font-size: 10.5px;
        line-height: 1.35;
    }

    .oce-wizard-step[data-step="11"] .oce-private-note {
        margin: 5px 0 0;
        font-size: 10px;
    }

    /*
     * Importante:
     * anulamos el sticky heredado solamente aquí.
     */
    .oce-wizard-step[data-step="11"] .oce-wizard-nav {
        position: static !important;
        bottom: auto !important;
        flex-shrink: 0;
        margin-top: 7px !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .oce-wizard-step[data-step="11"] .oce-wizard-nav button {
        min-height: 43px;
    }
}

/*
 * REVISIÓN v2
 * Escritorio: resumen compacto en 3 columnas.
 * El relato permanece a todo el ancho.
 */
@media (min-width: 768px) {

    .oce-wizard-step[data-step="11"] .oce-wizard-help {
        margin-bottom: 8px;
    }

    .oce-wizard-step[data-step="11"] .oce-review-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    /*
     * En revisión ya no necesitamos tarjetas
     * ocupando toda la fila.
     */
    .oce-wizard-step[data-step="11"] .oce-review-wide {
        grid-column: auto;
    }

    .oce-wizard-step[data-step="11"] .oce-review-item {
        min-height: 48px;
        padding: 6px 9px;
    }

    .oce-wizard-step[data-step="11"] .oce-review-item span {
        font-size: 8.5px;
    }

    .oce-wizard-step[data-step="11"] .oce-review-item strong {
        font-size: 10.5px;
        line-height: 1.25;
    }

    /*
     * El relato sí merece todo el ancho.
     */
    .oce-wizard-step[data-step="11"] .oce-review-story {
        margin-top: 6px;
        padding: 7px 9px;
    }

    .oce-wizard-step[data-step="11"] .oce-review-story p {
        max-height: 58px;
        margin: 0;
        overflow: hidden;
        font-size: 10.5px;
        line-height: 1.35;
    }

    .oce-wizard-step[data-step="11"] .oce-private-note {
        margin: 4px 0 0;
    }

    .oce-wizard-step[data-step="11"] .oce-wizard-nav {
        margin-top: 6px !important;
    }
}

/*
 * REVISIÓN v3
 * Las tarjetas pueden crecer verticalmente.
 * Nunca ocultar ni desplazar horizontalmente información.
 */
@media (min-width: 768px) {

    .oce-wizard-step[data-step="11"] .oce-review-item {
        min-height: 50px;
        height: auto;
    }

    .oce-wizard-step[data-step="11"] .oce-review-item strong {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .oce-wizard-step[data-step="11"] .oce-review-grid {
        grid-auto-rows: auto;
        align-items: stretch;
    }

    .oce-wizard-step[data-step="11"] .oce-review-story p {
        max-height: 72px;
    }
}
