/* ═══ Estilos alineados a AutogestionDemo (shell wizard / tarjeta) ═══ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: #E8EDF4;
    height: 100%;
}

.demo-root {
    display: flex;
    min-height: 100vh;
}

.demo-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px 80px;
    background: #E8EDF4;
    min-height: 100vh;
    width: 100%;
}

.wizard-stepper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 360px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #E8EDF4;
    padding: 10px 0 8px;
}

.step-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex-shrink: 0;
}

.step-circle > span:first-child,
.step-circle > .mud-icon-root:first-child {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
}

.step-activo > span:first-child {
    background: #005596;
    color: #fff;
}

.step-completado > .mud-icon-root {
    background: #005596;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-inactivo > span:first-child {
    background: #d5dae3;
    color: #888;
}

.step-label {
    font-size: 11px;
    margin-top: 5px;
    color: #888;
    white-space: nowrap;
}

.step-label-activo {
    color: #005596;
    font-weight: 600;
}

.stepper-line {
    flex: 1;
    height: 2px;
    background: #d5dae3;
    margin-top: 18px;
    transition: background .3s;
}

.stepper-line.completada {
    background: #005596;
}

.wizard-card-wrap {
    width: 100%;
    max-width: 460px;
}

.wizard-card-wrap--ancho {
    max-width: 960px;
}

.wizard-card {
    border-radius: 16px !important;
    padding: 36px 32px 28px !important;
    position: relative;
}

.wizard-card--form-alta {
    padding: 0 !important;
    overflow: hidden;
}

.card-icon-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.card-icon {
    font-size: 46px !important;
    color: #005596;
}

.card-icon-success { color: #4caf50 !important; }
.card-icon-warning { color: #ff9800 !important; }

.card-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.card-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #4a5568;
    margin: 0 0 24px;
    line-height: 1.45;
}

.btn-continuar {
    border-radius: 28px !important;
    min-height: 48px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Volver / Cancelar en wizard: misma píldora y capitalización que Continuar */
.wizard-btn-outline {
    border-radius: 28px !important;
    min-height: 48px !important;
    height: 48px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Formulario familiar: sin caja, fondo transparente */
.wizard-familiar-paper {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

/* Acciones secundarias dentro del form (no píldora ancho completo) */
.wizard-familiar-inline-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 0.25rem;
}

.wizard-btn-text {
    text-transform: none;
    font-weight: 500;
}

.wizard-familiar-main-nav {
    display: flex;
    gap: 12px;
    margin-top: 0.5rem;
}

.wizard-familiar-main-nav--spaced {
    margin-top: 1.25rem;
}

.btn-secundario {
    border-radius: 28px !important;
    height: 48px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    background: #f0f0f0 !important;
    border: none !important;
    color: #444 !important;
}

/* Campos de texto libre en mayúsculas (wizard de alta) */
.input-mayusculas input,
.input-mayusculas textarea {
    text-transform: uppercase;
}

/* Bloque de carga de documento (touch-friendly en móvil) */
.doc-upload-block {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px 14px;
    margin-bottom: 12px;
    background: #fafbfc;
}

.doc-upload-block__header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.doc-upload-block__titulo {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a2e;
}

.doc-upload-block__estado {
    margin: 2px 0 0;
    font-size: 0.88rem;
    color: #4a5568;
}

.doc-upload-block__estado--ok {
    color: #2e7d32;
}

.doc-upload-block__advertencia {
    margin: 2px 0 0;
    font-size: 0.82rem;
    color: #e65100;
}

.doc-upload-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
    margin: 0 0 14px;
}

/* Perfil del afiliado aprobado: tarjetas de navegación (Grupo familiar / Documentación / Casos especiales) */
.perfil-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 0.5rem;
}

.perfil-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 18px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8f9fa;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.perfil-card__badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #e53935;
    color: #fff;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.perfil-card:hover {
    border-color: #005596;
    box-shadow: 0 4px 14px rgba(0, 85, 150, 0.12);
}

.perfil-card:active {
    transform: scale(0.98);
}

