@font-face {
    font-family: 'Chery Rush';
    src: url('../fonts/CHERY%20RUSH%20Demo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Next';
    src: url('../fonts/Avenir-Next.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --fest-orange: #FF7500;
    --fest-orange-light: #FF951C;
    --fest-yellow: #FFD552;
    --fest-teal: #4CA6A8;
    --fest-teal-dark: #2F8688;
    --fest-cream: #FFFBF0;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: 'Avenir Next', 'Segoe UI', sans-serif;
    background-color: #2D7F6A;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('../img/inscripcionUnisimonfest/fondo-degradado.png');
    background-size: cover;
    background-position: center;
    z-index: -3;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('../img/inscripcionUnisimonfest/patron-gafas.png');
    background-repeat: repeat;
    background-size: 320px;
    opacity: 0.18;
    mix-blend-mode: overlay;
    z-index: -2;
    pointer-events: none;
}

.fest-ondas {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 140px;
    background-image: url('../img/inscripcionUnisimonfest/patron-ondas.png');
    background-repeat: repeat-x;
    background-position: bottom center;
    background-size: auto 140px;
    opacity: 0.55;
    z-index: -1;
    pointer-events: none;
}

.fest-wrapper {
    flex-shrink: 0;
    width: 100%;
    max-width: 440px;
    margin: 80px auto 36px;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.fest-footer {
    flex-shrink: 0;
    width: calc(100% - 48px);
    max-width: 640px;
    margin: 0 auto 36px;
    padding-top: 0;
    position: relative;
    z-index: 1;
}

.fest-footer img {
    display: block;
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.fest-logo {
    display: block;
    max-width: 230px;
    width: 70%;
    margin: 0 auto -55px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.15));
}

.fest-card {
    background: var(--fest-cream);
    border-radius: 28px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
    padding: 70px 30px 35px;
    text-align: center;
}

.fest-titulo {
    font-family: 'Chery Rush', cursive;
    color: var(--fest-orange);
    font-size: 32px;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
    line-height: 1.1;
}

.fest-subtitulo {
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    color: #5a5a4d;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px;
}

.fest-aviso-acceso {
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    color: var(--fest-teal-dark);
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 22px;
    padding: 10px 12px;
    border: 1px dashed var(--fest-teal);
    border-radius: 14px;
    background: rgba(76, 166, 168, 0.1);
}

.fest-form .form-group {
    margin-bottom: 14px;
}

.fest-label {
    display: block;
    text-align: left;
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--fest-teal-dark);
    margin: 0 0 6px;
}

.fest-input-icon {
    display: flex;
    align-items: center;
    width: 100%;
    height: 42px;
    border: 2px solid var(--fest-yellow);
    border-radius: 20px;
    background: #fff;
    padding: 0 14px;
    box-sizing: border-box;
}

.fest-input-icon:focus-within {
    border-color: var(--fest-teal);
}

.fest-input-icon .icon {
    flex: none;
    color: #b08900;
    font-size: 16px;
    margin-right: 10px;
}

.fest-input-icon input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    height: 100%;
    padding: 0;
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #3a3a30;
}

.fest-form .form-group > .form-control {
    width: 100%;
    border: 2px solid var(--fest-yellow);
    border-radius: 20px;
    height: 42px;
    box-shadow: none;
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
}

.fest-form .form-group > .form-control:focus {
    border-color: var(--fest-teal);
    box-shadow: none;
}

.fest-datos-colegio {
    text-align: left;
}
.fest-datos-colegio label {
    display: block;
    margin-bottom: 4px;
    font: 600 12px/1.4 'Segoe UI', sans-serif;
    color: #246e64;
}
.fest-datos-colegio .form-control[readonly] {
    background: #f3f0e4;
    border-color: #e8e3cc;
    color: #36554e;
    font-size: 14px;
    opacity: 1;
    -webkit-text-fill-color: #36554e;
    cursor: not-allowed;
}

.fest-datos-acudiente-titulo {
    margin: 18px 0 10px;
    padding-top: 14px;
    border-top: 1px solid #e8e3cc;
    font: 700 13px/1.4 'Segoe UI', sans-serif;
    letter-spacing: 0.3px;
    color: #246e64;
    text-transform: uppercase;
}

.fest-icono-musica {
    display: block;
    max-width: 90px;
    margin: 0 auto 10px;
}

