:root {
    --rad-navy: #163355;
    --rad-navy-700: #244b73;
    --rad-orange: #ec672a;
    --rad-orange-soft: #fff3ed;
    --rad-green: #267356;
    --rad-red: #b42335;
    --rad-ink: #263746;
    --rad-muted: #667785;
    --rad-border: #d9e1e7;
    --rad-soft: #f4f7f9;
    --rad-surface: #ffffff;
}

.grecaptcha-badge,
.sgd-local-radication-preview .grecaptcha-badge {
    visibility: hidden !important;
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.sgd-public-radication {
    min-height: 100vh;
    background: #eef3f6;
    color: var(--rad-ink);
}

.sgd-public-radication .sgd-radication-banner {
    display: block;
    width: 100%;
    max-height: 185px;
    object-fit: cover;
    object-position: center;
}

.sgd-public-radication .sgd-radication-body {
    margin: 0 !important;
    padding: 0 !important;
}

.sgd-public-radication .sgd-radication-body > .container-fluid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 36px;
}

.sgd-public-radication .sgd-radication-body > .container-fluid > .row {
    margin-right: 0;
    margin-left: 0;
}

.sgd-public-radication .sgd-radication-titlebar {
    margin: 0 0 18px;
    padding: 22px 24px;
    border: 1px solid var(--rad-border);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: var(--rad-surface);
    box-shadow: 0 5px 15px rgba(22, 51, 85, 0.06);
}

.sgd-public-radication .sgd-radication-titlebar h1 {
    margin: 2px 0 4px;
    color: var(--rad-navy);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.sgd-public-radication .sgd-radication-titlebar p {
    margin: 0;
    color: var(--rad-muted);
    font-size: 12px;
}

.sgd-radication-eyebrow {
    color: var(--rad-orange);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.sgd-public-radication .sgd-radication-support-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    border: 1px solid var(--rad-border);
    border-left: 4px solid var(--rad-navy);
    border-radius: 6px;
    box-shadow: none;
}

.sgd-public-radication .sgd-radication-support-card .card-body,
.sgd-public-radication .sgd-radication-support-card .card-footer {
    display: inline-flex;
    align-items: center;
    padding: 12px 16px;
    border: 0;
    background: transparent;
}

.sgd-public-radication .sgd-radication-support-card .card-body {
    flex: 1 1 auto;
}

.sgd-public-radication .sgd-radication-support-card .card-footer {
    flex: 0 0 auto;
    float: none;
}

.sgd-public-radication .sgd-radication-project-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 11px 16px;
    border: 1px solid #f0c98d;
    border-radius: 6px;
    background: #fff8e8;
    color: #704d16;
    font-size: 11px;
}

.sgd-public-radication .sgd-radication-form-card {
    border: 1px solid var(--rad-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(22, 51, 85, 0.07);
}

.sgd-public-radication .sgd-radication-form-card > .card-body {
    padding: 22px;
}

.sgd-public-radication .sgd-radication-restrictions {
    margin-bottom: 12px;
    border: 1px solid var(--rad-border);
    border-radius: 6px;
    background: var(--rad-soft);
}

.sgd-public-radication .sgd-radication-restrictions-bottom {
    margin-top: 18px;
    margin-bottom: 0;
}

.sgd-public-radication .sgd-radication-restrictions summary {
    padding: 11px 14px;
    color: var(--rad-navy);
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.sgd-public-radication .sgd-radication-restrictions .list-group {
    padding: 0 14px 12px 32px;
}

.sgd-public-radication .sgd-radication-restrictions .list-group-item {
    padding: 3px 0;
    border: 0;
    background: transparent;
    color: var(--rad-muted);
    font-size: 10px;
}

.sgd-public-radication .sgd-required-note {
    margin: 0 0 12px;
    color: var(--rad-muted);
    font-size: 10px;
}

.sgd-public-radication .sgd-required-note i {
    color: var(--rad-red);
    font-size: 7px;
}

.sgd-public-radication .sgd-field-help {
    display: block;
    margin-top: 5px;
    color: var(--rad-muted);
    font-size: 10px;
    line-height: 1.45;
}

.sgd-radication-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 24px;
    border: 1px solid var(--rad-border);
    border-radius: 6px;
    overflow: hidden;
}

.sgd-radication-steps button {
    position: relative;
    min-height: 64px;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 9px;
    padding: 10px 14px;
    border: 0;
    border-right: 1px solid var(--rad-border);
    background: var(--rad-surface);
    color: var(--rad-muted);
    text-align: left;
}

.sgd-radication-steps button:last-child {
    border-right: 0;
}

.sgd-radication-steps button > span {
    width: 30px;
    height: 30px;
    grid-row: 1 / 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rad-border);
    border-radius: 50%;
    background: var(--rad-soft);
    font-size: 11px;
    font-weight: 700;
}

