/* ============================================================
   RECUPERACIÓN CLAVE CSS
   Estilos para páginas de recuperación y confirmación de clave
   DIPP-UNAH | v1.0.0
   ============================================================ */

/* ── Wrapper Base ────────────────────────────────────────── */
.recuperacion-wrapper,
.confirmacion-wrapper {
    min-height: 80vh;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px 60px;
}

.recuperacion-inner,
.confirmacion-inner {
    width: 100%;
    max-width: 560px;
}

/* ── Cabecera de la Página ───────────────────────────────── */
.rec-page-header,
.conf-header {
    background: linear-gradient(135deg, #1a4c8f 0%, #2559a1 60%, #3d6ab3 100%);
    border-radius: 16px 16px 0 0;
    padding: 32px 36px 28px;
    color: white;
    position: relative;
    overflow: hidden;
}

.rec-page-header::before,
.conf-header::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.rec-page-header::after {
    content: "";
    position: absolute;
    bottom: -60px;
    right: 60px;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.rec-header-top,
.conf-header-top {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.rec-header-icon,
.conf-header-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.rec-header-icon svg,
.conf-header-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

.rec-header-text h1,
.conf-header-text h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.2;
    letter-spacing: -0.3px;
    color: white;
}

.rec-header-text p,
.conf-header-text p {
    font-size: 13px;
    margin: 0;
    opacity: 0.85;
}

/* ── Stepper Visual ──────────────────────────────────────── */
.rec-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.rec-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.rec-step-bubble {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.rec-step-bubble.active {
    background: white;
    border-color: white;
    color: #1a4c8f;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.2);
}

.rec-step-label {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
    margin-top: 5px;
    white-space: nowrap;
    font-weight: 500;
}

.rec-step.active .rec-step-label {
    color: rgba(255,255,255,0.95);
    font-weight: 700;
}

.rec-step-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin-bottom: 18px;
    position: relative;
}

/* ── Card Principal del Formulario ───────────────────────── */
.rec-card,
.conf-card {
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow:
        0 4px 12px rgba(0,0,0,0.08),
        0 16px 40px rgba(0,0,0,0.06);
    padding: 36px 36px 40px;
    border: 1px solid rgba(0,0,0,0.05);
    border-top: none;
}

/* ── Tipografía Interna ──────────────────────────────────── */
.rec-card .card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    line-height: 1.3;
}

.rec-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a4c8f;
    margin: 0 0 4px;
    letter-spacing: -0.2px;
}

.rec-card h6 {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin: 0 0 18px;
}

/* ── Inputs ──────────────────────────────────────────────── */
.rec-card .form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 15px;
    color: #1a1a2e;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    background: #fafafa;
    height: auto;
}

.rec-card .form-control:focus {
    border-color: #1a4c8f;
    box-shadow: 0 0 0 3px rgba(26,76,143,0.12);
    background: white;
    outline: none;
}

.rec-card select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a4c8f' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ── Botones ─────────────────────────────────────────────── */
.rec-card .btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: white !important;
    letter-spacing: 0.3px;
    transition: all 0.25s ease !important;
    box-shadow: 0 3px 10px rgba(245,158,11,0.35) !important;
    white-space: nowrap;
}

.rec-card .btn-warning:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(245,158,11,0.45) !important;
}

/* ── Alertas de Error ────────────────────────────────────── */
.rec-card .alert-warning {
    background: #fef2f2 !important;
    border: none !important;
    border-left: 4px solid #ef4444 !important;
    color: #991b1b !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
}

.rec-card .alert-info {
    background: #eff6ff !important;
    border: none !important;
    border-left: 4px solid #3b82f6 !important;
    color: #1e40af !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    margin-top: 14px !important;
}

.rec-card .alert-info a {
    color: #1a4c8f !important;
    font-weight: 700;
    text-decoration: underline;
}

/* ── Opciones de Correo (radio styled) ───────────────────── */
.container-email-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.option-send-mail {
    border-radius: 10px !important;
    width: 100% !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-send-mail.selected {
    background: linear-gradient(135deg, #1a4c8f 0%, #2559a1 100%) !important;
    color: white !important;
    border-color: #1a4c8f !important;
    box-shadow: 0 3px 10px rgba(26,76,143,0.25);
}

.option-send-mail.no-selected {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border-color: #e5e7eb !important;
}

.option-send-mail.no-selected:hover {
    border-color: #1a4c8f !important;
    background: #eff6ff !important;
}

/* ── Radio Buttons Nativos ───────────────────────────────── */
.rec-card .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rec-card .form-check:hover {
    border-color: #1a4c8f;
    background: #eff6ff;
}

.rec-card .form-check-input {
    width: 18px;
    height: 18px;
    accent-color: #1a4c8f;
    cursor: pointer;
    flex-shrink: 0;
}

.rec-card .form-check-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

.rec-card .form-check-inline {
    display: inline-flex !important;
    width: auto !important;
    min-width: 90px;
    border-radius: 10px;
    margin-right: 8px !important;
    margin-bottom: 0 !important;
    vertical-align: middle;
}

/* ── Spinner / GIF de Carga ──────────────────────────────── */
.rec-card img[src*="cargando"] {
    width: 60px !important;
    display: block;
    margin: 16px auto;
    opacity: 0.75;
}

/* ── Componentes rp-* (templates Angular) ────────────────── */
.rp-step {
    padding: 4px 0;
}

.rp-step-final {
    text-align: center;
    padding: 20px 0;
}

.rp-step-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 6px;
    line-height: 1.3;
}

.rp-step-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 18px;
    line-height: 1.5;
}

