@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* Neutralise legacy column rules (index.css / perfil.css) */
body.m-body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}
body.m-body nav {
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
body.m-body nav .container {
    overflow: hidden;
}
body.m-body #cuerpo.m-split {
    max-width: none;
    width: 100%;
    margin: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
}
body.m-body #cuerpo.m-profile-main { max-width: 1100px; width: 100%; margin: 0 auto; }
body.m-body .m-split > .columna,
body.m-body .m-split > #columna1,
body.m-body .m-split > #columna2 {
    float: none; width: auto; margin: 0 !important; overflow: hidden;
}
body.m-body .m-split > #columna1 { padding: 60px 8%; }
body.m-body .m-split > #columna2 { padding: 0 !important; margin: 0 !important; }
body.m-body .m-split > #columna2 img { width: 100%; display: block; }
@media (max-width: 800px) {
    body.m-body .m-split > #columna1 { padding: 44px 7%; width: 100%; margin: 0 !important; }
    body.m-body .m-split > #columna2 { width: 100%; margin: 0 !important; padding: 0 !important; }
}


:root {
    --m-ink: #070b2e;
    --m-ink-2: #0d1243;
    --m-brand: #0a028c;
    --m-brand-2: #3b2fe0;
    --m-gold: #e3222b;
    --m-gold-2: #ff4b55;
    --m-cream: #eef0f3;
    --m-text: #1b1d3a;
    --m-muted: #6b6e8c;
    --m-line: rgba(10, 2, 140, .18);
}

html { scroll-behavior: smooth; }

body.m-body {
    font-family: 'Inter', sans-serif;
    background: var(--m-cream);
    color: var(--m-text);
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
}

body.m-body * { box-sizing: border-box; }
body.m-body p { max-width: none; margin: 0; }

/* ---------- NAV ---------- */
body.m-body nav {
    background: linear-gradient(100deg, var(--m-ink) 0%, var(--m-brand) 100%);
    border-bottom: none !important;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 4px 20px rgba(7, 11, 46, .25);
    margin-bottom: 0 !important;
}
body.m-body nav label {
    font: 2em/1 'Oswald', sans-serif !important;
    font-size: 32px !important;
    padding: 0.5em !important;
    color: #fff;
    line-height: 1 !important;
}
body.m-body nav img {
    float: left;
    height: 48px;
    width: auto;
    max-width: none;
    margin: 4px 8px 4px 10px;
    vertical-align: middle;
}
@media (max-width: 550px) {
    body.m-body nav label {
        font-size: 19px !important;
        padding: 0.6em 0.4em !important;
        line-height: 1.2 !important;
    }
    body.m-body nav label #menu-icon {
        font-size: 16px !important;
        margin: 0.35em 0 !important;
        max-width: 22px !important;
        width: 22px !important;
        height: 3px !important;
    }
    body.m-body nav label #menu-icon:before,
    body.m-body nav label #menu-icon:after {
        height: 3px !important;
    }
    body.m-body nav img {
        height: 34px !important;
        width: auto !important;
        margin: 5px 6px 5px 8px !important;
    }
}
body.m-body nav input:checked ~ #overlay { background: linear-gradient(160deg, var(--m-ink), var(--m-brand)); }
body.m-body nav input:checked ~ label { color: #fff; }
body.m-body nav input[type=checkbox]:checked + label #menu-icon:before,
body.m-body nav input[type=checkbox]:checked + label #menu-icon:after { background-color: var(--m-gold); }
body.m-body nav ul { font-size: 1.5em !important; }
body.m-body nav ul a { color: #fff !important; }
body.m-body nav ul a:hover { text-decoration: none; color: var(--m-gold) !important; }
body.m-body nav ul#social-media a { color: var(--m-gold) !important; }

/* ---------- FOOTER ---------- */
body.m-body footer {
    background: var(--m-ink);
    border-top: 2px solid var(--m-gold);
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

/* ---------- BUTTONS ---------- */
.m-btn,
body.m-body #boton,
body.m-body #boton_registro,
body.m-body #boton_recuperar,
body.m-body button[type='submit'],
body.m-body input[type='submit'] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    outline: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: .4px;
    padding: 15px 34px;
    color: #fff;
    background: linear-gradient(120deg, var(--m-gold), var(--m-gold-2));
    background-size: 200% auto;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(215, 25, 32, .38);
    transition: all .35s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}
.m-btn i,
body.m-body #boton i,
body.m-body #boton_registro i,
body.m-body #boton_recuperar i {
    transition: transform .3s ease;
}
.m-btn:hover,
body.m-body #boton:hover,
body.m-body #boton_registro:hover,
body.m-body #boton_recuperar:hover,
body.m-body button[type='submit']:hover,
body.m-body input[type='submit']:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 32px rgba(215, 25, 32, .55);
    background-position: right center;
    filter: brightness(1.06);
    color: #fff;
}
.m-btn:hover i,
body.m-body #boton:hover i,
body.m-body #boton_registro:hover i,
body.m-body #boton_recuperar:hover i {
    transform: translateX(4px);
}
.m-btn:active,
body.m-body #boton:active,
body.m-body #boton_registro:active,
body.m-body #boton_recuperar:active {
    transform: translateY(-1px) scale(0.99);
}
/* Loading/Waiting state */
.m-btn-loading,
body.m-body .m-btn-loading,
body.m-body #boton_registro.m-btn-loading,
body.m-body #boton_recuperar.m-btn-loading {
    pointer-events: none;
    opacity: 0.88;
    filter: grayscale(15%);
}
body.m-body #boton { margin: 10px 0; }
.m-btn--ghost {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, .7);
    box-shadow: none;
}
.m-btn--ghost:hover { background: #fff; color: var(--m-ink); box-shadow: none; }

/* ---------- HERO (index) ---------- */
.m-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    background: #070b2e;
}
.m-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 !important;
    animation: m-zoom 24s ease-in-out infinite alternate;
}
.m-hero #hero_pc {
    display: block !important;
}
.m-hero #hero_movil {
    display: none !important;
}
.m-hero::after {
    display: none;
}
.m-hero__content {
    position: relative; z-index: 2;
    width: 100%; max-width: 1200px;
    margin: 0 auto;
    padding: 0 6% 70px;
    animation: m-rise 1s ease both;
}
.m-eyebrow {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 13px;
    color: var(--m-gold);
    margin-bottom: 14px;
}
.m-hero h2, .m-hero__title {
    all: unset;
    display: block;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 7vw, 92px);
    line-height: .98;
    letter-spacing: -2px;
    color: #fff;
}
.m-hero__title em { font-style: normal; color: var(--m-gold); }
.m-hero__sub { margin-top: 18px; max-width: 560px; font-size: 18px; color: rgba(255,255,255,.82); font-weight: 300; }
.m-hero__scroll {
    margin-top: 30px; display: inline-flex; gap: 10px; align-items: center;
    color: var(--m-gold); font-family: 'Outfit', sans-serif; letter-spacing: 2px; font-size: 13px; text-transform: uppercase;
}

