/* css/style.css */

/* 1. Importación de la fuente Brandon Grotesque Black */
@font-face {
    font-family: 'Brandon Grotesque';
    src: url('BrandonGrotesque-Black.ttf') format('opentype');
    /* Asegúrate de subir este archivo */
    font-weight: 900;
    font-style: normal;
}

/* 2. Variables de Color (Estilo Coors Light) */
:root {
    --coors-blue: #0033A0;
    --coors-red: #E31837;
    --coors-silver: #D1D3D4;
    --dark-grey: #2C2A29;
    --white: #FFFFFF;
}

/* 3. Reset y Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Brandon Grotesque', sans-serif;
}

body {
    background: linear-gradient(135deg, #e0e4e8 0%, #b8c1c8 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    text-transform: uppercase;
    /* <-- ESTO FUERZA TODO A MAYÚSCULAS */
}

/* 4. Contenedores */
.main-container {
    width: 100%;
    max-width: 450px;
    /* Tamaño ideal para móvil */
    margin-top: 30px;
    text-align: center;
}

.brand-logo {
    max-width: 220px;
    margin-bottom: 25px;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.1));
}

.card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 10px 25px rgba(0, 51, 160, 0.15);
    border-top: 5px solid var(--coors-red);
}

/* 5. Tipografía */
.title {
    color: var(--coors-blue);
    font-size: 28px;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.subtitle {
    color: var(--dark-grey);
    font-size: 16px;
    margin-bottom: 25px;
    font-family: Arial, sans-serif;
    /* Contraste para lectura fácil */
}

/* 6. Formulario */
.input-group {
    margin-bottom: 18px;
    text-align: left;
}

.input-group label {
    display: block;
    color: var(--coors-blue);
    font-size: 14px;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 14px 15px;
    border: 2px solid var(--coors-silver);
    border-radius: 8px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    /* Mejor legibilidad en inputs */
    color: var(--dark-grey);
    transition: all 0.3s ease;
    background-color: #FAFAFA;
}

.input-group input:focus {
    outline: none;
    border-color: var(--coors-blue);
    background-color: var(--white);
}

/* 7. Botones */
.btn-primary {
    background-color: var(--coors-red);
    color: var(--white);
    border: none;
    width: 100%;
    padding: 16px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    letter-spacing: 1.5px;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

.btn-primary:hover {
    background-color: #c4122d;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    background-color: var(--coors-silver);
    cursor: not-allowed;
}

/* 8. Alertas y Mensajes */
.alert {
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
}

.alert-error {
    background-color: #FDE8E8;
    color: var(--coors-red);
    border: 2px solid #F8B4B4;
}

.alert-warning {
    background-color: #FEF4E4;
    color: #b7791f;
    border: 2px solid #FDE0B4;
}

.alert h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.alert p {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}

.prize-success {
    background-color: var(--coors-blue);
    color: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
}

.prize-success h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--coors-silver);
}

.prize-success strong {
    font-size: 22px;
    display: block;
    margin: 15px 0;
    color: var(--white);
}

.prize-success .instruction {
    font-family: Arial, sans-serif;
    font-size: 14px;
    opacity: 0.9;
}

/* 9. Spinner de Carga */
.loading-state {
    text-align: center;
    padding: 40px 0;
}

.loading-state p {
    margin-top: 15px;
    color: var(--coors-blue);
    font-size: 18px;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 5px solid var(--coors-silver);
    border-top: 5px solid var(--coors-blue);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* --- ESTILOS DE LA RULETA DE PREMIOS --- */
.prize-roulette {
    background-color: var(--coors-silver);
    padding: 40px 20px;
    border-radius: 12px;
    color: var(--coors-blue);
}

.prize-roulette h2 {
    font-size: 26px;
    margin-bottom: 25px;
}

.roulette-box {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    font-size: 32px;
    font-weight: 900;
    color: var(--coors-red);
    border: 4px solid var(--coors-blue);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Animación de aparición para el premio ganador */
.fade-in {
    animation: fadeInScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}