* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #1d3557;
}

.contenedor {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tarjeta {
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.logo {
    width: 100%;
    max-width: 380px;
    height: auto;
    display: block;
    margin: 0 auto 20px;
}

h1 {
    margin: 10px 0;
    font-size: 28px;
    color: #174ea6;
}

.descripcion {
    color: #666;
    line-height: 1.5;
    margin-bottom: 25px;
}

form {
    text-align: left;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

input {
    width: 100%;
    padding: 15px;
    border: 2px solid #dce3ec;
    border-radius: 10px;
    font-size: 18px;
    outline: none;
    margin-bottom: 15px;
}

input:focus {
    border-color: #174ea6;
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #174ea6;
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    opacity: 0.92;
}

.pie {
    margin-top: 25px;
    font-size: 13px;
    color: #999;
}
.mensaje {
    margin: 20px 0;
    padding: 18px;
    border-radius: 12px;
}

.mensaje.error {
    background: #ffe8e8;
    color: #a40000;
}

.mensaje.activada {
    background: #fff4e0;
    color: #8a5200;
}

.mensaje.disponible {
    background: #e8f7ee;
    color: #176b3a;
}

.nombre-registrado {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 20px;
}

.pequeno {
    font-size: 14px;
}

.boton-secundario {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    background: #555;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}
.resultado {
    margin: 25px 0;
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
}

.icono-resultado {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    margin: 0 auto 15px;

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

    font-size: 30px;
    font-weight: bold;
}

.resultado h1 {
    margin: 8px 0 12px;
    font-size: 25px;
}

.resultado p {
    line-height: 1.5;
    margin: 8px 0;
}


/* ERROR */

.resultado-error {
    background: #fff0f0;
    border: 1px solid #ffd0d0;
    color: #a00000;
}

.resultado-error .icono-resultado {
    background: #dc3545;
    color: white;
}


/* YA ACTIVADA */

.resultado-activada {
    background: #fff7e6;
    border: 1px solid #ffe0a3;
    color: #805500;
}

.resultado-activada .icono-resultado {
    background: #f0a500;
    color: white;
}


/* DISPONIBLE */

.resultado-disponible {
    background: #ecf9f1;
    border: 1px solid #b9e8c9;
    color: #176b3a;
}

.resultado-disponible .icono-resultado {
    background: #28a745;
    color: white;
}


/* NOMBRE DE PERSONA YA REGISTRADA */

.nombre-registrado {
    background: white;
    padding: 15px;
    border-radius: 10px;

    margin: 18px 0;

    font-size: 19px;
    font-weight: bold;

    color: #333;
}


/* BOTÓN VOLVER */

.boton-secundario,
.boton-continuar {
    display: block;
    width: 100%;

    padding: 15px;

    border-radius: 10px;

    text-decoration: none;

    text-align: center;

    font-size: 16px;
    font-weight: bold;

    margin-top: 15px;
}


/* BOTÓN INTENTAR */

.boton-secundario {
    background: #555;
    color: white;
}


/* BOTÓN CONTINUAR */

.boton-continuar {
    background: #174ea6;
    color: white;
}

.boton-secundario:hover,
.boton-continuar:hover {
    opacity: 0.9;
}
.numero-mostrado {
    background: white;
    padding: 12px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 18px;
    color: #333;
}

.numero-mostrado strong {
    font-size: 24px;
    color: #174ea6;
    margin-left: 5px;
}
.numero-escarapela {
    background: #eef4ff;
    border: 1px solid #c9daf5;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    color: #174ea6;
    font-size: 15px;
}

.numero-escarapela strong {
    display: block;
    font-size: 25px;
    margin-top: 3px;
}

.formulario-tarjeta {
    max-width: 520px;
}

.campo {
    margin-bottom: 18px;
    text-align: left;
}

.campo label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
    color: #333;
}

.campo input,
.campo select {
    width: 100%;
    height: 52px;
    padding: 0 14px;

    border: 2px solid #dce3ec;
    border-radius: 10px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;

    color: #333;
    background-color: #fff;

    outline: none;

    transition: border-color 0.2s, box-shadow 0.2s;
}

/* SELECT */

.campo select {
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    padding-right: 45px;

    background-image:
        linear-gradient(45deg, transparent 50%, #174ea6 50%),
        linear-gradient(135deg, #174ea6 50%, transparent 50%);

    background-position:
        calc(100% - 20px) 22px,
        calc(100% - 14px) 22px;

    background-size:
        6px 6px,
        6px 6px;

    background-repeat: no-repeat;
}

/* HOVER */

.campo input:hover,
.campo select:hover {
    border-color: #9db5d6;
}

/* FOCUS */

.campo input:focus,
.campo select:focus {
    border-color: #174ea6;

    box-shadow:
        0 0 0 3px rgba(23, 78, 166, 0.10);
}

/* OPCIÓN INICIAL */

.campo select:invalid {
    color: #777;
}

.campo select option {
    color: #333;
}

.captcha {
    margin-top: 22px;
    margin-bottom: 20px;
    text-align: left;
}

.captcha label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.captcha-pregunta {
    background: #f4f7fb;
    border: 2px solid #dce3ec;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 18px;
    color: #174ea6;
}

.captcha-pregunta strong {
    font-size: 22px;
}

.beneficios {
    margin-top: 20px;
}

.beneficio {
    background: #f4f7fb;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    text-align: left;
    font-size: 22px;
}

.beneficio strong {
    display: block;
    margin-top: 5px;
    font-size: 17px;
    color: #174ea6;
}

.beneficio span {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.mensaje-final {
    margin-top: 25px;
    color: #555;
    line-height: 1.5;
}

.boton-salir {
    display: block;
    width: 100%;

    margin-top: 20px;
    padding: 14px;

    border-radius: 10px;

    background: #555;
    color: white;

    text-decoration: none;

    text-align: center;

    font-size: 16px;
    font-weight: bold;

    transition: opacity 0.2s;
}

.boton-salir:hover {
    opacity: 0.9;
}

/* =========================================================
   AJUSTES PARA CELULARES
   ========================================================= */

@media (max-width: 600px) {

 .imagen-recorrido,
    .video-recorrido {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .imagen-recorrido img,
    .video-recorrido video {
        width: 100%;
        max-width: 100%;
        height: auto;
    }


    .beneficio {
    display: block;
    text-align: left;
    margin-bottom: 12px;
}

.beneficio strong {
    display: inline;
    margin-right: 5px;
}

.beneficio span {
    display: block;
    margin-left: 0;
    margin-top: 4px;
}

    .contenedor {
        padding: 10px;
        align-items: flex-start;
    }

    .tarjeta {
        padding: 22px 16px;
        border-radius: 16px;
    }

    .logo {
        max-width: 300px;
        margin-bottom: 15px;
    }

    .resultado {
        margin: 18px 0;
        padding: 20px 15px;
        border-radius: 14px;
    }

    .resultado h1 {
        font-size: 23px;
    }

    .resultado p {
        font-size: 15px;
    }

    .icono-resultado {
        width: 50px;
        height: 50px;
        font-size: 27px;
    }

    /* BLOQUES DE HIDRATACIÓN Y RIFAS */

    .beneficios {
        margin-top: 15px;
    }

    .beneficio {
        padding: 13px 14px;
        margin-bottom: 10px;

        border-radius: 11px;

        font-size: 20px;
    }

    .beneficio strong {
        font-size: 16px;
        margin-top: 3px;
    }

    .beneficio span {
        font-size: 14px;
        line-height: 1.35;
        margin-top: 4px;
    }

    .mensaje-final {
        font-size: 14px;
        margin-top: 20px;
        line-height: 1.4;
    }

    .boton-salir {
        margin-top: 16px;
        padding: 13px;
        font-size: 15px;
    }

}

.beneficio-titulo {
    font-size: 20px;
}

.beneficio-titulo strong {
    font-size: 17px;
    color: #174ea6;
}

@media (max-width: 600px) {

    .beneficio {
        padding: 12px 14px;
        margin-bottom: 10px;
    }

    .beneficio-titulo {
        margin-bottom: 4px;
    }

    .beneficio span {
        display: block;
        font-size: 14px;
        line-height: 1.35;
    }

}

/* =========================================================
   INFORMACIÓN DEL EVENTO - INDEX
   ========================================================= */

.informacion-evento {
    width: 100%;
    margin-top: 35px;
    text-align: left;
}

.seccion-evento {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid #e5eaf1;
}

.seccion-evento:first-child {
    margin-top: 0;
    padding-top: 10px;
    border-top: none;
    text-align: center;
}

.seccion-evento h2 {
    margin: 0 0 14px;
    color: #174ea6;
    font-size: 23px;
    line-height: 1.25;
}

.seccion-evento p {
    margin: 8px 0;
    color: #555;
    font-size: 16px;
    line-height: 1.6;
}

.icono-seccion {
    font-size: 38px;
    margin-bottom: 8px;
}


/* =========================================================
   DESTACADOS
   ========================================================= */

.destacados {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.destacado {
    background: #f4f7fb;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.destacado span {
    display: block;
    font-size: 27px;
    margin-bottom: 7px;
}

.destacado strong {
    display: block;
    color: #174ea6;
    font-size: 16px;
}

.destacado small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   BENEFICIOS
   ========================================================= */

.beneficio-evento {
    display: flex;
    align-items: flex-start;
    gap: 14px;

    background: #f4f7fb;

    padding: 16px;
    margin-top: 12px;

    border-radius: 12px;
}

.beneficio-icono {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: white;

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

    font-size: 22px;
}

.beneficio-evento strong {
    color: #174ea6;
    font-size: 17px;
}

.beneficio-evento p {
    margin: 4px 0 0;
    font-size: 14px;
    line-height: 1.45;
}


/* =========================================================
   RECORRIDO - IMAGEN Y VIDEO RESPONSIVOS
   ========================================================= */

.imagen-recorrido,
.video-recorrido {
    width: 100%;
    max-width: 100%;
    margin-top: 18px;

    overflow: hidden;

    border-radius: 14px;
    border: 1px solid #e0e6ef;

    box-sizing: border-box;
}

.imagen-recorrido img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    box-sizing: border-box;
}

.video-recorrido {
    background: #000;
}

.video-recorrido video {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    box-sizing: border-box;
}


/* =========================================================
   MENSAJE FINAL
   ========================================================= */

.mensaje-invitacion {
    margin-top: 35px;
    padding: 25px 20px;

    border-radius: 15px;

    background: #eef4ff;

    text-align: center;
}

.mensaje-invitacion h2 {
    margin: 0 0 10px;
    color: #174ea6;
    font-size: 24px;
}

.mensaje-invitacion p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .informacion-evento {
        margin-top: 28px;
    }

    .seccion-evento {
        margin-top: 28px;
        padding-top: 25px;
    }

    .seccion-evento h2 {
        font-size: 21px;
    }

    .seccion-evento p {
        font-size: 15px;
        line-height: 1.5;
    }

    .destacados {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .destacado {
        padding: 12px 8px;
    }

    .destacado span {
        font-size: 24px;
    }

    .destacado strong {
        font-size: 15px;
    }

    .destacado small {
        font-size: 12px;
    }

    .beneficio-evento {
        gap: 10px;
        padding: 13px;
    }

    .beneficio-icono {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 19px;
    }

    .beneficio-evento strong {
        font-size: 16px;
    }

    .beneficio-evento p {
        font-size: 13px;
    }

    .mensaje-invitacion {
        padding: 20px 15px;
    }

    .mensaje-invitacion h2 {
        font-size: 21px;
    }

}

/* Evita que cualquier contenido genere desplazamiento horizontal */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
video {
    max-width: 100%;
}

/* =========================================================
   MINIATURA DEL VIDEO
   ========================================================= */

.video-recorrido video {
    width: 100%;
    max-width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    background: #000;
}

.video-recorrido video.reproduciendo {
    height: auto;
    object-fit: contain;
}