:root {
    --orange: #ff5a00;
    --orange-dark: #e84a00;
    --orange-soft: rgba(255, 255, 255, 0.22);
    --blue: #003399;
    --blue-mid: #0047ab;
    --blue-soft: rgba(255, 255, 255, 0.18);
    --yellow: #ffe100;
    --white: #ffffff;
    --text: #1a1a1a;
    --radius-xl: 64px;
    --radius-pill: 999px;
    --header-h: 84px;
    --scroll-offset: calc(var(--header-h) + 24px);
    --content-max: 1480px;
    --logo-size: 118px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-offset);
}

/* Compensa el header sticky al navegar a anclas */
main section[id],
main [id] {
    scroll-margin-top: var(--scroll-offset);
}

body {
    margin: 0;
    font-family: 'Aspira-Bold', 'Aspira', Arial, sans-serif;
    font-weight: bold;
    color: var(--text);
    background: #fff;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font-family: inherit;
    font-weight: bold;
}

.container {
    width: min(var(--content-max), calc(100% - 40px));
    max-width: var(--content-max);
    margin: 0 auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    height: var(--header-h);
    overflow: visible;
}

.header-inner {
    height: 100%;
    width: min(var(--content-max), calc(100% - 32px));
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow: visible;
}

.logo {
    position: relative;
    z-index: 120;
    display: block;
    flex-shrink: 0;
    width: var(--logo-size);
    height: var(--header-h);
    margin-bottom: calc((var(--logo-size) - var(--header-h)) * -0.55);
}

.logo img {
    width: var(--logo-size);
    height: var(--logo-size);
    object-fit: contain;
    position: relative;
    top: 50%;
    transform: translateY(-35%);
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}