.fest-tipo-acceso {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 16px;
    border-radius: 14px;
    background: var(--fest-teal);
    color: #fff;
    font-family: 'Avenir Next', sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.fest-tipo-acceso:empty {
    display: none;
}

.fest-bienvenida {
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    color: #5a5a4d;
    font-size: 15px;
    line-height: 1.6;
}

.fest-bienvenida b {
    font-weight: 600;
    color: var(--fest-teal-dark);
}

.fest-toggle-invitado {
    margin: 16px 0 0;
    text-align: left;
}

.fest-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 14px;
    border: 2px solid var(--fest-yellow);
    border-radius: 20px;
    font-family: 'Avenir Next', sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #5a5a4d;
    cursor: pointer;
}

.fest-toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--fest-teal);
    cursor: pointer;
}

.fest-invitado {
    margin-top: 12px;
    text-align: left;
}

.fest-invitado-intro {
    margin: 0 0 12px;
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #5a5a4d;
}

.fest-paso-titulo {
    font-family: 'Avenir Next', sans-serif;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 0.5px;
    color: var(--fest-teal-dark);
    margin: 0 0 6px;
    text-transform: uppercase;
}

.fest-aviso {
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    color: #7a6f4d;
    margin: 0 0 16px;
}

.fest-soporte-caja {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #e3e8e0;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.fest-soporte-caja .fest-aviso {
    margin: 0;
}

.fest-soporte-caja a {
    color: var(--fest-teal-dark);
    font-weight: 600;
    text-decoration: underline;
}

.fest-aviso-caja {
    margin-top: 16px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px dashed var(--fest-yellow);
    border-radius: 16px;
    background: rgba(255, 213, 82, 0.15);
    text-align: left;
}

.fest-aviso-caja .fest-aviso {
    margin: 0 0 8px;
}

.fest-aviso-caja .fest-aviso:last-child {
    margin-bottom: 0;
}

.fest-redes {
    margin-top: 18px;
    text-align: center;
}

.fest-redes-titulo {
    margin: 0 0 10px;
    color: var(--fest-teal-dark);
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.fest-redes-botones {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.fest-redes-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fest-redes-logo:hover,
.fest-redes-logo:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.fest-redes-logo .icon {
    font-size: 18px;
}

.fest-redes-logo-ig {
    background: linear-gradient(45deg, #feda75, #d62976, #4f5bd5);
}

.fest-redes-logo-fb {
    background: #1877f2;
}

.fest-msg-inscripcion {
    margin: 10px 0 0;
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #5a5a4d;
}

.fest-msg-inscripcion b {
    font-weight: 600;
    color: var(--fest-teal-dark);
}

.fest-msg-inscripcion:empty {
    display: none;
}

.fest-link-salir {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-shrink: 0;
    min-height: 44px;
    padding: 10px 24px;
    margin-top: 20px;
    border: 1px solid #8cb6ac;
    border-radius: 22px;
    background: #edf4ef;
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #245d53;
    text-decoration: none;
}

.fest-link-salir:hover,
.fest-link-salir:focus {
    color: #194b42;
    background: #deece4;
    border-color: #246e64;
    text-decoration: none;
}

.fest-link-salir:focus-visible {
    outline: 2px solid #246e64;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .fest-card {
        padding: 60px 20px 30px;
    }

    .fest-titulo {
        font-size: 26px;
    }
}

/* La actualización mantiene su altura; solo se desplazan los campos. */
.fest-wrapper.fest-editando {
    margin: 56px auto 36px;
}
.fest-editando .fest-logo {
    max-width: 150px;
    margin-bottom: -36px;
}
.fest-editando .fest-card {
    height: 600px;
    height: min(600px, calc(100vh - 210px));
    height: min(600px, calc(100dvh - 210px));
    padding: 44px 20px 14px;
    overflow: hidden;
}
.fest-editando #paso2,
.fest-editando #pasoDatos,
.fest-editando #formDatos {
    display: flex !important;
    flex-direction: column;
    min-height: 0;
}
.fest-editando #paso2 {
    height: 100%;
}
.fest-editando #pasoDatos,
.fest-editando #formDatos {
    flex: 1 1 auto;
}
.fest-editando .fest-icono-musica,
.fest-editando .fest-bienvenida {
    display: none;
}
.fest-editando .fest-tipo-acceso {
    align-self: center;
    flex-shrink: 0;
    margin-bottom: 8px;
}
.fest-editando #lblTituloDatos {
    font-family: 'Chery Rush', sans-serif;
    font-size: 22px;
    font-weight: normal;
    text-transform: none;
    flex-shrink: 0;
    margin-bottom: 12px;
}
.fest-datos-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #91b7ac transparent;
    scrollbar-gutter: stable;
    padding: 2px 6px 2px 3px;
    text-align: left;
}
#formDatos .form-group {
    margin-bottom: 10px;
}
#formDatos label {
    display: block;
    color: #246e64;
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}
#formDatos .form-control {
    height: 38px;
    min-height: 38px;
    padding: 7px 12px;
    font-size: 14px;
    line-height: 20px;
    color: #284d49;
    border: 2px solid var(--fest-yellow);
    border-radius: 22px;
    box-shadow: none;
}
#formDatos .form-control::placeholder {
    color: #7b8581;
    opacity: 1;
}
#formDatos .form-control:focus {
    border-color: #4ca6a8;
    box-shadow: 0 0 0 2px rgba(76, 166, 168, 0.16);
}
#formDatos .form-control:disabled {
    background: #f3f0e4;
    border-color: #e8e3cc;
    color: #6e7066;
}
.fest-datos-footer {
    flex-shrink: 0;
    padding-top: 10px;
    border-top: 1px solid #e8e3cc;
}
#formDatos .fest-btn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 18px;
}
.fest-editando .fest-link-salir {
    flex-shrink: 0;
    margin-top: 10px;
    font-size: 14px;
}

