.register-page {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
    background: #eef9e6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.register-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.register-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.register-card {
    width: min(900px, 100%);
    max-height: calc(100vh - 4rem);
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, .96);
    border-radius: 32px;
    padding: 2rem 2.5rem;
    box-shadow: 0 25px 70px rgba(15, 23, 42, .12);
    overflow: hidden;
}

.register-back {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: #007a3d;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    gap: .5rem;
    align-items: center;
}

.register-logo {
    text-align: center;
}

.register-logo img {
    width: 150px;
}

.register-heading {
    text-align: center;
    margin: 1rem 0 1.4rem;
}

.register-heading h1 {
    font-size: 2.4rem;
    font-weight: 900;
    color: #073b25;
    margin-bottom: .4rem;
}

.register-heading p {
    color: #64748b;
    font-weight: 700;
    margin: 0;
}

.register-steps {
    width: 100%;
    max-width: 820px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    flex-wrap: nowrap;
}

.register-steps span {
    flex: 1;
    min-width: 0;
    height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .9rem;
    background: #eef2f6;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: .86rem;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: .25s ease;
}

.register-steps span.active {
    background: linear-gradient(135deg, #008f3c, #00a84f);
    border-color: #008f3c;
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 143, 60, .18);
}

.register-steps span.completed {
    background: #dff8e7;
    border-color: #90d6a8;
    color: #008f3c;
}

.register-steps span.completed::before {
    content: "✓";
    margin-right: .45rem;
    font-size: .85rem;
}

.step-title {
    text-align: center;
    margin-bottom: 1.2rem;
}

.step-title h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #073b25;
    margin-bottom: .4rem;
}

.step-title p {
    color: #64748b;
    font-weight: 700;
    margin: 0;
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.role-card {
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: .25s ease;
}

.role-card.active,
.role-card:hover {
    border-color: #16a34a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    transform: translateY(-4px);
}

.role-card i {
    font-size: 2.5rem;
    color: #007a3d;
}

.role-card h3 {
    margin-top: .8rem;
    font-weight: 900;
    color: #073b25;
    font-size: 1.4rem;
}

.role-card p {
    color: #64748b;
    font-size: .9rem;
    font-weight: 650;
    margin: 0;
}

.register-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .9rem;
}

.register-form input,
.register-form select,
.register-form textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid #dbe3e8;
    border-radius: 14px;
    padding: 0 1rem;
    font-weight: 700;
    outline: 0;
    background: #fff;
    color: #061933;
}

.register-form textarea {
    min-height: 110px;
    padding: 1rem;
    resize: none;
    grid-column: 1 / -1;
}

.register-form input:focus,
.register-form select:focus,
.register-form textarea:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .12);
}

.teacher-chief-fields {
    display: contents;
}

.school-search-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 1.4rem;
}

.school-search-box label {
    display: block;
    font-weight: 900;
    color: #073b25;
    margin-bottom: .6rem;
}

.search-input {
    min-height: 56px;
    background: #fff;
    border: 1px solid #dbe3e8;
    border-radius: 16px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .8rem;
    padding: 0 .9rem;
}

.search-input i {
    color: #16a34a;
    font-size: 1.2rem;
}

.search-input input {
    border: 0;
    outline: 0;
    font-weight: 700;
    background: transparent;
}

.search-input button,
.request-school-box button {
    border: 0;
    border-radius: 12px;
    background: #007a3d;
    color: #fff;
    font-weight: 900;
    padding: .75rem 1rem;
}

.request-school-box {
    margin-top: 1rem;
    background: #f0fff4;
    border-radius: 18px;
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 1rem;
}

.request-school-box h3 {
    margin: 0 0 .3rem;
    color: #007a3d;
    font-weight: 900;
}

.request-school-box p {
    margin: 0;
    color: #64748b;
    font-weight: 700;
    line-height: 1.5;
}

.info-alert {
    margin-top: 1rem;
    background: #f0fff4;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    gap: .8rem;
    align-items: flex-start;
    color: #475569;
    font-weight: 700;
}

.info-alert i {
    color: #16a34a;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.info-alert p {
    margin: 0;
    line-height: 1.5;
}

