/* Club Yummy · sobre los mismos tokens de estilos.css.
   Femenino pero no infantil: menos emoji, más tipografía, oro y hueso.
   Todo lo que se mueve respeta `prefers-reduced-motion`. */

:root { --oro: #c9a227; }
@media (prefers-color-scheme: dark) { :root:not([data-tema="claro"]) { --oro: #e0bf55; } }

/* ───────── Entrada al club desde la portada ───────── */
.club-invita {
  position: relative; overflow: hidden;
  margin-top: 3rem; padding: 2.4rem 1.3rem;
  border-radius: var(--r-g);
  background: linear-gradient(152deg, #fff1f7 0%, #fdf6ee 46%, #eef7f4 100%);
  border: 1px solid color-mix(in srgb, var(--fucsia) 16%, transparent);
  text-align: center;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) .club-invita {
    background: linear-gradient(152deg, #2e1a24 0%, #221920 46%, #17241f 100%);
  }
}
.club-invita > * { position: relative; z-index: 1; }
.club-invita__flor { font-size: 1.6rem; line-height: 1; margin: 0 0 .5rem; }
.club-invita h2 {
  font-family: var(--display); font-size: clamp(1.4rem, 5vw, 1.95rem);
  font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 60; font-weight: 500;
  margin: 0 0 .45rem;
}
.club-invita p { margin: 0 auto .95rem; color: var(--tinta-suave); max-width: 38ch; font-size: .95rem; }
.club-invita__pase {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--papel-alto); border: 1px dashed var(--fucsia); border-radius: 999px;
  padding: .35rem 1rem; font-size: .85rem; letter-spacing: .06em; margin-bottom: .9rem !important;
  color: var(--tinta) !important;
}
.club-invita .btn-principal { display: inline-flex; flex: 0 0 auto; padding-inline: 1.8rem; }

/* Pétalos: decoración, no información. */
.petalos { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* El recorrido va en rem: un translateY en % se mide contra el propio emoji (16px)
   y los pétalos quedarían temblando arriba en vez de caer. */
.petalo { position: absolute; top: -2rem; font-size: .95rem; opacity: 0; animation: caer linear infinite; }
@keyframes caer {
  0%       { transform: translateY(0) rotate(0deg);       opacity: 0; }
  14%, 86% { opacity: .38; }
  100%     { transform: translateY(26rem) rotate(250deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .petalos { display: none; } }

/* ───────── El ramo ───────── */
.ramo {
  display: grid; gap: .6rem; justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(3.1rem, 3.5rem));
  max-width: 13rem; margin: 1.4rem auto .2rem;
}
.flor {
  aspect-ratio: 1; display: grid; place-content: center;
  border-radius: 50%; font-size: 1.4rem;
  background: var(--papel-hondo); border: 1px dashed var(--linea); color: var(--tinta-suave);
}
.flor--llena {
  background: radial-gradient(circle at 34% 28%, #ffe0ee, #f2aac5 62%, #e07fa8);
  border: 1px solid transparent; color: #7a1447;
  box-shadow: 0 4px 14px -6px rgb(224 32 128 / .55);
  animation: florecer .45s cubic-bezier(.2,1.4,.4,1) backwards;
}
@keyframes florecer { from { transform: scale(.25) rotate(-35deg); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .flor--llena { animation: none; } }

.barra-ramo { height: .35rem; border-radius: 999px; background: var(--papel-hondo); overflow: hidden; margin: 1rem 0 .5rem; }
.barra-ramo i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--rosa), var(--fucsia)); transition: width .55s cubic-bezier(.2,.8,.3,1); }
.ramo-pie { text-align: center; color: var(--tinta-suave); font-size: .92rem; margin: 0; }
.ramo-pie strong { color: var(--fucsia); font-weight: 600; }

/* ───────── Cupones ───────── */
.cupon {
  position: relative; overflow: hidden; text-align: center; margin-top: .9rem;
  border-radius: var(--r-m); padding: 1.4rem 1.1rem;
  background: var(--papel-alto);
  border: 1px solid var(--fucsia);
  box-shadow: 0 10px 30px -14px rgb(224 32 128 / .4);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) .cupon { background: #2a1e25; }
}
.cupon::before {
  /* filete interior: el detalle que hace que parezca un cupón y no una caja */
  content: ''; position: absolute; inset: .3rem; border-radius: calc(var(--r-m) - .25rem);
  border: 1px dashed color-mix(in srgb, var(--fucsia) 32%, transparent); pointer-events: none;
}
.cupon--amiga { border-color: #6fae9c; box-shadow: 0 10px 30px -14px rgb(111 174 156 / .5); }
.cupon--amiga::before { border-color: color-mix(in srgb, #6fae9c 45%, transparent); }
.cupon--usado, .cupon--vencido { border-style: dashed; opacity: .5; box-shadow: none; }
.cupon > * { position: relative; z-index: 1; }
.cupon__emoji { font-size: 1.7rem; line-height: 1; margin: 0; }
.cupon__t {
  font-family: var(--display); font-weight: 600; font-size: 1.15rem;
  margin: .35rem 0 .15rem; line-height: 1.2;
}
.cupon__d { color: var(--tinta-suave); font-size: .88rem; margin: 0 0 .9rem; }
.cupon__codigo {
  display: inline-block; font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 1.15rem; font-weight: 600; letter-spacing: .16em;
  background: var(--tinta); color: var(--papel);
  padding: .5rem 1.15rem; border-radius: .45rem;
}
.cupon__vence { font-size: .76rem; color: var(--tinta-suave); margin: .65rem 0 0; }
.cupon__sello {
  position: absolute; top: 1rem; right: -2.6rem; z-index: 2; transform: rotate(38deg);
  background: var(--tinta-suave); color: var(--papel); font-size: .64rem; font-weight: 600;
  letter-spacing: .18em; padding: .2rem 2.8rem;
}

.brillo { position: absolute; z-index: 2; pointer-events: none; animation: titilar 2.6s ease-in-out infinite; }
@keyframes titilar { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: .85; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .brillo { animation: none; opacity: .35; } }

/* ───────── Hito ───────── */
.hito {
  border: 1px solid color-mix(in srgb, var(--oro) 40%, transparent);
  background: color-mix(in srgb, var(--oro) 8%, var(--papel-alto));
  border-radius: var(--r-s); padding: .85rem 1rem; text-align: center; margin: 1.3rem 0;
}
.hito strong { display: block; font-family: var(--display); font-weight: 600; }
.hito span { font-size: .87rem; color: var(--tinta-suave); }

/* ───────── Formularios del club ───────── */
.club-form { display: grid; gap: .1rem; }
.club-nota {
  font-size: .8rem; color: var(--tinta-suave); line-height: 1.6;
  background: var(--papel-hondo); border-radius: var(--r-s);
  padding: .8rem .95rem; margin-top: 1.3rem;
}
.club-secundario { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 1.4rem; }

.chips-premio { display: grid; gap: .5rem; margin: 1rem 0; }
.chip-premio {
  display: flex; align-items: center; gap: .8rem; text-align: left;
  background: var(--papel-alto); border: 1px solid var(--linea);
  border-radius: var(--r-s); padding: .75rem .9rem;
}
.chip-premio__e { font-size: 1.3rem; }
.chip-premio__t { font-family: var(--display); font-weight: 600; display: block; font-size: .95rem; }
.chip-premio__d { font-size: .82rem; color: var(--tinta-suave); }

.paso-ops:empty { display: none; }
.paso-ops { border-left: 2px solid var(--rosa); padding-left: .85rem; margin-top: .3rem; }
.paso-ops .grupo { margin-top: .9rem; }
.paso-ops .grupo__n { font-size: .92rem; }

.fila-btn { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.fila-btn .btn-principal, .fila-btn .btn-secundario { flex: 1 1 8rem; }

/* ───────── Mostrador ───────── */
.mostrador { max-width: 34rem; margin-inline: auto; padding: 1.6rem 1.15rem 4rem; }
.mostrador h1 { font-size: 1.6rem; margin-bottom: .2rem; }
.mostrador__sub { color: var(--tinta-suave); margin: 0 0 1.5rem; font-size: .92rem; }
.tarjeta {
  background: var(--papel-alto); border: 1px solid var(--linea);
  border-radius: var(--r-m); padding: 1.15rem; margin-bottom: 1rem;
}
.tarjeta h2 { font-size: 1.05rem; margin-bottom: .6rem; }
.resultado { margin-top: 1rem; }
.resultado:empty { display: none; }
.ok  { background: #e9f7ef; border: 1px solid #8ecfa8; color: #14532d; border-radius: var(--r-s); padding: .85rem .95rem; }
.mal { background: #fdecec; border: 1px solid #efa8a8; color: #7f1d1d; border-radius: var(--r-s); padding: .85rem .95rem; }
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) .ok  { background: #16301f; color: #b6e9cb; border-color: #2f6b45; }
  :root:not([data-tema="claro"]) .mal { background: #331818; color: #f3b9b9; border-color: #7a3030; }
}
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .6rem; }
.numero { background: var(--papel-hondo); border-radius: var(--r-s); padding: .8rem; text-align: center; }
.numero b { display: block; font-size: 1.5rem; font-family: var(--display); font-weight: 600; color: var(--fucsia); }
.numero span { font-size: .76rem; color: var(--tinta-suave); }
.codigo-grande {
  font-family: ui-monospace, Menlo, monospace; font-size: 2rem; font-weight: 600;
  letter-spacing: .2em; text-align: center; display: block; margin: .6rem 0;
}
/* El mostrador reusa la cabecera del menú, pero con su propio rótulo. */
.marca__nombre { font-family: var(--display); font-size: 1.4rem; font-weight: 600; }
.marca__bajada { font-size: .6rem; letter-spacing: .28em; text-transform: uppercase; color: var(--tinta-suave); }
