@font-face {
    font-family: 'Ambit_Bold';
    src: url('../fonts/Ambit_Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* BASE */
html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Ambit_Bold', Arial, Helvetica, sans-serif;
    min-height: 100vh;
    background-image: url(../img/bg_f.jpg);
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow-x: hidden;
    overflow-y: auto;
}

.font_input {
    font-family: 'Ambit_Bold', Arial, Helvetica, sans-serif;
}

/* LAYOUT */
.page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.register-card {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 560px;
    text-align: center;
    padding: 20px;
}

/* DECORACIONES */
.bg-left,
.bg-right {
    position: absolute;
    bottom: 15px;
    width: 140px;
    max-width: 40vw;
    pointer-events: none;
    z-index: 1;
}

.bg-left {
    left: 0;
}

.bg-right {
    right: 15px;
}

/* BRAND */
.brand {
    text-align: left;
    margin-bottom: 10px;
}

.brand img {
    width: 170px;
    max-width: 45%;
}

/* TITULOS */
.hero-title h1 {
    font-size: clamp(4rem, 15vw, 8rem);
    line-height: .8;
    font-weight: 700;
    letter-spacing: -5px;
}

.hero-title h1 span {
    font-size: .55em;
    vertical-align: middle;
}

.hero-title h2 {
    margin-top: 25px;
    font-size: clamp(2rem, 7vw, 3rem);
    line-height: .9;
}

.intro {
    max-width: 520px;
    margin: 22px auto 8px;
    font-size: clamp(1rem, 4vw, 1.35rem);
    font-weight: 700;
}

.form-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
    letter-spacing: 12px;
    margin: 12px 0;
}

/* INFO SUPERIOR */
.event-info-box {
    width: 100%;
    max-width: 500px;
    margin: 24px auto 22px;
    padding: 14px 16px;
    border-radius: 22px;
    backdrop-filter: blur(4px);
    color: #fff;
    text-align: center;
}

.event-info-box h3 {
    font-size: 2rem;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 900;
}

.event-info-content {
    text-align: left;
    padding-right: 6px;
}

.event-info-content p {
    font-size: 1.4rem;
    line-height: 1.35;
    margin-bottom: 10px;
    font-weight: 500;
}

.event-info-content p:last-child {
    margin-bottom: 0;
}

.event-benefits {
    padding-left: 22px;
    margin: 0;
}

.event-benefits li {
    font-size: 1.4rem;
    line-height: 1.35;
    margin-bottom: 4px;
    font-weight: 500;
}

.event-benefits strong {
    font-weight: 900;
}

.event-info-img {
    width: 100%;
    display: block;
    border-radius: 14px;
    margin-bottom: 60px;
}

/* FORMULARIO */
form {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

input,
select,
textarea,
button {
    font-family: 'Ambit_Bold', Arial, Helvetica, sans-serif;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"] {
    width: 100%;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 30px;
    background: rgba(255,255,255,.08);
    color: #fff;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 5px;
    outline: none;
    margin-bottom: 8px;
}

input[name="first_name"],
input[name="last_name"] {
    text-transform: uppercase;
}

input::placeholder {
    color: #fff;
    opacity: 1;
    font-family: 'Ambit_Bold', Arial, Helvetica, sans-serif;
}

.row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 8px;
}

.row input[type="number"] {
    width: 160px;
    margin-bottom: 0;
}

/* RADIOS / CHECKS */
.radio-option,
.check-option,
.terms {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
}

.radio-option input,
.check-option input,
.terms input {
    appearance: none;
    width: 21px;
    height: 21px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    position: relative;
}

.radio-option input:checked::after,
.check-option input:checked::after,
.terms input:checked::after {
    content: "";
    width: 11px;
    height: 11px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
}

.radio-option span,
.check-option span {
    font-weight: 800;
    letter-spacing: 4px;
}

.check-option {
    margin-bottom: 8px;
    font-size: .82rem;
}

.terms {
    margin-top: 12px;
    font-size: .75rem;
}

.terms-link {
    all: unset;
    text-decoration: underline;
    cursor: pointer;
    font-size: .85rem;
}

