/* ============================================================
   sabritas.css — Hoja de estilos global
   Coloca este archivo en: public/css/sabritas.css
   ============================================================ */

/* Fuentes locales Lays */
@font-face {
    font-family: 'LaysRegular';
    src: url('../fonts/Lays_Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LaysBold';
    src: url('../fonts/lays_bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LaysExtraBold';
    src: url('../fonts/Lays_ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LaysExtraBoldCondensed';
    src: url('../fonts/Lays_ExtraBold_Condensed.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LaysExtraBoldExtended';
    src: url('../fonts/Lays_ExtraBold_Extended.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}


/* ════════════════════════════════════════════
   0. CONTAINER
════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: 1320px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}


/* ════════════════════════════════════════════
   1. DESIGN TOKENS
════════════════════════════════════════════ */
:root {
    --yellow:       #FFD100;
    --yellow-dark:  #F5A800;
    --yellow-darks: #ecb000;
    --red:          #D62300;
    --dark:         #1A1A1A;
    --white:        #FFFFFF;

    --primary:      var(--red);
    --bg:           var(--yellow);
    --light:        var(--white);

    --font-display: 'LaysExtraBold', sans-serif;
    --font-body:    'LaysExtraBold', sans-serif;
    --font-copys:    'LaysRegular', sans-serif;

    --nav-h:        80px;
    --radius:       16px;
    --radius-card:  24px;
    --transition:   .25s ease;
    --shadow-card:  0 12px 40px rgba(0,0,0,.18);
    --shadow-btn:   0 4px 16px rgba(0,0,0,.25);
    --navbar-clr-link: #f0f0f0;
    --navbar-clr-badge-bg: #df2027;
}

/* ════════════════════════════════════════════
   2. RESET Y BASE
════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    background: var(--yellow);
    color: var(--dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

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

/* ════════════════════════════════════════════
   3. HELPER: RAYAS DIAGONALES
════════════════════════════════════════════ */
.has-stripes { position: relative; overflow: hidden; }
.has-stripes::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -55deg,
        transparent, transparent 28px,
        rgba(255,255,255,.18) 28px,
        rgba(255,255,255,.18) 32px
    );
    pointer-events: none;
    z-index: 0;
}
.has-stripes > * { position: relative; z-index: 1; }

/* ════════════════════════════════════════════
   4. NAVBAR
════════════════════════════════════════════ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--dark);
    height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: .5rem 2.5rem;
    gap: 1.5rem;
    box-shadow: 0 8px 12px #00000040;
}
.extra-bold-text {
  font-family: 'LaysExtraBold',sans-serif;
  font-weight: 400;
}
.navbar__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex: 0 0 8.33333%;
    height: 3.5rem;
}
.navbar__logo img { height: 3.5rem; width: auto; object-fit: contain; }

.navbar__spacer { flex: 1; }

.navbar__links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
}

.navbar__links a {
    font-weight: 800;
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--white);
    text-decoration: none;
    text-align: center;
    position: relative;
    padding: .25rem .5rem;
    margin: 0 .25rem;
}

/* barra activa */
.navbar__links a.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 4px;
    background-color: var(--navbar-clr-link);
    border-radius: 5rem;
}
.navbar__links a.active:hover::after { filter: initial; }

/* barra hover */
.navbar__links a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 4px;
    background-color: var(--navbar-clr-link);
    filter: brightness(.5) contrast(1.2);
    border-radius: 5rem;
}
.navbar__links a:active::after { filter: initial; }

.navbar__profile { display: flex; align-items: center; gap: .6rem; cursor: pointer; }

.navbar__profile-icon {
    width: 34px; height: 34px;
    border-radius: 50%;

    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: #fff;
}

.navbar__profile-info { display: flex; flex-direction: column; line-height: 1.2; }

.navbar__profile-name {
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
}

.navbar__profile-logout {
    font-size: .68rem;
    color: #df2027;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-body);
    text-align: left;
}

.navbar__profile-logout:hover { filter: brightness(.8) contrast(1.2);}

@media (max-width: 768px) { .navbar__links { display: none; } }

/* ════════════════════════════════════════════
   5. BOTONES
════════════════════════════════════════════ */
.btn-primary {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: .88rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: #1E120D;
    color: #ffb700;
    border: none;
    padding: .85rem 2.2rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover { background: #2d2d2d; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }

.btn-yellow {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: .88rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--yellow);
    color: #ffb700;
    border: none;
    padding: .85rem 2.2rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background var(--transition), transform var(--transition);
    box-shadow: var(--shadow-btn);
}

.btn-yellow:hover { background: #ffe033; transform: translateY(-2px); }

.btn-nav {
    font-weight: 900;
    font-size: 14px;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--yellow);
    color: var(--dark);
    border: 2px solid var(--yellow);
    padding: .5rem 1rem;
    margin: 0 .25rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.btn-nav:hover { filter: brightness(.8) contrast(1.2); }
.btn-nav:active { filter: initial; }

/* ════════════════════════════════════════════
   6. FORMULARIOS
════════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: .35rem; }

.form-label {
    font-weight: 800;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #555;
}

.form-input {
    width: 100%;
    padding: .7rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #222;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(214,35,0,.15); }

.form-error { font-size: .75rem; color: var(--red); display: flex; align-items: center; gap: .3rem; font-weight: 700; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .83rem;
    color: #444;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] { width: 17px; height: 17px; margin-top: .1rem; accent-color: var(--red); flex-shrink: 0; }

.password-hints {
    background: #f0f0ea;
    border-radius: 8px;
    padding: .75rem 1rem;
    font-size: .75rem;
    color: #555;
}

.password-hints strong { display: block; margin-bottom: .3rem; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: #333; }
.password-hints ul { padding-left: 1.1rem; }
.password-hints li { margin-bottom: .2rem; }

.checks { display: flex; flex-direction: column; gap: .75rem; }

/* ════════════════════════════════════════════
   7. LINKS
════════════════════════════════════════════ */
a.link { color: #555; font-size: .82rem; text-decoration: underline; }
a.link:hover { color: var(--red); }

/* ════════════════════════════════════════════
   8. AUTH CARD
════════════════════════════════════════════ */
.auth-wrap {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--yellow);
    position: relative;
    overflow: hidden;
}

.auth-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        -55deg,
        transparent, transparent 28px,
        rgba(255,255,255,.18) 28px,
        rgba(255,255,255,.18) 32px
    );
    pointer-events: none;
}

.auth-wrap > * { position: relative; z-index: 1; }
.auth-wrap--top { align-items: flex-start; padding-top: 2.5rem; }

.auth-card {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 2.5rem 2.2rem;
    width: 100%;
    max-width: 430px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 24px 80px rgba(0,0,0,.2);
    border-top: 5px solid var(--red);
}

.auth-card--wide { max-width: 470px; }
.auth-card__logo { width: 160px; object-fit: contain; }

.auth-card__title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    letter-spacing: .04em;
    color: var(--dark);
    text-align: center;
    line-height: 1;
}

.auth-card__form { width: 100%; display: flex; flex-direction: column; gap: 1.2rem; }
.auth-card__form--compact { gap: 1rem; }

.auth-card__btn {
    width: 100%;
    padding: .85rem;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--dark);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
    margin-top: .4rem;
    font-family: var(--font-body);
}