/* ---------- ACCESS ROWS (index, no cards) ---------- */
.m-access { max-width: 1200px; margin: 0 auto; padding: 80px 6% 90px; }
.m-access__head { margin-bottom: 40px; }
.m-access__head h2 {
    all: unset;
    display: block;
    font-family: 'Outfit', sans-serif; font-weight: 700;
    font-size: clamp(30px, 4.5vw, 54px);
    color: var(--m-ink); letter-spacing: -1px;
}
.m-access__head h2 span { color: var(--m-brand-2); background: linear-gradient(transparent 62%, rgba(215,25,32,.45) 62%); padding: 0 6px; font-size: inherit; margin: 0; }

.m-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 38px 10px;
    border-top: 1px solid var(--m-line);
    position: relative;
    transition: padding .35s ease, background .35s ease;
}
.m-row:last-child { border-bottom: 1px solid var(--m-line); }
.m-row::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
    background: linear-gradient(90deg, rgba(10,2,140,.07), transparent);
    transition: width .4s ease;
}
.m-row:hover::before { width: 100%; }
.m-row:hover { padding-left: 28px; }
.m-row__num {
    font-family: 'Outfit', sans-serif; font-weight: 800;
    font-size: 84px; line-height: 1;
    color: transparent; -webkit-text-stroke: 2px var(--m-brand);
    position: relative; z-index: 1;
}
.m-row__body { position: relative; z-index: 1; }
.m-row__body h3 { font-family: 'Outfit', sans-serif; font-size: 30px; margin: 0 0 8px; color: var(--m-ink); }
.m-row__body h3 i { color: var(--m-gold); margin-right: 10px; font-size: .8em; }
.m-row__body p { color: var(--m-muted); font-size: 16px; max-width: 560px; line-height: 1.6; }
.m-row .m-btn { position: relative; z-index: 1; }
.m-row .m-btn { background: var(--m-ink); color: #fff; box-shadow: 0 10px 24px rgba(7,11,46,.25); }
.m-row .m-btn:hover { background: var(--m-brand); color: #fff; }

/* ---------- SPLIT (login / registro) ---------- */
.m-split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: calc(100vh - 66px);
}
.m-split--rev { grid-template-columns: 1fr 1.05fr; }
.m-split--rev .m-visual { order: 2; }
.m-visual {
    position: relative; overflow: hidden;
    background: var(--m-ink);
    min-height: 280px;
}
.m-visual img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; margin: 0;
}
.m-visual #imagen_pc {
    display: block !important;
    animation: m-zoom 26s ease-in-out infinite alternate;
}
.m-visual #imagen_movil {
    display: none !important;
}
.m-visual::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(10,2,140,.45), rgba(7,11,46,.1) 55%, rgba(215,25,32,.22));
    pointer-events: none;
}
.m-visual__tag {
    position: absolute; z-index: 2; left: 8%; bottom: 7%; color: #fff;
    font-family: 'Outfit', sans-serif; font-size: clamp(20px, 2.4vw, 32px); font-weight: 600; line-height: 1.2;
    text-shadow: 0 4px 22px rgba(0,0,0,.6);
    pointer-events: none;
}
.m-visual__tag::before { content: ''; display: block; width: 60px; height: 4px; background: var(--m-gold); margin-bottom: 14px; }

