﻿.registro-page {
    width: 100%;
    min-height: 100%;
    background-color: #03106c;
}

.registro-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: #03106c;
}

    .registro-hero picture {
        display: block;
        width: 100%;
    }

.registro-hero-image {
    display: block;
    width: 100%;
    height: auto;
}

.registro-hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    padding: clamp(240px, 22vw, 245px) 0 40px;
}

.registro-hero-content {
    width: 100%;
}

.registro-form-wrapper {
    width: min(100%, 1050px);
    margin: 0 auto;
}

.registro-back {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background-color: rgba(0, 0, 0, 0.28);
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(5px);
}

    .registro-back:hover {
        color: #ffffff;
        background-color: rgba(0, 0, 0, 0.4);
    }

.registro-card {
    padding: 24px 52px;
    border-radius: 18px;
    background-color: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

    .registro-card h1 {
        margin: 0 0 8px;
        color: #001f47;
        font-size: 30px;
        font-weight: 700;
    }

.registro-description {
    margin: 0 0 18px;
    color: #555555;
    font-size: 15px;
}

.registro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 14px;
}

.registro-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .registro-field label {
        color: #001f47;
        font-weight: 600;
    }

    .registro-field .form-control {
        min-height: 44px;
        border-radius: 10px;
    }

        .registro-field .form-control:focus {
            border-color: #005bbb;
            box-shadow: 0 0 0 0.2rem rgba(0, 91, 187, 0.15);
        }

.registro-error,
.registro-validation-summary {
    color: #b42318;
    font-size: 13px;
    font-weight: 500;
}

    .registro-validation-summary ul {
        margin: 0 0 18px;
        padding-left: 20px;
    }

.registro-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-top: 22px;
}

.registro-terms {
    flex: 1;
    min-width: 0;
    margin-top: 0;
}

.registro-terms-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
}

    .registro-terms-line .form-check-input {
        flex-shrink: 0;
        margin-top: 0;
    }

    .registro-terms-line label {
        margin: 0;
        color: #222222;
    }

.registro-terms a {
    color: #003b82;
    font-weight: 700;
    text-decoration: underline;
}

.registro-submit {
    display: flex;
    flex-shrink: 0;
    justify-content: flex-end;
    margin-top: 0;
}

.registro-button {
    min-height: 46px;
    padding: 10px 30px;
    border: 0;
    border-radius: 10px;
    background-color: #E30613;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .registro-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    }

.input-validation-error {
    border-color: #b42318 !important;
}

    .input-validation-error:focus {
        border-color: #b42318 !important;
        box-shadow: 0 0 0 0.2rem rgba(180, 35, 24, 0.12) !important;
    }


/* =========================================
   DESKTOP PEQUEÑO / TABLET
   ========================================= */

@media (max-width: 1100px) {

    .registro-form-wrapper {
        width: calc(100% - 32px);
    }
}

@media (max-width: 991px) {

    .registro-hero-overlay {
        padding-top: 220px;
    }

    .registro-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .registro-page {
        min-height: auto;
    }

    .registro-hero {
        min-height: auto;
        overflow: visible;
    }

        .registro-hero picture {
            display: block;
            width: 100%;
            height: 300px;
            overflow: hidden;
        }

    .registro-hero-image {
        display: block;
        width: 100%;
        height: 300px;
        object-fit: cover;
        object-position: top center;
    }

    .registro-hero-overlay {
        position: relative;
        inset: auto;
        display: block;
        padding: 0 0 24px;
    }

    .registro-hero-content {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .registro-form-wrapper {
        position: relative;
        z-index: 2;
        width: calc(100% - 24px);
        margin: -34px auto 0;
    }

    .registro-back {
        margin-bottom: 9px;
        padding: 7px 12px;
        font-size: 16px;
    }

    .registro-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

        .registro-card h1 {
            margin-bottom: 5px;
            font-size: 23px;
            line-height: 1.15;
        }

    .registro-description {
        margin-bottom: 16px;
        font-size: 16px;
        line-height: 1.4;
    }

    .registro-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .registro-field {
        gap: 5px;
    }

        .registro-field label {
            font-size: 16px;
        }

        .registro-field .form-control {
            min-height: 42px;
            font-size: 16px;
        }

    .registro-actions {
        flex-direction: column;
        gap: 14px;
        margin-top: 16px;
    }

    .registro-terms {
        width: 100%;
    }

    .registro-terms-line {
        min-height: auto;
        align-items: flex-start;
    }

        .registro-terms-line label {
            font-size: 16px;
            line-height: 1.4;
        }

    .registro-submit {
        width: 100%;
    }

    .registro-button {
        width: 100%;
        min-height: 44px;
        padding: 9px 18px;
        font-size: 16px;
    }
}


/* =========================================
   MOBILE PEQUEÑO
   ========================================= */

@media (max-width: 420px) {

    .registro-hero picture,
    .registro-hero-image {
        height: 260px;
    }

    .registro-form-wrapper {
        margin-top: -28px;
    }

    .registro-card {
        padding: 18px 14px;
    }

        .registro-card h1 {
            font-size: 21px;
        }
}


/* =========================================
   MODAL TÉRMINOS Y CONDICIONES
   ========================================= */

.registro-tyc-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background-color: rgba(0, 0, 0, 0.78);
}

    .registro-tyc-modal:target {
        display: flex;
    }

.registro-tyc-modal-dialog {
    display: flex;
    flex-direction: column;
    width: min(100%, 1000px);
    height: min(88vh, 850px);
    overflow: hidden;
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.registro-tyc-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 18px;
    background-color: #001f47;
    color: #ffffff;
}

    .registro-tyc-modal-header h2 {
        margin: 0;
        color: #ffffff;
        font-size: 22px;
        font-weight: 700;
    }

.registro-tyc-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #E30613;
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    text-decoration: none;
}

    .registro-tyc-modal-close:hover {
        color: #ffffff;
        background-color: #c9000c;
    }

.registro-tyc-modal-body {
    flex: 1;
    min-height: 0;
    background-color: #f3f4f6;
}

.registro-tyc-pdf {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background-color: #ffffff;
}

@media (max-width: 767px) {

    .registro-tyc-modal {
        padding: 10px;
    }

    .registro-tyc-modal-dialog {
        width: 100%;
        height: 88vh;
        border-radius: 12px;
    }

    .registro-tyc-modal-header {
        padding: 10px 12px;
    }

        .registro-tyc-modal-header h2 {
            font-size: 18px;
        }

    .registro-tyc-modal-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
}

/* Aviso de privacidad debajo de términos y condiciones */
.registro-privacy-line {
    margin-top: 2px;
}