.auth-card__btn:hover { background: #333; transform: translateY(-1px); }
.auth-card__links { display: flex; flex-direction: column; align-items: center; gap: .5rem; }

/* Loading */
.loading-card {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 3.5rem 3rem;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 24px 80px rgba(0,0,0,.2);
    border-top: 5px solid var(--red);
    animation: cardIn .5s ease both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(20px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.loading-card__logo { width: 160px; object-fit: contain; }

.loading-card__title {
    font-family: var(--font-display);
    font-size: 2.6rem;
    letter-spacing: .04em;
    color: var(--dark);
    text-align: center;
    line-height: 1.1;
}

.loading-dots span { animation: blink 1.4s infinite; }
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }

@keyframes blink { 0%, 80%, 100% { opacity: 0; } 40% { opacity: 1; } }

.loading-card__user { display: flex; align-items: center; gap: .5rem; color: #888; font-size: .9rem; }
.loading-card__user-icon { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #ddd; display: flex; align-items: center; justify-content: center; font-size: .9rem; }

.spinner { width: 40px; height: 40px; border: 4px solid #eee; border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════
   9. PAGE WRAPPER
════════════════════════════════════════════ */
.page { position: relative; flex: 1; }

/* ════════════════════════════════════════════
   10. SPONSOR BADGE
════════════════════════════════════════════ */
.sponsor-badge { display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.sponsor-badge__logos { display: flex; align-items: center; gap: .6rem; }
.sponsor-badge__logos img { width: 283px;
  object-fit: contain;
  max-width: 283px;}
.sponsor-badge__label { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dark); font-weight: 800; }

/* ════════════════════════════════════════════
   11. HOME HERO
════════════════════════════════════════════ */
.colormas{
    color:#1E120D;
}
.home-hero {
    min-height: calc(100vh - var(--nav-h));
    position: relative;
    background: var(--yellow);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 3rem;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/home-welcome-bg-Cl82fpaw.webp');
    pointer-events: none;
}

.home-hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}
.float_rigth{
    float: right;
}


.home-hero__left { display: flex; flex-direction: column; gap: 1.2rem; }

.home-hero__logo { width: 600px; max-width: 100%; object-fit: contain; }

.home-hero__headline {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 6rem);
    line-height: .92;
    color: var(--dark);
    letter-spacing: .02em;
}

.home-hero__subtitle {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: .2em;
    color: var(--red);
    text-transform: uppercase;
}

.home-hero__tagline { font-size: 42px; color: var(--dark); }

.home-hero__copy { font-size: 2rem; color: var(--dark); font-family: 'LaysRegular',sans-serif;
  font-weight: bold; }

.home-hero__right { height: 100%;}

.home-hero__promo {

  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,.2));


}
.home-hero__sponsor { float: right; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 960px) {
    .home-hero .container { grid-template-columns: 1fr; }
    .home-hero__sponsor { float: right; }
}

/* ════════════════════════════════════════════
   12. SECCIÓN MECÁNICA
════════════════════════════════════════════ */
.mecanica {
    background: var(--yellow-dark);
    padding: 4rem 3rem 0;       
    text-align: center;
    position: relative;
    overflow: visible;
    z-index: 2;
}

.mecanica::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/home-welcome-bg-Cl82fpaw.webp');
    background-position-x: right;
    pointer-events: none;
}

.mecanica > * { position: relative; z-index: 1; }

.section-eyebrow {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--red);
    letter-spacing: .04em;
    margin-bottom: .3rem;
    text-transform: uppercase;
}

.section-title { font-weight: 900; font-size: 1.3rem; color: var(--dark); margin-bottom: .5rem; }

.section-sub {
    font-size: 1.3rem;
    color: var(--dark);

    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.mecanica__steps{
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: nowrap;
    align-items: flex-start;
    margin-top: 3rem;
    padding-bottom: 0;
    position: relative;
    z-index: 3;
}


.step-card {

    border-radius: 0 28px 20px 20px;
    clip-path: none;
    padding: 2.4rem 1.5rem 0;
    flex: 1 1 0;
    min-width: 390px;
    max-width: 411px;
    height: 546px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.2));
    overflow: visible;
    margin: 1%;
    margin-bottom: -120px;
    transition: transform .3s ease;
}
.step-card:hover { transform: translateY(-10px); }

.step-card__svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}
.step-card__num {
    position: absolute;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    width: 104px;
    height: 104px;
    background: var(--dark);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 50px;
    color: #fff;
    letter-spacing: 0;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
}

.step-card__img {
    height: 200px;
    object-fit: contain;
    
    filter: drop-shadow(0 6px 16px rgba(0,0,0,.25));
    position: relative;
    z-index: 4;
}
.step-card .primera_img {
    position: absolute;
  top: 40%;
  right: -1px;
  width: 110%;
  height: 337px;
  max-width: 400px;
  z-index: 4;
}
.segunda_imagen {
    margin-top: 21px;
    position: relative;
    z-index: 4;
}
.step-card__text { font-weight: 700;
  font-size: 25px;
  color: #fff;
  text-align: center;
  line-height: 1;
  margin-top: 128px;
  margin-left: 25px;
  margin-right: 25px;
  position: relative;
  z-index: 2;
}

