/* Sorteo de Año Nuevo 2027 · /sorteo. Colores de las piezas de la campaña. */
.giveaway-page {
    --gw-cream: #fff7ea;
    --gw-peach: #ffe3c4;
    --gw-cherry: #a82443;
    --gw-ink: #3d1a29;
    --gw-gold: #ffcf50;
    --gw-orange: #ed643a;
    --gw-teal: #135b49;
    --gw-mint: #d4eedb;
    --gw-serif: Georgia, "Times New Roman", serif;
    color: var(--gw-ink);
}

.giveaway-eyebrow {
    color: var(--gw-cherry);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0 0 0.6rem;
    text-transform: uppercase;
}

.giveaway-hero {
    background: linear-gradient(150deg, var(--gw-cream) 0%, var(--gw-peach) 100%);
    border-bottom: 1px solid #f0d3b4;
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.giveaway-hero__inner {
    align-items: center;
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.giveaway-hero__title {
    font-family: var(--gw-serif);
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.05;
    margin: 0 0 1rem;
}

.giveaway-hero__title em {
    color: var(--gw-cherry);
    font-style: italic;
}

.giveaway-hero__lead {
    font-size: 1.12rem;
    line-height: 1.55;
    margin: 0 0 1.4rem;
    max-width: 46ch;
}

.giveaway-hero__art img {
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(61, 26, 41, 0.18);
    display: block;
    height: auto;
    width: 100%;
}

.giveaway-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.giveaway-dates p {
    background: var(--gw-ink);
    border-radius: 14px;
    color: var(--gw-cream);
    display: grid;
    margin: 0;
    padding: 0.65rem 1rem;
}

.giveaway-dates p + p {
    background: var(--gw-gold);
    color: var(--gw-ink);
}

.giveaway-dates span {
    font-size: 0.8rem;
    opacity: 0.85;
}

.giveaway-dates strong {
    font-size: 1.05rem;
}

.giveaway-countdown {
    margin-bottom: 1.4rem;
}

.giveaway-countdown__label {
    color: var(--gw-cherry);
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.giveaway-countdown__units {
    display: flex;
    gap: 0.5rem;
}

.giveaway-countdown__units p {
    background: #fff;
    border: 2px solid var(--gw-cherry);
    border-radius: 12px;
    display: grid;
    justify-items: center;
    margin: 0;
    min-width: 4.2rem;
    padding: 0.45rem 0.5rem;
}

.giveaway-countdown__units strong {
    color: var(--gw-ink);
    font-family: var(--gw-serif);
    font-size: 1.6rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.giveaway-countdown__units span {
    color: var(--gw-cherry);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.giveaway-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.giveaway-btn {
    border: 2px solid var(--gw-cherry);
    border-radius: 999px;
    display: inline-block;
    font-weight: 800;
    padding: 0.75rem 1.4rem;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.giveaway-btn:hover,
.giveaway-btn:focus-visible {
    box-shadow: 0 6px 16px rgba(168, 36, 67, 0.25);
    transform: translateY(-1px);
}

.giveaway-btn--primary {
    background: var(--gw-cherry);
    color: #fff;
}

.giveaway-btn--primary:hover,
.giveaway-btn--primary:focus-visible {
    color: #fff;
}

.giveaway-btn--ghost {
    background: transparent;
    color: var(--gw-cherry);
}

.giveaway-section-title {
    font-family: var(--gw-serif);
    font-size: clamp(1.6rem, 3.4vw, 2.2rem);
    margin: 0 0 1.2rem;
}

.giveaway-prizes {
    padding-top: clamp(2rem, 4vw, 3rem);
}

.giveaway-prizes__grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.giveaway-prize {
    background: #fff;
    border: 1px solid #f0d3b4;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.giveaway-prize img {
    aspect-ratio: 4 / 3;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.giveaway-prize__body {
    padding: 1.2rem 1.3rem 1.4rem;
}

.giveaway-prize__rank {
    color: var(--gw-cherry);
    font-weight: 900;
    margin: 0 0 0.3rem;
}

.giveaway-prize h3 {
    font-family: var(--gw-serif);
    font-size: 1.45rem;
    margin: 0 0 0.7rem;
}

.giveaway-prize ul {
    margin: 0 0 0.8rem;
    padding-left: 1.2rem;
}

.giveaway-prize li + li {
    margin-top: 0.35rem;
}

.giveaway-prize__note {
    color: #7a5c66;
    font-size: 0.88rem;
    margin: 0;
}

.giveaway-steps-block {
    background: var(--gw-mint);
    margin-top: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.giveaway-steps {
    counter-reset: gw-step;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
}

.giveaway-steps li {
    background: #fff;
    border-radius: 16px;
    align-content: start;
    counter-increment: gw-step;
    display: grid;
    gap: 0.4rem;
    padding: 1.2rem 1.2rem 1.3rem;
}

.giveaway-steps li::before {
    align-items: center;
    background: var(--gw-teal);
    border-radius: 50%;
    color: #fff;
    content: counter(gw-step);
    display: flex;
    font-size: 1.2rem;
    font-weight: 900;
    height: 2.4rem;
    justify-content: center;
    width: 2.4rem;
}

.giveaway-steps strong {
    font-size: 1.1rem;
}

.giveaway-steps q {
    background: var(--gw-gold);
    border-radius: 4px;
    font-weight: 700;
    padding: 0 0.2rem;
}

.giveaway-steps strong a {
    color: var(--gw-cherry);
}

/* Paso 1: dos caminos según tenga o no la app. */
.giveaway-step-options {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.giveaway-step-option {
    align-items: center;
    background: var(--gw-cream);
    border: 1.5px solid #ecd2b5;
    border-radius: 12px;
    color: var(--gw-ink);
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 0.7rem;
    padding: 0.6rem 0.8rem;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.giveaway-step-option:hover,
.giveaway-step-option:focus-visible {
    background: var(--gw-peach);
    border-color: var(--gw-cherry);
}

.giveaway-step-option__icon {
    font-size: 1.4rem;
}

.giveaway-step-option b,
.giveaway-step-option small {
    display: block;
}

.giveaway-step-option small {
    color: var(--gw-cherry);
    font-weight: 700;
}

/* Paso 2: tarjeta del perfil de Instagram. */
.giveaway-ig-card {
    align-items: center;
    border: 1.5px solid #ecd2b5;
    border-radius: 14px;
    color: var(--gw-ink);
    display: flex;
    gap: 0.7rem;
    margin-top: 0.4rem;
    padding: 0.7rem 0.8rem;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.giveaway-ig-card:hover,
.giveaway-ig-card:focus-visible {
    border-color: var(--gw-cherry);
    color: var(--gw-ink);
}

.giveaway-ig-card__avatar {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    border-radius: 50%;
    flex: none;
    padding: 2px;
}

.giveaway-ig-card__avatar img {
    background: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    display: block;
    height: 48px;
    width: 48px;
}

.giveaway-ig-card__text {
    flex: 1;
    min-width: 0;
}

.giveaway-ig-card__text b,
.giveaway-ig-card__text small {
    display: block;
}

.giveaway-ig-card__text small {
    color: #7a5c66;
    font-size: 0.8rem;
    line-height: 1.3;
}

.giveaway-ig-card__follow {
    background: #0095f6;
    border-radius: 8px;
    color: #fff;
    flex: none;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.4rem 0.9rem;
}

/* Paso 3: la mención, bien visible. */
.giveaway-mention {
    background: var(--gw-cherry);
    border-radius: 6px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    color: #fff;
    font-weight: 800;
    padding: 0.05rem 0.35rem;
}

.giveaway-comment-example {
    background: var(--gw-cream);
    border-left: 4px solid var(--gw-orange);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    margin-top: 0.4rem;
    padding: 0.6rem 0.8rem;
}

.giveaway-comment-example small {
    color: #7a5c66;
    display: block;
    font-style: normal;
    font-weight: 700;
}

.giveaway-comment-example b {
    color: #00376b;
    font-style: normal;
}

/* Modales del paso 1. */
.giveaway-dialog {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(61, 26, 41, 0.35);
    color: var(--gw-ink);
    max-height: calc(100dvh - 2rem);
    max-width: min(460px, calc(100vw - 2rem));
    overflow: auto;
    padding: 1.6rem 1.5rem 1.5rem;
}

.giveaway-dialog--wide {
    max-width: min(920px, calc(100vw - 2rem));
}

.giveaway-dialog::backdrop {
    background: rgba(61, 26, 41, 0.55);
}

.giveaway-dialog h3 {
    font-family: var(--gw-serif);
    font-size: 1.6rem;
    margin: 0 0 0.6rem;
}

.giveaway-dialog__close {
    background: transparent;
    border: 0;
    color: var(--gw-ink);
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    position: absolute;
    right: 0.9rem;
    top: 0.7rem;
}

.giveaway-dialog__stores {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1rem 0;
}

.giveaway-dialog__stores img {
    display: block;
    height: 48px;
    width: auto;
}

.giveaway-dialog__hint {
    color: #7a5c66;
    font-size: 0.9rem;
}

.giveaway-dialog__split {
    align-items: start;
    display: grid;
    gap: 1.6rem;
    grid-template-columns: 420px minmax(0, 1fr);
}

.giveaway-dialog__steps {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
}

.giveaway-dialog__steps li + li {
    margin-top: 0.55rem;
}

/* Capturas reales de la app en el modal «Ya tengo la app». */
.giveaway-shots {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.giveaway-shots figure {
    margin: 0;
}

.giveaway-shots img {
    border: 6px solid #2b1b14;
    border-radius: 22px;
    display: block;
    height: auto;
    width: 100%;
}

.giveaway-shots figcaption {
    color: #7a5c66;
    font-size: 0.8rem;
    line-height: 1.35;
    margin-top: 0.45rem;
}

.giveaway-shots figcaption b {
    background: var(--gw-teal);
    border-radius: 50%;
    color: #fff;
    display: inline-grid;
    font-size: 0.75rem;
    height: 1.3rem;
    margin-right: 0.25rem;
    place-items: center;
    width: 1.3rem;
}

.giveaway-fineprint {
    font-size: 0.9rem;
    margin: 0 0 1.2rem;
    max-width: 80ch;
}

.giveaway-rules {
    padding: clamp(2rem, 4vw, 3rem) 0;
}

.giveaway-rules__title {
    font-family: var(--gw-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0;
}

.giveaway-rules__subtitle {
    font-style: italic;
    margin: 0.3rem 0 0;
}

.giveaway-rules h3 {
    font-size: 1.15rem;
    margin: 1.8rem 0 0.5rem;
}

.giveaway-rules li + li {
    margin-top: 0.4rem;
}

.giveaway-pending {
    background: #ffe08a;
    border-radius: 4px;
    padding: 0 0.25rem;
}

@media (max-width: 860px) {
    .giveaway-hero__inner,
    .giveaway-prizes__grid,
    .giveaway-steps,
    .giveaway-dialog__split {
        grid-template-columns: 1fr;
    }

    /* En móvil, primero las instrucciones y debajo las capturas. */
    .giveaway-shots {
        order: 2;
    }

    /* En móvil el cartel se lee mal y repite el título: los premios ya llevan sus fotos. */
    .giveaway-hero__art {
        display: none;
    }
}

/* ¿Quién gana? · criterios del jurado. */
.giveaway-judging {
    padding: clamp(2rem, 4vw, 3rem) 0 0.5rem;
}

.giveaway-judging__lead {
    font-size: 1.05rem;
    margin: 0 0 1.2rem;
    max-width: 70ch;
}

.giveaway-criteria {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.giveaway-criteria li {
    background: var(--gw-cream);
    border: 1.5px solid #ecd2b5;
    border-radius: 16px;
    display: grid;
    gap: 0.3rem;
    padding: 1.1rem 1.2rem;
}

.giveaway-criteria span {
    font-size: 1.6rem;
}

.giveaway-criteria strong {
    color: var(--gw-cherry);
    font-size: 1.1rem;
}

@media (max-width: 860px) {
    .giveaway-criteria {
        grid-template-columns: 1fr;
    }
}
