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

body {
    font-family: sans-serif;
    background-color: #ffffc7; /* Color de fondo amarillo claro */
    padding: 0;
    margin: 0;
}

.navbar {
    background-color: rgba(75, 46, 131, 1); /* Color púrpura oscuro */
    width: 100%;
    padding: 15px 0;
    text-align: center;
    overflow: hidden; /* Evita el scroll horizontal */
}

.nav-content {
    position: relative;
    width: 100%;
    overflow: hidden; /* Evita el scroll horizontal */
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-content h2 {
    color: white; /* Letras claras */
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    margin: 0;
    font-size: 20px;
    white-space: nowrap;
    position: relative;
    display: inline-block;
    animation: textScroll 8s linear infinite; /* Aumentada la velocidad */
}

@keyframes textScroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.container {
    max-width: 400px;
    margin: 0 auto;
    background-color: #f27405; /* Fondo naranja más oscuro */
    padding: 30px;
    border-radius: 20px; /* Radio de borde corregido a 20px */
    border: 3px solid #000000; /* Borde negro de 3px */
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    color: white; /* Letras claras */
    font-weight: 600; /* Semi bold */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Sombra oscura hacia abajo */
    position: relative;
    margin: 20px auto 40px; /* Reducido el margen superior */
}

.head-animation {
    position: absolute;
    top: -90px; /* Subida un poco más arriba */
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center bottom; /* Punto de rotación en la parte inferior */
    animation: headShake 2s infinite;
}

.head-image {
    width: 150px;
    height: 150px;
}

@keyframes headShake {
    0% { transform: translateX(-50%) rotate(0deg); }
    25% { transform: translateX(-50%) rotate(-20deg); }
    50% { transform: translateX(-50%) rotate(20deg); }
    75% { transform: translateX(-50%) rotate(-20deg); }
    100% { transform: translateX(-50%) rotate(0deg); }
}

.hand {
    position: absolute;
    top: 15%; /* Ajustado para estar casi a la altura del título */
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
}

.left-hand {
    left: -25px; /* Mitad del ancho de la mano */
}

.right-hand {
    right: -25px; /* Mitad del ancho de la mano */
}

.hand-image {
    width: 100%;
    height: 100%;
}

h1 {
    text-align: center;
    color: white; /* Letras claras */
    margin-top: 30px; /* Margen superior agregado */
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 600; /* Semi bold */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Sombra oscura hacia abajo */
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600; /* Semi bold */
    color: white; /* Letras claras */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Sombra oscura hacia abajo */
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 50px; /* Redondeo máximo */
    font-size: 16px;
    background-color: rgb(252, 236, 197); /* Fondo beige claro */
    box-sizing: border-box;
    font-family: sans-serif;
    font-weight: 600; /* Semi bold */
    color: #333; /* Letras oscuras */
    box-shadow: rgb(34, 34, 34) 1px 3px 0px 3px; /* Sombra gruesa */
}

input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9); /* Fondo blanco semi-transparente */
    box-sizing: border-box;
    font-family: sans-serif;
    font-weight: 600; /* Semi bold */
}

