@font-face {
    font-family: 'Chery Rush';
    src: url('../fonts/CHERY%20RUSH%20Demo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Una misma acción principal en inscripción, confirmación y la modal. */
.fest-btn,
.recurso_T .fest-event-btn,
.bootbox.modal .modal-footer .fest-event-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    height: auto;
    margin: 0;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(100deg, #ff7500, #ff951c);
    color: #fff;
    font-family: 'Chery Rush', 'Segoe UI', sans-serif;
    font-size: 22px;
    font-weight: normal;
    line-height: 1.3;
    letter-spacing: 0.3px;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(255, 117, 0, 0.26);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fest-btn:hover,
.recurso_T .fest-event-btn:hover,
.bootbox.modal .modal-footer .fest-event-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 117, 0, 0.35);
}

.fest-btn:focus-visible,
.recurso_T .fest-event-btn:focus-visible,
.bootbox.modal .btn:focus-visible,
.bootbox.modal .close:focus-visible {
    outline: 3px solid #ffd552;
    outline-offset: 4px;
}

.fest-btn:active,
.recurso_T .fest-event-btn:active,
.bootbox.modal .modal-footer .fest-event-btn:active {
    transform: translateY(0);
}

.fest-btn:disabled,
.recurso_T .fest-event-btn:disabled,
.bootbox.modal .modal-footer .fest-event-btn:disabled {
    background: #2f8688;
    color: #fff;
    cursor: default;
    box-shadow: none;
    transform: none;
    opacity: 0.85;
}

.recurso_T .fest-event-btn {
    max-width: 240px;
}

.toggle-invitado input[type="checkbox"] {
    accent-color: #ff951c;
}

/* Avisos: el cierre no debe heredar el ancho de los botones de la página. */
.bootbox.fest-notice-modal .modal-dialog {
    display: flex;
    align-items: center;
    width: calc(100% - 48px);
    max-width: 340px;
    min-height: calc(100vh - 32px);
    min-height: calc(100dvh - 32px);
    margin: 16px auto;
}

.bootbox.fest-notice-modal .modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    border: 0;
    border-top: 3px solid #ffd552;
    border-radius: 20px;
    background: #fffbf0;
    box-shadow: 0 20px 56px rgba(8, 35, 40, 0.3);
}

.bootbox.fest-notice-modal .modal-header {
    position: relative;
    flex: none;
    padding: 18px 52px 8px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
}

.bootbox.fest-notice-modal .modal-header .modal-title {
    width: 100%;
    margin: 0;
    color: #246e64;
    font: 700 16px/1.3 'Inter', 'Segoe UI', sans-serif;
    overflow-wrap: break-word;
}

.bootbox.fest-notice-modal .modal-header .close {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #e8eee1;
    color: #246e64;
    font: 20px/1 'Segoe UI', sans-serif;
    opacity: 1;
    text-shadow: none;
    box-shadow: none;
}

.bootbox.fest-notice-modal .modal-header .close:hover {
    background: #dce7d5;
}

.bootbox.fest-notice-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 18px 16px;
    overflow-y: auto;
    background: transparent;
    text-align: left;
}

.bootbox.fest-notice-modal .bootbox-body {
    display: block;
    width: 100%;
    margin: 0;
    color: #536960;
    font: 400 14px/1.5 'Inter', 'Segoe UI', sans-serif;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}

.bootbox.fest-notice-modal .modal-footer {
    flex: none;
    padding: 0 18px 18px;
    border: 0;
    background: transparent;
}

.bootbox.fest-notice-modal .modal-footer .btn {
    width: 100%;
    min-height: 44px;
    height: auto;
    margin: 0;
    padding: 9px 16px;
    font-size: 18px;
}

.bootbox.fest-notice-modal .modal-footer .btn:focus-visible {
    outline: 2px solid #246e64;
    outline-offset: 3px;
}

.bootbox.fest-guest-modal .modal-dialog {
    width: calc(100% - 24px);
    max-width: 520px;
    margin: 24px auto;
}

.bootbox.fest-guest-modal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    border: 1px solid rgba(255, 213, 82, 0.4);
    border-radius: 26px;
    background: #fffbf0;
    box-shadow: 0 24px 64px rgba(8, 35, 40, 0.38);
    overflow: hidden;
}

.bootbox.fest-guest-modal .modal-header {
    flex: none;
    padding: 20px 48px 18px;
    border-radius: 0;
    border-bottom: 4px solid #ffd552;
    background: #246e64 url('../img/inscripcionUnisimonfest/patron-gafas.png') center / 240px;
    background-blend-mode: soft-light;
}

.modal-invitado-titulo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.modal-invitado-logo {
    display: block;
    width: 132px;
    height: auto;
    margin: 0;
}

