/* =========================================================
   JaimeDiaz.TV — Registro y páginas estáticas
   ========================================================= */


/* =========================================================
   Página estática
   ========================================================= */

.jdr-static-page,
.jdr-registration {
    width: min(100% - 32px, 1060px);

    margin: 32px auto 48px;

    color: #182238;
}

.jdr-static-page__hero,
.jdr-registration__hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;

    margin-bottom: 20px;
    padding: 28px 30px;

    border: 1px solid rgba(23, 35, 60, 0.08);
    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #ffffff 74%,
            #fff8ee 100%
        );

    box-shadow:
        0 16px 42px rgba(16, 38, 48, 0.07);
}

.jdr-static-page__hero-icon,
.jdr-registration__hero-icon {
    width: 58px;
    height: 58px;

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

    border: 1px solid rgba(244, 115, 33, 0.28);
    border-radius: 16px;

    color: #d76716;
    background: #fff8ed;

    font-size: 1.3rem;
}

.jdr-static-page__eyebrow,
.jdr-registration__eyebrow {
    display: block;

    margin-bottom: 5px;

    color: #c86515;

    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.jdr-static-page__title,
.jdr-registration__hero h1 {
    margin: 0;

    color: #17233c;

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

.jdr-static-page__hero-body > p,
.jdr-registration__hero-body > p {
    max-width: 680px;

    margin: 9px 0 0;

    color: #667085;

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

.jdr-static-page__admin a {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 9px 12px;

    border: 1px solid #e4e9f0;
    border-radius: 11px;

    color: #667085;
    background: #ffffff;

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

.jdr-static-page__layout,
.jdr-registration__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    align-items: start;
    gap: 20px;
}

.jdr-static-page__main,
.jdr-registration__card {
    min-width: 0;
}

.jdr-static-page__card,
.jdr-registration__card {
    border: 1px solid rgba(23, 35, 60, 0.08);
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 16px 40px rgba(16, 38, 48, 0.07);
}

.jdr-static-page__card {
    padding: 32px;
}

.jdr-static-page__content {
    color: #35415a;

    font-size: 0.91rem;
    line-height: 1.72;
}

.jdr-static-page__content > :first-child {
    margin-top: 0;
}

.jdr-static-page__content > :last-child {
    margin-bottom: 0;
}

.jdr-static-page__content p {
    margin: 0 0 16px;
}

.jdr-static-page__content ul,
.jdr-static-page__content ol {
    display: grid;
    gap: 8px;

    margin: 16px 0 20px;
    padding-left: 23px;
}

.jdr-static-page__content li::marker {
    color: #d58a1c;
}

.jdr-static-page__content strong,
.jdr-static-page__content b {
    color: #17233c;
    font-weight: 800;
}

.jdr-static-page__content a {
    color: #233a61;

    font-weight: 750;
    text-underline-offset: 3px;
}

.jdr-static-page__content a:hover {
    color: #e85d0f;
}


/* Formulario de aceptación generado por DLE */

.jdr-static-page__content #registration {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;

    margin-top: 28px;
    padding-top: 24px;

    border-top: 1px solid #e8edf3;
}

.jdr-static-page__content
#registration
button {
    min-width: 128px;
    min-height: 44px;

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

    padding: 10px 18px;

    border: 1px solid #dfe5ed;
    border-radius: 12px;

    color: #526078;
    background: #f7f9fc;

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

    cursor: pointer;

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

.jdr-static-page__content
#registration
button[type="submit"] {
    border-color: #17233c;

    color: #ffffff;
    background: #17233c;

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

.jdr-static-page__content
#registration
button:hover {
    color: #ffffff;
    border-color: #e85d0f;
    background: #e85d0f;

    transform: translateY(-1px);
}

.jdr-static-page__pagination:empty {
    display: none;
}

.jdr-static-page__pagination {
    margin-top: 24px;
    padding-top: 20px;

    border-top: 1px solid #e8edf3;
}


/* =========================================================
   Sidebar estático
   ========================================================= */

.jdr-static-page__sidebar,
.jdr-registration__sidebar {
    display: grid;
    gap: 14px;
}

.jdr-static-page__note,
.jdr-registration__benefits {
    padding: 24px;

    border-radius: 19px;

    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            #17233c 0%,
            #233a61 100%
        );

    box-shadow:
        0 16px 34px rgba(23, 35, 60, 0.16);
}

.jdr-static-page__note-icon,
.jdr-registration__benefits-icon {
    width: 46px;
    height: 46px;

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

    margin-bottom: 18px;

    border-radius: 13px;

    color: #ffffff;
    background: #f47321;

    font-size: 1rem;
}

.jdr-static-page__note h2,
.jdr-registration__benefits h2 {
    margin: 0;

    color: #ffffff;

    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.25;
}

.jdr-static-page__note p,
.jdr-registration__benefits p {
    margin: 10px 0 0;

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

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

.jdr-static-page__support,
.jdr-registration__side-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 12px;

    padding: 17px;

    border: 1px solid rgba(23, 35, 60, 0.08);
    border-radius: 15px;

    color: #667085;
    background: #ffffff;

    box-shadow:
        0 10px 26px rgba(16, 38, 48, 0.05);
}

.jdr-static-page__support > i,
.jdr-registration__side-card > i {
    margin-top: 2px;

    color: #d76716;
}

.jdr-static-page__support div,
.jdr-registration__side-card div {
    min-width: 0;

    display: grid;
    gap: 4px;
}

.jdr-static-page__support strong,
.jdr-registration__side-card strong {
    color: #273551;

    font-size: 0.74rem;
}

.jdr-static-page__support span,
.jdr-registration__side-card span {
    color: #77839a;

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

.jdr-static-page__support a,
.jdr-registration__side-card a {
    color: #c86515;

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


/* =========================================================
   Formulario de registro
   ========================================================= */

.jdr-registration__card {
    overflow: hidden;
}

.jdr-registration__card-header {
    padding: 27px 28px 23px;

    border-bottom: 1px solid #e8edf3;
}

.jdr-registration__card-header > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 7px;

    color: #c86515;

    font-size: 0.63rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.jdr-registration__card-header h2 {
    margin: 0;

    color: #17233c;

    font-size: 1.35rem;
    font-weight: 820;
    letter-spacing: -0.03em;
}

.jdr-registration__card-header p {
    max-width: 620px;

    margin: 8px 0 0;

    color: #667085;

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

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

    padding: 26px 28px 30px;
}

.jdr-registration__field {
    min-width: 0;

    display: grid;
    align-content: start;
    gap: 7px;
}

.jdr-registration__field--full,
.jdr-registration__xfields {
    grid-column: 1 / -1;
}

.jdr-registration__field label {
    color: #2d3a54;

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

.jdr-registration__control {
    min-height: 50px;

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

    padding: 0 15px;

    border: 1px solid #dce3ed;
    border-radius: 13px;

    color: #8490a4;
    background: #f8fafc;

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

.jdr-registration__control:focus-within,
.jdr-registration__question:focus-within,
.jdr-registration__captcha:focus-within {
    border-color: rgba(244, 115, 33, 0.58);
    background: #ffffff;

    box-shadow:
        0 0 0 4px rgba(244, 115, 33, 0.09);
}

.jdr-registration__control input {
    width: 100%;
    min-width: 0;
    height: 48px;

    padding: 0;

    border: 0;
    outline: 0;

    color: #182238;
    background: transparent;

    font: inherit;
    font-size: 0.82rem;
}

.jdr-registration__control input::placeholder,
.jdr-registration textarea::placeholder,
.jdr-registration__question input::placeholder,
.jdr-registration__captcha input::placeholder {
    color: #a1abbb;
}

.jdr-registration__username {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.jdr-registration__check {
    min-height: 50px;

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

    padding: 10px 15px;

    border: 1px solid #dce3ed;
    border-radius: 13px;

    color: #526078;
    background: #ffffff;

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

    cursor: pointer;
}

.jdr-registration__check:hover {
    color: #d76716;
    border-color: rgba(244, 115, 33, 0.38);
}

.jdr-registration__result:empty {
    display: none;
}

.jdr-registration__result {
    padding: 9px 12px;

    border-radius: 9px;

    color: #526078;
    background: #f4f7fa;

    font-size: 0.69rem;
}

.jdr-registration__question {
    display: grid;
    gap: 10px;

    padding: 14px;

    border: 1px solid #dce3ed;
    border-radius: 13px;

    background: #f8fafc;
}

.jdr-registration__question strong {
    color: #233a61;

    font-size: 0.77rem;
    line-height: 1.4;
}

.jdr-registration__question input,
.jdr-registration__captcha input,
.jdr-registration textarea {
    width: 100%;

    border: 1px solid #dce3ed;
    border-radius: 11px;
    outline: 0;

    color: #182238;
    background: #ffffff;

    font: inherit;
    font-size: 0.82rem;
}

.jdr-registration__question input,
.jdr-registration__captcha input {
    min-height: 46px;
    padding: 0 13px;
}

.jdr-registration textarea {
    min-height: 130px;
    padding: 13px;

    resize: vertical;
}

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

    padding: 12px;

    border: 1px solid #dce3ed;
    border-radius: 13px;

    background: #f8fafc;
}

.jdr-registration__captcha-image {
    line-height: 0;
}

.jdr-registration__captcha-image img {
    display: block;

    width: 120px;
    height: 60px;

    border-radius: 9px;

    object-fit: cover;
}

.jdr-registration__file {
    min-height: 52px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 13px;

    border: 1px dashed #ccd5e1;
    border-radius: 13px;

    color: #d76716;
    background: #fafbfd;
}

.jdr-registration__file input {
    min-width: 0;

    color: #667085;

    font-size: 0.72rem;
}

.jdr-registration__recaptcha {
    overflow-x: auto;
}

.jdr-registration__xfields:empty {
    display: none;
}

.jdr-registration__xfields table {
    width: 100%;

    border-collapse: separate;
    border-spacing: 0 12px;
}

.jdr-registration__xfields td {
    padding: 0;
}

.jdr-registration__submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 21px 28px;

    border-top: 1px solid #e8edf3;

    background: #fbfcfd;
}

.jdr-registration__submit p {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin: 0;

    color: #77839a;

    font-size: 0.69rem;
    line-height: 1.4;
}

.jdr-registration__submit p i {
    color: #d58a1c;
}

.jdr-registration__submit button {
    min-height: 47px;

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

    padding: 11px 19px;

    border: 0;
    border-radius: 12px;

    color: #ffffff;
    background: #17233c;

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

    cursor: pointer;

    box-shadow:
        0 11px 24px rgba(23, 35, 60, 0.18);

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

.jdr-registration__submit button:hover {
    background: #233a61;
    transform: translateY(-1px);
}

.jdr-registration__benefits ul {
    display: grid;
    gap: 9px;

    margin: 18px 0 0;
    padding: 0;

    list-style: none;
}

.jdr-registration__benefits li {
    display: flex;
    align-items: center;
    gap: 8px;

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

    font-size: 0.7rem;
}

.jdr-registration__benefits li i {
    color: #f6bd4a;
    font-size: 0.65rem;
}


/* =========================================================
   Adaptación responsive
   ========================================================= */

@media (max-width: 900px) {

    .jdr-static-page__layout,
    .jdr-registration__layout {
        grid-template-columns: 1fr;
    }

    .jdr-static-page__sidebar,
    .jdr-registration__sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jdr-static-page__note,
    .jdr-registration__benefits {
        grid-row: span 2;
    }

}

@media (max-width: 620px) {

    .jdr-static-page,
    .jdr-registration {
        width: min(100% - 20px, 1060px);

        margin-top: 22px;
    }

    .jdr-static-page__hero,
    .jdr-registration__hero {
        grid-template-columns: 1fr;
        gap: 14px;

        padding: 22px 20px;

        border-radius: 18px;
    }

    .jdr-static-page__hero-icon,
    .jdr-registration__hero-icon {
        width: 50px;
        height: 50px;

        border-radius: 14px;
    }

    .jdr-static-page__title,
    .jdr-registration__hero h1 {
        font-size: 1.75rem;
    }

    .jdr-static-page__admin {
        justify-self: start;
    }

    .jdr-static-page__card {
        padding: 22px 19px;
    }

    .jdr-static-page__content {
        font-size: 0.86rem;
        line-height: 1.65;
    }

    .jdr-static-page__sidebar,
    .jdr-registration__sidebar {
        grid-template-columns: 1fr;
    }

    .jdr-static-page__note,
    .jdr-registration__benefits {
        grid-row: auto;
    }

    .jdr-registration__fields {
        grid-template-columns: 1fr;

        padding: 22px 19px 25px;
    }

    .jdr-registration__field--full,
    .jdr-registration__xfields {
        grid-column: auto;
    }

    .jdr-registration__card-header {
        padding: 23px 19px 20px;
    }

    .jdr-registration__username,
    .jdr-registration__captcha {
        grid-template-columns: 1fr;
    }

    .jdr-registration__check {
        width: 100%;
    }

    .jdr-registration__captcha-image img {
        width: 160px;
        height: 80px;
    }

    .jdr-registration__submit {
        align-items: stretch;
        flex-direction: column;

        padding: 19px;
    }

    .jdr-registration__submit button {
        width: 100%;
    }

}