.m-pane {
    display: flex; align-items: center; justify-content: center;
    padding: 60px 8%;
    background:
        radial-gradient(circle at 100% 0%, rgba(215,25,32,.14), transparent 40%),
        radial-gradient(circle at 0% 100%, rgba(59,47,224,.12), transparent 45%),
        var(--m-cream);
}
.m-pane__inner { width: 100%; max-width: 520px; animation: m-rise .9s ease both; }

/* Overrides for form markup (kept ids / classes used by scripts) */
body.m-body .form {
    display: flex; flex-direction: column; gap: 22px;
    background: transparent; padding: 0; max-width: 100%; border-radius: 0;
}
body.m-body .form .title,
.m-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 700; letter-spacing: -0.8px; line-height: 1.1;
    color: var(--m-ink);
    padding-left: 0;
    display: block; position: relative;
}
body.m-body .form .title::before { content: none; }
body.m-body .form .title::after {
    content: ''; position: static; display: block;
    width: 50px; height: 4px; margin-top: 12px; border-radius: 3px;
    background: var(--m-gold); animation: none;
}
body.m-body .form .texto { color: var(--m-muted); font-size: 15px; line-height: 1.65; text-align: left; }

body.m-body .form .flex { display: flex; width: 100%; gap: 22px; align-items: stretch; height: auto; }
body.m-body .form .flex > label { flex: 1 1 0; min-width: 0; width: auto; margin-bottom: 4px; }

body.m-body .form label { position: relative; display: block; margin-bottom: 4px; }
body.m-body .form label .input {
    width: 100%;
    padding: 24px 34px 8px 2px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: var(--m-ink);
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(7, 11, 46, .25);
    border-radius: 0;
    outline: 0;
    transition: border-color .3s ease, background-color .3s ease;
}
body.m-body .form label .input:focus { border-bottom-color: var(--m-brand-2); }
body.m-body .form label .input + span,
body.m-body .form label .input ~ span,
body.m-body .form label .input + span.m-label,
body.m-body .form label .input ~ span.m-label,
body.m-body .form label .input ~ .m-label,
body.m-body .form label span.m-label {
    position: absolute !important; left: 2px !important; top: 22px !important;
    color: var(--m-muted) !important; font-size: 15px !important; transition: all .25s ease !important; pointer-events: none !important; z-index: 1 !important;
}
body.m-body .form label .input:placeholder-shown + span,
body.m-body .form label .input:placeholder-shown ~ span,
body.m-body .form label .input:placeholder-shown + span.m-label,
body.m-body .form label .input:placeholder-shown ~ span.m-label,
body.m-body .form label .input:placeholder-shown ~ .m-label { top: 22px !important; font-size: 15px !important; font-weight: 400 !important; letter-spacing: normal !important; text-transform: none !important; color: var(--m-muted) !important; }