.modal-invitado-titulo > span {
    color: #ffdf72;
    font-family: 'Chery Rush', 'Segoe UI', sans-serif;
    font-size: 28px;
    font-weight: normal;
    line-height: 1.2;
}

.bootbox.fest-guest-modal .modal-header .close {
    display: flex;
    align-items: center;
    justify-content: center;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: rgba(255, 251, 240, 0.14);
    font-size: 24px;
    line-height: 1;
}

.bootbox.fest-guest-modal .modal-header .close:hover {
    background: rgba(255, 251, 240, 0.26);
}

.bootbox.fest-guest-modal .modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 24px;
    text-align: left;
}

.bootbox.fest-guest-modal .modal-invitado-intro {
    margin: 0 0 16px;
    color: #536960;
    font: 14px/1.5 'Inter', 'Segoe UI', sans-serif;
}

.modal-invitado {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px 12px;
}

.modal-invitado-campo {
    min-width: 0;
}

.modal-invitado-campo-completo {
    grid-column: 1 / -1;
}

.modal-invitado label {
    display: block;
    margin: 0 0 6px;
    color: #246e64;
    font: 600 12px/1.4 'Inter', 'Segoe UI', sans-serif;
}

.modal-invitado .form-control {
    width: 100%;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 8px 14px;
    border: 2px solid #ffd552;
    border-radius: 21px;
    background-color: #fff;
    color: #555;
    font: 14px/1.4 'Inter', 'Segoe UI', sans-serif;
    box-shadow: none;
}

.modal-invitado .form-control::placeholder {
    color: #999;
    opacity: 1;
}

.modal-invitado .form-control:focus {
    border-color: #4ca6a8;
    outline: none;
    box-shadow: none;
}

.modal-invitado-habeas {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e8e3ce;
}

.modal-invitado-habeas-titulo {
    margin: 0 0 8px;
    color: #246e64;
    font: 700 13px/1.3 'Inter', 'Segoe UI', sans-serif;
}

.modal-invitado-habeas-texto {
    max-height: 130px;
    margin-bottom: 10px;
    padding: 10px 12px;
    overflow-y: auto;
    border: 1px solid #e8e3ce;
    border-radius: 12px;
    background: #fff;
    color: #536960;
    font: 12px/1.5 'Inter', 'Segoe UI', sans-serif;
}

.modal-invitado-habeas-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: #246e64;
    font: 600 13px/1.4 'Inter', 'Segoe UI', sans-serif;
    cursor: pointer;
}

.modal-invitado-habeas-check input[type="checkbox"] {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    accent-color: #ff951c;
    cursor: pointer;
}

.bootbox.fest-guest-modal .modal-footer {
    display: flex;
    flex: none;
    align-items: center;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e8e3ce;
}

.bootbox.fest-guest-modal .modal-footer::before,
.bootbox.fest-guest-modal .modal-footer::after {
    display: none;
}

.bootbox.fest-guest-modal .modal-footer .btn {
    margin: 0;
}

.bootbox.fest-guest-modal .modal-footer .btn-default {
    flex: 0 0 110px;
    height: 48px;
    padding: 0 12px;
    border: 1px solid #2f8688;
    background: transparent;
    color: #246e64;
    font-size: 14px;
}

.bootbox.fest-guest-modal .modal-footer .btn-default:hover {
    background: #e9f1e8;
}

@media (max-width: 480px) {
    .bootbox.fest-guest-modal .modal-dialog {
        margin: 12px auto;
    }

    .bootbox.fest-guest-modal .modal-content {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        border-radius: 22px;
    }

    .bootbox.fest-guest-modal .modal-header {
        padding-top: 16px;
        padding-bottom: 14px;
    }

    .modal-invitado-logo {
        width: 110px;
    }

    .modal-invitado-titulo > span {
        font-size: 25px;
    }

    .bootbox.fest-guest-modal .modal-body {
        padding: 16px 18px;
    }

    .modal-invitado {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .modal-invitado .form-control {
        font-size: 16px;
    }

    .bootbox.fest-guest-modal .modal-footer {
        flex-direction: column;
        gap: 10px;
        padding: 14px 18px 18px;
    }

    .bootbox.fest-guest-modal .modal-footer .btn-default {
        flex: auto;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fest-btn,
    .recurso_T .fest-event-btn,
    .bootbox.modal .modal-footer .fest-event-btn {
        transition: none;
        transform: none;
    }
}

.modal-invitado-habeas-politica {
    margin: 8px 0 0;
}

.modal-invitado-habeas-politica a {
    color: #2d7f6a;
    font-weight: 600;
    text-decoration: underline;
}