.nav-desktop {
    display: none;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.nav-desktop a,
.nav-desktop .nav-link-btn {
    color: #333;
    font-size: 15px;
    padding: 10px 16px;
    border-radius: var(--radius-pill);
    border: 0;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
}

.nav-desktop a.is-active,
.nav-desktop a:hover,
.nav-desktop .nav-link-btn:hover {
    background: var(--blue);
    color: #fff;
}

.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-chip {
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 8px 16px 8px 10px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    max-width: 240px;
}

.user-chip img,
.user-icon-btn img {
    width: 34px;
    height: 34px;
}

.user-chip-name {
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-icon-btn {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.menu-toggle {
    width: 36px;
    height: 28px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px 0;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    background: #666;
    border-radius: 2px;
}

.nav-mobile {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    overflow: auto;
}

.nav-mobile[hidden] {
    display: none !important;
}

.nav-mobile a,
.nav-mobile button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    border-radius: 18px;
    border: 0;
    background: #f3f3f3;
    color: var(--blue);
    font-size: 18px;
    cursor: pointer;
}

/* Sections */
.section-orange {
    background: url('../im/bg1.jpg') center/cover no-repeat;
    color: #fff;
}

.section-blue {
    background: url('../im/bg2.jpg') center/cover no-repeat;
    color: #fff;
}

.section-hero,
.section-registro,
.section-codigo,
.section-ganadores-hero,
.section-ganadores-list,
.section-faqs {
    border-radius: var(--radius-xl);
    width: min(var(--content-max), calc(100% - 24px));
    max-width: var(--content-max);
    margin: 10px auto 18px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.section-hero {
    z-index: 2;
    padding: 50px 16px 48px;
}

.hero-home {
    position: relative;
    text-align: center;
}

.hero-banner-link {
    display: block;
}

.hero-banner img,
.hero-banner-link img {
    margin: 0 auto;
    width: min(1360px, 100%);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--radius-pill);
    padding: 16px 48px;
    font-size: 22px;
    cursor: pointer;
    color: #fff;
    text-align: center;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.btn-blue {
    background: var(--blue);
}

.btn-orange {
    background: var(--orange);
}

.btn-wide {
    width: min(480px, 100%);
}

.btn-participa {
    min-width: 200px;
}

.faq-float,
.nav-link-faqs {
    display: none !important; /* oculto temporalmente: accesos a Preguntas Frecuentes */
}

.faq-float {
    position: absolute;
    right: 18px;
    bottom: 18px;
    /* display: inline-flex; — desactivado mientras esté oculto */
    align-items: center;
    gap: 10px;
    background: rgba(255, 140, 40, 0.95);
    color: #fff;
    padding: 8px 16px 8px 8px;
    border-radius: var(--radius-pill);
    font-size: 14px;
    z-index: 5;
}

.faq-float--left {
    right: auto;
    left: 18px;
    bottom: 88px;
}

.faq-float img {
    width: 34px;
    height: 34px;
}

.faq-float span {
    display: none;
}

/* Registro */
.section-registro {
    padding: 60px 24px 72px;
}

.section-title {
    text-align: center;
    font-size: clamp(40px, 6vw, 68px);
    margin: 0 0 40px;
    color: #fff;
}

.form-registro {
    width: min(1040px, 100%);
    margin: 0 auto;
}

.codigo-form-wrap form {
    width: min(900px, 100%);
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 26px;
}

.form-grid-span {
    grid-column: 1 / -1;
}

.form-registro input:not([type="checkbox"]):not([type="radio"]),
.form-registro select,
.codigo-form-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.codigo-form-wrap select,
.modal input:not([type="checkbox"]):not([type="radio"]) {
    width: 100%;
    border: 0;
    border-radius: var(--radius-pill);
    padding: 20px 28px;
    font-size: 19px;
    color: #fff;
    background: var(--blue-soft);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.form-registro input::placeholder,
.form-registro select,
.codigo-form-wrap input::placeholder,
.modal input::placeholder {
    color: rgba(255, 255, 255, 0.85);
}

.form-registro select option,
.codigo-form-wrap select option {
    color: #111;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 14px 0;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 2;
}

.check-row input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 26px;
    height: 26px;
    min-width: 26px;
    margin: 1px 0 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    accent-color: #fff;
}

.check-row input[type="checkbox"]::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.check-row input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: scale(1);
}

.check-row span {
    line-height: 1.35;
}

.check-row a {
    text-decoration: underline;
    color: #fff;
}

.check-row a:hover {
    opacity: 0.9;
}

.form-registro .btn-wide,
.codigo-form-wrap .btn-wide {
    display: flex;
    margin: 28px auto 14px;
}

.form-bottom-link {
    text-align: center;
    color: #fff;
    font-size: 17px;
}

.link-btn {
    border: 0;
    background: transparent;
    color: #fff;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.form-msg {
    text-align: center;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
}

.form-msg.is-error {
    background: rgba(180, 0, 0, 0.35);
}

/* Código */
.section-codigo {
    padding: 28px 16px 0;
    overflow: visible;
    z-index: 3;
}

.section-codigo > .container {
    position: relative;
}

.codigo-naming {
    display: block;
    width: min(280px, 44%);
    margin: 8px auto 28px;
}

.codigo-layout {
    display: grid;
    gap: 32px;
    position: relative;
    padding-bottom: 28px;
}

.codigo-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.codigo-visual img {
    width: min(520px, 100%);
}

.codigo-form-wrap {
    width: min(560px, 100%);
    margin: 0 auto;
}

.codigo-form-wrap form {
    width: 100%;
}

.codigo-form-wrap h1,
.login-required h1 {
    font-size: clamp(24px, 3.4vw, 32px);
    line-height: 1.2;
    margin: 0 0 20px;
    text-align: left;
}

.login-required {
    text-align: center;
}

.login-required h1 {
    text-align: center;
}

.login-required p {
    margin: 0 0 18px;
}

.field-label {
    display: block;
    margin: 0 0 10px;
    font-size: 17px;
    color: #fff;
}

.codigo-form-wrap select {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.upload-box {
    display: block;
    border: 2px dashed rgba(255, 255, 255, 0.75);
    border-radius: 18px;
    background: transparent;
    margin-bottom: 18px;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.upload-box.is-dragover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

.upload-placeholder {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    text-align: center;
    padding: 16px 18px;
    font-size: 15px;
    line-height: 1.3;
}

.upload-placeholder[hidden] {
    display: none !important;
}

.upload-icon {
    opacity: 0.9;
}

.upload-desk {
    display: none;
}

.upload-preview-wrap {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px 16px;
    text-align: center;
}

.upload-preview-wrap[hidden] {
    display: none !important;
}

.upload-box.has-preview {
    min-height: 0;
}

.upload-preview-label {
    display: block;
    margin: 0 0 8px;
    color: #fff;
    font-size: 14px;
    text-align: center;
    width: 100%;
}

.upload-preview {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 180px;
    height: auto;
    object-fit: contain;
    background: transparent;
    margin: 0 auto 8px;
    border-radius: 10px;
}

.lote-field {
    margin-bottom: 18px;
}

.lote-field input {
    background: rgba(255, 255, 255, 0.28);
    text-align: left;
}

.hint-chances {
    text-align: center;
    font-size: 15px;
    opacity: 0.95;
}

.section-productos,
.section-como,
.section-premios {
    width: min(var(--content-max), calc(100% - 24px));
    max-width: var(--content-max);
    margin: 10px auto 18px;
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 1;
}

.section-productos {
    background: var(--blue);
    color: #fff;
    padding: 36px 18px 42px;
    z-index: 4;
    overflow: hidden;
}

.section-title--productos {
    margin: 0 0 28px;
    color: #fff;
    text-align: center;
    font-size: clamp(28px, 4vw, 42px);
}

.productos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 14px;
}

.producto-card {
    width: calc((100% - 14px) / 2);
    max-width: none;
    margin: 0;
}

.producto-card:last-child {
    max-width: none;
}

.producto-card img {
    width: 100%;
    height: auto;
    margin: 0;
}


.section-como {
    background: #fff;
    padding: 36px 16px 40px;
    overflow: hidden;
    z-index: 2;
}

.section-title--como {
    margin: 0 0 18px;
    color: var(--blue);
}

.section-premios.section-orange {
    background: transparent;
    padding: 18px 16px 0;
    overflow: visible;
    margin-bottom: 0;
    z-index: 2;
}

.section-premios::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 90%;
    background: url('../im/bg1.jpg') center/cover no-repeat;
    border-radius: var(--radius-xl);
    z-index: 0;
    pointer-events: none;
}

.section-premios > .container {
    position: relative;
    z-index: 1;
}

.premios-art {
    display: block;
    margin: 0 auto;
}

.premios-art img {
    display: block;
    margin: 0 auto;
    width: min(1360px, 100%);
    position: relative;
    z-index: 2;
}

.section-como img {
    margin: 0 auto;
    width: min(1360px, 100%);
}

.site-footer {
    width: min(var(--content-max), calc(100% - 40px));
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 32px 20px 48px;
    color: #666;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

/* Ganadores */
.section-ganadores-hero {
    padding: 0;
    overflow: hidden;
}

.section-ganadores-hero .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.section-ganadores-hero .hero-banner-link,
.section-ganadores-hero picture {
    display: block;
    width: 85%;
    margin: 0 auto;
}

.section-ganadores-hero .hero-banner-link img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.ganadores-cta {
    margin-top: 8px;
}

.section-ganadores-list {
    padding: 56px 20px 72px;
    min-height: 360px;
}

.ganadores-box {
    width: min(760px, 100%);
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 40px;
    padding: 48px 28px;
    text-align: center;
    background: rgba(0, 40, 120, 0.25);
}

.ganadores-box h1 {
    margin: 0 0 28px;
    font-size: clamp(40px, 7vw, 64px);
}

.ganadores-winners {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.ganador-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.ganador-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: clamp(15px, 2.4vw, 20px);
    line-height: 1.2;
    white-space: nowrap;
}

.ganador-chip img {
    flex: 0 0 auto;
    width: auto;
    height: 28px;
    object-fit: contain;
}

.ganador-chip--name {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    flex: 1 1 auto;
    justify-content: center;
    max-width: 100%;
}

.ganador-chip--place {
    background: var(--yellow);
    color: var(--blue);
    flex: 0 1 auto;
    justify-content: center;
    max-width: 100%;
}

.ganador-chip--place img {
    height: 26px;
}

@media (max-width: 640px) {
    .ganador-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ganador-chip {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }
}

@media (min-width: 900px) {
    .ganadores-winners {
        gap: 18px;
    }

    .ganador-row {
        gap: 14px;
    }

    .ganador-chip {
        min-height: 56px;
        padding: 12px 26px;
    }
}

/* FAQs */
.section-faqs {
    padding: 48px 16px 60px;
    min-height: 70vh;
}

.faqs-container {
    width: min(980px, calc(100% - 8px));
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 65vh;
    overflow-y: auto;
    padding-right: 10px;
}

.faq-list::-webkit-scrollbar {
    width: 6px;
}

.faq-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--blue);
    color: #fff;
    padding: 16px 24px;
    font-size: 17px;
    text-align: left;
    cursor: pointer;
}

.faq-plus {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.faq-item.is-open .faq-plus {
    transform: rotate(45deg);
}

.faq-answer {
    background: #fff;
    color: #111;
    border-radius: 20px;
    padding: 18px 22px;
    margin: 10px 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

.bases-content {
    background: transparent;
    color: #fff;
    border-radius: 24px;
    padding: 12px 8px 24px;
    max-height: 65vh;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

.bases-content::-webkit-scrollbar {
    width: 6px;
}

.bases-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 10px;
}

.bases-lead {
    margin: 0 0 28px;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0.02em;
    color: #fff;
}

.bases-article {
    margin: 0 0 22px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.bases-article:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.bases-content h2,
.bases-content p,
.bases-content a,
.bases-content strong {
    color: #fff;
}

.bases-content h2 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.bases-content p {
    margin: 0 0 12px;
    font-weight: normal;
    opacity: 0.95;
}

.bases-content p:last-child {
    margin-bottom: 0;
}

.bases-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bases-content a:hover {
    opacity: 0.85;
}

.bases-table-wrap {
    margin-top: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bases-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.35;
}

.bases-table th,
.bases-table td {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    text-align: left;
    vertical-align: top;
    font-weight: normal;
    color: #fff;
}

.bases-table th {
    background: rgba(255, 255, 255, 0.12);
    font-weight: bold;
    white-space: nowrap;
}

.bases-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 900px) {
    .bases-content {
        padding: 16px 20px 32px;
        font-size: 16px;
        border-radius: 28px;
    }

    .bases-content h2 {
        font-size: 20px;
    }

    .bases-article {
        margin-bottom: 26px;
        padding-bottom: 22px;
    }

    .bases-table {
        font-size: 14px;
    }
}

.faq-answer[hidden] {
    display: none !important;
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: url('../im/bg-popups.png') center/cover no-repeat;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay[hidden] {
    display: none !important;
}

.modal {
    position: relative;
    width: min(560px, 100%);
    border: 2px solid #fff;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
    padding: 56px 34px 34px;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.modal-logo {
    width: 104px;
    height: 104px;
    object-fit: contain;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.modal h2 {
    margin: 24px 0 26px;
    font-size: clamp(32px, 6vw, 46px);
    line-height: 1.15;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-login input {
    background: rgba(255, 200, 140, 0.45);
}

.modal .btn {
    width: 100%;
    margin-top: 8px;
}

.modal-footer-link {
    margin: 18px 0 0;
    font-size: 15px;
}

.modal-footer-link a {
    text-decoration: underline;
}

.stars {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 0 0 20px;
    font-size: 56px;
    color: #ff8a00;
    text-shadow: 0 2px 0 #003399;
}

.btn-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    cursor: pointer;
    z-index: 50;
}

.btn-top img {
    width: 100%;
}

/* Desktop */
@media (min-width: 900px) {
    .menu-toggle,
    .user-icon-btn {
        display: none;
    }

    .header-inner {
        position: relative;
    }

    .nav-desktop {
        display: flex;
        justify-content: flex-end;
        margin-left: auto;
    }

    .header-actions {
        position: absolute;
        top: calc(100% + 14px);
        right: 0;
        margin-left: 0;
        z-index: 130;
        pointer-events: none;
    }

    .header-actions > * {
        pointer-events: auto;
    }

    .user-chip {
        display: inline-flex;
    }

    .user-icon-mobile {
        display: none !important;
    }

    :root {
        --logo-size: 140px;
        --radius-xl: 72px;
        --scroll-offset: calc(var(--header-h) + 28px);
    }

    .section-hero,
    .section-registro,
    .section-codigo,
    .section-ganadores-hero,
    .section-ganadores-list,
    .section-faqs,
    .section-productos,
    .section-como,
    .section-premios {
        width: min(var(--content-max), calc(100% - 40px));
        margin: 12px auto 20px;
        border-radius: var(--radius-xl);
    }

    .section-ganadores-hero {
        padding: 0;
        overflow: hidden;
    }

    .section-productos {
        background: var(--blue);
        padding: 48px 28px 56px;
    }

    .section-title--productos {
        margin-bottom: 36px;
    }

    .productos-grid {
        gap: 28px 18px;
    }

    .producto-card {
        width: calc((100% - 90px) / 6);
        max-width: 200px;
    }

    .producto-card:last-child {
        max-width: 240px;
    }

    .section-premios.section-orange {
        padding: 22px 20px 0;
        margin-bottom: 0;
    }

    .section-premios::before {
        height: 83%;
    }

    .codigo-naming {
        width: min(320px, 35%);
        margin: 12px auto 32px;
    }

    .faq-float span {
        display: inline;
    }

    .faq-float {
        background: rgba(255, 140, 40, 0.9);
        font-size: 15px;
    }

    .faq-float--left {
        left: 28px;
        bottom: 96px;
    }

    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 28px;
    }

    .form-registro {
        width: min(1100px, 100%);
    }

    .codigo-layout {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: start;
        gap: 48px;
        padding: 10px 20px 40px;
    }

    .codigo-form-wrap {
        width: 100%;
        max-width: 540px;
        margin-left: auto;
        margin-right: 0;
    }

    .codigo-form-wrap h1 {
        text-align: left;
    }

    .login-required h1 {
        text-align: center;
    }

    .upload-box {
        border-radius: 20px;
    }

    .upload-placeholder {
        min-height: 110px;
        font-size: 16px;
        padding: 18px 20px;
    }

    .upload-preview {
        max-height: 200px;
        margin-bottom: 10px;
    }

    .upload-desk {
        display: inline;
    }

    .upload-mobile {
        display: none;
    }

    .section-como {
        padding: 48px 24px 52px;
    }

    .section-registro {
        padding: 76px 36px 88px;
    }

    .modal {
        width: min(600px, 100%);
        padding: 64px 48px 42px;
    }
}

/* Menú desk compacto entre 900px y 1200px */
@media (min-width: 900px) and (max-width: 1199px) {
    :root {
        --logo-size: clamp(96px, 9.2vw, 124px);
    }

    .header-inner {
        gap: clamp(8px, 1vw, 14px);
    }

    .nav-desktop {
        flex-wrap: nowrap;
        gap: clamp(2px, 0.35vw, 6px);
        min-width: 0;
    }

    .nav-desktop a,
    .nav-desktop .nav-link-btn {
        font-size: clamp(10px, 1.15vw, 13px);
        padding: clamp(5px, 0.65vw, 8px) clamp(6px, 0.8vw, 12px);
        white-space: nowrap;
    }
}

@media (max-width: 899px) {
    .page-inicio .nav-desktop,
    .page-codigo .nav-desktop,
    .page-ganadores .nav-desktop,
    .page-faqs .nav-desktop {
        display: none;
    }

    .section-registro {
        padding: 48px 20px 56px;
    }

    .section-registro .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }

    .section-registro .form-registro {
        width: 100%;
    }

    .site-footer {
        width: 100%;
        max-width: none;
        padding: 20px 8px 28px;
        font-size: 9px;
        line-height: 1.35;
    }

    .site-footer .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0;
    }
}

/* Animaciones de entrada y scroll */

.site-header {
    animation: headerIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 80px, 0);
    transition:
        opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.35s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-left {
    opacity: 0;
    transform: translate3d(-90px, 20px, 0);
    transition:
        opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-right {
    opacity: 0;
    transform: translate3d(90px, 20px, 0);
    transition:
        opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.82) translate3d(0, 50px, 0);
    transition:
        opacity 1.45s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }
.reveal-delay-5 { transition-delay: 0.75s; }

.btn,
.faq-float,
.user-chip,
.nav-desktop a,
.nav-desktop .nav-link-btn {
    transition: transform 0.35s ease, filter 0.35s ease, background-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.btn:hover,
.faq-float:hover {
    transform: translateY(-5px);
}

.faq-item {
    transition: transform 0.4s ease;
}

.faq-item.is-open {
    transform: translateY(-4px);
}

.modal-overlay:not([hidden]) .modal {
    animation: modalPop 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes headerIn {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: translateY(48px) scale(0.88);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .site-header,
    .modal-overlay:not([hidden]) .modal,
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
