/* Interruptor y casilla Nobelium — un solo diseño en Academy, sitio público y login.
   Tokens de marca: navy #1B2A4A, oro #C9A227. */

.form-check-input[type="checkbox"] {
    --nobelium-check-navy: #1B2A4A;
    --nobelium-check-gold: #C9A227;
    width: 1.2rem;
    height: 1.2rem;
    margin-top: 0.18rem;
    border: 2px solid #2A4068;
    border-radius: 0.35rem;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.form-check-input[type="checkbox"]:hover:not(:disabled) {
    border-color: var(--nobelium-check-gold, #C9A227);
}

.form-check-input[type="checkbox"]:focus {
    border-color: #3D5A8C;
    box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.35);
}

.form-check-input[type="checkbox"]:focus-visible {
    outline: 2px solid #C9A227;
    outline-offset: 2px;
}

.form-check-input[type="checkbox"]:checked {
    background-color: var(--nobelium-check-navy, #1B2A4A);
    border-color: var(--nobelium-check-gold, #C9A227);
}

.form-check-input[type="checkbox"]:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.form-switch .form-check-input {
    width: 2.7rem;
    height: 1.45rem;
    margin-top: 0.12rem;
    border-radius: 999px;
    border: 2px solid #2A4068;
    background-color: #E8EEF6;
    background-image: none;
    filter: none;
}

.form-switch .form-check-input:not(:checked) {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%232A4068'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
    background-color: #1B2A4A;
    border-color: #C9A227;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23C9A227'/%3e%3c/svg%3e");
}

.form-switch .form-check-label {
    padding-top: 0.15rem;
    cursor: pointer;
}

/* Fila interruptor con título + ayuda (p. ej. Responder por correo) */
.nobelium-switch {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    width: 100%;
    margin: 0;
    padding: 0.95rem 1.05rem;
    border: 1px solid #C5D0E0;
    border-radius: 0.85rem;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.nobelium-switch:hover {
    border-color: #C9A227;
}

.nobelium-switch:has(.nobelium-switch__input:checked) {
    border-color: #C9A227;
    background: linear-gradient(165deg, #FFF8E8 0%, #ffffff 70%);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
}

.nobelium-switch:has(.nobelium-switch__input:focus-visible) {
    outline: 2px solid #C9A227;
    outline-offset: 2px;
}

.nobelium-switch__input {
    appearance: none;
    flex: 0 0 auto;
    width: 2.85rem;
    height: 1.55rem;
    margin: 0.15rem 0 0;
    border: 2px solid #2A4068;
    border-radius: 999px;
    background-color: #E8EEF6;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%232A4068'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 1.35rem;
    cursor: pointer;
    transition: background-position 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.nobelium-switch__input:checked {
    background-color: #1B2A4A;
    border-color: #C9A227;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23C9A227'/%3e%3c/svg%3e");
    background-position: right center;
}

.nobelium-switch__input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.nobelium-switch__copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.nobelium-switch__title {
    font-weight: 650;
    color: #1B2A4A;
    line-height: 1.3;
}

.nobelium-switch__hint {
    font-size: 0.85rem;
    color: #4B5563;
    line-height: 1.35;
}
