﻿/* ── Variables de diseño ── */
:root {
    --navy: #5a3253;
    --navy-mid: #6a3b61;
    --navy-light: #b874b1;
    --gold: #e3c3df;
    --gold-light: #d0a1ca;
    --gold-pale: #fdf3dc;
    --bg: #f0f2f7;
    --card: #ffffff;
    --text: #1a2440;
    --text-muted: #6b7a99;
    --border: #d4dae8;
    --success: #1a7a4a;
    --danger: #c0392b;
    --shadow-sm: 0 2px 12px rgba(13,33,71,.07);
    --shadow-md: 0 6px 28px rgba(13,33,71,.13);
    --shadow-lg: 0 12px 48px rgba(13,33,71,.18);
    --radius: 14px;
    --radius-sm: 8px;
    --transition: .35s cubic-bezier(.4,0,.2,1);
    --req: #E53E6D;
    --blue-soft: #6f8fb8;
}

/* ── Reset & Base ── */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg);
    background-image: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(22,50,105,.12) 0%, transparent 70%), url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230d2147' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: var(--text);
    min-height: 100vh;
    padding: 0 0 60px;
}

/* ── Cabecera institucional ── */
.inst-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 55%, var(--navy-light) 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: 0px 0px 15px 15px;
}

    .inst-header::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%23ffffff' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E") repeat;
        pointer-events: none;
    }

    .inst-header .gold-bar {
        height: 5px;
        background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    }

    .inst-header .header-inner {
        display: flex;
        align-items: center;
        gap: 24px;
        padding: 22px 40px;
    }

/* ── Logo placeholder ── */
.logo-box {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: rgba(255,255,255,.1);
    border: 2px dashed rgba(200,153,42,.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 4px;
}

    .logo-box i {
        font-size: 26px;
        color: var(--gold-light);
        opacity: .7;
    }

    .logo-box span {
        font-size: 9px;
        color: rgba(255,255,255,.5);
        letter-spacing: .5px;
        text-transform: uppercase;
    }

.inst-info {
    flex: 1;
}

    .inst-info .badge-level {
        display: inline-block;
        /* background: rgba(200,153,42,.2);
        border: 1px solid rgba(200,153,42,.4);*/
        color: var(--gold-light);
        font-size: 16px;
        letter-spacing: 2px;
        /*text-transform: uppercase;*/
        /*padding: 3px 10px;*/
        border-radius: 20px;
        /*margin-bottom: 6px;*/
        font-weight: 600;
    }

    .inst-info h1 {
        font-family: 'Playfair Display', serif;
        font-size: clamp(18px, 3vw, 26px);
        font-weight: 700;
        color: #fff;
        margin: 0 0 4px;
        line-height: 1.2;
        letter-spacing: .2px;
    }

    .inst-info p {
        font-size: 12.5px;
        color: rgba(255,255,255,.55);
        margin: 0;
        letter-spacing: .3px;
    }

.inst-header .anio-tag {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.7);
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 30px;
    white-space: nowrap;
}

/* ── Banner título del formulario ── */
.form-banner {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    text-align: center;
    padding: 10px 20px;
}

    .form-banner span {
        font-family: 'Playfair Display', serif;
        font-size: 14px;
        font-weight: 700;
        color: var(--navy);
        letter-spacing: 3px;
        text-transform: uppercase;
    }

/* ── Contenedor principal  36 ── */
.wizard-wrapper {
    max-width:  1560px;
    margin: 20px auto 0;
    padding: 0 16px;
}

/* ── Stepper horizontal ── */
.stepper {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px 32px 20px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
}

.stepper-track {
    display: flex;
    align-items: flex-start;
    position: relative;
}

   
    .stepper-track::before {
        content: '';
        position: absolute;
        top: 22px;
        left: calc(12.5% + 11px);
        right: calc(12.5% + 11px);
        height: 2px;
        background: var(--border);
        z-index: 0;
    }

/* Línea de progreso (dorada) */
/*.stepper-track::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 23px;
    width: calc(100% - 46px);
    height: 2px;
    background: var(--border);
    z-index: 1;
}
*/

.stepper-progress-line {
    position: absolute;
    top: 22px;
    left: 23px;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    z-index: 1;
    transition: width var(--transition);
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    cursor: default;
}

