/* ════════════════════════════════════════════════════════════════════════════
   DRAGO · INICIAR SESIÓN Y CREAR CUENTA (Views/Accounts/Acceso + Registro)
   ────────────────────────────────────────────────────────────────────────────
   Solo se carga en esas dos vistas (todo bajo body.da-page / .da). Mismo lenguaje que
   la landing (landing.css): deep slate #0F2B3D, icy blue #7DD3F7, Manrope + Instrument
   Serif itálica para los acentos. No cambia campos, nombres ni validaciones: solo la
   presentación. Las clases auth-* / public-form-control siguen siendo las de siempre.
   ════════════════════════════════════════════════════════════════════════════ */

body.da-page {
    background:
        radial-gradient(ellipse 50% 40% at 100% 0%, rgba(125, 211, 247, 0.16), transparent 70%),
        radial-gradient(ellipse 40% 40% at 0% 100%, rgba(60, 207, 185, 0.08), transparent 70%),
        #f5f7fb;
}

body.da-page::before,
body.da-page::after {
    display: none;
}

.da {
    --da-ink: #07121c;
    --da-slate: #0f2b3d;
    --da-ice: #7dd3f7;
    --da-ice-strong: #0b6c99;
    --da-mint: #3ccfb9;
    --da-text: #0d1b26;
    --da-text-2: #45566a;
    --da-text-3: #5f6f82;
    --da-on-dark: #eef4fa;
    --da-on-dark-2: #a9bacb;
    --da-line: rgba(15, 43, 61, 0.1);
    --da-line-strong: rgba(15, 43, 61, 0.18);
    --da-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --da-num: "Space Grotesk", "Manrope", system-ui, sans-serif;
    --da-ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    width: min(1180px, 100% - 32px);
    margin: 0 auto;
    padding: clamp(1rem, 0.5rem + 1.5vw, 1.75rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem);
    color: var(--da-text);
    font-family: "Manrope", system-ui, sans-serif;
}

.da h1,
.da h2 {
    font-family: "Manrope", system-ui, sans-serif;
    margin: 0;
}

.da :where(p, ul, ol, figure) {
    margin: 0;
}

.da :where(ul, ol) {
    padding: 0;
    list-style: none;
}

.da :focus-visible {
    outline: 3px solid var(--da-ice-strong);
    outline-offset: 3px;
    border-radius: 8px;
}

/* ── Barra mínima (sin navbar de secciones, como la landing) ─────────────── */

.da-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(1.5rem, 1rem + 2.5vw, 3rem);
}

.da-bar__brand {
    display: inline-flex;
    flex-shrink: 0;
}

.da-bar__brand img {
    display: block;
    width: auto;
    height: 38px;
}

.da-bar__links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.da-bar__back,
.da-bar__alt {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.da-bar__back {
    color: var(--da-text-2);
}

.da-bar__back:hover {
    color: var(--da-text);
    background: rgba(15, 43, 61, 0.05);
}

.da-bar__alt {
    color: var(--da-text);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--da-line-strong);
}

.da-bar__alt:hover {
    color: var(--da-text);
    border-color: rgba(15, 43, 61, 0.32);
    background: #fff;
}

.da-bar__alt-q {
    font-weight: 500;
    color: var(--da-text-3);
}

@media (max-width: 639.98px) {
    .da-bar__back span,
    .da-bar__alt-q {
        display: none;
    }

    .da-bar__back {
        padding: 0;
        width: 42px;
        justify-content: center;
    }

    .da-bar__brand img {
        height: 34px;
    }
}

/* ── Composición: formulario + historia ─────────────────────────────────── */

.da-grid {
    display: grid;
    gap: 1.25rem;
}

.da-card {
    display: grid;
    align-content: start;
    gap: 1rem;
    padding: clamp(1.4rem, 1rem + 2vw, 2.6rem);
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--da-line);
    box-shadow: 0 1px 2px rgba(7, 18, 28, 0.04), 0 30px 60px -36px rgba(7, 18, 28, 0.35);
}

.da-kicker,
.da-story__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--da-num);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #4f7c8b;
}