/* CUSTOM SELECT */
.custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.custom-select-btn {
    width: 100%;
    height: 48px;
    border: 2px solid #fff;
    border-radius: 30px;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 2px;
    cursor: pointer;
}

.custom-select-list {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    z-index: 1000;
    list-style: none;
    padding: 0;
    margin: 0;
    box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

.custom-select-list.active {
    display: block;
}

.custom-select-list li {
    padding: 14px;
    font-size: .95rem;
    color: #333;
    cursor: pointer;
    text-align: center;
}

.custom-select-list li:hover {
    background: #ec008c;
    color: #fff;
}

/* BOLETOS */
.ticket-counter {
    width: 100%;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 30px;
    background: transparent;
    display: grid;
    grid-template-columns: 1fr 140px;
    align-items: center;
    margin-bottom: 10px;
    overflow: hidden;
}

.ticket-label {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
}

.ticket-controls {
    height: 100%;
    border-left: 2px dashed #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.ticket-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-8px);
}

.ticket-value {
    min-width: 24px;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    text-align: center;
    transform: translateY(-3px);
}

.ticket-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* BOTONES / MENSAJES */
button {
    width: 150px;
    height: 30px;
    border: none;
    border-radius: 30px;
    background: #fff;
    color: #e7008a;
    font-weight: 800;
    letter-spacing: 4px;
    cursor: pointer;
    margin-top: 8px;
}

button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.availability {
    margin-top: 8px;
    font-weight: 700;
}

.form-message {
    margin-top: 12px;
    font-weight: 700;
}

.form-message.error {
    color: #ffe066;
}

.form-message.success {
    color: #fff;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 18px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    width: 100%;
    max-width: 640px;
    max-height: 82vh;
    background: #fff;
    color: #111;
    border-radius: 18px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.modal-box h2 {
    margin-bottom: 14px;
    color: #ec008c;
}

.modal-content-title {
    text-align: center;
}

.modal-content {
    max-height: 62vh;
    overflow-y: auto;
    padding-right: 8px;
}

.modal-content p {
    font-size: .95rem;
    line-height: 1.45;
    margin-bottom: 12px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #ec008c;
    font-size: 1.4rem;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-height: 760px) {
    .page {
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .bg-left {
        width: 80px;
    }

    .bg-right {
        width: 70px;
    }
}

@media (max-width: 600px) {
    body {
        background-position: top center;
    }

    .page {
        align-items: flex-start;
        min-height: 100vh;
        padding: 24px 14px 130px;
    }

    .register-card {
        max-width: 390px;
        padding: 0 8px;
        display: block;
    }

    .brand,
    .hero-title,
    .event-info-box,
    .form-title,
    form {
        position: relative;
        z-index: 5;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-title h1 {
        font-size: clamp(3rem, 16vw, 4.4rem);
        line-height: .85;
        letter-spacing: -3px;
    }

    .hero-title h2 {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
        margin-top: 10px;
    }

    .event-info-box {
        max-width: 100%;
        margin: 16px auto 14px;
        padding: 8px 6px;
        border-radius: 18px;
        backdrop-filter: none;
    }

    .event-info-box h3 {
        font-size: 1.25rem;
        line-height: 1.1;
        letter-spacing: 2px;
    }

    .event-info-content {
        padding-right: 0;
    }

    .event-info-content p,
    .event-benefits li {
        font-size: .78rem;
        line-height: 1.25;
    }

    .event-benefits {
        padding-left: 18px;
    }

    .form-title {
        font-size: 1.9rem;
        letter-spacing: 6px;
        margin: 16px 0 10px;
    }

    form {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .register-card {
        padding: 20px 8px;
    }

    .form-title {
        letter-spacing: 7px;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="date"] {
        font-size: .85rem;
        letter-spacing: 3px;
    }

    .row {
        gap: 8px;
    }

    .row input[type="number"] {
        width: 145px;
    }

    .check-option span {
        letter-spacing: 2px;
    }

    .bg-left {
        left: 0;
        bottom: 15px;
        width: 80px;
    }

    .bg-right {
        right: 15px;
        bottom: 15px;
        width: 70px;
    }

    .event-info-content p,
    .event-benefits li {
        font-size: .72rem;
    }
}