.step-bubble {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

    .step-bubble .check-icon {
        display: none;
    }

/* Paso completado */
.step-item.completed .step-bubble {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
}

    .step-item.completed .step-bubble .step-num {
        display: none;
    }

    .step-item.completed .step-bubble .check-icon {
        display: block;
        font-size: 18px;
    }

/* Paso activo */
.step-item.active .step-bubble {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-color: var(--gold);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(200,153,42,.2), 0 4px 16px rgba(13,33,71,.3);
    transform: scale(1.1);
}

.step-label {
    margin-top: 10px;
    text-align: center;
}

    .step-label .step-title {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: .8px;
        transition: color var(--transition);
    }

    .step-label .step-sub {
        display: block;
        font-size: 10.5px;
        color: #aab;
        margin-top: 2px;
    }

.step-item.active .step-title {
    color: var(--navy);
}

.step-item.completed .step-title {
    color: var(--success);
}

/* ── Tarjeta de paso ── */
.step-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    overflow: hidden;
    display: none;
    animation: slideIn var(--transition) both;
}

    .step-card.active {
        display: block;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-card.slide-out {
    animation: slideOut var(--transition) both;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-14px);
    }
}

/* ── Encabezado de tarjeta ── */
/*.card-header-custom {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 22px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}*/
.card-header-custom {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 22px 32px;
    /*display: flex;*/
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    display: none;
}

.header-main {
    display: flex;
    align-items: center;
    gap: 16px;
}


.card-header-custom .step-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    /*background: rgba(200,153,42,.18);*/
    /*border: 1px solid rgba(200,153,42,.35);          22*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    color: #ffffff ;/*var(--gold-light);*/
    flex-shrink: 0;
}

    .card-header-custom h2 {
        font-family: 'Playfair Display', serif;
        font-size: 20px;
        font-weight: 700;
        color: #fff;
        margin: 0 0 3px;
    }

    .card-header-custom p {
        font-size: 12.5px;
        color: rgba(255,255,255,.5);
        margin: 0;
    }

.card-step-badge {
    margin-left: auto;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.6);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {

   /* .card-header-custom {
        flex-wrap: wrap;
    }*/

    .header-main {
        width: 100%;
    }

    .card-step-badge {
        display: none;
        /* margin-left: 0;
        margin-top: 10px;
        width: fit-content;
        white-space: nowrap;*/
    }
}

/* ── Cuerpo de tarjeta ── */
.card-body-custom {
    padding: 32px;
}

/* ── Sección de grupo ── */
.section-group {
    margin-bottom: 32px;
}

    .section-group:last-child {
        margin-bottom: 0;
    }

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    /*padding-bottom: 12px;*/
    /*border-bottom: 2px solid var(--border);  */
}

    .section-title .section-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--gold), var(--gold-light));
        flex-shrink: 0;
        box-shadow: 0 0 0 3px rgba(200,153,42,.18);
    }

    .section-title h3 {
        /*font-family: 'Playfair Display', serif;*/
        font-size: 15px;
        font-weight: 600;
        color: var(--navy);
        margin: 0;
        letter-spacing: .2px;
        font-weight: bold ;
    }

    .section-title .section-line {
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, var(--border), transparent);
    }

/* ── Labels e Inputs ── */
.form-label {
    font-size: 12px;
    font-weight: 500;
    /*color: var(--text);*/
    color: rgba(0,0,0,0.45);
    /*text-transform: uppercase;*/
    /*letter-spacing: .7px; */
    margin-bottom: 0rem !important;
    display: flex;
    align-items: center;
    /*gap: 4px;*/
}

    .form-label .req {
        color: var(--req);
        font-size: 16px;
        line-height: 1;
    }

.form-label {
    /* margin-bottom: .5rem; */
}

.form-control,
.form-select {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text);
    background: #fafbfd;
    transition: border-color .2s, box-shadow .2s, background .2s;
    height: auto;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--navy-light);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(30,64,128,.1);
        outline: none;
    }

    .form-control.is-invalid,
    .form-select.is-invalid {
        border-color: var(--danger);
        background: #fff8f7;
    }

        .form-control.is-invalid:focus,
        .form-select.is-invalid:focus {
            box-shadow: 0 0 0 3px rgba(192,57,43,.1);
        }

.invalid-feedback {
    font-size: 11.5px;
    color: var(--danger);
    margin-top: 4px;
    display: none;
}

.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback {
    display: block;
}