.da-kicker::before,
.da-story__kicker::before {
    content: "";
    width: 1.5rem;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.da .da-title {
    font-size: clamp(2rem, 1.3rem + 2.4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--da-ink);
    text-wrap: balance;
}

.da-title em,
.da-story__title em {
    font-family: var(--da-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 1.08em;
    letter-spacing: -0.012em;
}

.da-title em {
    color: var(--da-ice-strong);
}

.da-lead {
    max-width: 34rem;
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--da-text-2);
}

.da-form {
    display: grid;
    gap: 0;
    margin-top: 0.5rem;
}

.da-field {
    margin-bottom: 1.05rem;
}

.da-field__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.da .form-label {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--da-text);
}

.da-optional {
    margin-left: 0.35rem;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    background: rgba(15, 43, 61, 0.06);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--da-text-3);
}

.da .public-form-control {
    min-height: 52px;
    border-radius: 14px;
    border-color: var(--da-line-strong);
    background: #fbfcfe;
    color: var(--da-text);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.da .public-form-control:focus {
    background: #fff;
    border-color: rgba(11, 108, 153, 0.6);
    box-shadow: 0 0 0 4px rgba(125, 211, 247, 0.28);
}

.da .public-form-control::placeholder {
    color: #8a99aa;
}

.da .auth-input-wrap .auth-input-icon,
.da .auth-pw-toggle {
    color: #7b8b9c;
}

.da .auth-pw-toggle {
    min-width: 40px;
    min-height: 40px;
    justify-content: center;
    border-radius: 10px;
}

.da .auth-pw-toggle:hover {
    color: var(--da-text);
}

.da .text-danger {
    color: #b42318 !important;
}

.da .auth-validation:empty,
.da .validation-summary-valid {
    display: none;
}

.da .validation-summary-errors {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: #fff4f2;
    border: 1px solid rgba(180, 35, 24, 0.2);
    font-size: 0.92rem;
}

.da .validation-summary-errors ul {
    margin: 0;
    padding-left: 1.1rem;
    list-style: disc;
}

.da-remember {
    margin: 0.15rem 0 1.4rem;
}

.da .public-check .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.15rem;
}

.da .public-check .form-check-input:checked,
.da .contract-check .form-check-input:checked {
    background-color: var(--da-slate);
    border-color: var(--da-slate);
}

.da .public-check .form-check-input:focus,
.da .contract-check .form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(125, 211, 247, 0.3);
    border-color: var(--da-ice-strong);
}

.da .public-check .form-check-label {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--da-text);
}

.da-hint {
    margin-top: 0.2rem !important;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--da-text-3);
}

.da .da-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(7, 18, 28, 0.6);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(180deg, #17405a 0%, var(--da-slate) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 28px -14px rgba(15, 43, 61, 0.75);
    font-size: 1.02rem;
    font-weight: 800;
    transition: transform 0.25s var(--da-ease), box-shadow 0.25s var(--da-ease);
}

.da .da-submit:hover,
.da .da-submit:focus-visible {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 4px rgba(125, 211, 247, 0.28), 0 18px 32px -14px rgba(15, 43, 61, 0.8);
}

.da .da-submit:disabled {
    opacity: 0.55;
    transform: none;
}

.da .da-submit .bi {
    transition: transform 0.25s var(--da-ease);
}

.da .da-submit:hover .bi {
    transform: translateX(3px);
}

.da .da-link {
    color: var(--da-ice-strong);
    font-weight: 700;
    text-decoration: none;
}

.da .da-link:hover {
    color: #08557a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.da-link--sm {
    font-size: 0.86rem;
}

.da-switch {
    padding-top: 1.1rem;
    border-top: 1px solid var(--da-line);
    text-align: center;
    font-size: 0.94rem;
    color: var(--da-text-2);
}

.da .auth-plan-pill {
    justify-self: start;
    margin: 0;
    color: var(--da-slate);
    background: rgba(125, 211, 247, 0.16);
    border-color: rgba(11, 108, 153, 0.2);
}

