html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuOTA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ── Blazor error UI banner ── */
#blazor-error-ui {
    display: none;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* ── Botón de navegación (navbar negra) ── */
.btn-nav-custom {
    display: inline-block;
    color: #ffffff !important;
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.65) !important;
    border-style: solid !important;
    border-width: 2px !important;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    text-decoration: none !important;
    cursor: pointer;
}
.btn-nav-custom {
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    border-style: solid !important;
    display: inline-block !important;
}
    .btn-nav-custom:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
    }    
    .btn-nav-custom:focus {
        color: #ffffff !important;
        background-color: rgba(255, 255, 255, 0.18) !important;
        border-color: #ffffff !important;
        text-decoration: none !important;
    }

/* ── Botón primario (Siguiente / Enviar) ── */
.btn-primary-custom {
    display: inline-block;
    color: #ffffff !important;
    background-color: #111827;
    border: 2px solid #111827 !important;
    border-style: solid !important;
    border-width: 2px !important;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    text-decoration: none !important;
    cursor: pointer;
}

    .btn-primary-custom:hover:not(:disabled) {
        background-color: #374151 !important;
        border-color: #374151 !important;
        color: #ffffff !important;
    }

    .btn-primary-custom:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

/* ── Botón secundario (Volver) ── */
.btn-secondary-custom {
    display: inline-block;
    color: #111827 !important;
    background-color: #ffffff;
    border: 2px solid #d1d5db !important;
    border-style: solid !important;
    border-width: 2px !important;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    text-decoration: none !important;
    cursor: pointer;
}

    .btn-secondary-custom:hover {
        background-color: #f3f4f6 !important;
        border-color: #9ca3af !important;
        color: #111827 !important;
    }

/* ── Tarjeta ── */
.card-custom {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
}

/* =========================================================
   Iberital Canal - capa visual propia sobre Bootstrap
   Objetivo: interfaz moderna, sobria, blanca/negra, sin Tailwind.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --ib-black: #050505;
    --ib-ink: #111111;
    --ib-muted: #6f6f6f;
    --ib-soft: #f7f7f5;
    --ib-soft-2: #eeeeeb;
    --ib-border: #deded8;
    --ib-white: #ffffff;
    --ib-danger: #b42318;
    --ib-danger-bg: #fff4f2;
    --ib-success: #146c43;
    --ib-success-bg: #f0f8f3;
    --ib-radius: 1.25rem;
    --ib-radius-sm: .75rem;
    --ib-shadow: 0 24px 70px rgba(0, 0, 0, .10);
    --ib-shadow-sm: 0 12px 30px rgba(0, 0, 0, .07);

    /* Curva de easing compartida para las micro-interacciones */
    --ib-ease: cubic-bezier(.22, 1, .36, 1);
}

html, body {
    min-height: 100%;
    background: var(--ib-soft);
    color: var(--ib-ink);
    font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Foco visible consistente y accesible en toda la app */
:focus-visible {
    outline: 2px solid var(--ib-black);
    outline-offset: 2px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 0%, rgba(0, 0, 0, .06), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, var(--ib-soft) 50%, #ffffff 100%);
}

/* Navegación */
.ib-nav {
    background: var(--ib-black);
    background-image: linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
    position: relative;
}

.ib-nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
}

.ib-nav__inner {
    min-height: 4.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.ib-brand {
    display: inline-flex;
    align-items: center;
    margin: 0;
    transition: opacity .18s var(--ib-ease);
}

.ib-brand:hover {
    opacity: .8;
}

.ib-logo {
    display: block;
    width: auto;
    max-width: 200px;
    max-height: auto;
    filter: invert(1);
}

.ib-nav__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .75rem;
    flex-wrap: wrap;
}

/* Estructura */
.ib-page {
    padding: 3.75rem 0 5.5rem;
}

.ib-shell {
    max-width: 860px;
}

.ib-shell-wide {
    max-width: 980px;
}

.ib-hero {
    max-width: 760px;
    margin: 0 auto 2rem;
}