.radio-group {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.radio-group label {
    margin-bottom: 0;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border-radius: 50px; /* Redondeo máximo */
    margin-right: 10px;
    accent-color: #f27405; /* Color que coincide con el tema */
}

.checkbox-group label {
    margin-bottom: 0;
    font-weight: 600; /* Semi bold */
    color: white; /* Letras claras */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Sombra oscura hacia abajo */
}

.aviso {
    text-align: center;
    font-size: 14px;
    color: white; /* Letras claras */
    margin-top: 15px;
    font-style: italic;
    font-weight: 600; /* Semi bold */
    text-shadow: 0 1px 2px rgba(0,0,0,0.5); /* Sombra oscura hacia abajo */
}

.ticket-info {
    background-color: rgb(75, 46, 131); /* Color púrpura oscuro */
    color: white; /* Letras claras */
    font-family: sans-serif;
    font-weight: 600; /* Semi bold */
    text-align: center;
    border-radius: 20px;
    padding: 20px;
    margin: 30px auto 20px; /* Reducido el margen superior */
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: relative;
}

.ticket-label {
    font-size: 18px;
    margin: 0 0 15px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.payment-method-title {
    font-size: 16px;
    margin: 15px 0;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.ticket-image {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    margin: 15px auto;
    display: block;
}

.ticket-price {
    font-size: 36px; /* Reducido el tamaño de fuente */
    margin: 15px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.beneficiary-name {
    font-size: 16px;
    margin: 15px 0;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.participant-info-container {
    background-color: rgb(75, 46, 131); /* Color púrpura oscuro */
    color: white; /* Letras claras */
    font-family: sans-serif;
    font-weight: 600; /* Semi bold */
    text-align: center;
    border-radius: 20px;
    padding: 15px;
    margin: 20px auto;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.participant-info {
    font-size: 18px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

button {
    width: 100%;
    padding: 15px;
    background-color: rgb(75, 46, 131); /* Color púrpura oscuro */
    color: white;
    border: none;
    border-radius: 50px; /* Redondeo máximo */
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: sans-serif;
    font-weight: 600; /* Semi bold */
    box-shadow: rgb(34, 34, 34) 1px 3px 0px 3px; /* Sombra gruesa */
}

button:hover {
    background-color: rgb(255, 222, 67); /* Amarillo brillante */
    color: rgb(75, 46, 131); /* Púrpura oscuro */
}

/* Estilos para dispositivos móviles */
@media (max-width: 600px) {
    .container {
        padding: 20px;
        margin: 20px auto 40px; /* Reducido el margen superior en móviles */
        width: 90%; /* Ancho más pequeño en móviles */
    }
    
    .head-animation {
        top: -70px; /* Posición ajustada para móviles */
        width: 120px; /* Tamaño más pequeño en móviles */
        height: 120px;
    }
    
    .head-image {
        width: 120px;
        height: 120px;
    }
    
    .hand {
        top: 15%;
        width: 40px;
        height: 40px;
    }
    
    .left-hand {
        left: -20px;
    }
    
    .right-hand {
        right: -20px;
    }
    
    h1 {
        font-size: 22px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    input[type="file"] {
        font-size: 16px; /* Previene el zoom en iOS */
    }
    
    button {
        font-size: 16px;
    }
    
    .ticket-info {
        width: 90%; /* Ancho ajustado para móviles */
        margin: 30px auto; /* Margen reducido en móviles */
    }
    
    .ticket-image {
        width: 150px;
        height: 150px;
    }
}

.game-start {
    background-color: #008615; /* Color de fondo verde */
    color: white; /* Letras claras */
    font-family: sans-serif;
    font-weight: 600; /* Semi bold */
    text-align: center;
    padding: 30px 0;
    width: 100%;
    margin-top: 40px;
}

.game-start h2 {
    font-size: 24px;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.main-footer {
    background-color: rgba(75, 46, 131, 1); /* Color púrpura oscuro */
    color: white; /* Letras claras */
    font-family: sans-serif;
    font-weight: 600; /* Semi bold */
    text-align: center;
    padding: 20px 0;
    width: 100%;
    margin-top: 0;
}

.main-footer p {
    margin: 0;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Estilos para dispositivos móviles */
@media (max-width: 600px) {
    .game-start h2 {
        font-size: 20px;
    }
    
    .main-footer p {
        font-size: 14px;
    }
}

/* Estilos para el temporizador regresivo */
.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 20px auto;
    font-family: sans-serif;
    font-weight: 600;
    max-width: 400px;
    padding: 15px 0;
}

.countdown-number {
    font-size: 24px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
    min-width: 40px;
    text-align: center;
}

.countdown-label {
    font-size: 18px;
    margin-left: 2px;
}

.separator {
    font-size: 24px;
    font-weight: bold;
    margin: 0 5px;
}

/* Estilos para dispositivos móviles */
@media (max-width: 600px) {
    .countdown {
        gap: 2px;
        margin: 15px auto;
        max-width: 300px;
        padding: 10px 0;
    }
    
    .countdown-number {
        font-size: 20px;
        min-width: 35px;
        padding: 4px 8px;
    }
    
    .countdown-label {
        font-size: 16px;
    }
    
    .separator {
        font-size: 20px;
        margin: 0 3px;
    }
}

/* Estilos para la sección de publicidad */
.publicidad-section {
    max-width: 400px;
    margin: 20px auto;
    padding: 0 20px;
}

.publicidad-section .carousel {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    width: 100%;
    position: relative;
}

.publicidad-section .carousel-inner {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Relación de aspecto 1:1 (cuadrado) */
    position: relative;
}

.publicidad-section .carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.publicidad-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publicidad-section .carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 10px;
    bottom: 20px;
}

.publicidad-section .carousel-control-prev,
.publicidad-section .carousel-control-next {
    width: 10%;
    box-shadow: none;
    border: none;
    z-index: 10;
}

.publicidad-section .carousel-control-prev-icon,
.publicidad-section .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
    box-shadow: none;
    border: none;
}

.publicidad-section .carousel-indicators {
    bottom: 10px;
    z-index: 10;
}

.publicidad-section .carousel-indicators button {
    background-color: rgba(0, 0, 0, 0.5);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    box-shadow: none;
}

.publicidad-section .carousel-indicators .active {
    background-color: #fff;
    border: none;
    box-shadow: none;
}

/* Estilos para dispositivos móviles */
@media (max-width: 600px) {
    .publicidad-section {
        padding: 0 10px;
        margin: 15px auto;
        max-width: 100%;
    }
    
    .publicidad-section .carousel-inner {
        padding-bottom: 100%; /* Mantiene la proporción cuadrada */
    }
    
    .publicidad-section .carousel-item img {
        object-fit: cover;
    }
    
    .publicidad-section .carousel-caption h5 {
        font-size: 16px;
    }
    
    .publicidad-section .carousel-indicators {
        bottom: 5px;
    }
    
    .publicidad-section .carousel-indicators button {
        width: 8px;
        height: 8px;
    }
}