/* Contrato: misma información, superficie más tranquila. */
.da .contract-consent-card {
    padding: 1.15rem 1.25rem;
    border-radius: 20px;
    background: #f7f9fc;
    border: 1px solid var(--da-line);
    box-shadow: none;
}

.da .contract-consent-card .section-kicker {
    padding: 0.25rem 0.6rem;
    font-size: 0.68rem;
    color: var(--da-slate);
    background: rgba(125, 211, 247, 0.18);
    border-color: rgba(11, 108, 153, 0.16);
}

.da .contract-consent-copy h3 {
    margin: 0.7rem 0 0.35rem;
    font-family: "Manrope", system-ui, sans-serif;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--da-text);
}

.da .contract-consent-copy p {
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    line-height: 1.55;
}

.da .contract-view-link {
    color: var(--da-ice-strong);
    background: #fff;
    border-color: var(--da-line-strong);
}

.da .contract-check .form-check-label {
    font-size: 0.92rem;
    font-weight: 600;
}

.da .cf-turnstile {
    max-width: 100%;
    overflow: hidden;
}

/* ── Historia (lado oscuro) ─────────────────────────────────────────────── */

.da-story {
    position: relative;
    display: grid;
    align-content: start;
    gap: 1.25rem;
    padding: clamp(1.5rem, 1rem + 2vw, 2.6rem);
    border-radius: 28px;
    color: var(--da-on-dark);
    background:
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(125, 211, 247, 0.26), transparent 70%),
        radial-gradient(ellipse 50% 40% at 0% 100%, rgba(60, 207, 185, 0.12), transparent 70%),
        linear-gradient(165deg, #143a52, var(--da-slate) 55%, #081a26);
    overflow: hidden;
    isolation: isolate;
    --da-ice-strong: var(--da-ice);
}

.da-story__kicker {
    color: var(--da-ice);
}

.da .da-story__title {
    font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #fff;
    text-wrap: balance;
}

.da-story__title em {
    color: var(--da-ice);
}

.da-story__shot {
    display: grid;
    gap: 0.6rem;
    justify-items: start;
}

.da-story__shot img {
    display: block;
    width: min(100%, 420px);
    height: auto;
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 50px -26px rgba(0, 0, 0, 0.7);
}

.da-story__shot--card img {
    width: min(100%, 330px);
    border-radius: 20px;
    transform: rotate(-2deg);
}

.da-story__shot figcaption {
    font-size: 0.84rem;
    color: var(--da-on-dark-2);
}

.da-points {
    display: grid;
    gap: 0.9rem;
}

.da-points li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--da-on-dark-2);
}

.da-points__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(125, 211, 247, 0.12);
    border: 1px solid rgba(125, 211, 247, 0.24);
    color: var(--da-ice);
}

.da-points b,
.da-steps b {
    color: #fff;
}

.da-steps {
    display: grid;
    gap: 0.85rem;
    counter-reset: da-step;
}

.da-steps li {
    counter-increment: da-step;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--da-on-dark-2);
}

.da-steps li::before {
    content: counter(da-step);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-family: var(--da-num);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--da-ink);
    background: var(--da-ice);
}

.da-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.da-facts li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(173, 214, 240, 0.16);
    font-size: 0.82rem;
    color: var(--da-on-dark);
}

.da-facts .bi {
    color: var(--da-ice);
}

@media (min-width: 992px) {
    .da-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 1.5rem;
        align-items: stretch;
    }

    .da--register .da-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    }

    .da-story {
        align-content: center;
        gap: 1.6rem;
    }

    /* En registro la historia acompaña el scroll del formulario largo. */
    .da--register .da-story {
        position: sticky;
        top: 1.5rem;
        align-self: start;
        align-content: start;
    }
}

/* Teléfono: el formulario es lo primero; la historia se resume. */
@media (max-width: 639.98px) {
    .da-card,
    .da-story {
        border-radius: 22px;
    }

    .da-story__shot {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .da *,
    .da *::before,
    .da *::after {
        transition-duration: 0.001ms !important;
    }
}