.ib-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--ib-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.ib-eyebrow::before {
    content: "";
    display: inline-block;
    width: 1.6rem;
    height: 2px;
    background: var(--ib-black);
}
.ib-eyebrow::after {
        content: "";
        display: inline-block;
        width: 1.6rem;
        height: 2px;
        background: var(--ib-black);
}

.ib-hero h1 {
    margin: .5rem 0 .9rem;
    color: var(--ib-black);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.ib-hero p,
.ib-muted {
    color: var(--ib-muted);
}

.ib-hero p {
    margin: 0 auto;
    max-width: 46rem;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
    font-weight: 450;
}

.ib-panel {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius);
    box-shadow: var(--ib-shadow);
    padding: clamp(1.35rem, 3.5vw, 2.5rem);
    transition: box-shadow .25s var(--ib-ease);
}

.ib-panel--success {
    border-color: #111;
}

.ib-subpanel {
    background: var(--ib-soft);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-sm);
    padding: 1.25rem;
}

.ib-divider {
    height: 1px;
    background: var(--ib-border);
    margin: 2rem 0;
}

.ib-section-heading {
    margin-bottom: 1.25rem;
}

.ib-section-heading h2,
.ib-section-title,
.ib-section-block h3 {
    margin: 0;
    color: var(--ib-black);
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -.015em;
    line-height: 1.3;
}

.ib-section-heading p {
    margin: .45rem 0 0;
    color: var(--ib-muted);
    line-height: 1.6;
}

.ib-section-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* Formularios */
.ib-form-stack {
    display: grid;
    gap: 1.25rem;
}

.ib-field {
    margin-bottom: 1.2rem;
}

.ib-label {
    display: block;
    margin-bottom: .45rem;
    color: #343434;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ib-help {
    margin: -.15rem 0 .65rem;
    color: var(--ib-muted);
    font-size: .92rem;
}

.ib-input {
    border: 1px solid #cfcfca !important;
    border-radius: .9rem !important;
    background-color: #fff !important;
    padding: .85rem 1rem !important;
    color: var(--ib-ink);
    box-shadow: none !important;
    transition: border-color .18s var(--ib-ease), box-shadow .18s var(--ib-ease), background-color .18s var(--ib-ease);
}

.ib-input:hover {
    border-color: #b9b9b3 !important;
}

.ib-input:focus {
    border-color: var(--ib-black) !important;
    box-shadow: 0 0 0 .22rem rgba(0, 0, 0, .08) !important;
}

.ib-textarea {
    min-height: 9rem;
    resize: vertical;
}

.ib-check {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: .15rem;
    border-color: #94948d !important;
    cursor: pointer;
    transition: border-color .15s var(--ib-ease), background-color .15s var(--ib-ease), transform .1s var(--ib-ease);
}

.ib-check:hover {
    border-color: var(--ib-black) !important;
}

.ib-check:active {
    transform: scale(.92);
}

.ib-check:checked {
    background-color: var(--ib-black);
    border-color: var(--ib-black) !important;
}

.ib-option-card {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1rem;
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-sm);
    background: #fff;
    margin-bottom: 1.2rem;
    transition: border-color .18s var(--ib-ease), box-shadow .18s var(--ib-ease);
}

.ib-option-card:hover {
    border-color: #c6c6bf;
    box-shadow: var(--ib-shadow-sm);
}

.ib-option-title {
    display: block;
    color: var(--ib-black);
    font-weight: 800;
    cursor: pointer;
}

.ib-option-card p {
    margin: .25rem 0 0;
    color: var(--ib-muted);
    font-size: .92rem;
    line-height: 1.5;
}

.ib-counter {
    display: inline-flex;
    float: right;
    margin-top: .65rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.ib-counter.is-valid {
    color: var(--ib-success);
    background: var(--ib-success-bg);
}

.ib-counter.is-invalid {
    color: var(--ib-danger);
    background: var(--ib-danger-bg);
}

/* Botones */
.ib-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border-radius: 999px !important;
    padding: .72rem 1.1rem !important;
    font-weight: 800 !important;
    letter-spacing: -.005em;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: transform .15s var(--ib-ease), box-shadow .15s var(--ib-ease), background-color .15s var(--ib-ease), border-color .15s var(--ib-ease), color .15s var(--ib-ease);
}