/* ════════════════════════════════════════════
   13. SECCIÓN PUNTOS JOY + JUEGA (fondo compartido)
════════════════════════════════════════════ */
.joy-juega-bg {
    background-image: url('../images/fondo_centro.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}


.puntos-joy {
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 6rem 0;
    padding-top: 8rem;

}
.puntos-joy::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.puntos-joy .container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.puntos-joy__media { display: flex; flex-direction: column; align-items: flex-start; position: relative; overflow: visible; z-index: -122; }
.puntos-joy__img { margin-top: 50px;width: 200%; max-width: 1320px; object-fit: contain; filter: drop-shadow(0 16px 40px rgba(0,0,0,.2)); }
.puntos-joy__layer2 { width: 150%; object-fit: contain; display: block; margin-top: -1.5rem; }

.puntos-joy__content { margin-top: -208px;display: flex; flex-direction: column; gap: 1.4rem; max-width: 670px; position: relative; z-index: 1; }
.puntos-joy__eyebrow { text-align: center; font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);color: var(--red); letter-spacing: .04em; line-height: 1; }
.puntos-joy__sub { text-align: center; font-size: 32px; color: var(--dark); font-weight: 600; }
.puntos-joy__title { text-align: center; font-weight: 900; font-size: clamp(1.2rem, 2vw, 1.5rem);color: var(--dark); line-height: 1.4; }

.puntos-joy__downloads { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.puntos-joy__store-item { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.puntos-joy__store-icon { max-width: 200px;
  height: 50px;
width: auto; object-fit: contain; }
.desktop{
    display:flex;
}
.mobile{
display:none;
}
.center{
    text-align: center;
}
.btn-store {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: #1e120d;
    color: #ffb700 ;
    padding: .4rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: clamp(0.9rem, .6rem, .8rem);
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition);
    box-shadow: var(--shadow-btn);
}

.btn-store:hover { transform: translateY(-2px); --bs-link-color-rgb:10,88,202 ;}
.btn-store__icon { font-size: 1.3rem; }

.puntos-joy__notice {
    background: var(--red);
    border-radius: var(--radius);
    padding: 1rem 1.4rem;
    color: #fff;
    font-weight: 800;
    font-size: .88rem;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: .04em;
    max-width: 400px;
}

@media (max-width: 900px) {
    .puntos-joy .container { grid-template-columns: 1fr; gap: 2rem; }
    .puntos-joy__img     { width: 90%; max-width: 90%; margin: 0 auto; }
    .puntos-joy__content { align-items: center; margin-top: 0; text-align: center; }
    .puntos-joy__media   { align-items: center; }
}

/* ════════════════════════════════════════════
   14. SECCIÓN SÉ PARTE DEL PARTIDO
════════════════════════════════════════════ */
.juega {
    background: transparent;

    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    padding-top: 0;
}


.juega::before {
    content: '';
    position: absolute;
    inset: 0;
   
    pointer-events: none;
}

.juega > * { position: relative; z-index: 1; }

.juega__cards { display: flex; justify-content: center; align-items: center; gap: 2.5rem; flex-wrap: wrap; margin-top: 3rem; }



.qr-card {
    background: #C8860A;
    border-radius: var(--radius-card);
    padding: 1.5rem;
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition);
}

.qr-card:hover { transform: translateY(-6px) rotate(1deg); }

.qr-card__img { width: 150px; height: 150px; object-fit: contain; background: #fff; border-radius: 8px; padding: .4rem; }
.qr-card__title { font-family: var(--font-display); font-size: 1.4rem; color: #fff; letter-spacing: .04em; text-align: center; }
.qr-card__desc { font-size: .82rem; color: rgba(255,255,255,.9); text-align: center; line-height: 1.5; font-weight: 600; }

@media (max-width: 768px) { .juega__phone { display: none; } }

/* ════════════════════════════════════════════
   15. MODAL PRODUCTOS PARTICIPANTES
════════════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.modal-overlay.is-open { display: flex; }

.modal-box {
    background: var(--yellow);
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--dark);
    line-height: 1;
    padding: .2rem .4rem;
}
.modal-close:hover { opacity: .6; }

.modal-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--dark);
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
    letter-spacing: .05em;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .6rem 1rem;
}

.modal-item {
    font-weight: 700;
    font-size: .78rem;
    color: var(--dark);
    text-align: center;
    line-height: 1.4;
    padding: .3rem 0;
}

.modal-section {
    margin-bottom: 1.8rem;
}
.modal-section:last-child { margin-bottom: 0; }

.modal-section__title {
    font-family: var(--font-display);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--dark);
    background: rgba(0,0,0,.12);
    border-radius: 6px;
    padding: .4rem .8rem;
    margin-bottom: .8rem;
}

@media (max-width: 500px) {
    .modal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════
   16. MARCAS PARTICIPANTES
════════════════════════════════════════════ */
.marcas {
    background: var(--yellow-dark);
    padding: 4rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.marcas::before {
    content: '';
    position: absolute;
    inset: 0;
background-image: url('../images/home-welcome-bg-Cl82fpaw.webp');
  background-position-x: right;
    pointer-events: none;
}

.marcas > * { position: relative; z-index: 1; }

.marcas__logos { background-color: var(--yellow-darks); display: flex; justify-content: center; align-items: center; gap: 2.5rem; flex-wrap: wrap; margin: 2rem 0 2.5rem;min-height: 191px; }
.marcas__logos img { height: 52px; width: auto; object-fit: contain; transition: transform var(--transition); filter: drop-shadow(0 2px 6px rgba(0,0,0,.12)); }
.marcas__logos img:hover { transform: scale(1.12); }

/* ════════════════════════════════════════════
   16. FOOTER
════════════════════════════════════════════ */
.footer-legal {
    background: var(--dark);
    padding: 2rem 3rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    align-items: center;
    gap: 1.5rem;
}

.footer-legal__left { display: flex; flex-direction: column; gap: .4rem; }
.footer-legal__label { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: #666; }
.footer-legal__link { font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #fff; text-decoration: underline; }
.footer-legal__link:hover { color: var(--yellow); }

.footer-legal__promo { font-size: .68rem; color: #aaa; line-height: 1.9; text-align: center; text-transform: uppercase; letter-spacing: .04em; }
.footer-legal__promo strong { color: var(--yellow); display: block; margin-top: .3rem; font-size: .75rem; }

.footer-legal__social { display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }

.social-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--yellow);
    display: flex; align-items: center; justify-content: center;
    color: var(--dark);
    text-decoration: none;
    transition: transform var(--transition), filter var(--transition);
}

.social-icon:hover { transform: scale(1.1); filter: brightness(1.1); }
.social-icon--fb  { background: var(--yellow); color: var(--dark); }
.social-icon--ig  { background: var(--yellow); color: var(--dark); }
.social-icon--tt  { background: var(--yellow); color: var(--dark); }

.footer-bottom {
    background: var(--dark);
    border-top: 1px solid #fff;
    padding: .9rem 3rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-bottom a { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-decoration: underline; }
.footer-bottom a:hover { color: var(--yellow); }

@media (max-width: 900px) {
    .footer-legal { grid-template-columns: 1fr; text-align: center; }
    .footer-legal__social { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: .8rem; align-items: center; }
}

/* ════════════════════════════════════════════
   17. DASHBOARD HERO
════════════════════════════════════════════ */
.hero {
    min-height: calc(100vh - var(--nav-h));
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    padding: 2rem 3rem 2rem 4rem;
    gap: 2rem;
    position: relative;
    background: var(--yellow);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero__left { display: flex; flex-direction: column; gap: 1.5rem; }
.hero__brand-img { width: 200px; object-fit: contain; }
.hero__headline { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); line-height: .95; color: var(--dark); }
.hero__tagline { font-weight: 900; font-size: 1.2rem; color: var(--dark); }
.hero__copy { font-size: 1rem; color: var(--dark); line-height: 1.7; max-width: 420px; }
.hero__right { display: flex; justify-content: center; align-items: center; }
.hero__promo { width: 100%; max-width: 600px; object-fit: contain; filter: drop-shadow(0 16px 40px rgba(0,0,0,.2)); animation: floatY 3.5s ease-in-out infinite; }

@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 4rem 1.5rem 2rem; } }

/* ════════════════════════════════════════════
   18. COLECCIÓN / ÁLBUM
════════════════════════════════════════════ */
.coleccion-wrap {
    background: url('../images/fondo_centro.png') center center / cover no-repeat;
    min-height: calc(100vh - var(--nav-h));
    position: relative;
    overflow-y: visible;
    overflow-x: auto;
}
.coleccion-wrap::before { content: none; }
.coleccion-wrap > * { position: relative; z-index: 1; }
.coleccion-wrap .container { min-width: 600px; overflow-x: auto; }

/* Hero section */
.coleccion-hero {
    padding: 1.5rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.coleccion-sponsor {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin-bottom: 1rem;
}
.coleccion-sponsor img { height: 60px; object-fit: contain; }

.coleccion-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--red);
    line-height: 1.1;
    margin-bottom: .6rem;
    text-transform: uppercase;
}
.coleccion-subtitle {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    max-width: 560px;
    margin-bottom: 2rem;
}

/* JOY progress bar */
.joy-progress {
    width: 100%;
    max-width: 680px;
    position: relative;

}
.joy-progress__track {
    position: relative;
  height: 33px;
  background: #907dff;
  border-radius: 99px;
  margin: 0 2rem;
  border: #4d00f2 4px solid;
}

.joy-progress__fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    background: #fff;
    border-radius: 99px;
    transition: width .6s ease;
}
.joy-progress__nodes {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 107%;
    left: 0; right: 0;
    transform: translateY(-50%);
}
.joy-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}
.joy-node__circle {
width: 62px;
  height: 62px;
  display: flex;
  position: relative;
  z-index: 2;
  margin-top: 0;
}
.joy-node__circle--done { background: #5b3fa0; }
.joy-node__milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    font-size: .75rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}
.joy-node__milestone-icon {
    width: 20px; height: 28px;

    border-radius: 3px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .5rem;
    color: #fff;
}
.count-mil{
    font-size: 1.5rem;
  color: var(--dark);
  margin-left: 4px;

}


.album-inner {
   border: 20px solid #EFEFEF;
  border-radius: 30px;
  background-color: #008247;
  background-image: url('../images/fondo-album.png');
background-repeat: no-repeat;
  overflow: hidden;
}
.marco{
    border: 9px solid #91ffdb;
  padding: 1.5rem 1.5rem 2rem;

}

.album__header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.album__logo-info {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    align-self: center;
}
.album__seleccion-logo {
    object-fit: contain;
    width: 100%;
    max-height: 120px;
}
.album__team-name {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.3vw, 2.8rem);
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
    text-align: center;
}
.no-movil{
    display: block;
    grid-column: span 2;
}
.no-movil-dos{
    display: block;
}
.si-movil{
    display: none;
}
.album__counter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    grid-column: span 3;

    align-self: center;
}
.album__counter-num {
    font-family: 'LaysRegular', sans-serif;
  font-size: clamp(4rem, 5vw, 6.2rem);
  color: #fff;
  line-height: 1;
  padding: 2rem;
    padding-bottom: 2rem;
  padding-bottom: .5rem;
  font-weight: bold;
}
.img-album{
    max-height: 210px;
}
.album__scan-btn {
    font-weight: 800;
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--dark);
    color: #fff;
    border: none;
    padding: .5rem 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background var(--transition);
    white-space: nowrap;
}
.album__scan-btn:hover { background: #333; }
.album__featured { display: flex; gap: .6rem; }


.album__page-btn {
    display: none; 
    align-items: center;
    background: transparent;
  border: 0px;
  width: 42px;
  
  float: right;
  display: flex;

    cursor: pointer;
    position: absolute;
    top: -1.6rem;
  right: -1.6rem;
    z-index: 5;
}
.paginacion_album{
    position: absolute;
  color: #fff;
  font-size: .5rem;
  width: 29%;
  top: -1rem;
  text-transform: uppercase;
}
.manita{
    width: 3rem;
  top: .6rem;
  right: 1rem;
}

.album__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: .8rem;
    position: relative;
}

