@font-face { font-family: 'Manrope'; src: url('/fuente/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fuente/fraunces.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
:root { --cafe: #2b1d14; --tostado: #b0501e; --crema: #f8f1e6; --crema-2: #eedfca; --hoja: #5aa877; --lima: #c6f432; --suave: #6b5848; --curva: cubic-bezier(.2,.8,.2,1); --resorte: cubic-bezier(.34,1.56,.64,1); }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Manrope', system-ui, sans-serif; background: var(--cafe); color: #fff; -webkit-font-smoothing: antialiased; min-height: 100vh; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; border-radius: 10px; }
.f-main { width: min(480px, 100%); margin: 0 auto; padding: 26px 18px 50px; }
.f-marca { margin: 0; font-family: 'Fraunces', serif; font-size: 1.1rem; } .f-marca span { color: var(--lima); }
.f-cab h1 { font-family: 'Fraunces', serif; font-weight: 600; font-size: 2rem; margin: 6px 0 4px; }
.f-hola { margin: 0 0 18px; color: #d8c8b8; }
.f-tarjeta { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--crema), var(--crema-2)); color: var(--cafe); border-radius: 26px; padding: 22px 18px 18px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.f-veta { position: absolute; inset: 0; background: repeating-radial-gradient(circle at 120% -20%, transparent 0 18px, rgba(176,80,30,.06) 18px 20px); pointer-events: none; }
.f-tarjeta.completa { animation: festeja .8s var(--resorte); }
@keyframes festeja { 30% { transform: scale(1.04) rotate(-1.5deg); } 60% { transform: scale(.99) rotate(1deg); } }
.f-sellos { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.f-sellos li { aspect-ratio: 1; border-radius: 50%; border: 2.5px dashed #c9a98a; display: grid; place-items: center; font-weight: 800; color: #b59a80; font-size: .9rem; }
.f-sellos li.lleno { border: 0; background: var(--tostado); color: #fff; box-shadow: inset 0 0 0 4px rgba(255,255,255,.25); }
.f-sellos li.lleno svg { width: 60%; height: 60%; }
.f-sellos li.nuevo { animation: sella .7s var(--resorte); }
@keyframes sella { 0% { transform: scale(2.4) rotate(-30deg); opacity: 0; } 55% { opacity: 1; transform: scale(.85) rotate(6deg); } 100% { transform: none; } }
.f-sellos li.meta { border-style: solid; border-color: var(--hoja); color: var(--hoja); }
.f-sellos li.meta.lleno { background: var(--hoja); }
.f-reg { position: relative; font-weight: 800; margin: 16px 0 8px; }
.f-barra { position: relative; height: 10px; border-radius: 10px; background: rgba(43,29,20,.12); overflow: hidden; }
.f-barra i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, var(--tostado), var(--hoja)); border-radius: 10px; transition: width .6s var(--curva); }
.f-premio-t { position: relative; margin: 10px 0 0; font-size: .9rem; color: var(--suave); }
.f-caja { margin-top: 22px; background: rgba(255,255,255,.06); border-radius: 22px; padding: 18px; }
.f-caja h2, .f-premio h2 { margin: 0 0 6px; font-size: 1.2rem; } .f-caja p { margin: 0 0 14px; color: #d8c8b8; }
.f-btn { width: 100%; min-height: 56px; border: 0; border-radius: 999px; background: var(--lima); color: var(--cafe); font-weight: 800; font-size: 1.02rem; cursor: pointer; transition: transform .15s var(--curva); }
.f-btn:active { transform: scale(.96); }
.f-btn.sec { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); margin-top: 10px; min-height: 48px; }
.f-btn:disabled { opacity: .4; cursor: not-allowed; }
.f-premio { margin-top: 18px; background: var(--hoja); color: #0f2416; border-radius: 22px; padding: 20px; text-align: center; }
.js .f-premio:not([hidden]) { animation: sube .6s var(--resorte); }
@keyframes sube { from { opacity: 0; transform: translateY(30px) scale(.95); } }
.f-premio p { margin: 0 0 10px; }
.f-codigo { font-size: 1.8rem; font-weight: 800; letter-spacing: .08em; background: #fff; border-radius: 14px; padding: 10px; margin: 0 0 14px !important; }
.f-historial { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 6px; }
.f-historial li { display: flex; justify-content: space-between; font-size: .88rem; color: #d8c8b8; padding: 10px 14px; background: rgba(255,255,255,.04); border-radius: 12px; animation: sube .4s var(--curva); }
.confeti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }
