/* =========================================================
   JaimeDiaz.TV — Páginas y componentes de cuenta DLE
   ========================================================= */


/* =========================================================
   Recuperación de contraseña
   ========================================================= */

.jdr-password-recovery {
    width: min(100% - 32px, 680px);
    margin: 38px auto 52px;
    overflow: hidden;

    color: #182238;
    border: 1px solid #e5eaf1;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(16, 25, 43, 0.09);
}

.jdr-password-recovery__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: start;

    padding: 30px 32px 26px;

    border-bottom: 1px solid #e5eaf1;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fffaf5 100%
        );
}

.jdr-password-recovery__icon {
    width: 54px;
    height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #cf690d;
    border: 1px solid #f2cb94;
    border-radius: 16px;
    background: #fff7e9;

    font-size: 1.2rem;
}

.jdr-password-recovery__eyebrow {
    display: block;
    margin-bottom: 5px;

    color: #c96c13;

    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jdr-password-recovery__header h1 {
    margin: 0;

    color: #17233c;

    font-size: clamp(1.7rem, 4vw, 2.25rem);
    font-weight: 850;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.jdr-password-recovery__header p {
    max-width: 510px;
    margin: 10px 0 0;

    color: #667085;

    font-size: 0.92rem;
    line-height: 1.55;
}

.jdr-password-recovery__form {
    display: grid;
    gap: 24px;

    padding: 30px 32px 32px;
}

.jdr-password-recovery__field {
    display: grid;
    gap: 8px;
}

.jdr-password-recovery__field label,
.jdr-password-recovery__verification-title {
    color: #233a61;

    font-size: 0.82rem;
    font-weight: 750;
}

.jdr-password-recovery__control {
    min-height: 52px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;

    padding: 0 16px;

    border: 1px solid #dce3ec;
    border-radius: 13px;
    background: #f9fafc;

    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.jdr-password-recovery__control:focus-within {
    border-color: rgba(244, 115, 33, 0.6);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(244, 115, 33, 0.1);
}

.jdr-password-recovery__control i {
    color: #8290a5;
}

.jdr-password-recovery__control input {
    width: 100%;
    min-width: 0;
    height: 50px;

    padding: 0;

    color: #182238;
    border: 0;
    outline: 0;
    background: transparent;

    font: inherit;
}

.jdr-password-recovery__control input::placeholder {
    color: #9aa5b5;
}

.jdr-password-recovery__verification {
    display: grid;
    gap: 10px;
}

.jdr-password-recovery__captcha {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.jdr-password-recovery__captcha img {
    max-width: 150px;
    height: 48px;

    object-fit: contain;

    border: 1px solid #dce3ec;
    border-radius: 10px;
}

.jdr-password-recovery__captcha input {
    width: min(100%, 170px);
    min-height: 48px;

    padding: 0 14px;

    color: #182238;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    outline: 0;
    background: #f9fafc;

    font: inherit;
}

.jdr-password-recovery__captcha input:focus {
    border-color: rgba(244, 115, 33, 0.6);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(244, 115, 33, 0.1);
}

.jdr-password-recovery__actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;

    padding-top: 22px;

    border-top: 1px solid #e5eaf1;
}

.jdr-password-recovery__back,
.jdr-password-recovery__submit {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 10px 17px;

    border-radius: 11px;

    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;

    transition:
        transform 160ms ease,
        color 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.jdr-password-recovery__back {
    color: #667085;
    border: 1px solid #dce3ec;
    background: #ffffff;
}

.jdr-password-recovery__back:hover {
    color: #233a61;
    border-color: #bac5d3;
    background: #f7f9fc;
}

.jdr-password-recovery__submit {
    cursor: pointer;

    color: #ffffff;
    border: 1px solid #17233c;
    background: #17233c;
    box-shadow: 0 10px 22px rgba(23, 35, 60, 0.17);
}

.jdr-password-recovery__submit:hover {
    border-color: #233a61;
    background: #233a61;
    transform: translateY(-1px);
}


/* =========================================================
   Perfil emergente
   ========================================================= */

.jdr-profile-popup {
    width: min(100%, 380px);
    overflow: hidden;

    color: #182238;
    border: 1px solid #e5eaf1;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(16, 25, 43, 0.16);
}

.jdr-profile-popup__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;

    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #17233c 0%,
            #233a61 100%
        );
}

.jdr-profile-popup__avatar {
    position: relative;

    width: 62px;
    height: 62px;
}

.jdr-profile-popup__avatar img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;

    border: 3px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: #ffffff;
}

.jdr-profile-popup__presence {
    position: absolute;
    right: 1px;
    bottom: 2px;

    width: 13px;
    height: 13px;

    border: 2px solid #17233c;
    border-radius: 50%;
}

.jdr-profile-popup__presence--online {
    background: #2ecc71;
}

.jdr-profile-popup__presence--offline {
    background: #9aa5b5;
}

.jdr-profile-popup__identity {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.jdr-profile-popup__identity strong {
    overflow: hidden;

    color: #ffffff;

    font-size: 1.05rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jdr-profile-popup__identity span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
}

.jdr-profile-popup__details {
    display: grid;
    gap: 0;

    margin: 0;
    padding: 7px 20px;
}

.jdr-profile-popup__details > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;

    padding: 10px 0;

    border-bottom: 1px solid #edf0f4;
}

.jdr-profile-popup__details > div:last-child {
    border-bottom: 0;
}

.jdr-profile-popup__details dt,
.jdr-profile-popup__details dd {
    margin: 0;
}

.jdr-profile-popup__details dt {
    color: #8290a5;

    font-size: 0.72rem;
    font-weight: 700;
}

.jdr-profile-popup__details dd {
    min-width: 0;

    color: #344054;

    font-size: 0.75rem;
    font-weight: 650;
    text-align: right;
}

.jdr-profile-popup__online {
    color: #16894b;
}

.jdr-profile-popup__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    border-top: 1px solid #e5eaf1;
    background: #f8fafc;
}

.jdr-profile-popup__stats > div {
    min-width: 0;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: start;

    padding: 14px;
}

.jdr-profile-popup__stats > div + div {
    border-left: 1px solid #e5eaf1;
}

.jdr-profile-popup__stats i {
    margin-top: 2px;
    color: #c96c13;
}

.jdr-profile-popup__stats span {
    color: #667085;

    font-size: 0.68rem;
    line-height: 1.35;
}

.jdr-profile-popup__stats strong {
    color: #233a61;
}

.jdr-profile-popup__links {
    grid-column: 1 / -1;
}

.jdr-profile-popup__links a {
    color: #c96c13;
    font-weight: 750;
    text-decoration: none;
}

.jdr-profile-popup__links a:hover {
    color: #e85d0f;
    text-decoration: underline;
}


/* =========================================================
   Adaptación móvil
   ========================================================= */

@media (max-width: 620px) {

    .jdr-password-recovery {
        width: min(100% - 20px, 680px);
        margin: 22px auto 34px;

        border-radius: 17px;
    }

    .jdr-password-recovery__header {
        grid-template-columns: 1fr;
        gap: 13px;

        padding: 23px 20px 21px;
    }

    .jdr-password-recovery__icon {
        width: 46px;
        height: 46px;

        border-radius: 13px;
    }

    .jdr-password-recovery__form {
        padding: 23px 20px 24px;
    }

    .jdr-password-recovery__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .jdr-password-recovery__back,
    .jdr-password-recovery__submit {
        width: 100%;
    }

    .jdr-profile-popup {
        width: min(100%, 340px);
    }

    .jdr-profile-popup__stats {
        grid-template-columns: 1fr;
    }

    .jdr-profile-popup__stats > div + div {
        border-top: 1px solid #e5eaf1;
        border-left: 0;
    }

}


/* =========================================================
   Perfil público y configuración de usuario
   ========================================================= */

.jdr-user-profile {
    width: min(100% - 32px, 1060px);
    margin: 34px auto 52px;

    color: #182238;
}


/* Cabecera del perfil */

.jdr-user-profile__hero {
    position: relative;

    min-height: 190px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;

    padding: 32px;

    overflow: hidden;

    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;

    background:
        radial-gradient(
            circle at 85% 0%,
            rgba(244, 115, 33, 0.2),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #10192b 0%,
            #17233c 55%,
            #233a61 100%
        );

    box-shadow: 0 22px 46px rgba(16, 25, 43, 0.16);
}