.sticker-card {
       
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    background: #80bfb2;
    width: 90%;
    grid-column: span 2;
  border: #80bfb2 5px solid;
}
.no-movil{
    grid-column: span 2;
}
.sticker-card--row1 { order: 0; } 
.sticker-card:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 10px 28px rgba(0,0,0,.35); }
.sticker-card img { width: 100%; object-fit: cover; display: block; }
.sticker-card__name {
    position: absolute;
    bottom: 3%;
  left: 50%;right: 0;
    background: rgba(255,255,255,.95);
    text-align: center;
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 3px 2px;
    color: var(--dark);
}

/* Missing sticker */
.sticker-card--missing {
    background: #80bfb2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sticker-card--missing .sticker-silhouette {
    width: 60%;
    height: 72%;
    position: absolute;
    top: 8%;
    opacity: .35;
}
.sticker-card--missing .sticker-q {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -58%);
    font-family: var(--font-display);
    font-size: 2rem;
    color: rgba(255,255,255,.7);
}


.sticker-mini {
    width: 72px;
    aspect-ratio: 2/3;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.5);
    position: relative;
    background: #2a3545;
}
.sticker-mini img { width: 100%; height: 80%; object-fit: cover; display: block; }
.sticker-mini__name {
    text-align: center;
    font-size: .45rem;
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(255,255,255,.95);
    padding: 2px;
    color: var(--dark);
    letter-spacing: .06em;
}