body.m-body .form label .input:focus + span,
body.m-body .form label .input:focus ~ span,
body.m-body .form label .input:focus + span.m-label,
body.m-body .form label .input:focus ~ span.m-label,
body.m-body .form label .input:focus ~ .m-label,
body.m-body .form label .input:not(:placeholder-shown) + span,
body.m-body .form label .input:not(:placeholder-shown) ~ span,
body.m-body .form label .input:not(:placeholder-shown) + span.m-label,
body.m-body .form label .input:not(:placeholder-shown) ~ span.m-label,
body.m-body .form label .input:not(:placeholder-shown) ~ .m-label,
body.m-body .form label .input:valid + span,
body.m-body .form label .input:valid ~ span,
body.m-body .form label .input:valid + span.m-label,
body.m-body .form label .input:valid ~ span.m-label,
body.m-body .form label .input:valid ~ .m-label,
body.m-body .form label .input[disabled] + span,
body.m-body .form label .input[disabled] ~ span,
body.m-body .form label .input[disabled] + span.m-label,
body.m-body .form label .input[disabled] ~ span.m-label,
body.m-body .form label .input[disabled] ~ .m-label,
body.m-body .form label input[type="date"].input ~ span,
body.m-body .form label input[type="date"].input + span,
body.m-body .form label input[type="date"].input ~ span.m-label,
body.m-body .form label input[type="date"].input + span.m-label {
    top: 0 !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: 1.5px !important; text-transform: uppercase !important; color: var(--m-brand-2) !important;
}
body.m-body .form label .input:valid + span.m-label,
body.m-body .form label .input:valid ~ span.m-label,
body.m-body .form label .input:valid ~ .m-label,
body.m-body .form label .input[readonly] + span.m-label,
body.m-body .form label .input[readonly] ~ span.m-label,
body.m-body .form label .input[readonly] ~ .m-label { color: var(--m-brand-2); }
body.m-body .form label select.input ~ span,
body.m-body .form label select.input + span,
body.m-body .form label select.input ~ span.m-label,
body.m-body .form label select.input + span.m-label,
body.m-body .form label select.input:focus ~ span.m-label,
body.m-body .form label select.input:valid ~ span.m-label {
    top: 0 !important; font-size: 11px !important; font-weight: 600 !important; letter-spacing: 1.5px !important; text-transform: uppercase !important; color: var(--m-brand-2) !important;
}
body.m-body .form select.input {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 32px !important;
}
body.m-body .form select.input:required:invalid { color: var(--m-muted); }
body.m-body .form select.input option { color: var(--m-ink); }

body.m-body #recuperar { color: var(--m-brand-2); font-size: 14px; text-align: right; font-weight: 500; }
body.m-body #recuperar:hover { color: var(--m-gold); }
body.m-body #boton_registro, body.m-body #boton_recuperar { width: 100%; margin-top: 8px; padding: 17px; }

/* Modal refinement */
body.m-body .modal { backdrop-filter: blur(6px); background: rgba(7, 11, 46, .65); }
body.m-body .contenido-modal { border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
body.m-body .modal-header { background: linear-gradient(100deg, var(--m-ink), var(--m-brand)); padding: 16px 22px; }
body.m-body .modal-body { padding: 28px 24px; background: var(--m-cream); }
body.m-body #titulo_model { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 22px; }
body.m-body .close { color: var(--m-gold); }

/* ---------- PROFILE (timeline, no cards) ---------- */
.m-profile-hero {
    position: relative; overflow: hidden; color: #fff;
    min-height: 380px; display: flex; align-items: flex-end;
    background: #070b2e;
}
.m-profile-hero img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 30%; margin: 0;
    animation: m-zoom 26s ease-in-out infinite alternate;
}
.m-profile-hero::after {
    display: none;
}
.m-profile-hero__txt { position: relative; z-index: 2; width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 6% 44px; }
body.m-body .m-profile-hero h1 {
    font-family: 'Outfit', sans-serif; font-weight: 800; text-align: left;
    font-size: clamp(38px, 6vw, 76px); letter-spacing: -2px; line-height: 1;
    color: #fff; margin: 0;
}
.m-profile-main { max-width: 1100px; margin: 0 auto; padding: 60px 6% 80px; display: grid; grid-template-columns: 1fr; gap: 20px; }
.m-lead { font-size: 19px; line-height: 1.7; color: var(--m-text); max-width: 760px; }
.m-lead b { color: var(--m-brand); }
.m-steps { list-style: none; margin: 30px 0 10px; padding: 0 0 0 0; position: relative; counter-reset: paso; max-width: 760px; width: 100%; box-sizing: border-box; }
.m-steps::before {
    content: ''; position: absolute; left: 27px; top: 10px; bottom: 35px; width: 3px;
    background: linear-gradient(var(--m-gold), var(--m-brand-2)); border-radius: 3px;
}
.m-steps li {
    position: relative; counter-increment: paso;
    padding: 6px 0 30px 86px; font-size: 17px; line-height: 1.65; color: var(--m-text);
    max-width: 760px; width: 100%; box-sizing: border-box; transition: transform .3s ease;
}
.m-steps li:last-child {
    padding-bottom: 10px;
}
.m-steps li:hover { transform: translateX(8px); }
.m-steps li::before {
    content: counter(paso);
    position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 22px;
    background: var(--m-ink); color: var(--m-gold);
    border: 3px solid var(--m-cream);
    box-shadow: 0 0 0 2px var(--m-gold);
}
.m-closing { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 600; color: var(--m-ink); margin-top: 6px; }
.m-action { margin-top: 25px; margin-bottom: 25px; text-align: center; display: flex; justify-content: center; width: 100%; }
.m-action center { text-align: center; display: inline-block; }
.m-action #btn_abrir_verificar { margin: 0 auto; display: inline-flex; align-items: center; justify-content: center; }

