.aym_register-page {
    max-width: 520px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.aym_register-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.aym_register-subtitle {
    color: #555;
    margin-bottom: 1.5rem;
}

.aym_register-form .form-group {
    margin-bottom: 1rem;
}

.aym_register-form label {
    display: block;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: #0e1f33;
    margin-bottom: 6px;
    width: 100%;
}

.aym_register-form .form-control {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    background-color: #fff;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aym_register-form .form-control:focus {
    outline: none;
    border-color: #004694;
    box-shadow: 0 0 0 3px rgba(0, 70, 148, 0.12);
}

.aym_register-actions {
    display: block;
    margin-top: 8px;
}

.qr-modal__form .aym_register-actions {
    margin-top: 4px;
}

.aym_register-submit {
    display: block;
    width: 100% !important;
    min-width: 0;
    padding: 12px 22px !important;
    background: #004694 !important;
    border: 1px solid #004694 !important;
    color: #fff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    border-radius: 10px !important;
    cursor: pointer;
}

.aym_register-submit:hover,
.aym_register-submit:focus {
    background: #003a7d !important;
    border-color: #003a7d !important;
}

/* OAuth Google en modal */
.qr-oauth { margin-top: 16px; }
.qr-oauth__sep {
    position: relative;
    text-align: center;
    margin: 14px 0;
    color: #6b7785;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.qr-oauth__sep::before,
.qr-oauth__sep::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #d8dee6;
}
.qr-oauth__sep::before { left: 0; }
.qr-oauth__sep::after { right: 0; }
.qr-oauth__sep span {
    background: #fff;
    padding: 0 10px;
    position: relative;
    z-index: 1;
}
.qr-oauth__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid #d8dee6;
    border-radius: 10px;
    color: #1b2733;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.qr-oauth__btn:hover {
    border-color: #b8c2cf;
    box-shadow: 0 3px 10px rgba(0, 70, 148, 0.12);
    text-decoration: none;
    color: #1b2733;
}
.qr-oauth__icon { display: inline-flex; align-items: center; }

.aym_register-submit[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.aym_register-feedback {
    margin-top: 1rem;
    min-height: 1.4em;
}

.aym_register-feedback.is-success { color: #1a7f37; }
.aym_register-feedback.is-error   { color: #b42318; }

.aym_register-note {
    font-size: 0.85rem;
}

.aym_register-error {
    max-width: 520px;
    margin: 2rem auto;
    text-align: center;
}

/* -----------------------------------------------------------
 * Modal
 * -------------------------------------------------------- */
.qr-modal {
    position: fixed;
    inset: 0;
    z-index: 10500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.qr-modal.is-open {
    display: flex;
}

.qr-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.qr-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    padding: 1.75rem;
    z-index: 1;
    animation: qrModalIn .18s ease-out;
}

@keyframes qrModalIn {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.qr-modal__close {
    position: absolute;
    top: .5rem;
    right: .75rem;
    background: transparent;
    border: 0;
    font-size: 1.6rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: .25rem .5rem;
}

.qr-modal__close:hover { color: #222; }

.qr-modal__title {
    font-size: 1.4rem;
    margin: 0 0 .25rem;
}

.qr-modal__subtitle {
    color: #555;
    margin: 0 0 1.25rem;
}

.qr-modal__form .form-group { margin-bottom: 1rem; }

.qr-modal__intro {
    color: #555;
    margin: 0 0 1rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

body.qr-modal-open {
    overflow: hidden;
}

/* -----------------------------------------------------------
 * Extended profile fields
 * -------------------------------------------------------- */
.qr-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
}

.qr-fields .qr-field { min-width: 0; }

.qr-field--full { grid-column: 1 / -1; }

.qr-field__help {
    font-size: 0.8rem;
    margin: -2px 0 6px;
}

.qr-req { color: #b42318; }

.qr-phone { display: flex; gap: 8px; }

.qr-phone__prefix {
    flex: 0 0 96px;
    padding: 0 6px !important;
}

.qr-phone__number { flex: 1 1 auto; }

/* The extended modal gets wider to fit two columns */
.qr-modal__dialog:has([data-qr-extra]:not([hidden])),
.qr-modal[data-qr-profile-mode] .qr-modal__dialog {
    max-width: 640px;
}

/* With the extended fields visible the whole form becomes the two-column
   grid and Email takes one cell (next to "Nombre") instead of a full row.
   The wrappers melt into the grid via display: contents. */
#aym_register-form-modal:has([data-qr-extra]:not([hidden])) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
}

#aym_register-form-modal:has([data-qr-extra]:not([hidden])) [data-qr-extra],
#aym_register-form-modal:has([data-qr-extra]:not([hidden])) .qr-fields {
    display: contents;
}

#aym_register-form-modal:has([data-qr-extra]:not([hidden])) .qr-modal__intro,
#aym_register-form-modal:has([data-qr-extra]:not([hidden])) .qr-field--full,
#aym_register-form-modal:has([data-qr-extra]:not([hidden])) .aym_register-recaptcha,
#aym_register-form-modal:has([data-qr-extra]:not([hidden])) .aym_register-actions,
#aym_register-form-modal:has([data-qr-extra]:not([hidden])) .aym_register-note,
#aym_register-form-modal:has([data-qr-extra]:not([hidden])) .aym_register-feedback {
    grid-column: 1 / -1;
}

.qr-modal__dialog {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

@media (max-width: 520px) {
    .qr-fields { grid-template-columns: 1fr; }

    #aym_register-form-modal:has([data-qr-extra]:not([hidden])) {
        grid-template-columns: 1fr;
    }
}