.jdr-user-profile__hero::after {
    content: "";

    position: absolute;
    right: -70px;
    bottom: -120px;

    width: 270px;
    height: 270px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.jdr-user-profile__avatar {
    position: relative;
    z-index: 1;

    width: 112px;
    height: 112px;
}

.jdr-user-profile__avatar img {
    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;

    border: 4px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;

    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.jdr-user-profile__presence {
    position: absolute;
    right: 5px;
    bottom: 7px;

    width: 18px;
    height: 18px;

    border: 3px solid #17233c;
    border-radius: 50%;
}

.jdr-user-profile__presence--online {
    background: #2ecc71;
}

.jdr-user-profile__presence--offline {
    background: #8995a8;
}

.jdr-user-profile__identity {
    position: relative;
    z-index: 1;

    min-width: 0;
}

.jdr-user-profile__eyebrow {
    display: block;

    margin-bottom: 6px;

    color: #e1aa42;

    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.jdr-user-profile__identity h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(1.8rem, 4vw, 2.7rem);
    font-weight: 850;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.jdr-user-profile__group {
    margin-top: 9px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 0.85rem;
    font-weight: 650;
}

.jdr-user-profile__message {
    position: relative;
    z-index: 1;

    display: flex;
    justify-content: flex-end;
}

.jdr-user-profile__message a {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 16px;

    color: #17233c;
    border: 1px solid #ffffff;
    border-radius: 11px;
    background: #ffffff;

    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;

    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);

    transition:
        color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.jdr-user-profile__message a:hover {
    color: #c96c13;
    transform: translateY(-1px);
}


/* Distribución principal */

.jdr-user-profile__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;

    margin-top: 22px;
}

.jdr-user-profile__main {
    min-width: 0;

    display: grid;
    gap: 22px;
}

.jdr-user-profile__card,
.jdr-user-profile__activity {
    overflow: hidden;

    border: 1px solid #e5eaf1;
    border-radius: 18px;
    background: #ffffff;

    box-shadow: 0 12px 30px rgba(16, 25, 43, 0.07);
}

.jdr-user-profile__section-header,
.jdr-user-profile__activity > header {
    padding: 20px 22px 17px;

    border-bottom: 1px solid #e5eaf1;
    background: linear-gradient(135deg, #ffffff, #fffaf5);
}

.jdr-user-profile__section-header span,
.jdr-user-profile__activity > header span {
    display: block;

    margin-bottom: 3px;

    color: #c96c13;

    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.jdr-user-profile__section-header h2,
.jdr-user-profile__activity > header h2 {
    margin: 0;

    color: #17233c;

    font-size: 1.2rem;
    font-weight: 820;
    letter-spacing: -0.025em;
}


/* Datos del usuario */

.jdr-user-profile__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    margin: 0;
    padding: 8px 22px 15px;
}

.jdr-user-profile__details > div {
    min-width: 0;

    padding: 14px 0;

    border-bottom: 1px solid #edf0f4;
}

.jdr-user-profile__details > div:nth-child(odd) {
    padding-right: 20px;
}

.jdr-user-profile__details > div:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid #edf0f4;
}

.jdr-user-profile__details dt,
.jdr-user-profile__details dd {
    margin: 0;
}

.jdr-user-profile__details dt {
    margin-bottom: 5px;

    color: #8290a5;

    font-size: 0.69rem;
    font-weight: 750;
    text-transform: uppercase;
}

.jdr-user-profile__details dd {
    color: #344054;

    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.45;
}

.jdr-user-profile__status-online {
    color: #16894b;
}

.jdr-user-profile__inline-action {
    margin-left: 8px;

    color: #c96c13;
    font-size: 0.72rem;
}


/* Biografía y firma */

.jdr-user-profile__biography {
    min-height: 100px;
    padding: 22px;

    color: #475467;

    font-size: 0.86rem;
    line-height: 1.7;
}

.jdr-user-profile__biography:empty::before {
    content: "Este usuario todavía no ha agregado información personal.";
    color: #98a2b3;
}

.jdr-user-profile__signature {
    margin: 0 22px 22px;
    padding: 15px 17px;

    color: #667085;
    border-left: 3px solid #f47321;
    background: #fffaf5;

    font-size: 0.78rem;
    line-height: 1.55;
}

.jdr-user-profile__signature strong {
    display: block;

    margin-bottom: 5px;

    color: #233a61;
}


/* Actividad lateral */

.jdr-user-profile__sidebar {
    min-width: 0;
}

.jdr-user-profile__activity {
    position: sticky;
    top: 100px;
}

.jdr-user-profile__stat {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;

    padding: 17px 18px;

    border-bottom: 1px solid #edf0f4;
}

.jdr-user-profile__stat-icon {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #c96c13;
    border: 1px solid #f2d09d;
    border-radius: 11px;
    background: #fff7e9;
}

.jdr-user-profile__stat > div {
    min-width: 0;

    display: grid;
    gap: 1px;
}

.jdr-user-profile__stat strong {
    color: #17233c;
    font-size: 1rem;
}

.jdr-user-profile__stat span {
    color: #667085;
    font-size: 0.72rem;
}

.jdr-user-profile__stat-links {
    grid-column: 1 / -1;

    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    padding-left: 50px;
}

.jdr-user-profile__stat-links a {
    color: #c96c13;
    font-size: 0.7rem;
    font-weight: 750;
    text-decoration: none;
}

.jdr-user-profile__stat-links a:hover {
    color: #e85d0f;
    text-decoration: underline;
}

.jdr-user-profile__rating {
    display: grid;
    gap: 7px;

    padding: 15px 18px;

    border-bottom: 1px solid #edf0f4;
}

.jdr-user-profile__rating:last-child {
    border-bottom: 0;
}

.jdr-user-profile__rating span {
    color: #667085;
    font-size: 0.7rem;
}

.jdr-user-profile__rating strong {
    color: #233a61;
    font-size: 0.82rem;
}


/* =========================================================
   Configuración de la cuenta
   ========================================================= */

.jdr-user-settings {
    margin-top: 24px;
    overflow: hidden;

    border: 1px solid #e5eaf1;
    border-radius: 20px;
    background: #ffffff;

    box-shadow: 0 15px 36px rgba(16, 25, 43, 0.08);
}

.jdr-user-settings__header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 17px;
    align-items: start;

    padding: 26px 28px;

    border-bottom: 1px solid #e5eaf1;
    background: linear-gradient(135deg, #ffffff, #fffaf5);
}

.jdr-user-settings__icon {
    width: 50px;
    height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #c96c13;
    border: 1px solid #f2cb94;
    border-radius: 14px;
    background: #fff7e9;

    font-size: 1.1rem;
}

.jdr-user-settings__eyebrow {
    display: block;

    margin-bottom: 4px;

    color: #c96c13;

    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.jdr-user-settings__header h2 {
    margin: 0;

    color: #17233c;

    font-size: 1.55rem;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.jdr-user-settings__header p {
    margin: 7px 0 0;

    color: #667085;

    font-size: 0.82rem;
    line-height: 1.5;
}

.jdr-user-settings__body {
    display: grid;
    gap: 0;
}

.jdr-user-settings__section {
    padding: 25px 28px;

    border-bottom: 1px solid #e5eaf1;
}

.jdr-user-settings__section > header {
    margin-bottom: 18px;
}

.jdr-user-settings__section > header span {
    display: block;

    margin-bottom: 3px;

    color: #c96c13;

    font-size: 0.62rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.jdr-user-settings__section > header h3 {
    margin: 0;

    color: #233a61;

    font-size: 1.02rem;
    font-weight: 800;
}

.jdr-user-settings__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.jdr-user-settings__stack {
    display: grid;
    gap: 18px;
}

.jdr-user-settings__field {
    min-width: 0;

    display: grid;
    gap: 7px;
}

.jdr-user-settings__field label {
    color: #344054;

    font-size: 0.76rem;
    font-weight: 750;
}

.jdr-user-settings__field input,
.jdr-user-settings__field select,
.jdr-user-settings__field textarea {
    width: 100%;
    max-width: 100%;

    padding: 11px 13px;

    color: #182238;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    outline: 0;
    background: #f9fafc;

    font: inherit;
    font-size: 0.8rem;

    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.jdr-user-settings__field input,
.jdr-user-settings__field select {
    min-height: 45px;
}

.jdr-user-settings__field textarea {
    resize: vertical;
    line-height: 1.55;
}

.jdr-user-settings__field input:focus,
.jdr-user-settings__field select:focus,
.jdr-user-settings__field textarea:focus {
    border-color: rgba(244, 115, 33, 0.6);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(244, 115, 33, 0.1);
}

.jdr-user-settings__field input[type="file"] {
    padding: 8px;
}

.jdr-user-settings__option,
.jdr-user-settings__checkbox,
.jdr-user-settings__preferences {
    color: #667085;

    font-size: 0.75rem;
    line-height: 1.45;
}

.jdr-user-settings__checkbox {
    display: flex;
    gap: 8px;
    align-items: center;
}

.jdr-user-settings__checkbox input {
    width: 17px;
    height: 17px;
}

.jdr-user-settings__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.jdr-user-settings__socials a {
    min-height: 38px;

    display: inline-flex;
    align-items: center;

    padding: 8px 13px;

    color: #233a61;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    background: #f8fafc;

    font-size: 0.72rem;
    font-weight: 750;
    text-decoration: none;
}

.jdr-user-settings__socials a:hover {
    color: #c96c13;
    border-color: #f2cb94;
    background: #fffaf5;
}

.jdr-user-settings__social-list {
    margin-top: 16px;

    color: #667085;

    font-size: 0.76rem;
}

.jdr-user-settings__preferences {
    display: grid;
    gap: 12px;
}

.jdr-user-settings__preferences > div {
    padding: 12px 14px;

    border: 1px solid #e5eaf1;
    border-radius: 10px;
    background: #f9fafc;
}

.jdr-user-settings__actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    align-items: center;

    padding: 22px 28px;
}

.jdr-user-settings__delete {
    margin-right: auto;
}

.jdr-user-settings__delete a,
.jdr-user-settings__delete span {
    color: #b42318;

    font-size: 0.75rem;
    font-weight: 750;
    text-decoration: none;
}

.jdr-user-settings__submit {
    min-height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 10px 18px;

    cursor: pointer;

    color: #ffffff;
    border: 1px solid #17233c;
    border-radius: 11px;
    background: #17233c;

    font-size: 0.8rem;
    font-weight: 800;

    box-shadow: 0 10px 22px rgba(23, 35, 60, 0.17);

    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.jdr-user-settings__submit:hover {
    border-color: #233a61;
    background: #233a61;
    transform: translateY(-1px);
}


/* =========================================================
   Perfil adaptable
   ========================================================= */

@media (max-width: 860px) {

    .jdr-user-profile__layout {
        grid-template-columns: 1fr;
    }

    .jdr-user-profile__activity {
        position: static;
    }

    .jdr-user-profile__sidebar {
        order: -1;
    }

}

@media (max-width: 620px) {

    .jdr-user-profile {
        width: min(100% - 20px, 1060px);
        margin: 22px auto 36px;
    }

    .jdr-user-profile__hero {
        grid-template-columns: 1fr;
        gap: 15px;

        padding: 24px 20px;

        text-align: center;
    }

    .jdr-user-profile__avatar {
        width: 92px;
        height: 92px;

        margin: 0 auto;
    }

    .jdr-user-profile__message {
        justify-content: center;
    }

    .jdr-user-profile__details {
        grid-template-columns: 1fr;
    }

    .jdr-user-profile__details > div:nth-child(odd),
    .jdr-user-profile__details > div:nth-child(even) {
        padding-right: 0;
        padding-left: 0;
        border-left: 0;
    }

    .jdr-user-settings__header {
        grid-template-columns: 1fr;

        padding: 22px 20px;
    }

    .jdr-user-settings__section {
        padding: 22px 20px;
    }

    .jdr-user-settings__grid {
        grid-template-columns: 1fr;
    }

    .jdr-user-settings__actions {
        align-items: stretch;
        flex-direction: column-reverse;

        padding: 20px;
    }

    .jdr-user-settings__delete {
        margin: 0;
        text-align: center;
    }

    .jdr-user-settings__submit {
        width: 100%;
    }

}


/* =========================================================
   Control desplegable de edición
   ========================================================= */

.jdr-user-profile__actions {
    position: relative;
    z-index: 1;

    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    align-items: center;
}

.jdr-user-profile__edit-toggle {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 16px;

    cursor: pointer;

    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.1);

    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;

    backdrop-filter: blur(8px);

    transition:
        color 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.jdr-user-profile__edit-toggle:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.17);
    transform: translateY(-1px);
}

.jdr-user-profile__edit-toggle[aria-expanded="true"] {
    color: #17233c;
    border-color: #ffffff;
    background: #ffffff;
}

.jdr-user-settings {
    opacity: 0;
    transform: translateY(-12px);

    transition:
        opacity 220ms ease,
        transform 220ms ease;
}

.jdr-user-settings.is-open {
    opacity: 1;
    transform: translateY(0);
}

.jdr-user-settings[hidden] {
    display: none;
}

@media (prefers-reduced-motion: reduce) {

    .jdr-user-settings,
    .jdr-user-profile__edit-toggle {
        transition: none;
    }

}

@media (max-width: 620px) {

    .jdr-user-profile__actions {
        justify-content: center;
    }

    .jdr-user-profile__edit-toggle,
    .jdr-user-profile__message,
    .jdr-user-profile__message a {
        width: 100%;
    }

}


/* =========================================================
   Distribución refinada del formulario
   ========================================================= */

/* Evita que los controles se estiren por la altura del vecino */

.jdr-user-settings__field {
    align-content: start;
    align-self: start;
    grid-auto-rows: max-content;
}


/* Datos personales: campos cortos y largos */

.jdr-user-settings__grid--identity {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
}

.jdr-user-settings__grid--identity
> :nth-child(1),
.jdr-user-settings__grid--identity
> :nth-child(3) {
    grid-column: span 5;
}

.jdr-user-settings__grid--identity
> :nth-child(2),
.jdr-user-settings__grid--identity
> :nth-child(4) {
    grid-column: span 7;
}


/* Seguridad: las tres contraseñas comparten la primera fila */

.jdr-user-settings__grid--security {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.jdr-user-settings__grid--security
> :nth-child(4) {
    grid-column: 1 / 2;
}


/* Avatar: carga más ancha y Gravatar más compacto */

.jdr-user-settings__grid--avatar {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
}

.jdr-user-settings__grid--avatar
> :nth-child(1) {
    grid-column: span 7;
}

.jdr-user-settings__grid--avatar
> :nth-child(2) {
    grid-column: span 5;
}

.jdr-user-settings__grid--avatar
> :nth-child(3) {
    grid-column: 1 / -1;
}


/* Checkboxes y radios generados por DLE */

.jdr-user-settings
input[type="checkbox"],
.jdr-user-settings
input[type="radio"] {
    width: 17px;
    min-width: 17px;
    max-width: 17px;

    height: 17px;
    min-height: 17px;
    max-height: 17px;

    flex: 0 0 17px;

    margin: 0;
    padding: 0;

    cursor: pointer;

    border-radius: 4px;
    box-shadow: none;
}

.jdr-user-settings
input[type="radio"] {
    border-radius: 50%;
}

.jdr-user-settings__option {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;

    margin-top: 2px;
}

.jdr-user-settings__option label {
    margin: 0;

    color: #667085;

    font-size: 0.7rem;
    font-weight: 550;
    line-height: 1.4;
}

.jdr-user-settings__checkbox {
    width: fit-content;

    align-self: start;

    padding: 8px 10px;

    border: 1px solid #e5eaf1;
    border-radius: 9px;
    background: #f9fafc;
}


/* Controles según el contenido esperado */

.jdr-user-settings__grid--identity
input[name="fullname"],
.jdr-user-settings__grid--identity
input[name="land"] {
    max-width: 380px;
}

.jdr-user-settings__grid--security
input[type="password"] {
    width: 100%;
}

.jdr-user-settings__grid--security
select {
    max-width: 280px;
}

.jdr-user-settings__grid--avatar
input[name="gravatar"] {
    max-width: 380px;
}


/* Campo de archivo más ordenado */

.jdr-user-settings__field
input[type="file"] {
    min-height: 45px;
    padding: 7px;

    color: #667085;
}

.jdr-user-settings__field
input[type="file"]::file-selector-button {
    min-height: 29px;

    margin-right: 10px;
    padding: 5px 11px;

    cursor: pointer;

    color: #233a61;
    border: 1px solid #dce3ec;
    border-radius: 7px;
    background: #ffffff;

    font: inherit;
    font-size: 0.7rem;
    font-weight: 700;
}


/* Móvil */

@media (max-width: 720px) {

    .jdr-user-settings__grid--identity,
    .jdr-user-settings__grid--security,
    .jdr-user-settings__grid--avatar {
        grid-template-columns: minmax(0, 1fr);
    }

    .jdr-user-settings__grid--identity
    > :nth-child(n),
    .jdr-user-settings__grid--security
    > :nth-child(n),
    .jdr-user-settings__grid--avatar
    > :nth-child(n) {
        grid-column: 1;
    }

    .jdr-user-settings__grid--identity
    input[name="fullname"],
    .jdr-user-settings__grid--identity
    input[name="land"],
    .jdr-user-settings__grid--security
    select,
    .jdr-user-settings__grid--avatar
    input[name="gravatar"] {
        max-width: none;
    }

}