.ib-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.ib-btn:active:not(:disabled) {
    transform: translateY(0);
}

.ib-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
}

.ib-btn-dark {
    color: #fff !important;
    background: var(--ib-black) !important;
    border: 1px solid var(--ib-black) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.ib-btn-dark:hover:not(:disabled) {
    background: #262626 !important;
    border-color: #262626 !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .24);
}

.ib-btn-light {
    color: var(--ib-black) !important;
    background: #fff !important;
    border: 1px solid #cfcfca !important;
}

.ib-btn-light:hover:not(:disabled) {
    background: var(--ib-black) !important;
    border-color: var(--ib-black) !important;
    color: #fff !important;
}

.ib-btn-outline-light {
    color: #fff !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, .55) !important;
}

.ib-btn-outline-light:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--ib-black) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

.ib-btn-lg {
    min-height: 3.3rem;
    padding-inline: 1.5rem !important;
}

.ib-btn-sm {
    padding: .55rem .85rem !important;
    font-size: .88rem !important;
}

.ib-btn-grow {
    flex: 1 1 auto;
}

/* Flecha decorativa que se desliza al hacer hover, usada en los CTA de "consultar estado" */
.ib-btn-nav {
    overflow: hidden;
}

.ib-btn-arrow {
    display: inline-block;
    transition: transform .2s var(--ib-ease);
}

.ib-btn-nav:hover .ib-btn-arrow {
    transform: translateX(3px);
}

.ib-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.ib-actions-end {
    justify-content: flex-end;
}

/* Pasos */
.ib-stepper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.ib-step {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem;
    border: 1px solid var(--ib-border);
    border-radius: 999px;
    color: var(--ib-muted);
    background: var(--ib-soft);
}

.ib-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    color: var(--ib-black);
    background: #fff;
    border: 1px solid var(--ib-border);
    font-weight: 900;
    font-size: .85rem;
}

.ib-step strong {
    font-size: .86rem;
    line-height: 1.1;
}

.ib-step.is-active,
.ib-step.is-complete {
    color: #fff;
    background: var(--ib-black);
    border-color: var(--ib-black);
}

.ib-step.is-active span,
.ib-step.is-complete span {
    color: var(--ib-black);
    background: #fff;
    border-color: #fff;
}

/* Estados y alertas */
.ib-alert {
    border-radius: var(--ib-radius-sm);
    padding: 1rem 1.1rem;
    border: 1px solid var(--ib-border);
    font-weight: 650;
}

.ib-alert p {
    margin: .35rem 0 0;
    font-weight: 500;
}

.ib-alert-error {
    color: var(--ib-danger);
    background: var(--ib-danger-bg);
    border-color: #ffd5cf;
}

.ib-alert-success {
    color: var(--ib-success);
    background: var(--ib-success-bg);
    border-color: #cdebd8;
}

.ib-spinner {
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.25rem;
}

.ib-success-mark {
    width: 4.5rem;
    height: 4.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 999px;
    color: #fff;
    background: var(--ib-black);
    font-size: 2.2rem;
    font-weight: 900;
}

.ib-lead {
    font-size: 1.05rem;
    line-height: 1.65;
}

.ib-tracking-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 1rem 1.25rem;
    border: 1px dashed #111;
    border-radius: var(--ib-radius-sm);
    background: var(--ib-soft);
    color: var(--ib-black);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: clamp(1.25rem, 4vw, 2rem);
    font-weight: 900;
    overflow-wrap: anywhere;
}

/* Seguimiento */
.ib-case-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.ib-case-code {
    margin: 0;
    color: var(--ib-black);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 900;
    letter-spacing: -.04em;
    overflow-wrap: anywhere;
}

.ib-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    border-radius: 999px;
    padding: .5rem .85rem;
    color: #fff;
    background: var(--ib-black);
    font-size: .82rem;
    font-weight: 850;
}

.ib-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ib-info-item {
    padding: 1rem;
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-sm);
    background: var(--ib-soft);
}