@media (max-width: 768px) {
    .album__grid        { gap: .4rem; }
    .album__logo-info   { grid-column: span 4; }
    .album__counter     { grid-column: span 4; order: 1; }
    .sticker-card       { grid-column: span 4; margin-top: 10px;} /* 3 por fila en mobile */
}

/* ════════════════════════════════════════════
   19. CANJEA
════════════════════════════════════════════ */
.canjea-wrap { min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; background: var(--yellow); position: relative; overflow: hidden; }
.canjea-wrap::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(-55deg, transparent, transparent 28px, rgba(255,255,255,.18) 28px, rgba(255,255,255,.18) 32px); pointer-events: none; }
.canjea-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 2rem 2rem; text-align: center; position: relative; z-index: 1; }
.canjea-label { font-weight: 700; font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dark); margin-bottom: .3rem; }
.canjea-puntos { font-family: var(--font-display); font-size: clamp(5rem, 12vw, 8rem); line-height: 1; color: var(--dark); }
.canjea-puntos span { font-size: clamp(1.5rem, 4vw, 2.5rem); color: var(--red); vertical-align: super; margin-left: .3rem; }
.canjea-joy-title { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--dark); margin: .8rem 0 1.8rem; }
.canjea-content { display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; justify-content: center; max-width: 820px; }
.canjea-promo-img { width: 220px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 8px 20px rgba(0,0,0,.15)); }
.canjea-right { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; text-align: left; }
.canjea-info-box { background: var(--red); border-radius: var(--radius); padding: 1.1rem 1.5rem; max-width: 400px; }
.canjea-info-box p { font-size: .95rem; color: #fff; line-height: 1.6; font-weight: 700; }

/* ════════════════════════════════════════════
   20. ESCANEAR
════════════════════════════════════════════ */
.scan-wrap {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    background: url('../images/fondo_centro.png') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
    padding: 1rem 1.5rem 3rem;
}
.scan-wrap::before { content: none; }
.scan-wrap > * { position: relative; z-index: 1; }

.scan-sponsor { align-self: flex-end; margin-bottom: .5rem; }
.scan-sponsor img { height: 55px; object-fit: contain; }

.scan-card {
    background: var(--yellow-darks);
    border-radius: 24px;
    padding: 1.5rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 40px rgba(0,0,0,.25);
    width: 100%;
    max-width: 700px;
}

.scan-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--dark);
    letter-spacing: .04em;
    text-transform: uppercase;
   margin-bottom: -.5rem;
}

/* Visor tipo teléfono */
.scan-phone {
    background: var(--dark);
    border-radius: 32px;
    width: 100%;
    max-width: 340px;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.scan-phone__topbar {
    background: var(--dark);
    padding: .7rem 1rem;
    display: flex;
    justify-content: flex-end;
}
.scan-phone__close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: .2rem .4rem;
    opacity: .8;
}
.scan-phone__close:hover { opacity: 1; }

.scan-phone__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 9/14;
    background: #111;
    overflow: hidden;
}

.scan-frame-img {
    position: absolute;
  inset: 0;
    top: 0px;
  width: 100%;
  height: 128%;
  object-fit: contain;
  pointer-events: none;
  z-index: 3;
  top: -9%;
}
.scan-phone__viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Línea de escaneo */
.scan-line {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e91e8c, transparent);
    animation: scanMove 2.5s ease-in-out infinite;
    z-index: 3;
    box-shadow: 0 0 8px rgba(233,30,140,.8);
}
@keyframes scanMove {
    0%   { top: 20%; }
    50%  { top: 78%; }
    100% { top: 20%; }
}

.scan-phone__label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,.55);
    color: #fff;
    text-align: center;
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .4rem;
    z-index: 4;
}

/* Controles */
.scan-phone__controls {
    background: var(--dark);
    padding: 1rem 1.5rem 1.4rem;
    display: flex;
    align-items: center;

    gap: 2.5rem;
}

.scan-phone__gallery-btn {
    background: rgba(255,255,255,.12);
    border: none;
    border-radius: 10px;
    color: #fff;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background var(--transition);
}
.scan-phone__gallery-btn:hover { background: rgba(255,255,255,.22); }

.scan-phone__capture-btn {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid rgba(255,255,255,.5);
    outline: 3px solid #fff;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 0 0 4px rgba(255,255,255,.25);
    margin: auto;
 margin-left: calc(30% - 48px);
}
.scan-phone__capture-btn:hover { transform: scale(1.07); box-shadow: 0 0 0 6px rgba(255,255,255,.35); }
.scan-phone__capture-btn:active { transform: scale(.95); }

/* Textos inferiores */
.scan-subtitle {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 3vw, 2rem);
    color: var(--red);
    letter-spacing: .03em;
    margin-bottom: 0;
    text-align: center;
}
.scan-desc {
    font-weight: 700;
    font-size: 1rem;
    color: var(--dark);
    text-align: center;
    line-height: 1.6;
    max-width: 460px;
   margin-top: -1.4rem;
}

