* {
    box-sizing: border-box;
}

body {
margin: 0;
font-family: Arial, sans-serif;
background:
  linear-gradient(
  180deg,
  rgba(27, 20, 100, 0.85),
  rgba(108, 92, 231, .085)
  ),
  url("images/3.jpg") center center / cover no-repeat;
color: white;
}


/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hero-content {
    max-width: 420px;
    width: 100%;
    text-align: center;
}

/* ===== TITULOS ===== */
h1 {
    font-size: 2.4rem;
    margin-bottom: 10px;
}

h1 span {
    background: linear-gradient(90deg, #d630ff, #2e86de);
    -webkit-background-clip: text;
    color: transparent;
}

/* ===== FECHA ===== */
.fecha {
    font-size: 1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* ===== CONTADOR ===== */
.contador {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.contador div {
    flex: 1;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 12px 0;
    box-shadow: 0 0 10px rgba(255,255,255,0.15);
}

.contador span {
    font-size: 1.6rem;
    font-weight: bold;
}

.contador small {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* ===== TEXTO BENEFICIO ===== */
.beneficio {
    font-size: 1rem;
    margin-bottom: 15px;
}

/* ===== ALERTA ERROR ===== */
.alerta {
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 77, 77, 0.18);
    border: 1px solid rgba(255, 77, 77, 0.6);
    color: #ffdada;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.6);
    animation: shake 0.3s ease-in-out;
}

/* ANIMACIÃ“N ERROR */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-4px); }
    100% { transform: translateX(0); }
}

/* ===== INPUTS ===== */
input {
    width: 100%;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: none;
    font-size: 0.95rem;
}

/* ===== BOTÃ“N CTA ===== */
button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(90deg, #feca57, #ff9f43);
    color: #1b1464;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(254, 202, 87, 0.7);
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgba(254, 202, 87, 1);
}

/* ===== TEXTO CONFIANZA ===== */
.confianza {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.8;
}

/* ===== DESKTOP ===== */
@media (min-width: 768px) {
    .hero-content {
        max-width: 520px;
    }

    h1 {
        font-size: 3rem;
    }
}

/* ===== PANTALLA DE Ã‰XITO ===== */

.card {
    max-width: 420px;
    width: 100%;
    padding: 30px 25px;
    border-radius: 22px;
    text-align: center;
    background: linear-gradient(
        135deg,
        rgba(108, 92, 231, 0.25),
        rgba(27, 20, 100, 0.9)
    );
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 30px rgba(108, 92, 231, 0.6),
        0 0 60px rgba(214, 48, 255, 0.4);
    border: 1px solid rgba(255,255,255,0.15);
    margin: auto;
}

.success {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.rifa-label {
    margin-top: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.numero {
    margin: 15px 0;
    font-size: 3rem;
    font-weight: bold;
    color: #feca57;
    text-shadow:
        0 0 10px #feca57,
        0 0 20px #ff9f43,
        0 0 40px #ff9f43;
    animation: glow 2s infinite alternate;
}

.mensaje {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 20px;
}

/* NEÃ“N */
@keyframes glow {
    from {
        text-shadow:
            0 0 10px #feca57,
            0 0 20px #ff9f43;
    }
    to {
        text-shadow:
            0 0 20px #feca57,
            0 0 40px #ff9f43,
            0 0 60px #ff9f43;
    }
}

/* ===== CENTRAR PANTALLA REGISTRO ===== */
body.registro-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-volver{
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 15px 26px;
    border-radius: 18px;

    background: linear-gradient(135deg, #feca57, #ff9f43, #feca57);
    background-size: 200% 200%;

    color: #1b1464;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;

    box-shadow:
        0 0 15px rgba(254, 202, 87, 0.8),
        0 0 30px rgba(255, 159, 67, 0.7),
        inset 0 0 8px rgba(255,255,255,0.4);

    transition: all 0.35s ease;
    animation: gradientMove 4s ease infinite;
}


/* ðŸ–± Hover */
.btn-volver:hover{
    transform: scale(1.08) translateY(-2px);
    box-shadow:
        0 0 25px rgba(254, 202, 87, 1),
        0 0 50px rgba(255, 159, 67, 0.9);
}

/* âœ¨ Click */
.btn-volver:active{
    transform: scale(0.96);
}

/* ðŸŒˆ animaciÃ³n del degradado */
@keyframes gradientMove{
    0%{ background-position: 0% 50% }
    50%{ background-position: 100% 50% }
    100%{ background-position: 0% 50% }
}