/* ── Switch "Misma dirección" ── */
.address-switch-card {
    background: linear-gradient(135deg, var(--gold-pale), #fff);
    border: 1.5px solid rgba(200,153,42,.3);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

    .address-switch-card .sw-text h4 {
        font-size: 13.5px;
        font-weight: 700;
        color: var(--navy);
        margin: 0 0 2px;
    }

    .address-switch-card .sw-text p {
        font-size: 11.5px;
        color: var(--text-muted);
        margin: 0;
    }

.apoderado-switch-card {
    background: linear-gradient( 135deg, rgba(184,116,177,.14), rgba(109,136,182,.12) );
    border: 1.5px solid rgba(200,153,42,.3);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
    .apoderado-switch-card .sw-text h4 {
        font-size: 13.5px;
        font-weight: 700;
        color: var(--navy);
        margin: 0 0 2px;
    }

    .apoderado-switch-card .sw-text p {
        font-size: 11.5px;
        color: var(--text-muted);
        margin: 0;
    }


/* Bootstrap switch personalizado */
/*.form-check-input[type="checkbox"].switch-gold {
    width: 48px;
    height: 26px;
    border-radius: 13px;
    border: 2px solid var(--border);
    background-color: var(--bg);
    cursor: pointer;
    flex-shrink: 0;
}

    .form-check-input[type="checkbox"].switch-gold:checked {
        background-color: var(--gold);
        border-color: var(--gold);
    }*/
.form-switch .form-check-input.switch-gold {
    width: 48px;
    height: 26px;
    cursor: pointer;
    background-color: var(--bg);
    border: 2px solid var(--border);
    box-shadow: none;
    transition: .25s ease;
}
    .form-switch .form-check-input.switch-gold:checked {
        background-color: var(--navy-mid);
        border-color: var(--gold);
    }

   /* .form-switch .form-check-input.switch-gold:focus {
        border-color: #cbd5e1;
        box-shadow: none;

        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23f0f2f7'/%3e%3c/svg%3e");
    }*/
    

/* Sección de dirección colapsable */
/*.address-section {
    transition: opacity .3s, max-height .4s;
    overflow: hidden;
    max-height: 600px;
    opacity: 1;
}

    .address-section.hidden-addr {
        max-height: 0;
        opacity: 0;
        pointer-events: none;
    }*/
.address-section {
    transform-origin: top;
    transform: scaleY(1);
    opacity: 1;
    transition: transform .3s ease, opacity .3s ease;
}

    .address-section.hidden-addr {
        transform: scaleY(0);
        opacity: 0;
        height: 0;
        overflow: hidden;
        pointer-events: none;
    }

/* Bloque "misma dirección" mensaje */
.same-addr-notice {
    display: none;
    background: rgba(26,122,74,.07);
    border: 1px solid rgba(26,122,74,.2);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    color: var(--success);
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

    .same-addr-notice.show {
        display: flex;
    }

/* ── Footer con botones ── */
.card-footer-custom {
    background: #f7f8fc;
    border-top: 1.5px solid var(--border);
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: .4px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-prev {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-muted);
}

    .btn-prev:hover {
        border-color: var(--navy);
        color: var(--navy);
        background: rgba(13,33,71,.04);
    }

.btn-next {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(13,33,71,.25);
}

    .btn-next:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 24px rgba(13,33,71,.35);
    }

    .btn-next:active {
        transform: translateY(0);
    }

.btn-submit {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy);
    box-shadow: 0 4px 18px rgba(200,153,42,.35);
}

    .btn-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 24px rgba(200,153,42,.5);
    }

.step-counter-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

/* ── Toast de éxito ── */
/*.success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13,33,71,.6);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

    .success-overlay.show {
        display: flex;
    }

.success-card {
    background: var(--card);
    border-radius: 20px;
    padding: 50px 48px;
    text-align: center;
    max-width: 440px;
    width: 90%;
    animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(.7);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.success-card .check-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #22a060);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 36px;
    color: #fff;
    box-shadow: 0 8px 28px rgba(26,122,74,.35);
}

.success-card h3 {
    font-size: 24px;
    color: var(--navy);
    margin-bottom: 10px;
   font-weight: bold;
}

.success-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}*/

.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 20, 0.55);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1080;
    padding: 16px;
}
.success-overlay.show { display: flex; }

.success-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    padding: 34px 24px 24px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(90, 50, 83, .25);
    animation: successPop .3s ease;
    max-height: 90vh;
    overflow-y: auto;
}