.m-done {
    margin-top: 10px; padding: 30px 0 30px 28px;
    border-left: 6px solid var(--m-gold);
}
.m-note {
    margin-top: 30px; padding: 24px 28px;
    background: linear-gradient(100deg, var(--m-ink), var(--m-brand)); color: #fff;
    font-size: 16px; line-height: 1.7; border-radius: 4px 40px 4px 40px;
}
.m-note b { color: var(--m-gold); }
.m-receipt-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; margin: 24px auto 10px; width: 100%; }
.m-receipt-wrap center { display: block; text-align: center; width: 100%; }
.m-receipt-wrap a { display: inline-block; }

/* ---------- HERO full width fix ---------- */
.m-hero { width: 100%; }
.m-hero picture { display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
body.m-body .m-hero__bg {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important; height: 100% !important;
    max-width: none !important;
    object-fit: cover; object-position: center;
}
.m-eyebrow, .m-hero__title em, .m-hero__scroll, .m-visual__tag::before { color: var(--m-gold-2); }
.m-visual__tag::before { background: var(--m-gold-2); }
.m-note b, .m-profile-hero .m-eyebrow { color: var(--m-gold-2); }
.m-row__body h3 i { color: var(--m-gold); }
.m-steps li::before { color: #fff; background: var(--m-gold); box-shadow: 0 0 0 2px var(--m-ink); }

/* ---------- GENDER TOGGLE ---------- */
.m-gender__label {
    display: block; margin-bottom: 10px;
    font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--m-brand-2);
}
.m-gender__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
body.m-body .form label.m-gender__opt { display: block; cursor: pointer; position: relative; }
.m-gender__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.m-gender__box {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 16px 10px; border-radius: 14px;
    border: 2px solid rgba(7,11,46,.2); background: rgba(255,255,255,.6);
    font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 18px; color: var(--m-ink);
    transition: all .25s ease;
}
.m-gender__box i { font-size: 22px; color: var(--m-muted); transition: color .25s ease; }
.m-gender__opt:hover .m-gender__box { border-color: var(--m-brand-2); transform: translateY(-2px); }
.m-gender__opt input:checked + .m-gender__box {
    background: linear-gradient(120deg, var(--m-brand), var(--m-brand-2)); color: #fff;
    border-color: transparent; box-shadow: 0 10px 22px rgba(10,2,140,.3);
}
.m-gender__opt input:checked + .m-gender__box i { color: #fff; }
.m-gender__opt input:focus-visible + .m-gender__box { outline: 3px solid var(--m-gold); outline-offset: 2px; }
body.m-body .form .flex select.input:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- NEUTRAL BACKGROUND ---------- */
body.m-body { background: linear-gradient(180deg, #ffffff 0%, #eceef1 100%); background-attachment: fixed; }
body.m-body .m-pane {
    background:
        radial-gradient(circle at 100% 0%, rgba(120,126,140,.16), transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(255,255,255,.9), transparent 50%),
        linear-gradient(180deg, #ffffff, #eceef1);
}
body.m-body .modal-body { background: #f4f5f7; }
body.m-body .m-gender__box { background: #fff; }

/* ---------- FORGOT PASSWORD LINK ---------- */
body.m-body a.m-forgot {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-radius: 14px;
    background: #fff; border: 1px dashed rgba(7,11,46,.28);
    color: var(--m-ink); font-family: 'Outfit', sans-serif;
    transition: all .25s ease;
}
body.m-body a.m-forgot .m-forgot__ico {
    flex: 0 0 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(227,34,43,.1); color: var(--m-gold); font-size: 16px;
    transition: all .25s ease;
}
body.m-body a.m-forgot strong { display: block; font-size: 15px; font-weight: 600; }
body.m-body a.m-forgot small { display: block; font-size: 13px; color: var(--m-muted); font-weight: 400; }
body.m-body a.m-forgot .m-forgot__arrow { margin-left: auto; color: var(--m-muted); transition: transform .25s ease; }
body.m-body a.m-forgot:hover { border-style: solid; border-color: var(--m-gold); box-shadow: 0 10px 24px rgba(7,11,46,.08); transform: translateY(-2px); }
body.m-body a.m-forgot:hover .m-forgot__ico { background: var(--m-gold); color: #fff; }
body.m-body a.m-forgot:hover .m-forgot__arrow { transform: translateX(4px); color: var(--m-gold); }

/* ---------- RECOVER MODAL ---------- */
body.m-body .contenido-modal { width: 560px; max-width: 92%; border-radius: 22px; }
body.m-body .modal-header { padding: 22px 28px; position: relative; }
body.m-body .modal-header::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, var(--m-gold), var(--m-gold-2));
}
body.m-body #titulo_model { font-size: 24px; color: #fff; }
body.m-body .modal-body { padding: 34px 32px 36px; }
.m-modal-ico {
    width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--m-gold), var(--m-gold-2)); color: #fff; font-size: 26px;
    box-shadow: 0 12px 26px rgba(227,34,43,.35);
}
body.m-body .modal-body .form .texto { text-align: center; font-size: 15px; }
body.m-body .close { font-size: 34px; line-height: 1; transition: transform .2s ease; }
body.m-body .close:hover { color: #fff; transform: rotate(90deg); }

/* ---------- ALERTS (alertify) ---------- */
body.m-body .alertify .ajs-dialog {
    border-radius: 22px; overflow: hidden; max-width: 520px;
    box-shadow: 0 30px 80px rgba(7,11,46,.45); font-family: 'Inter', sans-serif;
    animation: none !important;
}
body.m-body .alertify .ajs-header {
    background: linear-gradient(100deg, var(--m-ink), var(--m-brand)); color: #fff;
    font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 20px;
    padding: 20px 26px; border: none; border-bottom: 4px solid var(--m-gold);
}
body.m-body .alertify .ajs-body .ajs-content { padding: 26px; color: var(--m-text); font-size: 15.5px; line-height: 1.65; }
body.m-body .alertify .ajs-footer { background: #f4f5f7; border-top: 1px solid rgba(7,11,46,.08); padding: 14px 18px; }
body.m-body .alertify .ajs-footer .ajs-buttons .ajs-button {
    font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 15px;
    padding: 11px 26px; border-radius: 999px; margin: 0 4px; min-width: 110px;
    text-transform: none; transition: all .25s ease;
}
body.m-body .alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok {
    background: linear-gradient(120deg, var(--m-gold), var(--m-gold-2)); color: #fff;
    box-shadow: 0 8px 18px rgba(227,34,43,.32);
}
body.m-body .alertify .ajs-footer .ajs-buttons .ajs-button.ajs-ok:hover { transform: translateY(-2px); filter: brightness(1.06); }
body.m-body .alertify .ajs-footer .ajs-buttons .ajs-button.ajs-cancel { background: #fff; color: var(--m-ink); border: 1px solid rgba(7,11,46,.25); }
body.m-body .alertify .ajs-footer .ajs-buttons .ajs-button.ajs-cancel:hover { background: var(--m-ink); color: #fff; }
body.m-body .alertify .ajs-commands button { background-color: transparent; }
body.m-body .alertify-notifier .ajs-message {
    width: 300px; text-align: left; font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 500;
    padding: 16px 20px 16px 24px; border-radius: 14px; color: #fff;
    border-left: 6px solid rgba(255,255,255,.7); box-shadow: 0 14px 32px rgba(7,11,46,.3);
}
body.m-body .alertify-notifier .ajs-message.ajs-error { background: linear-gradient(120deg, #c4151c, #e3222b); color: #fff; }
body.m-body .alertify-notifier .ajs-message.ajs-success { background: linear-gradient(120deg, #138a4d, #22b86a); color: #fff; }
body.m-body .alertify-notifier .ajs-message.ajs-warning { background: linear-gradient(120deg, #3b2fe0, #0a028c); color: #fff; }

/* ---------- EXTRANJERO TOGGLE ---------- */
.m-foreign {
    display: flex; align-items: center; gap: 14px; cursor: pointer;
    padding: 14px 16px; border-radius: 14px; background: #fff;
    border: 2px solid rgba(7,11,46,.2); transition: all .25s ease;
    font-family: 'Outfit', sans-serif; color: var(--m-ink);
}
body.m-body .form label.m-foreign { display: flex; }
.m-foreign input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.m-foreign__switch {
    flex: 0 0 46px; height: 26px; border-radius: 999px; background: #c7cad3; position: relative; transition: background .25s ease;
}
.m-foreign__switch::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .25s ease;
}
.m-foreign__txt strong { display: block; font-size: 16px; font-weight: 600; }
.m-foreign__txt small { display: block; font-size: 13px; color: var(--m-muted); font-family: 'Inter', sans-serif; }
.m-foreign:hover { border-color: var(--m-brand-2); }
.m-foreign input:checked ~ .m-foreign__switch { background: var(--m-gold); }
.m-foreign input:checked ~ .m-foreign__switch::after { transform: translateX(20px); }
.m-foreign input:focus-visible ~ .m-foreign__switch { outline: 3px solid var(--m-brand-2); outline-offset: 2px; }

/* ---------- MODAL OVERLAY & BOX (MODERNO) ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 11, 46, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: none;
    padding: 30px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.activo {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 1;
}

.modal-box {
    background: #ffffff;
    width: 100%;
    max-width: 700px;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(7, 11, 46, 0.25);
    border: 1px solid rgba(10, 2, 140, 0.08);
    padding: 36px 42px;
    position: relative;
    max-height: none;
    overflow: visible;
    margin: auto 0;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal-overlay.activo .modal-box {
    transform: translateY(0) scale(1);
}

.modal-cerrar {
    position: absolute;
    top: 20px;
    right: 22px;
    background: rgba(7, 11, 46, 0.06);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 18px;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-cerrar:hover {
    background: #e3222b;
    color: #fff;
    transform: rotate(90deg);
}

.modal-header-moderno {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

.modal-header-moderno h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #070b2e;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.modal-header-moderno p {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    color: var(--m-muted);
    margin: 0;
}

/* Validación y sugerencias */
.sugerencia-cui-alerta,
.sugerencia-correo-alerta,
.sugerencia-telefono-alerta,
.sugerencia-fecha-alerta {
    display: none;
    background: #d82b35;
    color: #ffffff;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
    z-index: 10;
    box-shadow: 0 6px 18px rgba(7, 11, 46, 0.25);
    box-sizing: border-box;
    margin-top: 8px;
    margin-bottom: 4px;
    clear: both;
    cursor: pointer;
}

.sugerencia-cui-alerta b,
.sugerencia-correo-alerta b,
.sugerencia-telefono-alerta b,
.sugerencia-fecha-alerta b {
    color: #ffcdd2;
}

.input-error {
    border-bottom-color: #e3222b !important;
    background: rgba(227, 34, 43, 0.05) !important;
}

.input-success {
    border-bottom-color: #22b86a !important;
}

.reg-check-icon,
body.m-body .form label .reg-check-icon,
.modal-box .form label .reg-check-icon {
    position: absolute !important;
    right: 8px !important;
    bottom: 8px !important;
    top: auto !important;
    left: auto !important;
    width: 22px !important;
    height: 22px !important;
    color: #22b86a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: none !important;
    z-index: 10 !important;
    opacity: 0;
    margin: 0 !important;
    transform: scale(0.4) rotate(-20deg);
    transition: opacity .3s cubic-bezier(.34, 1.56, .64, 1), transform .35s cubic-bezier(.34, 1.56, .64, 1) !important;
}

.reg-check-icon.activo,
body.m-body .form label .reg-check-icon.activo,
.modal-box .form label .reg-check-icon.activo {
    opacity: 1 !important;
    transform: scale(1) rotate(0deg) !important;
}

.reg-check-icon svg,
body.m-body .form label .reg-check-icon svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #22b86a !important;
    filter: drop-shadow(0 2px 4px rgba(34, 184, 106, 0.25)) !important;
}

body.m-body .form label .input {
    padding-right: 42px !important;
}

/* Evitar que labels flotantes en campos llenos queden a la par o encima del check o texto */
body.m-body .form label .input:not(:placeholder-shown) ~ span.m-label,
body.m-body .form label .input:focus ~ span.m-label,
body.m-body .form label .input:valid ~ span.m-label,
body.m-body .form label .input[disabled] ~ span.m-label {
    top: 0 !important;
    left: 2px !important;
    font-size: 11px !important;
}

@media (max-width: 600px) {
    .modal-box {
        padding: 26px 18px;
        border-radius: 20px;
    }
    .modal-header-moderno h3 {
        font-size: 22px;
    }
}

/* ---------- ANIMATIONS ---------- */
@keyframes m-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes m-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 800px) {
    .m-split, .m-split--rev { grid-template-columns: 1fr; min-height: 0; }
    .m-split--rev .m-visual { order: 0; }
    .m-visual {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        position: relative;
        line-height: 0;
        background: #000;
    }
    .m-visual::after, .m-visual__tag { display: none !important; }
    .m-visual #imagen_pc { display: none !important; }
    .m-visual #imagen_movil {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        margin: 0 !important;
    }
    .m-pane { padding: 30px 18px 46px; }
    .m-pane__inner { max-width: 100%; }
    body.m-body .form { gap: 18px; }
    body.m-body .form .title { display: none !important; }
    body.m-body .form .texto { font-size: 14px; line-height: 1.55; }
    /* Hero index en móviles */
    .m-hero {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        display: block !important;
        overflow: hidden !important;
        background: #070b2e !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
    }
    .m-hero::after {
        display: none !important;
    }
    .m-hero #hero_pc {
        display: none !important;
    }
    .m-hero #hero_movil {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        animation: none !important;
        margin: 0 !important;
    }

    /* Rediseño moderno para las 2 secciones de acceso en móvil (sin números 01/02) */
    .m-access {
        padding: 40px 18px 60px !important;
    }
    .m-row__num {
        display: none !important;
    }
    .m-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 18px !important;
        background: #ffffff !important;
        border-radius: 20px !important;
        padding: 24px 20px !important;
        margin-bottom: 20px !important;
        border: 1px solid rgba(10, 2, 140, 0.08) !important;
        box-shadow: 0 10px 30px rgba(7, 11, 46, 0.07) !important;
        transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    }
    .m-row:last-child {
        margin-bottom: 0 !important;
        border-bottom: 1px solid rgba(10, 2, 140, 0.08) !important;
    }
    .m-row::before {
        display: none !important;
    }
    .m-row__body h3 {
        font-family: 'Outfit', sans-serif !important;
        font-size: 22px !important;
        font-weight: 700 !important;
        margin: 0 0 10px 0 !important;
        color: var(--m-ink) !important;
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .m-row__body h3 i {
        font-size: 20px !important;
        color: var(--m-gold) !important;
        background: rgba(227, 34, 43, 0.1) !important;
        width: 40px !important;
        height: 40px !important;
        border-radius: 12px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    .m-row__body p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        color: var(--m-muted) !important;
        margin: 0 !important;
    }
    .m-row .m-btn {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        justify-content: center !important;
        border-radius: 14px !important;
        box-sizing: border-box !important;
        margin-top: 4px !important;
    }
    body.m-body .form .flex,
    .flex#contenedor_ubicacion {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
        width: 100% !important;
        height: auto !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
    }
    body.m-body .form .flex > label,
    #contenedor_ubicacion > label {
        width: 100% !important;
        flex: 1 1 100% !important;
        display: block !important;
        margin: 0 !important;
    }
    .m-gender__opts { gap: 10px; width: 100%; }
    .m-gender__box { padding: 12px 8px; font-size: 16px; border-radius: 12px; }
    .m-gender__box i { font-size: 18px; }
    .m-foreign { padding: 12px 14px; border-radius: 12px; width: 100%; box-sizing: border-box; }
    .m-foreign__txt strong { font-size: 15px; }
    .m-foreign__txt small { font-size: 12px; }
    .m-btn, body.m-body #boton_registro { width: 100%; }
    .m-steps { max-width: 100% !important; }
    .m-steps::before {
        bottom: 30px !important;
    }
    .m-steps li { padding-left: 74px; }
    .m-steps li:last-child {
        padding-bottom: 0 !important;
    }
    .m-profile-hero {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        display: block !important;
        overflow: hidden !important;
        background: #070b2e !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0 !important;
    }
    .m-profile-hero::after {
        display: none !important;
    }
    .m-profile-hero img {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        object-fit: contain !important;
        animation: none !important;
        margin: 0 !important;
    }

    /* Alertify en móviles */
    body.m-body .alertify .ajs-dialog {
        max-width: 92% !important;
        margin: 20px auto !important;
        border-radius: 18px !important;
    }
    body.m-body .alertify .ajs-header {
        padding: 14px 18px !important;
        font-size: 18px !important;
    }
    body.m-body .alertify .ajs-body .ajs-content {
        padding: 18px !important;
        font-size: 14.5px !important;
    }
    body.m-body .alertify .ajs-footer {
        padding: 10px 14px !important;
    }
    body.m-body .alertify .ajs-footer .ajs-buttons .ajs-button {
        padding: 9px 20px !important;
        font-size: 14px !important;
    }
}

/* Alertify siempre encima de modales */
.alertify {
    z-index: 100000 !important;
}
.alertify .ajs-dimmer {
    z-index: 99999 !important;
}
.alertify .ajs-modal {
    z-index: 100000 !important;
}
