:root {
    --verde: #6a0d83;
    --verde-claro: #a855c7;
    --negro: #171717;
    --blanco: #ffffff;
    --rojo: #ca3d38;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--negro);
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 15% 20%, rgba(79, 151, 67, 0.35), transparent 25%),
        radial-gradient(circle at 85% 70%, rgba(179, 32, 32, 0.25), transparent 28%),
        linear-gradient(135deg, #142413, #111111 50%, #251313);
    background-attachment: fixed;
}

.encabezado {
    position: sticky;
    top: 0;
    z-index: 20;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 6%;
    background: #202020;
    border-top: 24px solid var(--verde);
    border-bottom: 24px solid var(--verde);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.45);
}

.enlace-cabecera {
    width: 230px;
    color: var(--blanco);
    font-size: 27px;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    transition: color 0.2s ease;
}

.enlace-cabecera:hover {
    color: #8bd27f;
}

.marca {
    position: absolute;
    top: -18px;
    left: 50%;
    z-index: 21;
    transform: translateX(-50%);
}

.marca img {
    display: block;
    width: 210px;
    max-height: 205px;
    object-fit: contain;
    filter: drop-shadow(0 5px 3px rgba(0, 0, 0, 0.45));
}

.enlace-derecho {
    margin-left: auto;
}

.enlace-subir-pago {
    transform-origin: center;
    animation: pulso-subir-pago 1.4s ease-in-out infinite;
}

@keyframes pulso-subir-pago {
    0%,
    100% {
        transform: scale(1);
        text-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        transform: scale(1.07);
        text-shadow:
            0 0 10px rgba(255, 255, 255, 0.95),
            0 0 22px rgba(106, 13, 131, 0.95);
    }
}

@media (prefers-reduced-motion: reduce) {
    .enlace-subir-pago {
        animation: none;
    }
}

.contenido {
    width: min(1120px, 94%);
    margin: 0 auto;
    padding: 55px 0 70px;
}

.contenido > h1 {
    margin: 0;
    color: var(--blanco);
    font-size: clamp(32px, 5vw, 54px);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.6);
}

.introduccion {
    margin: 12px 0 40px;
    color: #eeeeee;
    font-size: 20px;
    text-align: center;
}

.lista-sorteos {
    display: grid;
    gap: 55px;
}