.rp-cuenta-badge {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    color: #1a4c8f;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.rp-carrera-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.rp-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.rp-input {
    flex: 1 1 0;
    min-width: 0;
    border: 2px solid #e5e7eb !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    font-size: 15px !important;
    color: #1a1a2e !important;
    height: auto !important;
    background: #fafafa !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.rp-input:focus {
    border-color: #1a4c8f !important;
    box-shadow: 0 0 0 3px rgba(26,76,143,0.12) !important;
    background: white !important;
    outline: none !important;
}

select.rp-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a4c8f' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
    cursor: pointer;
}

.rp-btn-ir {
    flex-shrink: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 10px 22px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: white !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 3px 10px rgba(245,158,11,0.35) !important;
    white-space: nowrap;
    cursor: pointer;
}

.rp-btn-ir:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(245,158,11,0.45) !important;
    color: white !important;
    text-decoration: none !important;
}

.rp-btn-block {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.rp-error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.rp-info-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 14px;
}

.rp-info-box a {
    color: #1a4c8f !important;
    font-weight: 700;
}

.rp-loading {
    text-align: center;
}

.rp-loading img {
    width: 60px !important;
    display: inline-block;
    margin: 12px auto;
    opacity: 0.75;
}

/* ── Radios estilizados como cards ───────────────────────── */
.rp-radio-group {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.rp-radio-card {
    flex: 1 1 120px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    background: white;
    user-select: none;
}

.rp-radio-card:hover {
    border-color: #1a4c8f;
    background: #eff6ff;
}

.rp-radio-card input[type="radio"] {
    display: none;
}

.rp-radio-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    flex-shrink: 0;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

.rp-radio-card input[type="radio"]:checked ~ .rp-radio-indicator {
    border-color: #1a4c8f;
    background: #1a4c8f;
    box-shadow: inset 0 0 0 3px white;
}

.rp-radio-card input[type="radio"]:checked ~ .rp-radio-text {
    color: #1a4c8f;
    font-weight: 700;
}

.rp-radio-card:has(input:checked) {
    border-color: #1a4c8f;
    background: #eff6ff;
}

.rp-radio-text {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    transition: color 0.2s ease;
}

.rp-fade-in {
    animation: rpFadeIn 0.3s ease forwards;
}

@keyframes rpFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Éxito paso 5 ────────────────────────────────────────── */
.rp-success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 0 10px;
}

.rp-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(16,185,129,0.35);
    animation: rpPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes rpPopIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.rp-success-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.rp-success-text {
    font-size: 15px;
    font-weight: 600;
    color: #065f46;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
    line-height: 1.5;
    width: 100%;
    margin: 0;
}

/* ── Confirmación: Estado ÉXITO ──────────────────────────── */
.conf-success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 6px 24px rgba(16,185,129,0.35);
    animation: confPopIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.conf-success-icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
}

.conf-success-title {
    font-size: 22px;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 10px;
}

.conf-success-msg {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 28px;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    padding: 14px 18px;
}

.conf-btn-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1a4c8f 0%, #2559a1 100%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 14px rgba(26,76,143,0.3);
    transition: all 0.25s ease;
}

.conf-btn-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(26,76,143,0.4);
    color: white !important;
}

.conf-btn-email svg {
    width: 18px;
    height: 18px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

/* ── Confirmación: Estado ERROR ──────────────────────────── */
.conf-error-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 6px 24px rgba(239,68,68,0.35);
    animation: confPopIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.conf-error-icon svg {
    width: 36px;
    height: 36px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
}

.conf-error-title {
    font-size: 22px;
    font-weight: 700;
    color: #991b1b;
    margin: 0 0 10px;
}

.conf-error-msg {
    font-size: 15px;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 28px;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    padding: 14px 18px;
    text-align: left;
}

.conf-btn-retry {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white !important;
    text-decoration: none !important;
    border-radius: 10px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(245,158,11,0.3);
    transition: all 0.25s ease;
}

.conf-btn-retry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(245,158,11,0.4);
    color: white !important;
}

