/* Pop-up del sorteo Liontech + Arkham (02-08/11/2026).
   Markup: views/partials/sorteo-popup.ejs · comportamiento: public/js/sorteo-popup.js.
   Escritorio y tablet (≥768): imagen cuadrada a la izquierda + texto a la derecha.
   Celular: imagen apaisada arriba + texto abajo. */

.Sorteo-Popup {
    --sorteo-css: 1; /* sorteo-popup.js no lo abre hasta que este CSS llegó */
    --sorteo-ink: #240503;
    --sorteo-orange: #ea3d13;
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Poppins', sans-serif;
    opacity: 0;
    transition: opacity .25s ease;
}
.Sorteo-Popup[hidden] {
    display: none;
}
.Sorteo-Popup.is-open {
    opacity: 1;
}
.Sorteo-Popup-Lock,
.Sorteo-Popup-Lock body {
    overflow: hidden;
}

.Sorteo-Popup-Backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
}

.Sorteo-Popup-Card {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 1080px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
    transform: translateY(12px);
    transition: transform .25s ease;
}
.Sorteo-Popup.is-open .Sorteo-Popup-Card {
    transform: none;
}

.Sorteo-Popup-Close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #606060;
    cursor: pointer;
}
.Sorteo-Popup-Close:hover {
    color: var(--sorteo-ink);
}
.Sorteo-Popup-Close svg {
    width: 28px;
    height: 28px;
}

.Sorteo-Popup-Img {
    flex: 0 0 55%;
    display: block;
    min-height: 100%;
    /* Los colores del borde del arte: si la columna queda más alta que ancha
       (tablet), la imagen entra entera y lo que sobra no se nota. */
    background: linear-gradient(#150b0a, #2a120d);
}
.Sorteo-Popup-Img img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    /* contain, no cover: el arte trae texto hasta los bordes y no se puede recortar. */
    object-fit: contain;
}

.Sorteo-Popup-Body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 72px 52px 28px 56px;
    color: #2b2b2b;
    text-align: left;
}
.Sorteo-Popup-Body > * {
    margin: 0;
}

.Sorteo-Popup-Eyebrow {
    font-size: 11px;
    line-height: 1.4;
    text-transform: uppercase;
    color: var(--sorteo-ink);
}
.Sorteo-Popup-Title {
    margin: 18px 0 0;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--sorteo-ink);
}
.Sorteo-Popup-Specs {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--sorteo-ink);
}
.Sorteo-Popup-Text {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.6;
}

.Sorteo-Popup-Cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin-top: 24px;
    padding: 6px 28px;
    border-radius: 999px;
    background: var(--sorteo-orange);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color .15s ease;
}
.Sorteo-Popup-Cta:hover,
.Sorteo-Popup-Cta:focus-visible {
    background: #c9310c;
    color: #fff;
    text-decoration: none;
}

.Sorteo-Popup-Legal {
    margin-top: auto;
    padding-top: 40px;
    font-size: 10px;
    line-height: 1.45;
    color: #333;
}
.Sorteo-Popup-Legal a {
    color: inherit;
    text-decoration: underline;
}

/* Tablet: menos aire para que el texto entre al lado de la imagen. */
@media (min-width: 768px) and (max-width: 1079px) {
    .Sorteo-Popup-Img {
        flex-basis: 48%;
    }
    .Sorteo-Popup-Body {
        padding: 64px 32px 24px 32px;
    }
    .Sorteo-Popup-Title {
        font-size: 28px;
    }
}

/* Celular: imagen apaisada arriba, texto abajo, botón a todo el ancho. */
@media (max-width: 767px) {
    .Sorteo-Popup {
        padding: 12px;
    }
    .Sorteo-Popup-Card {
        flex-direction: column;
        max-width: 420px;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }
    .Sorteo-Popup-Close {
        top: 8px;
        right: 8px;
        color: #fff;
    }
    .Sorteo-Popup-Close:hover {
        color: #fff;
    }
    .Sorteo-Popup-Img {
        flex: 0 0 auto;
        min-height: 0;
    }
    .Sorteo-Popup-Img img {
        height: auto;
        aspect-ratio: 1000 / 556;
    }
    .Sorteo-Popup-Body {
        align-items: stretch;
        padding: 26px 26px 22px;
    }
    .Sorteo-Popup-Title {
        margin-top: 14px;
        font-size: 28px;
    }
    .Sorteo-Popup-Text {
        font-size: 13.5px;
    }
    .Sorteo-Popup-Cta {
        min-height: 48px;
        margin-top: 22px;
        font-size: 17px;
    }
    .Sorteo-Popup-Legal {
        padding-top: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .Sorteo-Popup,
    .Sorteo-Popup-Card {
        transition: none;
    }
}