/* Modal preview */
.scan-preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.scan-preview-box {
    background: var(--dark);
    border-radius: 16px;
    overflow: hidden;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.scan-preview-box img {
    width: 100%;
    display: block;
    max-height: 60vh;
    object-fit: contain;
    background: #111;
}
.scan-preview-actions {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.2rem;
    justify-content: center;
    align-items: center;
}

/* Loader spinner */
.scan-loader {
    display: none;
    width: 50px;
    --b: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 1px;
    background: conic-gradient(#0000 10%, var(--yellow)) content-box;
    -webkit-mask:
        repeating-conic-gradient(#0000 0deg, #000 1deg 20deg, #0000 21deg 36deg),
        radial-gradient(farthest-side, #0000 calc(100% - var(--b) - 1px), #000 calc(100% - var(--b)));
    mask:
        repeating-conic-gradient(#0000 0deg, #000 1deg 20deg, #0000 21deg 36deg),
        radial-gradient(farthest-side, #0000 calc(100% - var(--b) - 1px), #000 calc(100% - var(--b)));
    -webkit-mask-composite: destination-in;
    mask-composite: intersect;
    animation: scan-spin 1s infinite steps(10);
}

@keyframes scan-spin {
    to { transform: rotate(1turn); }
}
.btn-secondary {
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 2px solid rgba(255,255,255,.3);
    padding: .6rem 1.4rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--transition);
}

/* Modal éxito escaneo */
.scan-success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.scan-success-box {
    background: var(--yellow);
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    overflow: hidden;
}
.scan-success-close {
    position: absolute;
    top: .8rem; right: 1rem;
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--dark);
    line-height: 1;
    z-index: 2;
}
.scan-success-close:hover { opacity: .6; }
.scan-success-body {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 2rem 1.5rem 2rem 0;
}
.scan-success-phone {
    flex-shrink: 0;
    width: 165px;
    align-self: stretch;
    overflow: hidden;
    border-radius: 20px 0 0 20px;
    background: linear-gradient(160deg, #f5a800 0%, #1a1a8c 55%, #2d2d9e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem .5rem .5rem;
    gap: .5rem;
}
.scan-success-phone__label {
    font-size: .72rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.3;
    background: rgba(255,165,0,.85);
    border-radius: 6px;
    padding: .25rem .5rem;
}
.scan-success-phone img {
    width: 100%;
    object-fit: contain;
}
.scan-success-content {
    flex: 1;
    padding: .5rem 1.2rem .5rem .2rem;
}
.scan-success-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.5vw, 2.6rem);
    color: var(--dark);
    margin-bottom: .6rem;
    line-height: 1;
}
.scan-success-desc {
    font-size: .88rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.6;
    text-align: justify;
}
.scan-success-extra {
    margin-top: .9rem;
}
@media (max-width: 480px) {
    .scan-success-body { flex-direction: column; padding: 1.5rem; }
    .scan-success-phone { width: 100%; border-radius: 12px 12px 0 0; padding: 1rem; flex-direction: row; }
    .scan-success-phone img { width: 60%; }
    .navbar__hamburger {
    margin-left: 31%;
    }
}
.btn-secondary:hover { background: rgba(255,255,255,.22); }

/* ════════════════════════════════════════════
   21. MODAL DE IMAGEN (scan result)
════════════════════════════════════════════ */
.img-modal {
    position: fixed;
    inset: 0;
    z-index: 9700;
    background: rgba(0,0,0,.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.img-modal__inner {
    position: relative;
    max-width: 600px;
    width: 100%;
}
.img-modal__img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity .25s ease;
}
.img-modal__img.is-loading {
    opacity: 0;
}
.img-modal__spinner {
    display: none;
    width: 3rem;
    height: 3rem;
    margin: 6rem auto;
    border: 4px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.img-modal__spinner.is-visible {
    display: block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.img-modal__close {
  position: absolute;
  top: 2%;
  right: 2%;
  width: 10%;
  height: 10%;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  border: none;
  font-size: 3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.img-modal__close:hover { background: var(--red); }

/* ════════════════════════════════════════════
   22. ESCANEAR ÉXITO (página de confirmación)
════════════════════════════════════════════ */
.exito-wrap { min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; background: var(--yellow); position: relative; overflow: hidden; }
.exito-wrap::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(-55deg, transparent, transparent 28px, rgba(255,255,255,.18) 28px, rgba(255,255,255,.18) 32px); pointer-events: none; }
.exito-content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; padding: 3rem 2rem; text-align: center; position: relative; z-index: 1; }
.exito-viewport { width: 100%; max-width: 560px; aspect-ratio: 4/3; border-radius: var(--radius-card); overflow: hidden; background: var(--dark); display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 50px rgba(0,0,0,.2); border: 3px solid var(--dark); }
.exito-viewport__sim { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .08em; color: #fff; text-align: center; padding: 1.5rem; background: linear-gradient(135deg, #1a1a1a 0%, #333 50%, #1a1a1a 100%); }
.exito-title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); color: var(--dark); letter-spacing: .03em; line-height: 1.1; animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both; }
.exito-check { width: 64px; height: 64px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #fff; box-shadow: 0 6px 24px rgba(214,35,0,.4); animation: popIn .6s .15s cubic-bezier(.34,1.56,.64,1) both; }

@keyframes popIn { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }


.juega__experience{display: none;}
/* ════════════════════════════════════════════
   22. HAMBURGER MENU
════════════════════════════════════════════ */
.navbar__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    z-index: 300;
}

.navbar__hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: transform .3s ease, opacity .3s ease, width .3s ease;
    transform-origin: center;
}

/* Estado abierto */
.navbar__hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar__hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.navbar__hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Overlay del menú mobile */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 250;
    pointer-events: none;
    overflow: hidden;
}

.mobile-menu.is-open {
    pointer-events: all;
}

.mobile-menu__backdrop { display: none; }

.mobile-menu__panel {
    width: 100vw;
    max-width: 100vw;
    height: 100%;
    background: #fff;
    display: flex;

    clip-path: circle(0px at 3rem 2.5rem);
    transition: clip-path .6s cubic-bezier(.4, 0, .2, 1);
    flex-direction: column;
    animation: fadeIn .2s ease;
}


.mobile-menu.is-open .mobile-menu__panel {
    clip-path: circle(200vmax at 3rem 2.5rem);
}

.mobile-menu.is-closing .mobile-menu__panel {
    clip-path: circle(0px at 3rem 2.5rem);
}

.mobile-menu__header {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;

    flex-shrink: 0;
    background-color: var(--dark);
}

.mobile-menu__header img {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
}

.mobile-menu__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    padding: .25rem;
}

.mobile-menu__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-menu__link {
    display: block;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #2a2a2a;
  transition: color var(--transition);
  color: var(--navbar-mobile-clr-text);
  border-bottom: solid 1px var(--dark);
  padding: 1rem 0;
  margin: 0 1rem;
  font-size: .85rem;
}

.mobile-menu__link:hover,
.mobile-menu__link.active { color: var(--dark); }

.mobile-menu__link-icon { display: none; }

.mobile-menu__divider { display: none; }

.mobile-menu__footer {
    padding: 1.5rem;
    flex-shrink: 0;
}

.mobile-menu__cta {
    display: inline-block;
    padding: .6rem 1.8rem;
    font-weight: 900;
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: var(--yellow);
    color: var(--dark);
    border: 2px solid var(--yellow);
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-body);
}
.step-url{
    margin-top: 3rem;
}