.ib-info-item-wide {
    grid-column: 1 / -1;
}

.ib-info-item span,
.ib-file-text span,
.ib-comment-meta span {
    color: var(--ib-muted);
    font-size: .82rem;
}

.ib-info-item strong {
    display: block;
    margin-top: .25rem;
    color: var(--ib-black);
}

.ib-info-item p {
    margin: .45rem 0 0;
    color: #343434;
    line-height: 1.7;
    white-space: pre-wrap;
}

.ib-comment-list,
.ib-file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .75rem;
}

.ib-comment-item,
.ib-file-item {
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-sm);
    background: #fff;
    padding: 1rem;
    transition: border-color .18s var(--ib-ease), box-shadow .18s var(--ib-ease);
}

.ib-file-item:hover {
    border-color: #c6c6bf;
    box-shadow: var(--ib-shadow-sm);
}

.ib-comment-meta,
.ib-file-item,
.ib-file-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.ib-comment-meta {
    margin-bottom: .45rem;
}

.ib-comment-meta strong {
    color: var(--ib-black);
}

.ib-comment-item p {
    margin: 0;
    color: #343434;
    line-height: 1.65;
    white-space: pre-wrap;
}

.ib-file-main {
    min-width: 0;
    justify-content: flex-start;
}

.ib-file-icon {
    flex: 0 0 auto;
    width: 2.15rem;
    height: 2.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: .7rem;
    color: #fff;
    background: var(--ib-black);
    font-weight: 900;
}

.ib-file-text {
    min-width: 0;
    display: grid;
}

.ib-file-text strong {
    color: var(--ib-black);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ib-upload-box {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
    padding: 1rem;
    border: 1px dashed #a8a8a2;
    border-radius: var(--ib-radius-sm);
    background: var(--ib-soft);
    transition: border-color .18s var(--ib-ease), background-color .18s var(--ib-ease);
}

.ib-upload-box:hover {
    border-color: var(--ib-black);
    background: var(--ib-soft-2);
}

.ib-animate-in {
    animation: ibFadeUp .24s ease-out both;
}

@keyframes ibFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .ib-page {
        padding: 2rem 0 3rem;
    }

    .ib-nav__inner,
    .ib-case-header,
    .ib-section-topbar,
    .ib-actions,
    .ib-file-item {
        align-items: stretch;
        flex-direction: column;
    }

    .ib-nav__actions {
        width: 100%;
        justify-content: space-between;
    }

    .ib-logo {
        max-width: 132px;
    }

    .ib-panel {
        border-radius: 1rem;
    }

    .ib-stepper,
    .ib-info-grid {
        grid-template-columns: 1fr;
    }

    .ib-btn,
    .ib-btn-grow {
        width: 100%;
    }

    .ib-file-item .ib-btn {
        width: 100%;
    }
        
}
/* Password visibility toggle - fuera del media query */
.ib-password-field {
    position: relative;
    width: 100%;
}

    .ib-password-field .ib-input {
        padding-right: 3.25rem !important;
    }

    .ib-password-field .ib-password-toggle {
        position: absolute !important;
        top: 50% !important;
        right: 1rem !important;
        transform: translateY(-50%) !important;
        width: 1.4rem !important;
        height: 1.4rem !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #555 !important;
        cursor: pointer;
        z-index: 2;
    }

        .ib-password-field .ib-password-toggle:hover {
            color: #111 !important;
        }

        .ib-password-field .ib-password-toggle:focus {
            outline: none !important;
            box-shadow: none !important;
        }

        .ib-password-field .ib-password-toggle svg {
            width: 1.15rem !important;
            height: 1.15rem !important;
            stroke: currentColor !important;
            fill: none !important;
            stroke-width: 1.8 !important;
            stroke-linecap: round !important;
            stroke-linejoin: round !important;
            display: block !important;
        }

    /* Oculta el ojo nativo de Edge/IE para que no haya doble icono */
    .ib-password-field input[type="password"]::-ms-reveal,
    .ib-password-field input[type="password"]::-ms-clear {
        display: none;
    }