@keyframes successPop {
    from { opacity: 0; transform: scale(.94) translateY(8px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.success-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #9b8b98;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    line-height: 1;
}
.success-close:hover { color: var(--navy, #5a3253); }

.check-circle {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--navy, #5a3253);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin: 0 auto 14px;
}

.success-card h3 {
    color: #3a2138;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.success-subtext {
    color: #6b5a68;
    font-size: .9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.deadline-alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff4d6;
    color: #8a5d00;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: .85rem;
    margin-bottom: 12px;
}
/*
.token-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #9b8b98;
    font-size: .76rem;
    margin-bottom: 16px;
}
.token-mini strong {
    color: var(--navy, #5a3253);
    font-family: 'Courier New', monospace;
    letter-spacing: .5px;
}
.btn-copy-mini {
    border: none;
    background: transparent;
    color: #9b8b98;
    cursor: pointer;
    padding: 2px 4px;
    font-size: .82rem;
}
.btn-copy-mini:hover { color: var(--navy, #5a3253); }
*/



.link-copy-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9b8b98;
    font-size: .78rem;
    margin-bottom: 18px;
    margin-top: 10px;
}

    .link-copy-row > i {
        font-size: .9rem;
    }

.btn-copy-link {
    border: none;
    /*background: var(--gold, #e3c3df);*/
    color: var(--navy, #5a3253);
    cursor: pointer;
    padding: 4px 10px;
    font-size: .76rem;
    font-weight: 600;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

    .btn-copy-link:hover {
        background: #d9b0d4;
    }



.docs-required {
    background: #faf5f9;
    border: 1px solid #ecdcea;
    border-radius: 10px;
    padding: 12px 14px;
    text-align: left;
    margin-bottom: 20px;
}
.docs-required strong {
    /*display: block;*/
    color: var(--navy, #5a3253);
    font-size: .82rem;
    margin-bottom: 4px;
}
.docs-required p {
    color: #75636f;
    font-size: .78rem;
    line-height: 1.45;
    margin: 0;
}

.success-actions { display: flex; gap: 10px; }

.btn-success-secondary,
.btn-success-primary {
    flex: 1;
    border-radius: 10px;
    padding: 11px 12px;
    font-size: .9rem;
    font-weight: 600;
    border: none;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-success-secondary {
    background: var(--gold, #e3c3df);
    color: var(--navy, #5a3253);
}
.btn-success-secondary:hover { background: #d9b0d4; }

.btn-success-primary {
    background: var(--navy, #5a3253);
    color: #fff;
}
.btn-success-primary:hover { background: #46273f; color: #fff; }

@media (max-width: 480px) {
    .success-card { padding: 28px 18px 18px; border-radius: 14px; }
    .success-actions { flex-direction: column; }
    .check-circle { width: 54px; height: 54px; font-size: 1.5rem; }
}

/* ── Nota de campos requeridos ── */
.required-note {
    font-size: 12px;
    color: var(--text-muted);
    padding: 14px 32px;
    background: #f7f8fc;
    border-top: 1px solid var(--border);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .inst-header .header-inner {
        padding: 10px 20px;
        gap: 14px;
    }

    .inst-info h1 {
        font-size: 22px;
    }

    .inst-header .anio-tag {
        display: none;
    }

    .card-header-custom {
        display: flex;
        padding: 18px 20px;
        flex-wrap: wrap;
    }

    .card-body-custom {
        padding: 20px;
    }

    .card-footer-custom {
        padding: 16px 20px;
    }

    .stepper {
        padding: 16px;
    }

    .step-label .step-sub {
        display: none;
    }

    .step-bubble {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    
    /*.stepper-track::before {
        top: 17px;
    }

    .stepper-progress-line {
        top: 17px;
    }*/
    .stepper-track::before {
        left: 18px;
        width: calc(100% - 50px);
        top: 17px;
    }

    .stepper-progress-line {
        left: 2px;
        top: 17px;
    }

}

@media (max-width: 480px) {
    .step-label .step-title {
        font-size: 10px;
    }

    .btn-nav {
        padding: 9px 16px;
        font-size: 12.5px;
    }
}

/* =========================================================
   HEADER MODERNO INSTITUCIONAL
========================================================= */

.inst-header-modern {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius: 0 0 28px 28px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    margin-bottom: 30px;
    position: relative;
}

/* Línea superior dorada */
.header-top-line {
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* Contenido principal */
.header-content {
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Bloque izquierda */
.school-brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Caja logo */
.logo-box {
    width: 82px;
    height: 82px;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

    .logo-box img {
        width: 64px;
        height: 64px;
        object-fit: contain;
    }

/* Info colegio */
.school-info h1 {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -.3px;
}

.school-info p {
    margin: 0;
    color: rgba(255,255,255,.65);
    font-size: 14px;
}

/* Badge */
.school-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(200,153,42,.14);
    border: 1px solid rgba(200,153,42,.25);
    color: var(--gold-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .8px;
    margin-bottom: 10px;
}

/* Lado derecho */
.school-actions {
    display: flex;
    align-items: center;
}

/* Chip año */
.year-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .header-content {
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
    }

    .school-brand {
        width: 100%;
    }

    .school-info h1 {
        font-size: 22px;
    }

    .school-info p {
        font-size: 13px;
    }

    .year-chip {
        margin-top: 4px;
    }

    .logo-box {
        width: 70px;
        height: 70px;
    }

        .logo-box img {
            width: 54px;
            height: 54px;
        }
}

@media (max-width: 480px) {

    .header-content {
        padding: 20px;
    }

    .school-brand {
        align-items: flex-start;
    }

    .school-info h1 {
        font-size: 18px;
        line-height: 1.25;
    }

    .school-info p {
        font-size: 12px;
    }

    .school-badge {
        font-size: 10px;
    }

    .year-chip {
        font-size: 12px;
        padding: 8px 14px;
    }
}




/* =========================================================
   FLOATING INPUTS
========================================================= */

.floating-group {
    position: relative;
}

    /* Input */

    .floating-group .form-control,
    .floating-group .form-select {
        height: 56px;
        padding: 20px 14px 8px;
        border-radius: 12px;
    }

    /* Label */

    .floating-group label {
        position: absolute;
        top: 16px;
        left: 14px;
        color: #64748b;
        font-size: 14px;
        pointer-events: none;
        transition: .2s ease;
        background: #fafbfd;
        padding: 0 4px;
    }

    /* Cuando hay focus */

    .floating-group .form-control:focus + label,
    .floating-group .form-control:not(:placeholder-shown) + label,
    .floating-group .form-select:focus + label,
    .floating-group .form-select:valid + label {
        top: -8px;
        left: 10px;
        font-size: 11px;
        font-weight: 700;
        color: var(--navy-light);
    }

/*loading*/
/* Overlay */
.form-loader {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity .3s ease;
}

    /* Ocultar */
    .form-loader.hidden {
        opacity: 0;
        pointer-events: none;
    }

/* Contenido */
.loader-content {
    text-align: center;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #5a3253;
    border-top: 4px solid #edbbe5;
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* IMPORTANTE */
.wizard-wrapper {
    position: relative;
}



/* ALTURA DEL SELECT */
.select2-container--default .select2-selection--single {
    height: 35px !important;
   /* display: flex;
    align-items: center;
    border-radius: .375rem;
    padding: 0 .75rem;*/
}


.select2-selection.is-invalid {
    border: 1px solid #dc3545 !important;
    box-shadow: 0 0 0 .15rem rgba(220,53,69,.15);
}

.disabled-section {
    opacity: .45;
    filter: blur(1px);
    pointer-events: none;
    user-select: none;
    transition: all .25s ease;
}

.text-uppercase {
    text-transform: uppercase;
}




/*-----------------------------------------*/

.token-box {
    background: #fff;
    border: 1px dashed #0d6efd;
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 8px;
}

.upload-link {
    display: inline-block;
    font-weight: 600;
    color: #0d6efd;
    text-decoration: none;
    margin-bottom: 6px;
}

    .upload-link:hover {
        text-decoration: underline;
    }

.token-display {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f3f5;
    border-radius: 6px;
    padding: 6px 10px;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.token-label {
    font-weight: 600;
    flex-shrink: 0;
}

.token-code {
    flex: 1;
}

.btn-copy {
    border: none;
    background: transparent;
    color: #0d6efd;
    cursor: pointer;
    flex-shrink: 0;
}

    .btn-copy:hover {
        color: #0a58ca;
    }


.info-block-security {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}

    .info-block-security i {
        color: #2563eb;
        font-size: 1.1rem;
    }