.mobile-menu__cta:hover { filter: brightness(.8) contrast(1.2); }
@media (min-width: 950px) and (max-width: 1370px){
.home-hero__promo {
        max-width: 100%;
        width: 100%;
        animation: none;
        border-radius: 0;
        position: relative;
    }
.home-hero__sponsor { top: 0;}
}

.center-auto{
    margin: auto;
}
@media (max-width: 950px) {
    .home-hero__promo {
        max-width: 100%;
        width: 100%;
        animation: none;
        border-radius: 0;
        position: relative;
    }
      .home-hero__right {
    order: 2;
  }
      .home-hero__left {

    order: 3;
    padding: 0 1.2rem;
    align-items: center;
    text-align: center;
  }
    .home-hero__sponsor {
    order: 1;
   width: 100%;
    padding: 1.5rem 1rem .5rem;
    
  }

}

@media (max-width: 768px) {
    .coleccion-wrap {
        background: url('../images/fondo-movil.webp') center center / cover no-repeat;
    }

    /* ── Navbar ── */
    .navbar {
        padding: 0 1.2rem;
    }

    .navbar__logo {
        flex: 0 0 50%;
        justify-content: flex-start;
    }

    .navbar__spacer { display: none; }
    .navbar__links { display: none; }
    .navbar__profile { display: none; }
    .btn-nav { display: none; }

    .navbar__hamburger {
        display: flex;
        flex: 12% 10% 5%;
        justify-content: center;
        margin-left: 40%;
    }
    

    /* ── HOME HERO mobile ── */
    .home-hero {
        min-height: auto;
        align-items: flex-start;
        padding-bottom: 2.5rem;
    }

    .home-hero .container {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    /* Imagen arriba */
    .home-hero__right { order: 2; }

    .home-hero__promo {
        max-width: 100%;
        animation: none;
        border-radius: 0;
        position: relative;
    }

    .home-hero__sponsor {
        order: 1;
        position: static;
        padding: 1.5rem 1rem .5rem;
        align-items: center;
    }

    .home-hero__left {
        order: 3;
        padding: 0 1.2rem;
        align-items: center;
        text-align: center;
    }

    .home-hero__logo { width: 100%; max-width: 100%; }

    .home-hero__headline {
        font-size: clamp(3rem, 13vw, 5rem);
        text-align: center;
    }

    .home-hero__subtitle { text-align: center; }
    .home-hero__tagline  { text-align: center; }

    .home-hero__copy {
        text-align: center;
        max-width: 100%;
        font-size: 1.2rem;
    }

  
    .home-hero__sponsor {
        order: 1;
        position: static;
        padding: 1.5rem 1rem .5rem;
        align-items: center;
    }


    .home-hero__right {
        order: 2;
    }

    .home-hero__promo {
        max-width: 100%;
        animation: none;
        border-radius: 0;
    }

    .home-hero__left {
        order: 3;
        padding: 0 1.2rem;
        align-items: center;
        text-align: center;
    }

    /* ── MECÁNICA mobile ── */
    .mecanica {
        padding: 3rem 1.2rem;
    }

    .mecanica__steps {
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: center;
        gap: 3rem;
        margin-top: 0;
    }
    .no-movil{
    display: none;
}
.no-movil-dos{
    display: none;
}
.si-movil{
    display: block;
}
.album__counter-num{
    font-size: 3.5rem;
}

    .step-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 340px;
        margin-top: 40px;

 
    }
    .step-url{
        margin-top: 70px;
    }

    .step-card-primero{

        margin-top: 1%;
    }.step-card-ultimo{
         margin-bottom: -183px;
         margin-top: 80px;

    }

    .step-card__img { height: 160px; }

    /* ── PUNTOS JOY mobile ── */
    .puntos-joy .container {
        grid-template-columns: 1fr;
        padding: 3rem 1.2rem;
        gap: 2rem;
        text-align: center;
    }

    .puntos-joy__content { align-items: center; margin-top: 0; }
    .puntos-joy__eyebrow { text-align: center; }
    .puntos-joy__title   { text-align: center; }
    .puntos-joy__sub     { text-align: center; }

    .puntos-joy__downloads {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* Botones de descarga más grandes en mobile */
    .btn-store {
        width: 100%;
        max-width: 260px;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: clamp(.5rem, .4rem, .1rem);
    }

    .btn-store__icon { font-size: 2rem; }

    .puntos-joy__notice {
        max-width: 100%;
        text-align: center;
    }

    .puntos-joy__img { max-width: 90%; margin: auto; }
.puntos-joy__store-item{
    margin-top: 3rem;
}

    .juega { padding: 3rem 1.2rem; }

    .juega__cards {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-top: 2rem;
    }

   
    .juega__experience {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .juega__phone-sm {
width: 227px;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
    position: relative;
    z-index: 2;
    margin-right: -33px;
    height: 270px;
    max-width: 156px;
    }


    .qr-card--mobile {
border-radius: var(--radius-card);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    box-shadow: var(--shadow-card);
    background: #C8860A;
    border-radius: var(--radius-card);
    padding: 1.5rem 1.5rem 0;
    padding-top: 1.5rem;
    padding-bottom: 0px;
    max-width: 278px;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 16px 40px rgba(0,0,0,.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
    transform: rotate(-3deg);
    transition: transform var(--transition);
    height: 220px;
    width: 60%;
    padding-top: 1%;
    padding-bottom: 3%;
    min-width: 178px;
}

.qr-card--mobile::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;

  background: #fff;

  border-radius: 0 0 var(--radius-card) var(--radius-card);
  z-index: -1;
  

    height: 68%;

    z-index: -1;
}
    

    .qr-card--mobile .qr-card__title {
        font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: .04em;
   margin-top: 13px;
    }

    .qr-card--mobile .qr-card__desc {
        font-size: .82rem;
        color: var(--dark);
        line-height: 1.5;
        font-weight: 600;
    }

    .qr-card--mobile .qr-card__btn {
        display: block;
        width: 100%;
        padding: .6rem;
        font-weight: 900;
        font-size: .8rem;
        letter-spacing: .1em;
        text-transform: uppercase;
        background: var(--dark);
        color: #fff;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        text-align: center;
        text-decoration: none;
        font-family: var(--font-body);
        transition: background var(--transition);
    }
.qr-card--mobilefloat_left {
  margin-right: 0;
 margin-left: -33px;
}
    .qr-card--mobile .qr-card__btn:hover { background: #333; }

    /* Ocultar QR cards desktop en mobile */
    .qr-card--desktop { display: none; }
    .juega__phone     { display: none; }

    /* ── MARCAS mobile ── */
    .marcas { padding: 3rem 0 3rem; }

    .marcas .section-eyebrow,
    .marcas .section-sub,
    .marcas > a {
        padding: 0 1.2rem;
    }

    /* Carrusel horizontal */
    .marcas__logos {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 1rem 1.2rem;
        gap: 1.8rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .marcas__logos::-webkit-scrollbar { display: none; }

    .marcas__logos img {
        flex-shrink: 0;
        height: 44px;
    }
/* ── aquimobile ── */
.qr-card--desktop{
    display: none;
}
    .desktop{
    display:none;
}
.mobile{
display:flex;
}
   .btn-album,.btn-store{
    padding: .5rem .5rem;
    letter-spacing: 0;
   }
   .btn-album{
    background-color: #ffb800;
    border: 1px solid #ffb800;
    font-size: .7rem;
   }
    .album__counter {
  order: 2;

    }

    .sticker-card--row1{
        order: 1;
    }
    .sticker-card--rowx{
        order: 3;
    }

    /* ── FOOTER mobile ── */
    .footer-legal {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.2rem;
        gap: 1.5rem;
    }

    .footer-legal__left { align-items: center; }

    .footer-legal__social {
        justify-content: center;
        gap: 1rem;
    }

    /* Iconos de redes con fondo amarillo en mobile */
    .social-icon {
        background: var(--yellow) !important;
        color: var(--dark) !important;
        font-weight: 900;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .footer-bottom {
        padding: 1rem 1.2rem;
        flex-direction: column;
        gap: .8rem;
        align-items: center;
    }

    /* ── Secciones generales mobile ── */
    .section-eyebrow { font-size: clamp(1.8rem, 7vw, 2.5rem); }
    .section-title   { font-size: 1.1rem; }
    .section-sub     { font-size: .92rem; }

    /* ── Auth / forms ── */
    .auth-card, .loading-card { padding: 2rem 1.4rem; }

    /* ── Colección ── */
    .coleccion-wrap { padding: 1.5rem 1rem 3rem; }
    .album { padding: 1.2rem 1rem; }
    .album__header { grid-template-columns: 1fr; justify-items: center; }

    /* ── Escanear ── */
    .scan-camera__viewport { max-width: 100%; }
}

/* ════════════════════════════════════════════
   24. RESPONSIVE TABLET (max-width: 1024px)
════════════════════════════════════════════ */
@media (max-width: 1024px) and (min-width: 769px) {

    .home-hero__headline { font-size: clamp(3rem, 6vw, 4.5rem); }

    .puntos-joy .container { padding: 4rem 0; gap: 2.5rem; }

    .mecanica__steps { gap: 1.5rem; }
    .step-card { margin-top: 70px; }

    .navbar__links { gap: 1.5rem; }
    .navbar__links a { font-size: .75rem; }
}

/* ════════════════════════════════════════════
   25. RESPONSIVE INTERMEDIO (769px – 1249px)
   2 cards arriba, 1 centrado abajo
════════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1249px) {
    .mecanica__steps {
        flex-wrap: wrap;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 2rem;
    }
    .step-card {
        flex: 0 0 auto;
        width: calc(50% - 1rem);
        max-width: 411px;
    }
}



.juega__item {
    position: relative;
    display: flex;
    align-items: center;
    width: 600px;
    max-width: 100%;
}


.juega__phone {
    width: 227px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.25));
  position: relative;
  z-index: 2;
  margin-right: -11px;
  height: 483px;
}


.qr-card {
background: #C8860A;
  border-radius: var(--radius-card);
  padding: 1.5rem 1.5rem 0;
  width: 310px;

  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
  position: relative;
  z-index: 1;
  overflow: hidden;
  transform: rotate(-3deg);
  transition: transform var(--transition);
  height: 375px;
}

.qr-card:hover { transform: rotate(-3deg) translateY(-6px); }


.qr-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: #fff;
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    z-index: 0;
}


.qr-card__img {
    width: 180px;
    height: 170px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: .4rem;
    position: relative;
    z-index: 1;
}

.qr-card__bottom,.qr-card__top{
    height: 50%;
}
.qr-card__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--red);
    letter-spacing: .04em;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-top: 2rem;
}


.qr-card__desc {
    font-size: 1rem;
    color: var(--dark);
    text-align: center;
    line-height: 1.5;
    font-weight: 600;
    position: relative;
    z-index: 1;

}

.float_left{
    margin-right: 0;
    margin-left: -12px;
}
.fondo-negro{
    background: var(--dark);
}
.imgsuper{
    background-color: var(--yellow);
}
.album-panel {
    margin: 5rem auto 2rem;
  border-radius: 46px;
  overflow: hidden;
  border: 20px solid #cb2027;
  background-color: #cb2027;
  box-shadow: 0 0 0 #9b0c18, 0 20px 10px rgba(0,0,0,.35);
  max-width: 1365px;
  width: calc(100% - 4rem);
}
.btnnto {
  padding: 1rem 0;
  margin: 1rem 1rem;
}
.tyc-wrap {
    background: url('../images/home-welcome-bg-Cl82fpaw.webp');
    min-height: 100vh;
    padding: 3rem 0 5rem;
}


@media (max-width: 650px) {
    html, body {
        min-width: 0;
    }
}
@media (max-width: 600px) {
    .coleccion-wrap .sticker-card__name { font-size: .42rem; letter-spacing: .04em; padding: 2px 1px; }
.img-modal__close {
  position: absolute;
  top: 2%;
  right: 2%;
  width: 20%;
  height: 20%;}

}
@media (max-width: 400px) {
.step-card .primera_img {
  position: absolute;
  top: 40%;
  right: 22px;
  width: 90%;
  height: 337px;
  max-width: 400px;
  z-index: 4;
}
.navbar__hamburger {
    margin-left: 28%;
    }
}

@media (max-width: 1140px) {
.btn-store {
  
  font-size: clamp(0.5rem, .4rem, .4rem);

}
.font-copys{
    font-family: var(--font-copys);
    font-weight: bold;
}
}
.img_patro{
    height: 91px;
}
/* eliminar cuando este el joy*/