.perfil-card__titulo {
    font-weight: 700;
    color: #002d52;
    font-size: 0.95rem;
}

.perfil-card__desc {
    font-size: 0.78rem;
    color: #718096;
    line-height: 1.3;
}

@media (max-width: 520px) {
    .perfil-cards {
        grid-template-columns: 1fr;
    }
    .perfil-card {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        gap: 12px;
    }
}

.login-ayuda-manual {
    text-align: center;
    font-size: 0.88rem;
    color: #4a5568;
    margin: 0 0 1rem;
    line-height: 1.4;
}

.login-ayuda-manual--discreta {
    font-size: 0.85rem;
    color: #718096;
    margin-bottom: 0.75rem;
}

.login-instruccion-secundaria {
    font-size: 0.88rem;
    color: #4a5568;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.btn-reingreso-doc {
    min-height: 40px !important;
    font-size: 0.82rem !important;
    text-transform: none !important;
    flex-shrink: 0;
}

.doc-upload-block .mud-file-upload {
    display: block;
    width: 100%;
}

.btn-doc-upload {
    border-radius: 28px !important;
    min-height: 48px !important;
    height: 48px !important;
    width: 100% !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.stepper-dot-sep {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    margin: 12px auto;
}

.auth-wizard-paper {
    position: relative;
    padding: 0 !important;
}

.login-card-body {
    padding: 1.75rem 1.5rem 1.25rem;
}

.login-card-body--acceso {
    padding-bottom: 0.5rem;
}

.login-card-logo {
    max-height: 60px;
    display: block;
    margin: 0 auto 1rem;
}

.login-card-titulo {
    margin-bottom: 0.75rem !important;
    color: #718096 !important;
    font-size: 19px !important;
}

.login-card-pie {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.login-codigo-colapsado {
    margin-top: 0.25rem;
    padding: 0.35rem 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.login-codigo-colapsado .login-codigo-toggle {
    margin: 0 !important;
}


input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: rgba(0, 0, 0, 0.87) !important;
}

/* ═══ AutogestionSE (Blazor / manual / formulario) ═══ */
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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

.autogestion-dev-db-inline.mud-icon-button {
    flex-shrink: 0;
    padding: 4px !important;
    color: #005596 !important;
}

.autogestion-dev-db-inline .mud-icon-root {
    color: inherit !important;
}

.autogestion-dev-db-inline.mud-icon-button:hover {
    background-color: rgba(0, 85, 150, 0.08) !important;
}

.login-manual-en-tarjeta {
    position: absolute;
    top: 10px;
    right: 8px;
    z-index: 5;
    pointer-events: auto;
}

/* Evita solapamiento del pill de ayuda con el logo centrado debajo */
.wizard-card > .login-manual-en-tarjeta--con-ayuda ~ div:first-of-type {
    margin-top: 1.5rem;
}

.login-manual-en-tarjeta--con-ayuda {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.ayuda-manual-grupo {
    display: inline-flex;
    align-items: center;
}

.ayuda-manual-grupo--pill {
    display: inline-flex;
    align-items: center;
}

.ayuda-manual-pill {
    text-transform: none !important;
    font-weight: 500 !important;
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
    min-height: 32px !important;
    padding: 4px 8px 4px 6px !important;
    border-radius: 999px !important;
    color: #5a6a7a !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    white-space: nowrap;
}

.ayuda-manual-pill:hover {
    color: #005596 !important;
    background: rgba(0, 85, 150, 0.06) !important;
}

.ayuda-manual-pill .mud-button-icon-start {
    margin-right: 4px !important;
    margin-inline-end: 4px !important;
    color: #7a8a9a !important;
}

.ayuda-manual-pill:hover .mud-button-icon-start,
.ayuda-manual-pill:hover .mud-icon-root {
    color: #00A19D !important;
}

.ayuda-manual-pill .mud-icon-root {
    font-size: 0.95rem !important;
}

.login-codigo-toggle {
    text-transform: none !important;
    font-size: 0.88rem !important;
    min-height: 44px !important;
    line-height: 1.35 !important;
    white-space: normal !important;
}

.login-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    justify-content: center;
    align-items: center;
}

.login-footer-links .mud-link {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.5rem;
    font-size: 0.92rem !important;
}

.login-codigo-alternativo {
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid #e2e8f0;
}

.login-card-body--acceso .login-card-pie {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
}

.wizard-banner-guardado {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-radius: 10px;
}

.doc-checklist-faltantes {
    margin: 0.75rem 0 0;
    padding: 0.65rem 0.85rem;
    background: #fff8e6;
    border: 1px solid #f0d78c;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #5d4e37;
}

.doc-checklist-faltantes strong {
    color: #1a1a2e;
}

.wizard-familiar-salida {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0.5rem;
}

.demo-footer {
    margin-top: auto;
    padding-top: 32px;
    font-size: 0.88rem;
    color: #9ca3af;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    line-height: 1.45;
}

.demo-footer__sep {
    display: none;
}

.demo-footer__contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.88rem;
    color: #9ca3af;
}

.demo-footer__contacto a {
    color: #9ca3af;
    text-decoration: none;
    font-weight: 500;
}

.demo-footer__contacto a:hover {
    color: #7b8494;
    text-decoration: underline;
}

.demo-footer__horario {
    font-size: 0.82rem;
    color: #9ca3af;
}

.manual-boton-auth-destacado.mud-icon-button {
    width: 50px !important;
    height: 50px !important;
    padding: 0 !important;
    background: linear-gradient(160deg, #f0fffe 0%, #ffffff 55%, #e8f4fc 100%) !important;
    border: 2px solid #00A19D !important;
    border-radius: 50% !important;
    color: #005596 !important;
    box-shadow: 0 4px 14px rgba(0, 85, 150, 0.22) !important;
}

.manual-boton-auth-destacado.mud-icon-button:hover {
    background: linear-gradient(160deg, #e6faf9 0%, #ffffff 100%) !important;
    box-shadow: 0 6px 18px rgba(0, 161, 157, 0.35) !important;
}

.manual-boton-auth-destacado .mud-icon-root {
    font-size: 1.75rem !important;
    animation: manual-libro-movimiento 2.5s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 45, 82, 0.25));
}

@keyframes manual-libro-movimiento {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    15% { transform: translateY(-3px) rotate(-7deg); }
    30% { transform: translateY(0) rotate(5deg); }
    45% { transform: translateY(-2px) rotate(-4deg); }
    60% { transform: translateY(0) rotate(3deg); }
    75% { transform: translateY(-1px) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .manual-boton-auth-destacado .mud-icon-root {
        animation: none;
    }
}

.manual-boton-form-alta-destacado.mud-icon-button {
    width: 48px !important;
    height: 48px !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    background: linear-gradient(160deg, #f0fffe 0%, #ffffff 55%, #e8f4fc 100%) !important;
    border: 2px solid #00A19D !important;
    border-radius: 50% !important;
    color: #005596 !important;
    box-shadow: 0 2px 12px rgba(0, 85, 150, 0.15) !important;
}

.manual-boton-form-alta-destacado.mud-icon-button:hover {
    background: linear-gradient(160deg, #e6faf9 0%, #ffffff 100%) !important;
    box-shadow: 0 4px 16px rgba(0, 161, 157, 0.3) !important;
}

.manual-boton-form-alta-destacado .mud-icon-root {
    font-size: 1.65rem !important;
    color: #005596 !important;
    animation: manual-libro-movimiento 2.5s ease-in-out infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 45, 82, 0.2));
}

@media (prefers-reduced-motion: reduce) {
    .manual-boton-form-alta-destacado .mud-icon-root {
        animation: none;
    }
}

.manual-afiliado-prose {
    line-height: 1.55;
}
.manual-afiliado-prose h1 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #002d52;
}
.manual-afiliado-prose h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
    color: #005596;
}
.manual-afiliado-prose h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1rem 0 0.35rem;
}
.manual-afiliado-prose p {
    margin: 0 0 0.65rem;
}
.manual-afiliado-prose ul, .manual-afiliado-prose ol {
    margin: 0 0 0.65rem 1.1rem;
    padding-left: 0.25rem;
}
.manual-afiliado-prose blockquote {
    margin: 0.5rem 0;
    padding: 0.5rem 0.75rem;
    border-left: 4px solid #00A19D;
    background: #f0faf9;
    font-size: 0.95rem;
}
.manual-afiliado-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
    font-size: 0.9rem;
}
.manual-afiliado-prose th, .manual-afiliado-prose td {
    border: 1px solid #e2e8f0;
    padding: 0.4rem 0.5rem;
    text-align: left;
    vertical-align: top;
}
.manual-afiliado-prose th {
    background: #f1f5f9;
    font-weight: 600;
}
.manual-afiliado-prose hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 1rem 0;
}
.manual-afiliado-prose code {
    font-size: 0.88em;
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.wizard-card .mud-input-outlined input,
.wizard-card .mud-input-outlined .mud-input-adornment,
.wizard-card .mud-input-outlined label {
    font-size: 1rem !important;
}

.wizard-card input:-webkit-autofill,
.wizard-card input:-webkit-autofill:hover,
.wizard-card input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px white inset !important;
    -webkit-text-fill-color: rgba(0, 0, 0, 0.87) !important;
    caret-color: rgba(0, 0, 0, 0.87);
}

