/* Importar una fuente legible y moderna */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #333;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    color: #1e3a8a; /* Un azul oscuro */
    margin-bottom: 20px;
}

img {
    max-width: 80%;
    max-height: 45vh;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 15px;
    background-color: #fff;
    padding: 10px;
}
.sombra {
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.instruction {
    font-size: 1.1em;
    line-height: 1.5;
    max-width: 600px;
    margin-bottom: 15px;
}

/* --- ESTILOS PARA VALIDACIÓN --- */

.verification-box {
    width: 100%;
    max-width: 350px;
    padding: 20px;
    border-radius: 12px;
    background-color: #e0e7ff;
    border: 1px solid #c7d2fe;
}

.my-code-section {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 2px dashed #a5b4fc;
}

.my-code-section p {
    margin: 0;
    font-size: 1em;
    font-weight: bold;
    color: #4338ca;
}

.my-code-section .code {
    font-size: 3em;
    font-weight: 700;
    color: #1e3a8a;
    letter-spacing: 5px;
    margin: 5px 0;
}

.my-code-section small {
    font-size: 0.8em;
    color: #64748b;
}

.validation-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #4338ca;
}

.validation-form input {
    width: 100%;
    max-width: 200px;
    padding: 12px;
    font-size: 1.5em;
    text-align: center;
    letter-spacing: 3px;
    border: 2px solid #a5b4fc;
    border-radius: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.validation-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    background-color: #4f46e5;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.validation-form button:hover {
    background-color: #4338ca;
}

.validation-error {
    color: #b91c1c;
    font-weight: bold;
    margin-top: 10px;
}

/* Caja de éxito tras validar */
.validation-success-box {
    padding: 20px 30px;
    background-color: #dcfce7;
    border: 2px solid #22c55e;
    border-radius: 12px;
    max-width: 500px;
}

.validation-success-box .success-title {
    font-size: 2em;
    font-weight: 700;
    color: #15803d;
    margin: 0 0 10px 0;
}

.validation-success-box p {
    font-size: 1.1em;
    color: #166534;
    margin: 0;
}

/* --- NUEVOS ESTILOS PARA NÚMERO DE PREMIO --- */

.prize-number-wrapper {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #4ade80;
}

.prize-number-label {
    font-size: 1em !important;
    font-weight: bold;
    color: #166534 !important;
}

.prize-number {
    font-size: 3.5em !important;
    font-weight: 700;
    color: #14532d !important;
    letter-spacing: 3px;
    margin-top: 5px !important;
}

/* Estilos para mensajes generales de error */
.error {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 15px;
    border-radius: 8px;
}