/* Loader (waitingDialog) con la marca UnisimonFest. Excluye .bootbox para no
   afectar los modales de confirmación/error, que sí llevan esa clase. */
.modal.fade:not(.bootbox) .modal-dialog {
    margin-top: 80px;
}

.modal.fade:not(.bootbox) .modal-content {
    background-color: var(--fest-teal-dark);
    background-image: url('../img/inscripcionUnisimonfest/patron-gafas.png');
    background-repeat: repeat;
    background-size: 280px;
    background-blend-mode: soft-light;
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.modal.fade:not(.bootbox) .modal-header {
    background: transparent;
    border-bottom: none;
    text-align: center;
}

.modal.fade:not(.bootbox) .modal-header h3 {
    font-family: 'Chery Rush', cursive;
    color: #fff;
    font-size: 22px;
}

.modal.fade:not(.bootbox) .modal-body {
    background: transparent;
}

.modal.fade:not(.bootbox) .progress {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
}

.modal.fade:not(.bootbox) .progress-bar {
    background-color: var(--fest-orange);
    background-image: linear-gradient(90deg, var(--fest-orange) 0%, var(--fest-yellow) 100%);
}

/* Boleta en el portal: plantilla del proyecto (BOLETA_EGRESADO-01.svg) recortada
   al ticket, con el QR y los datos encima. Medidas tomadas de
   views/unisimonEventos/boleta.php (rol-egresado): el ticket mide 0.463 del
   ancho de la imagen, su alto es 0.92 veces ese ancho y su centro está en
   x = 51.65%, y = 46% de la imagen. Aquí el ticket ocupa el 90% del recuadro. */
.fest-boleta {
    text-align: center;
    margin: 15px 0;
}

.fest-boleta-ticket {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 10px auto;
    aspect-ratio: 100 / 93;
    overflow: hidden;
    container-type: inline-size;
}

.fest-boleta-plantilla {
    position: absolute;
    width: 194.38cqw;
    height: 261.05cqw;
    left: -50.4cqw;
    top: -73.58cqw;
    background: url('../img/unisimon_eventos/BOLETA_EGRESADO-01.svg') no-repeat center / 100% 100%;
    container-type: inline-size;
}

/* EST y FUN: mismo diseño/proporción que el recorte por defecto de arriba
   (BOLETA_EGRESADO-01.svg); solo cambia la imagen de fondo. */
.fest-boleta-ticket--EST .fest-boleta-plantilla {
    background-image: url('../img/unisimon_eventos/BOLETA_ESTUDIANTE-01.svg');
}

.fest-boleta-ticket--FUN .fest-boleta-plantilla {
    background-image: url('../img/unisimon_eventos/BOLETA_FUNCIONARIO-01.svg');
}

/* EGR, CLU, INS (y PRO/INV) vienen del lote nuevo de diseño (lienzo 1080x1920,
   el ticket ocupa casi todo el lienzo): no se recorta ni se hace zoom, se
   muestra la boleta completa con el QR sobre su recuadro blanco. */
.fest-boleta-ticket--EGR,
.fest-boleta-ticket--CLU,
.fest-boleta-ticket--INS,
.fest-boleta-ticket--PRO,
.fest-boleta-ticket--INV {
    aspect-ratio: 1080 / 1920;
}

.fest-boleta-ticket--EGR .fest-boleta-plantilla,
.fest-boleta-ticket--CLU .fest-boleta-plantilla,
.fest-boleta-ticket--INS .fest-boleta-plantilla,
.fest-boleta-ticket--PRO .fest-boleta-plantilla,
.fest-boleta-ticket--INV .fest-boleta-plantilla {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.fest-boleta-ticket--EGR .fest-boleta-plantilla {
    background-image: url('../img/unisimon_eventos/BOLETAS UNISIMON FEST 2026_egresados_egresados.svg');
}

.fest-boleta-ticket--CLU .fest-boleta-plantilla {
    background-image: url('../img/unisimon_eventos/BOLETAS UNISIMON FEST 2026_del cole a unisimon_del cole a unisimon.svg');
}

.fest-boleta-ticket--INS .fest-boleta-plantilla {
    background-image: url('../img/unisimon_eventos/BOLETAS UNISIMON FEST 2026_INSCRITOS NO MATRICULADOS_estudiantes menos 18 copy.svg');
}

.fest-boleta-ticket--PRO .fest-boleta-plantilla,
.fest-boleta-ticket--INV .fest-boleta-plantilla {
    background-image: url('../img/unisimon_eventos/UNISIMÓN BOLETA PROVEEDORES-25 (1).svg');
}

.fest-boleta-ticket--EGR .fest-boleta-qr,
.fest-boleta-ticket--CLU .fest-boleta-qr,
.fest-boleta-ticket--INS .fest-boleta-qr,
.fest-boleta-ticket--PRO .fest-boleta-qr,
.fest-boleta-ticket--INV .fest-boleta-qr {
    left: 31.5%;
    top: 68.1%;
    width: 37%;
    height: 20.8%;
}

.fest-boleta-ticket--EGR .fest-boleta-info,
.fest-boleta-ticket--CLU .fest-boleta-info,
.fest-boleta-ticket--INS .fest-boleta-info,
.fest-boleta-ticket--PRO .fest-boleta-info,
.fest-boleta-ticket--INV .fest-boleta-info {
    left: 15%;
    width: 70%;
    top: 89.3%;
    height: 6%;
    color: #1a4d6b;
}

/* Aquí la plantilla mide lo mismo que el ticket (no está ampliada), así que
   las letras en cqw necesitan ser más grandes que en los otros diseños. */
.fest-boleta-ticket--EGR .fest-boleta-nombre,
.fest-boleta-ticket--CLU .fest-boleta-nombre,
.fest-boleta-ticket--INS .fest-boleta-nombre,
.fest-boleta-ticket--PRO .fest-boleta-nombre,
.fest-boleta-ticket--INV .fest-boleta-nombre {
    font-size: 4.6cqw;
}

.fest-boleta-ticket--EGR .fest-boleta-numero,
.fest-boleta-ticket--CLU .fest-boleta-numero,
.fest-boleta-ticket--INS .fest-boleta-numero,
.fest-boleta-ticket--PRO .fest-boleta-numero,
.fest-boleta-ticket--INV .fest-boleta-numero {
    font-size: 3.8cqw;
}

.fest-boleta-ticket--EGR .fest-boleta-acompanante,
.fest-boleta-ticket--CLU .fest-boleta-acompanante,
.fest-boleta-ticket--INS .fest-boleta-acompanante,
.fest-boleta-ticket--PRO .fest-boleta-acompanante,
.fest-boleta-ticket--INV .fest-boleta-acompanante {
    font-size: 3.4cqw;
}

.fest-boleta-qr {
    position: absolute;
    left: 41.6%;
    top: 56.96%;
    width: 20.1%;
    height: 15.04%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fest-boleta-qr img,
.fest-boleta-qr canvas {
    width: 78% !important;
    height: auto !important;
}

.fest-boleta-info {
    position: absolute;
    left: 28.4%;
    width: 46.5%;
    top: 72.5%;
    height: 6.7%;
    padding: 0 3cqw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.4cqw;
    text-align: center;
    color: #1a5b5b;
    line-height: 1.1;
}

.fest-boleta-nombre {
    font-size: 2.5cqw;
    font-weight: 700;
}

.fest-boleta-numero {
    font-size: 2.1cqw;
    font-weight: 700;
}

.fest-boleta-acompanante {
    font-size: 1.9cqw;
    font-weight: 600;
}