/* ═══ Responsive — Mobile ═══ */
.wizard-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .wizard-3col {
        grid-template-columns: 1fr;
    }
    .wizard-card {
        padding: 24px 16px 20px !important;
    }
    .demo-main {
        padding: 16px 12px 60px;
    }
    .wizard-stepper .step-label {
        font-size: 9px;
    }
    .wizard-stepper {
        max-width: 280px;
        margin-bottom: 12px;
        padding: 6px 0 4px;
    }
    .login-card-body {
        padding: 1.35rem 1rem 0.75rem;
    }

    .login-manual-en-tarjeta--con-ayuda {
        position: relative;
        top: auto;
        right: auto;
        justify-content: flex-end;
        margin-bottom: -0.5rem;
    }

    .wizard-card > .login-manual-en-tarjeta--con-ayuda ~ div:first-of-type {
        margin-top: 0;
    }

    .ayuda-manual-pill {
        font-size: 0.68rem !important;
        padding: 4px 6px !important;
        min-height: 36px !important;
        white-space: nowrap;
        text-align: left;
    }
    .login-wrap .ayuda-manual-pill {
        white-space: nowrap;
        max-width: none;
    }
    .step-circle > span:first-child,
    .step-circle > .mud-icon-root:first-child,
    .step-completado > .mud-icon-root {
        width: 44px;
        height: 44px;
    }
    .card-subtitle {
        font-size: 14px;
    }
    .btn-continuar {
        height: 48px !important;
        font-size: 14px !important;
    }
    /* Manual en tarjeta: borde y sombra más visibles en pantallas chicas */
    .manual-boton-auth-destacado.mud-icon-button {
        border-width: 3px !important;
        border-color: #008f8a !important;
        box-shadow: 0 4px 16px rgba(0, 85, 150, 0.28), 0 0 0 1px rgba(0, 161, 157, 0.35) !important;
    }
}

/* Campo comentarios — fondo crema para destacarlo */
.campo-comentarios .mud-input-slot {
    background-color: #fffbe6 !important;
}

/* ── Login: pantallas medianas y grandes ───────────────────────────────── */
@media (min-width: 600px) {
    .login-wrap {
        max-width: 540px;
    }
    .login-wrap .login-card-body {
        padding: 3rem 2.5rem 2rem;
    }
    .login-wrap .login-card-logo {
        max-height: 80px;
        margin-bottom: 1.5rem;
    }
    .login-wrap .login-card-titulo {
        font-size: 21px !important;
        margin-bottom: 1.25rem !important;
    }
}