.register-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.register-actions button {
    min-height: 52px;
    border-radius: 14px;
    padding: 0 1.5rem;
    font-weight: 900;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.btn-back-step {
    background: #f1f5f9;
    color: #475569;
}

.btn-next-step {
    background: #007a3d;
    color: #fff;
}

.summary-box {
    background: #f8fafc;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.summary-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
}

.summary-icon i {
    font-size: 2.2rem;
}

.summary-box h2 {
    color: #073b25;
    font-weight: 900;
}

.summary-box p {
    color: #64748b;
    font-weight: 700;
    line-height: 1.6;
}

.summary-list {
    display: grid;
    gap: .7rem;
    margin-top: 1rem;
    text-align: left;
}

.summary-list div {
    background: #fff;
    border-radius: 12px;
    padding: .8rem 1rem;
    font-weight: 800;
    color: #475569;
}

.summary-list i {
    color: #16a34a;
    margin-right: .5rem;
}

@media (max-width: 992px) {
    .register-card {
        width: min(820px, 100%);
        padding: 1.7rem;
    }

    .register-steps {
        gap: .45rem;
        margin-bottom: 1.8rem;
    }

    .register-steps span {
        height: 44px;
        font-size: .78rem;
        padding: 0 .55rem;
    }

    .role-card {
        padding: 1.2rem;
    }

    .role-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .register-page {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        padding: 1rem;
    }

    .register-card {
        max-height: none;
        padding: 1.5rem;
        border-radius: 26px;
    }

    .register-back {
        position: static;
        margin-bottom: 1rem;
    }

    .register-logo img {
        width: 125px;
    }

    .register-heading h1 {
        font-size: 2rem;
    }

    .register-heading p {
        font-size: .9rem;
    }

    .register-steps {
        justify-content: flex-start;
        overflow-x: auto;
        gap: .4rem;
        padding-bottom: .5rem;
        scrollbar-width: none;
    }

    .register-steps::-webkit-scrollbar {
        display: none;
    }

    .register-steps span {
        flex: none;
        min-width: 96px;
        height: 40px;
        font-size: .72rem;
        padding: 0 .55rem;
    }

    .role-grid,
    .register-form {
        grid-template-columns: 1fr;
    }

    .register-actions {
        flex-direction: column;
    }

    .register-actions button {
        width: 100%;
    }

    .request-school-box {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .search-input {
        grid-template-columns: auto 1fr;
        padding: .8rem;
    }

    .search-input button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .register-card {
        padding: 1.2rem;
    }

    .register-heading h1 {
        font-size: 1.8rem;
    }

    .step-title h2 {
        font-size: 1.5rem;
    }

    .summary-box {
        padding: 1.4rem;
    }
}

/* =======================================================
   MODAL SOLICITAR COLEGIO
======================================================= */

.school-modal-content {
    border: 0;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,.12);
}

.school-modal-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.school-modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: #e8fff1;
    color: #0A9F47;

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

    font-size: 2rem;
}

.school-modal-title h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: .2rem;
    color: #083B24;
}

.school-modal-title p {
    margin: 0;
    color: #64748b;
}

.school-input {
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    min-height: 52px;
    padding-inline: 1rem;
    transition: .2s ease;
}

.school-input:focus {
    border-color: #0A9F47;
    box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}

textarea.school-input {
    min-height: 120px;
    resize: none;
}

.school-info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;

    padding: 1rem 1.2rem;
    border-radius: 20px;

    background: #F0FFF5;
}

.school-info-box i {
    font-size: 1.4rem;
    color: #0A9F47;
}

.school-info-box strong {
    display: block;
    margin-bottom: .2rem;
    color: #083B24;
}

.school-info-box p {
    color: #64748b;
}

.btn-school-cancel {
    border: 2px solid #d1d5db;
    background: white;
    border-radius: 16px;

    padding: .85rem 1.5rem;
    font-weight: 700;
}

.btn-school-send {
    border: 0;
    border-radius: 16px;

    padding: .9rem 1.6rem;

    background: linear-gradient(
        135deg,
        #0A9F47,
        #0C7A39
    );

    color: white;
    font-weight: 800;

    display: flex;
    align-items: center;
    gap: .5rem;

    transition: .2s ease;
}

.btn-school-send:hover {
    transform: translateY(-2px);
}

.btn-request-school {
    border: 0;
    background: transparent;
    color: #0A9F47;

    font-weight: 700;
    margin-top: .5rem;
}

.btn-request-school:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {

    .school-modal-content {
        border-radius: 24px;
    }

    .school-modal-title {
        flex-direction: column;
        text-align: center;
    }

    .school-modal-icon {
        width: 64px;
        height: 64px;
    }

    .modal-footer {
        flex-direction: column;
    }

    .btn-school-cancel,
    .btn-school-send {
        width: 100%;
        justify-content: center;
    }
}