.tarjeta-sorteo {
    overflow: hidden;
    padding: 34px;
    background: linear-gradient(145deg, #ffffff, #eeeeee);
    border: 8px solid var(--verde);
    border-radius: 46px;
    box-shadow:
        0 13px 0 rgba(0, 0, 0, 0.75),
        0 24px 38px rgba(0, 0, 0, 0.45);
}

.imagen-sorteo {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 3px solid #111111;
    border-radius: 29px;
    background: #dddddd;
}

.sin-imagen {
    display: grid;
    width: 100%;
    min-height: 360px;
    place-items: center;
    border: 3px solid #111111;
    border-radius: 29px;
    background: linear-gradient(135deg, #202020, #6a0d83);
}

.sin-imagen img {
    width: min(330px, 65%);
}

.datos-sorteo {
    padding-top: 25px;
    text-align: center;
}

.datos-sorteo h2 {
    margin: 0 0 10px;
    font-size: clamp(25px, 4vw, 42px);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.premio {
    margin: 12px 0 30px;
    font-size: clamp(38px, 6vw, 65px);
    font-weight: 900;
    letter-spacing: 7px;
    text-transform: none;
}

.acciones {
    display: grid;
    gap: 22px;
}

.boton {
    display: flex;
    min-height: 105px;
    align-items: center;
    justify-content: center;
    padding: 20px 28px;
    border-radius: 32px;
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: 7px;
    text-align: center;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.boton:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.28);
}

.boton-disponibles {
    color: var(--blanco);
    background: var(--verde);
    border: 5px solid #101010;
}

.boton-disponibles:hover {
    background: #4a075a;
}

.boton-verificador {
    color: var(--verde);
    background: var(--blanco);
    border: 5px solid #101010;
}

.boton-verificador:hover {
    color: var(--blanco);
    background: var(--verde);
}

.sin-sorteos {
    padding: 55px 25px;
    color: var(--negro);
    text-align: center;
    background: var(--blanco);
    border: 7px solid var(--verde);
    border-radius: 38px;
}

.sin-sorteos img {
    width: min(240px, 70%);
}

.sin-sorteos h2 {
    margin-bottom: 5px;
    font-size: 36px;
}

.sin-sorteos p {
    font-size: 20px;
}

footer {
    padding: 25px;
    color: #dddddd;
    text-align: center;
    background: #111111;
    border-top: 8px solid var(--verde);
}

@media (max-width: 700px) {
body {
        padding-top: 112px;
    }
    .encabezado {
position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;     
   height: 112px;
        padding: 16px 3%;
        border-top-width: 12px;
        border-bottom-width: 12px;
    }

    .enlace-cabecera {
        width: 100px;
        font-size: 14px;
        line-height: 1.2;
    }

    .marca {
        top: -7px;
    }

    .marca img {
        width: 122px;
        max-height: 118px;
    }

    .contenido {
        width: 94%;
        padding: 35px 0 55px;
    }

    .contenido > h1 {
        font-size: 29px;
        letter-spacing: 2px;
    }

    .introduccion {
        margin-bottom: 27px;
        font-size: 16px;
    }

    .lista-sorteos {
        gap: 36px;
    }

    .tarjeta-sorteo {
        padding: 14px;
        border-width: 5px;
        border-radius: 27px;
        box-shadow:
            0 8px 0 rgba(0, 0, 0, 0.75),
            0 16px 25px rgba(0, 0, 0, 0.4);
    }

    .imagen-sorteo {
        border-width: 2px;
        border-radius: 18px;
    }

    .sin-imagen {
        min-height: 190px;
        border-radius: 18px;
    }

    .datos-sorteo {
        padding-top: 18px;
    }

    .datos-sorteo h2 {
        font-size: 20px;
        letter-spacing: 1px;
    }

    .premio {
        margin: 9px 0 19px;
        font-size: 31px;
        letter-spacing: 3px;
    }

    .acciones {
        gap: 13px;
    }

    .boton {
        min-height: 67px;
        padding: 14px 10px;
        border-width: 4px;
        border-radius: 22px;
        font-size: 18px;
        letter-spacing: 3px;
    }
}

/* Preguntas frecuentes */
.preguntas-frecuentes {
    width: 100%;
    margin: 0;
    color: #111111;
    background: #ffffff;
    border-top: 10px solid #6a0d83;
}

.franja-preguntas {
    margin: 0;
    padding: 30px 5%;
    color: #ffffff;
    background: #6a0d83;
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 6px;
    text-align: center;
    text-shadow: 0 5px 5px rgba(0, 0, 0, 0.75);
}

.contenido-preguntas {
    width: min(1050px, 92%);
    margin: 0 auto;
    padding: 65px 0 75px;
}

.contenido-preguntas .pregunta {
    margin: 0 0 70px;
    text-align: center;
}

.contenido-preguntas .pregunta h3 {
    max-width: 950px;
    margin: 0 auto 32px;
    color: #6a0d83;
    font-size: clamp(27px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.18;
    letter-spacing: 4px;
}

.contenido-preguntas .pregunta p {
    margin: 0 auto 30px;
    font-size: clamp(19px, 2.6vw, 31px);
    font-weight: 500;
    line-height: 1.55;
}

.contenido-preguntas a {
    color: #6a0d83;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.separador-preguntas {
    width: min(380px, 60%);
    height: 7px;
    margin: 15px auto 55px;
    background: #6a0d83;
}

.aviso-transmision {
    margin: 0 auto 65px;
    font-size: clamp(21px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
}

.contacto-preguntas {
    text-align: center;
}

.contacto-preguntas h3 {
    margin: 0 0 28px;
    color: #111111;
    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 900;
}

.botones-contacto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.boton-social {
    display: inline-flex;
    width: 92px;
    height: 92px;
    align-items: center;
    justify-content: center;
    border: 4px solid #111111;
    border-radius: 50%;
    box-shadow: 0 7px 12px rgba(0, 0, 0, 0.28);
    text-decoration: none !important;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.boton-social:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 11px 18px rgba(0, 0, 0, 0.35);
}

.boton-social span {
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 54px;
    font-weight: 900;
    line-height: 1;
}

.boton-whatsapp {
    background: #25d366;
}

.boton-facebook {
    background: #1877f2;
}

.boton-facebook span {
    transform: translateY(7px);
    font-size: 68px;
}

@media (max-width: 700px) {
    .preguntas-frecuentes {
        border-top-width: 7px;
    }

    .franja-preguntas {
        padding: 22px 4%;
        font-size: 27px;
        letter-spacing: 3px;
    }

    .contenido-preguntas {
        width: 90%;
        padding: 45px 0 55px;
    }

    .contenido-preguntas .pregunta {
        margin-bottom: 52px;
    }

    .contenido-preguntas .pregunta h3 {
        margin-bottom: 24px;
        font-size: 25px;
        letter-spacing: 2px;
    }

    .contenido-preguntas .pregunta p {
        margin-bottom: 25px;
        font-size: 19px;
        line-height: 1.5;
    }

    .separador-preguntas {
        height: 5px;
        margin-bottom: 42px;
    }

    .aviso-transmision {
        margin-bottom: 48px;
        font-size: 21px;
    }

    .contacto-preguntas h3 {
        font-size: 25px;
    }

    .boton-social {
        width: 78px;
        height: 78px;
    }

    .boton-social span {
        font-size: 45px;
    }

    .boton-facebook span {
        font-size: 58px;
    }
}

.boton-social-imagen {
    overflow: hidden;
    padding: 0;
    background: #ffffff;
}

.boton-social-imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Dos columnas cuando existen varias rifas: solo computadora */
@media (min-width: 701px) {
    .lista-sorteos--multiples {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
        align-items: start;
    }

    .lista-sorteos--multiples .tarjeta-sorteo {
        padding: 18px;
        border-width: 6px;
        border-radius: 30px;
    }

    .lista-sorteos--multiples .imagen-sorteo {
        border-radius: 20px;
    }

    .lista-sorteos--multiples .datos-sorteo {
        padding-top: 18px;
    }

    .lista-sorteos--multiples .datos-sorteo h2 {
        font-size: clamp(18px, 1.8vw, 26px);
        letter-spacing: 3px;
    }

    .lista-sorteos--multiples .acciones {
        gap: 12px;
    }

    .lista-sorteos--multiples .boton {
        min-height: 64px;
        padding: 12px 16px;
        border-radius: 18px;
        font-size: clamp(15px, 1.35vw, 20px);
        letter-spacing: 3px;
    }

    .lista-sorteos--multiples .boton-disponibles,
    .lista-sorteos--multiples .boton-verificador {
        border-width: 3px;
    }

    .lista-sorteos--multiples .tarjeta-sorteo:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc((100% - 32px) / 2);
        justify-self: center;
    }
}

/* Igualar el tamaño de las tarjetas múltiples */
@media (min-width: 701px) {
    .lista-sorteos--multiples {
        align-items: stretch;
    }

    .lista-sorteos--multiples .tarjeta-sorteo {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .lista-sorteos--multiples .sin-imagen {
        min-height: 0;
        aspect-ratio: 16 / 9;
        border-radius: 20px;
    }

    .lista-sorteos--multiples .datos-sorteo {
        display: flex;
        flex: 1;
        flex-direction: column;
    }

    .lista-sorteos--multiples .acciones {
        margin-top: auto;
    }
}