.sgd-radication-steps button strong {
    align-self: end;
    color: var(--rad-ink);
    font-size: 11px;
}

.sgd-radication-steps button small {
    align-self: start;
    font-size: 9px;
}

.sgd-radication-steps button.is-active {
    background: var(--rad-orange-soft);
}

.sgd-radication-steps button.is-active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--rad-orange);
    content: "";
}

.sgd-radication-steps button.is-active > span,
.sgd-radication-steps button.is-complete > span {
    border-color: var(--rad-orange);
    background: var(--rad-orange);
    color: #ffffff;
}

.sgd-radication-step-panel[hidden] {
    display: none !important;
}

.sgd-radication-section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
}

.sgd-radication-section-heading > span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rad-border);
    border-radius: 6px;
    background: var(--rad-soft);
    color: var(--rad-navy);
}

.sgd-radication-section-heading h2 {
    margin: 0;
    color: var(--rad-navy);
    font-size: 15px;
    font-weight: 700;
}

.sgd-radication-section-heading p {
    margin: 2px 0 0;
    color: var(--rad-muted);
    font-size: 10px;
}

.sgd-public-radication .form-label {
    margin-bottom: 5px;
    color: var(--rad-ink);
    font-size: 10px;
    font-weight: 600;
}

.sgd-public-radication .form-control,
.sgd-public-radication .select2-container .select2-selection--single {
    min-height: 40px;
    border-color: var(--rad-border);
    border-radius: 5px;
    font-size: 11px;
}

.sgd-public-radication .form-control:focus,
.sgd-public-radication .select2-container--focus .select2-selection--single {
    border-color: var(--rad-orange);
    box-shadow: 0 0 0 3px rgba(236, 103, 42, 0.12);
}

.sgd-public-radication .form-control[readonly] {
    background: var(--rad-soft);
    color: var(--rad-muted);
}

.sgd-public-radication .is-invalid,
.sgd-public-radication .select2-selection.is-invalid {
    border-color: var(--rad-red) !important;
}

.sgd-radication-file-launcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 4px;
    padding: 14px;
    border: 1px dashed #9fb1bf;
    border-radius: 6px;
    background: var(--rad-soft);
}

.sgd-radication-file-launcher > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sgd-radication-file-launcher > div > i {
    color: var(--rad-orange);
    font-size: 20px;
}

.sgd-radication-file-launcher span,
.sgd-radication-file-launcher small {
    display: block;
}

.sgd-radication-file-launcher strong {
    color: var(--rad-navy);
    font-size: 11px;
}

.sgd-radication-file-launcher small {
    margin-top: 2px;
    color: var(--rad-muted);
    font-size: 9px;
}

.sgd-radication-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--rad-border);
}

.sgd-radication-navigation.is-end {
    justify-content: flex-end;
}

.sgd-radication-navigation > div {
    display: flex;
    gap: 8px;
}

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

.sgd-radication-review-item {
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid var(--rad-border);
    border-radius: 5px;
    background: var(--rad-soft);
}

.sgd-radication-review-item.is-wide {
    grid-column: 1 / -1;
}

.sgd-radication-review-item small,
.sgd-radication-review-item strong {
    display: block;
}

.sgd-radication-review-item small {
    margin-bottom: 3px;
    color: var(--rad-muted);
    font-size: 8px;
    text-transform: uppercase;
}

.sgd-radication-review-item strong {
    overflow: hidden;
    color: var(--rad-ink);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sgd-radication-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #b8d7ca;
    border-radius: 5px;
    background: #edf8f3;
    color: #285c48;
    font-size: 10px;
}

.sgd-radication-confirmation input {
    margin-top: 2px;
}

.sgd-public-radication .modal-content {
    border: 0;
    border-radius: 8px;
}

.sgd-file-meter {
    height: 7px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 4px;
    background: #dce5eb;
}

.sgd-file-meter span {
    width: 0;
    height: 100%;
    display: block;
    background: var(--rad-green);
    transition: width 180ms ease;
}

.sgd-public-radication #loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: rgba(22, 51, 85, 0.74);
    backdrop-filter: blur(2px);
}