.conf-btn-retry svg {
    width: 18px;
    height: 18px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

@keyframes confPopIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 576px) {
    .recuperacion-wrapper,
    .confirmacion-wrapper {
        padding: 20px 12px 40px;
    }

    .rec-page-header,
    .conf-header {
        padding: 24px 20px 22px;
    }

    .rec-card,
    .conf-card {
        padding: 24px 20px 28px;
    }

    .rec-header-text h1,
    .conf-header-text h1 {
        font-size: 18px;
    }

    .rec-step-label {
        display: none;
    }

    .rec-card .btn-warning {
        width: 100% !important;
        margin-top: 10px !important;
    }

    .rec-card .form-check-inline {
        width: 100%;
    }

    .rp-input-row {
        flex-wrap: wrap;
    }

    .rp-input-row .rp-input {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .rp-input-row .rp-btn-ir {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ============================================================
   MODO OSCURO — recuperacion-clave.css
   Activado con [data-theme="dark"] en el elemento raíz
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
[data-theme="dark"] .recuperacion-wrapper,
[data-theme="dark"] .confirmacion-wrapper {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* ── Card ────────────────────────────────────────────────── */
[data-theme="dark"] .rec-card,
[data-theme="dark"] .conf-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow:
        0 4px 12px rgba(0,0,0,0.3),
        0 16px 40px rgba(0,0,0,0.25);
}

/* ── Tipografía interna ──────────────────────────────────── */
[data-theme="dark"] .rec-card .card-title,
[data-theme="dark"] .rp-step-title {
    color: #f1f5f9;
}

[data-theme="dark"] .rec-card h4,
[data-theme="dark"] .rp-cuenta-badge {
    color: #93c5fd;
}

[data-theme="dark"] .rec-card h6,
[data-theme="dark"] .rp-step-desc,
[data-theme="dark"] .rp-carrera-label {
    color: #94a3b8;
}

/* ── Inputs ──────────────────────────────────────────────── */
[data-theme="dark"] .rec-card .form-control,
[data-theme="dark"] .rp-input {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .rec-card .form-control:focus,
[data-theme="dark"] .rp-input:focus {
    background: #1e293b !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.18) !important;
}

[data-theme="dark"] .rec-card .form-control::placeholder,
[data-theme="dark"] .rp-input::placeholder {
    color: #475569 !important;
}

/* Flecha del select en dark */
[data-theme="dark"] .rec-card select.form-control,
[data-theme="dark"] select.rp-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

/* ── Alertas ─────────────────────────────────────────────── */
[data-theme="dark"] .rec-card .alert-warning,
[data-theme="dark"] .rp-error {
    background: #2d1515 !important;
    border-left-color: #ef4444 !important;
    color: #fca5a5 !important;
}

[data-theme="dark"] .rec-card .alert-info,
[data-theme="dark"] .rp-info-box {
    background: #0f1f3d !important;
    border-left-color: #3b82f6 !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .rec-card .alert-info a,
[data-theme="dark"] .rp-info-box a {
    color: #60a5fa !important;
}

/* ── Opciones de correo ──────────────────────────────────── */
[data-theme="dark"] .option-send-mail.no-selected {
    background: #0f172a !important;
    color: #cbd5e1 !important;
    border-color: #334155 !important;
}

[data-theme="dark"] .option-send-mail.no-selected:hover {
    border-color: #3b82f6 !important;
    background: #0f1f3d !important;
}

/* ── Radio cards ─────────────────────────────────────────── */
[data-theme="dark"] .rp-radio-card {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .rp-radio-card:hover {
    border-color: #3b82f6;
    background: #0f1f3d;
}

[data-theme="dark"] .rp-radio-card:has(input:checked) {
    border-color: #3b82f6;
    background: #0f1f3d;
}

[data-theme="dark"] .rp-radio-indicator {
    border-color: #475569;
}

[data-theme="dark"] .rp-radio-card input[type="radio"]:checked ~ .rp-radio-indicator {
    border-color: #3b82f6;
    background: #3b82f6;
}

[data-theme="dark"] .rp-radio-card input[type="radio"]:checked ~ .rp-radio-text {
    color: #93c5fd;
}

[data-theme="dark"] .rp-radio-text {
    color: #cbd5e1;
}

/* ── Form check (radio nativo) ───────────────────────────── */
[data-theme="dark"] .rec-card .form-check {
    border-color: #334155;
    background: transparent;
}

[data-theme="dark"] .rec-card .form-check:hover {
    border-color: #3b82f6;
    background: #0f1f3d;
}

[data-theme="dark"] .rec-card .form-check-label {
    color: #cbd5e1;
}

[data-theme="dark"] .rec-card .form-check-input {
    accent-color: #3b82f6;
}

/* ── Éxito paso 5 ────────────────────────────────────────── */
[data-theme="dark"] .rp-success-text {
    background: linear-gradient(135deg, #052e16 0%, #064e3b 100%);
    color: #6ee7b7;
}

/* ── Confirmación éxito ──────────────────────────────────── */
[data-theme="dark"] .conf-success-title {
    color: #6ee7b7;
}

[data-theme="dark"] .conf-success-msg {
    background: linear-gradient(135deg, #052e16 0%, #064e3b 100%);
    color: #a7f3d0;
}

/* ── Confirmación error ──────────────────────────────────── */
[data-theme="dark"] .conf-error-title {
    color: #fca5a5;
}

[data-theme="dark"] .conf-error-msg {
    background: #2d1515;
    border-left-color: #ef4444;
    color: #fca5a5;
}

/* ── Spinner ─────────────────────────────────────────────── */
[data-theme="dark"] .rec-card img[src*="cargando"],
[data-theme="dark"] .rp-loading img {
    opacity: 0.55;
    filter: brightness(0.85);
}