.sgd-public-radication #loading-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(360px, calc(100% - 32px));
    padding: 24px;
    border-radius: 8px;
    background: var(--rad-surface);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: translate(-50%, -50%);
}

.sgd-radication-loader-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 2px solid #d9e3ea;
    border-top-color: var(--rad-orange);
    border-radius: 50%;
    color: var(--rad-navy);
    animation: sgd-radication-spin 900ms linear infinite;
}

.sgd-public-radication #loading-label {
    margin: 0;
    color: var(--rad-navy);
    font-size: 12px;
    font-weight: 700;
}

.sgd-upload-progress {
    height: 8px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 4px;
    background: #dce5eb;
}

.sgd-upload-progress span {
    width: 0;
    height: 100%;
    display: block;
    background: var(--rad-orange);
    transition: width 180ms ease;
}

@keyframes sgd-radication-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767.98px) {
    .sgd-public-radication .sgd-radication-banner {
        min-height: 0;
        max-height: none;
        background: var(--rad-navy);
        object-fit: contain;
    }

    .sgd-public-radication .sgd-radication-body > .container-fluid {
        width: min(100% - 20px, 1180px);
    }

    .sgd-public-radication .sgd-radication-titlebar {
        padding: 17px;
    }

    .sgd-public-radication .sgd-radication-titlebar h1 {
        font-size: 20px;
    }

    .sgd-public-radication .sgd-radication-support-card .card-body,
    .sgd-public-radication .sgd-radication-support-card .card-footer {
        width: 100%;
        display: flex;
        float: none;
    }

    .sgd-public-radication .sgd-radication-support-card {
        align-items: stretch;
        flex-direction: column;
    }

    .sgd-public-radication .sgd-radication-form-card > .card-body {
        padding: 15px;
    }

    .sgd-radication-steps {
        grid-template-columns: 1fr;
    }

    .sgd-radication-steps button {
        min-height: 52px;
        border-right: 0;
        border-bottom: 1px solid var(--rad-border);
    }

    .sgd-radication-steps button:last-child {
        border-bottom: 0;
    }

    .sgd-radication-file-launcher,
    .sgd-radication-navigation {
        align-items: stretch;
        flex-direction: column;
    }

    .sgd-radication-file-launcher .btn,
    .sgd-radication-navigation .btn,
    .sgd-radication-navigation > div {
        width: 100%;
    }

    .sgd-radication-navigation > div {
        display: grid;
        grid-template-columns: 1fr;
    }

    .sgd-radication-review {
        grid-template-columns: minmax(0, 1fr);
    }

    .sgd-radication-review-item.is-wide {
        grid-column: auto;
    }
}


@media (prefers-reduced-motion: reduce) {
    .sgd-radication-loader-icon {
        animation-duration: 1.8s;
    }
}

/* =========================================================
   Sección opcional: ¿Responde a comunicación enviada?
   ========================================================= */

.sgd-radication-reply-section {
    margin: 0 0 18px;
}

.sgd-radication-reply-card {
    border: 1.5px dashed var(--rad-border, #d0dae6);
    border-radius: 10px;
    background: #f8fbff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.sgd-radication-reply-card:focus-within {
    border-color: var(--rad-orange, #e8612d);
    box-shadow: 0 0 0 3px rgba(232, 97, 45, 0.12);
}

.sgd-radication-reply-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: default;
}

.sgd-radication-reply-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--rad-orange, #e8612d);
    color: #fff;
    font-size: 14px;
}

.sgd-radication-reply-header > div {
    flex: 1;
}

.sgd-radication-reply-header strong {
    display: block;
    font-size: 13px;
    color: var(--rad-navy, #1e3a5f);
    margin-bottom: 2px;
}

.sgd-radication-reply-header small {
    font-size: 11px;
    color: #6b7f94;
}

.sgd-radication-reply-toggle {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--rad-navy, #1e3a5f);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, transform 0.25s;
}

.sgd-radication-reply-toggle:hover {
    background: rgba(30, 58, 95, 0.08);
}

.sgd-radication-reply-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.sgd-radication-reply-toggle i {
    transition: transform 0.25s;
}

.sgd-radication-reply-body {
    padding: 0 16px 16px;
    border-top: 1px solid var(--rad-border, #d0dae6);
    animation: sgd-reply-fadein 0.2s ease;
}

.sgd-radication-reply-body[hidden] {
    display: none;
}

@keyframes sgd-reply-fadein {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
