/* Tienda estilo item shop: destacados altos a la izquierda, diarios a la derecha, portadas con la frase de cada uno */
.tienda { padding: 26px 0 70px; background: radial-gradient(ellipse at 20% -10%, rgba(64, 120, 255, .22), transparent 55%), radial-gradient(ellipse at 90% 0%, rgba(255, 176, 32, .14), transparent 50%); }
.ti-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.ti-titulo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ti-titulo h1 { margin: 0; font: italic 900 clamp(56px, 8vw, 96px)/.85 var(--titulo); text-transform: uppercase; color: #fff; letter-spacing: -1px; text-shadow: 0 5px 0 rgba(0, 0, 0, .45); }
.ti-reloj { padding: 7px 12px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #e9e4da; font: 800 15px var(--titulo); text-transform: uppercase; letter-spacing: .5px; }
.ti-reloj b { color: #fff; font-variant-numeric: tabular-nums; }
.moneda { display: inline-block; width: 22px; height: 22px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff6c4, #ffd23f 45%, #c98a12 100%); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25), 0 0 0 2px #8a5a08; vertical-align: -5px; }
.ti-saldo { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--carbon-2); box-shadow: inset 0 0 0 1px rgba(255, 211, 106, .4); }
.ti-saldo .moneda { width: 34px; height: 34px; }
.ti-saldo small { display: block; color: var(--gris); font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.ti-saldo b { font: 900 28px/1 var(--titulo); color: #ffd36a; }
.ti-der { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ti-codigo { display: flex; align-items: flex-end; gap: 8px; padding: 9px 10px 9px 14px; border-radius: 14px; background: var(--carbon-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.ti-codigo label { display: grid; gap: 3px; }
.ti-codigo small { color: var(--gris); font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.ti-codigo input { width: 150px; border: 0; border-bottom: 2px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font: 800 18px var(--titulo); text-transform: uppercase; letter-spacing: 1px; padding: 2px 0; outline: none; }
.ti-codigo input:focus { border-bottom-color: #ffd36a; }
.ti-codigo button { border: 0; border-radius: 10px; padding: 8px 12px; background: #f4f1ea; color: #141413; font: 800 13px var(--titulo); text-transform: uppercase; cursor: pointer; }
.ti-codigo.ok { animation: ti-ok .8s; }
@keyframes ti-ok { 30% { box-shadow: inset 0 0 0 2px #c5f04a, 0 0 30px rgba(197, 240, 74, .5); } }
.ti-mas { margin-left: 6px; padding: 8px 12px; border-radius: 10px; background: #ffd36a; color: #2a1a04; font: 800 13px var(--titulo); text-transform: uppercase; text-decoration: none; }

.ti-vidriera { display: grid; grid-template-columns: 3fr 2fr; gap: 26px; align-items: stretch; }
.ti-diarios { display: flex; flex-direction: column; }
.ti-bloque h2 { margin: 0 0 10px; font: italic 900 30px/1 var(--titulo); text-transform: uppercase; color: #fff; letter-spacing: .5px; }
.ti-dest-grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ti-diarios-grilla { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 10px; flex: 1; }
.ti-dest-grilla .cargando { height: 420px; } .ti-diarios-grilla .cargando { height: 205px; }

/* Carta */
.ti-carta { --r: #9aa4ad; position: relative; overflow: hidden; border-radius: 6px; cursor: pointer; background: #10131a; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); transition: transform .16s, box-shadow .16s; isolation: isolate; text-align: left; border: 0; padding: 0; color: inherit; font: inherit; display: block; width: 100%; }
.ti-carta:hover, .ti-carta:focus-visible { transform: translateY(-3px); box-shadow: 0 0 0 3px #fff, 0 16px 34px rgba(0, 0, 0, .5), 0 0 26px color-mix(in srgb, var(--r) 60%, transparent); outline: none; }
.ti-carta .ti-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .35s; z-index: -1; }
.ti-carta:hover .ti-img { transform: scale(1.06); }
.ti-dest .ti-carta { aspect-ratio: 3 / 5.2; }
.ti-dest .ti-carta .ti-img { object-position: 50% 0%; height: 86%; }
.ti-diarios .ti-carta { height: 100%; min-height: 150px; }
.ti-diarios .ti-carta .ti-img { width: 62%; left: auto; right: -4%; object-fit: cover; object-position: 50% 18%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.ti-diarios .ti-carta { background: radial-gradient(ellipse at 75% 30%, color-mix(in srgb, var(--r) 45%, #10131a), #10131a 75%); }
.ti-diarios .ti-info { top: 0; padding: 14px 10px 0; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(90deg, rgba(8, 9, 14, .92) 0%, rgba(8, 9, 14, .55) 50%, transparent 75%); }
.ti-diarios .ti-frase { max-width: 62%; -webkit-line-clamp: 3; margin-bottom: auto; padding-top: 22px; font-size: 14px; }
.ti-diarios .ti-precio { background: linear-gradient(90deg, rgba(0, 0, 0, .7), rgba(0, 0, 0, .35)); }
.ti-carta::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--r); }
.ti-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 10px 0; background: linear-gradient(180deg, transparent, rgba(8, 9, 14, .75) 32%, rgba(8, 9, 14, .96) 70%); }
.ti-frase { margin: 0 0 6px; font: italic 700 13px/1.2 var(--titulo); color: #f0ece4; opacity: .92; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ti-frase::before { content: '“'; color: var(--r); font-size: 18px; margin-right: 1px; }
.ti-frase::after { content: '”'; color: var(--r); font-size: 18px; margin-left: 1px; }
.ti-nombre { display: block; font: italic 900 24px/1 var(--titulo); text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ti-dest .ti-nombre { font-size: 28px; }
.ti-tipo { display: block; margin-top: 2px; font: 800 11px var(--mono); text-transform: uppercase; letter-spacing: 1px; color: color-mix(in srgb, var(--r) 70%, #fff 30%); }
.ti-precio { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 8px -10px 0; padding: 7px 10px 10px; background: rgba(0, 0, 0, .55); font: 900 19px/1 var(--titulo); color: #fff; }
.ti-precio span { display: inline-flex; align-items: center; gap: 6px; }
.ti-precio .moneda { width: 18px; height: 18px; vertical-align: 0; }
.ti-precio.falta { color: #ff9a9a; }
.ti-precio.tuya { color: var(--lima); }
.ti-precio small { font: 700 11px var(--mono); color: var(--gris); text-transform: uppercase; }
.ti-nuevo { position: absolute; top: 8px; left: 8px; padding: 4px 9px; background: #ffe03a; color: #141413; font: italic 900 15px/1 var(--titulo); text-transform: uppercase; transform: skew(-8deg); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.ti-sello { position: absolute; top: 8px; right: 8px; padding: 4px 9px; border-radius: 99px; background: rgba(10, 10, 14, .8); color: var(--lima); font: 800 12px var(--titulo); text-transform: uppercase; }
.ti-brillo { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-100%); pointer-events: none; }
.ti-carta:hover .ti-brillo, .r-mitica .ti-brillo, .r-legendaria .ti-brillo { animation: ti-brillo 3.2s ease-in-out infinite; }
@keyframes ti-brillo { 0%, 55% { transform: translateX(-100%); } 90%, 100% { transform: translateX(100%); } }
.r-mitica { animation: ti-mitica 3s ease-in-out infinite; }
@keyframes ti-mitica { 50% { box-shadow: 0 0 0 2px #ffd0ec, 0 0 34px rgba(255, 59, 138, .6); } }

.ti-nota { color: var(--gris); font-size: 13px; max-width: 360px; line-height: 1.3; }
.ti-nota a { color: var(--lima); }
.ti-carta.usando { box-shadow: 0 0 0 3px var(--lima), 0 10px 26px rgba(0, 0, 0, .4); }

/* En compu la tienda entra entera en la pantalla, sin scroll */
@media (min-width: 961px) and (min-height: 620px) {
  body.pagina-tienda { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
  .pagina-tienda .tienda { flex: 1; min-height: 0; padding: 18px 0 22px; }
  .pagina-tienda .tienda > .contenedor { height: 100%; display: flex; flex-direction: column; }
  .pagina-tienda .ti-cabeza { margin-bottom: 12px; }
  .pagina-tienda .ti-vidriera { flex: 1; min-height: 0; max-height: 700px; grid-template-rows: 100%; }
  .pagina-tienda .ti-bloque { display: flex; flex-direction: column; min-height: 0; }
  .pagina-tienda .ti-dest-grilla { flex: 1; min-height: 0; grid-template-rows: 100%; }
  .pagina-tienda .ti-dest .ti-carta { aspect-ratio: auto; height: 100%; }
  .pagina-tienda .ti-diarios-grilla { min-height: 0; }
  .pagina-tienda .ti-diarios .ti-carta { min-height: 0; }
}

/* Detalle */
.ti-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(5, 6, 10, .78); backdrop-filter: blur(6px); animation: ti-aparece .18s ease-out; }
.ti-modal[hidden] { display: none; }
@keyframes ti-aparece { from { opacity: 0; } }
.ti-det { --r: #9aa4ad; position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: stretch; max-width: 920px; width: 100%; max-height: calc(100vh - 32px); padding: 18px; border-radius: 14px; background: radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--r) 30%, transparent), transparent 60%), #14161d; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--r) 60%, transparent), 0 30px 80px rgba(0, 0, 0, .6); animation: ti-sube .32s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes ti-sube { from { transform: translateY(20px) scale(.96); } }
.ti-visor { position: relative; min-height: 0; aspect-ratio: 4 / 5; max-height: calc(100vh - 70px); border-radius: 8px; overflow: hidden; background: radial-gradient(ellipse at 50% 34%, color-mix(in srgb, var(--r) 65%, #273349) 0%, color-mix(in srgb, var(--r) 22%, #0c1018) 70%); cursor: grab; touch-action: none; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--r) 60%, transparent); }
.ti-visor::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, transparent 0 54px, rgba(255,255,255,.035) 55px 56px); pointer-events: none; }
.ti-visor:active { cursor: grabbing; }
.ti-visor canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.ti-visor .ti-portada { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.ti-visor.en-3d .ti-portada { opacity: 0; pointer-events: none; }
.ti-visor .ti-girar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 5px 10px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; font: 700 12px var(--titulo); text-transform: uppercase; letter-spacing: .5px; pointer-events: none; white-space: nowrap; }
.ti-visor .ti-vista { position: absolute; top: 10px; right: 10px; border: 0; border-radius: 99px; padding: 6px 11px; background: rgba(0, 0, 0, .6); color: #fff; font: 800 12px var(--titulo); text-transform: uppercase; cursor: pointer; }
.ti-anims { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.ti-anims button { border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 99px; padding: 6px 12px; font: 800 14px var(--titulo); text-transform: uppercase; cursor: pointer; }
.ti-anims button.on { background: var(--r); border-color: var(--r); color: #141413; }
.ti-det-info { display: flex; flex-direction: column; min-height: 0; overflow: auto; }
.ti-det .ti-chip { display: inline-block; padding: 4px 10px; border-radius: 99px; background: var(--r); color: #141413; font: 800 13px var(--titulo); text-transform: uppercase; }
.ti-det h3 { margin: 10px 0 2px; font: italic 900 54px/.9 var(--titulo); text-transform: uppercase; }
.ti-det .ti-tipo { font-size: 12px; }
.ti-det blockquote { margin: 16px 0 0; padding: 12px 14px; border-left: 4px solid var(--r); background: rgba(255, 255, 255, .05); font: italic 700 22px/1.25 var(--titulo); color: #f4f1ea; }
.ti-sub { margin: 16px 0 0; font: 800 11px var(--mono); text-transform: uppercase; letter-spacing: 1px; color: var(--gris); }
.ti-det .ti-acciones { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; }
.ti-boton { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 18px; background: linear-gradient(180deg, #ffe58a, #ffc83a); color: #2a1a04; box-shadow: 0 4px 0 #a8701a; font: 900 22px/1 var(--titulo); text-transform: uppercase; cursor: pointer; }
.ti-boton:disabled { filter: grayscale(.7) brightness(.75); cursor: not-allowed; }
.ti-boton.usar { background: var(--lima); color: #141413; box-shadow: 0 4px 0 #6f8a1c; }
.ti-boton.quitar, .ti-boton.regalo { background: #f4f1ea; box-shadow: 0 4px 0 #8a857a; }
.ti-boton.chico { font-size: 17px; padding: 10px 14px; }
.ti-det .ti-falta { color: #ff9a9a; font: 700 14px var(--titulo); }
.ti-det .ti-falta a { color: #ffd36a; }
.ti-amigos { display: grid; gap: 6px; margin-top: 12px; max-height: 210px; overflow: auto; }
.ti-amigos button { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #fff; border-radius: 10px; padding: 9px 12px; font: 700 16px var(--titulo); cursor: pointer; text-align: left; }
.ti-amigos button:hover { border-color: var(--r); }
.ti-amigos small { color: var(--gris); font: 600 12px var(--mono); }
.ti-cerrar { position: absolute; top: 6px; right: 10px; z-index: 2; border: 0; background: none; color: #fff; font: 900 30px/1 var(--titulo); cursor: pointer; opacity: .7; }
.ti-cerrar:hover { opacity: 1; }
.ti-det.recien .ti-visor { animation: ti-compra .9s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes ti-compra { 0% { transform: scale(.85); } 50% { transform: scale(1.04); box-shadow: 0 0 80px #fff; } 100% { transform: scale(1); } }
.ti-regalo-llego { text-align: center; grid-template-columns: 1fr; max-width: 420px; }
.ti-regalo-llego img { width: 220px; margin: 0 auto; border-radius: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.ti-regalo-llego h3 { font-size: 40px; }

@media (max-width: 960px) {
  .ti-vidriera { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ti-dest-grilla { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .ti-dest-grilla > * { scroll-snap-align: start; }
  .ti-diarios .ti-carta { min-height: 0; aspect-ratio: 3 / 3.8; }
  .ti-diarios .ti-frase { max-width: 70%; font-size: 12px; }
  .ti-det { grid-template-columns: 1fr; overflow: auto; }
  .ti-visor { aspect-ratio: 1 / 1; max-height: 46vh; }
  .ti-det h3 { font-size: 40px; }
}

.batata-revela { box-shadow: inset 0 0 70px #ffd16688; }
.batata-revela::after { content: 'BATATA · MÍTICO'; position: absolute; bottom: 45px; left: 10%; right: 10%; text-align: center; color: #ffe6a0; font: 900 clamp(22px, 3vw, 42px) var(--titulo); text-shadow: 0 3px #35172a, 0 0 18px #ffc44d; pointer-events: none; animation: batata-gloria 2.4s ease-out both; }
.batata-revela canvas { animation: batata-entrada 1.4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes batata-gloria { from { opacity: 0; transform: translateY(40px) scale(.7); } 55% { opacity: 1; transform: translateY(-6px) scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes batata-entrada { from { opacity: 0; filter: brightness(4); transform: scale(.75); } to { opacity: 1; filter: brightness(1); transform: scale(1); } }
@media(prefers-reduced-motion:reduce) { .batata-revela::after, .batata-revela canvas { animation: none; } }

/* ---------- Cofre diario ---------- */
.ti-cofre-btn { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border: 0; border-radius: 14px; cursor: pointer; color: #fff; text-align: left;
  background: linear-gradient(135deg, #3a2a08, #1b1404); box-shadow: inset 0 0 0 1px rgba(255, 211, 106, .45); transition: transform .15s; }
.ti-cofre-btn:hover { transform: translateY(-2px); }
.ti-cofre-btn small { display: block; color: #ffd36a; font: 700 11px var(--mono); text-transform: uppercase; letter-spacing: 1px; }
.ti-cofre-btn b { font: 900 20px/1 var(--titulo); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.ti-cofre-btn .cd-cofre { width: 64px; height: 50px; }
.ti-cofre-btn.listo { box-shadow: inset 0 0 0 2px #ffd36a, 0 0 24px rgba(255, 200, 60, .45); animation: cd-latido 1.6s ease-in-out infinite; }
.ti-cofre-btn.listo .cd-cofre { animation: cd-salta 1.6s ease-in-out infinite; }
@keyframes cd-latido { 50% { box-shadow: inset 0 0 0 2px #fff3b0, 0 0 38px rgba(255, 200, 60, .7); } }
@keyframes cd-salta { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(-4px) rotate(-4deg); } 80% { transform: translateY(0) rotate(3deg); } }
.cd-cofre { overflow: visible; }
.cd-cofre .cd-luz { opacity: 0; }
.cd-cofre .cd-tapa { transform-origin: 110px 70px; transform-box: view-box; }

.cd-capa { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: radial-gradient(ellipse at 50% 40%, rgba(40, 30, 6, .92), rgba(5, 6, 10, .96)); backdrop-filter: blur(6px); animation: ti-aparece .2s; }
.cd-capa[hidden] { display: none; }
.cd-caja { position: relative; width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border-radius: 16px; background: linear-gradient(180deg, #1d1810, #121016); box-shadow: inset 0 0 0 2px rgba(255, 211, 106, .35), 0 30px 80px rgba(0, 0, 0, .6); }
.cd-cerrar { position: absolute; top: 8px; right: 12px; border: 0; background: none; color: #fff; font: 900 30px/1 var(--titulo); cursor: pointer; opacity: .7; z-index: 2; }
.cd-cabeza { display: flex; align-items: center; gap: 22px; }
.cd-cofre-wrap { flex: none; width: 210px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .5)); }
.cd-cofre-wrap .cd-cofre { width: 100%; height: auto; animation: cd-flota 3s ease-in-out infinite; }
@keyframes cd-flota { 50% { transform: translateY(-8px); } }
.cd-etq { color: #ffd36a; font: 800 12px var(--mono); text-transform: uppercase; letter-spacing: 2px; }
.cd-caja h2, .cd-premio h2 { margin: 4px 0 6px; font: italic 900 clamp(40px, 6vw, 64px)/.9 var(--titulo); text-transform: uppercase; color: #fff; }
.cd-sub { margin: 0 0 8px; color: #e9e4da; }
.cd-garantia { margin: 0; padding: 8px 12px; border-radius: 8px; background: rgba(255, 211, 106, .1); color: #f4e7c4; font-size: 14px; }
.cd-garantia b { color: #ffd36a; }
.cd-pool { display: grid; gap: 10px; margin: 18px 0; }
.cd-grupo > span { display: block; margin-bottom: 6px; color: var(--r); font: 800 13px var(--titulo); text-transform: uppercase; letter-spacing: .5px; }
.cd-grupo > div { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-carta { --r: #9aa4ad; position: relative; flex: none; width: 108px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--r) 70%, #fff 5%), color-mix(in srgb, var(--r) 30%, #08090e) 90%); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--r) 70%, transparent); }
.cd-carta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.cd-carta::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--r); box-shadow: 0 -6px 16px var(--r); }
.cd-carta b { position: absolute; left: 6px; right: 6px; bottom: 9px; font: italic 900 13px/1 var(--titulo); text-transform: uppercase; color: #fff; text-shadow: 0 1px 3px #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-carta.tenida { filter: saturate(.55) brightness(.75); }
.cd-carta.tenida::before { content: 'Tuya'; position: absolute; top: 5px; right: 5px; z-index: 1; padding: 2px 6px; border-radius: 4px; background: rgba(0, 0, 0, .6); color: var(--lima); font: 800 10px var(--titulo); text-transform: uppercase; }
.cd-carta.r-mitica { animation: ti-mitica 3s ease-in-out infinite; }
.cd-pie { display: flex; justify-content: center; }
.cd-boton { border: 0; border-radius: 12px; padding: 14px 34px; cursor: pointer; background: linear-gradient(180deg, #ffe58a, #ffc83a); color: #2a1a04; box-shadow: 0 5px 0 #a8701a, 0 0 30px rgba(255, 200, 60, .35); font: italic 900 28px/1 var(--titulo); text-transform: uppercase; }
.cd-boton:hover { filter: brightness(1.06); }
.cd-boton.gris { background: #f4f1ea; box-shadow: 0 5px 0 #8a857a; }
.cd-espera { color: #e9e4da; font-size: 16px; }
.cd-espera b { font-variant-numeric: tabular-nums; }

/* abriendo: tiembla, la tapa vuela y sale la luz */
.cd-caja.abriendo .cd-pool, .cd-caja.abriendo .cd-pie, .cd-caja.abriendo .cd-cabeza > div:last-child { opacity: .15; transition: opacity .3s; }
.cd-caja.abriendo .cd-cofre-wrap { position: relative; z-index: 2; transform: scale(1.25); transition: transform .4s; }
.cd-caja.abriendo .cd-cofre { animation: cd-tiembla .5s linear 2; }
.cd-caja.abriendo .cd-tapa { animation: cd-tapa .7s .95s cubic-bezier(.2, 1.4, .5, 1) forwards; }
.cd-caja.abriendo .cd-luz { animation: cd-luz .9s .95s ease-out forwards; }
@keyframes cd-tiembla { 0%, 100% { transform: none; } 20% { transform: translateX(-5px) rotate(-3deg); } 40% { transform: translateX(5px) rotate(3deg); } 60% { transform: translateX(-4px) rotate(-2deg); } 80% { transform: translateX(4px) rotate(2deg); } }
@keyframes cd-tapa { to { transform: translateY(-60px) rotate(-24deg); opacity: 0; } }
@keyframes cd-luz { 0% { opacity: 0; transform: scale(.4); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(3); } }

/* la ruleta */
.cd-ruleta { width: min(1100px, 100%); display: grid; gap: 14px; justify-items: center; animation: ti-aparece .3s; }
.cd-ventana { position: relative; width: 100%; overflow: hidden; padding: 18px 0; border-radius: 12px; background: linear-gradient(180deg, #0c0d12, #17151e); box-shadow: inset 0 0 0 2px rgba(255, 211, 106, .3), inset 0 0 60px rgba(0, 0, 0, .8);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.cd-tira { display: flex; gap: 10px; padding: 0 10px; will-change: transform; } /* la mueve cofre-diario.js */
.cd-tira .cd-carta { width: 150px; }
.cd-tira .cd-carta.gano { animation: cd-gano .7s ease-out forwards; }
@keyframes cd-gano { 50% { transform: scale(1.12); box-shadow: 0 0 0 3px #fff, 0 0 50px var(--r); } 100% { transform: scale(1.08); box-shadow: 0 0 0 3px #fff, 0 0 40px var(--r); } }
.cd-linea { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%); background: #ffd36a; box-shadow: 0 0 12px #ffd36a, 0 0 30px rgba(255, 211, 106, .6); }
.cd-linea::before, .cd-linea::after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); border: 10px solid transparent; }
.cd-linea::before { top: 0; border-top-color: #ffd36a; }
.cd-linea::after { bottom: 0; border-bottom-color: #ffd36a; }
.cd-linea.tic { animation: cd-tic .15s; }
@keyframes cd-tic { 50% { box-shadow: 0 0 22px #fff, 0 0 50px #ffd36a; } }
.cd-girando { margin: 0; color: #ffd36a; font: italic 900 26px var(--titulo); text-transform: uppercase; letter-spacing: 1px; animation: cd-parpadea 1s infinite; }
@keyframes cd-parpadea { 50% { opacity: .4; } }

/* la revelación */
.cd-revela { --r: #9aa4ad; position: fixed; inset: 0; display: grid; place-items: center; overflow: hidden; }
.cd-destello { position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, var(--r), transparent 60%); opacity: 0; animation: cd-destello 1.2s ease-out forwards; }
@keyframes cd-destello { 0% { opacity: 1; background-color: #fff; } 30% { background-color: transparent; } 100% { opacity: .45; } }
.cd-rayos { position: absolute; left: 50%; top: 45%; width: 1600px; height: 1600px; margin: -800px 0 0 -800px; opacity: .35; animation: cd-gira 18s linear infinite;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--r) 80%, #fff) 0 6deg, transparent 6deg 18deg); -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 60%); mask-image: radial-gradient(circle, #000 10%, transparent 60%); }
@keyframes cd-gira { to { transform: rotate(360deg); } }
.cd-premio { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 16px; }
.cd-carta-grande .cd-carta { width: min(270px, 60vw); animation: cd-entra .8s cubic-bezier(.2, 1.5, .4, 1); box-shadow: 0 0 0 3px #fff, 0 0 60px var(--r); }
@keyframes cd-entra { from { transform: scale(.2) rotate(-12deg); opacity: 0; } }
.cd-chip { padding: 5px 14px; border-radius: 99px; background: var(--r); color: #141413; font: 900 16px var(--titulo); text-transform: uppercase; }
.cd-frase { margin: 4px 0 0; max-width: 460px; color: #f4f1ea; font: italic 700 20px/1.25 var(--titulo); }
.cd-repetida { margin: 0; color: #ffd36a; }
.cd-acciones { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.cd-revela.r-mitica .cd-premio h2 { background: linear-gradient(180deg, #fff, #ffb3d6 60%, #ff3b8a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd-confeti { position: absolute; inset: 0; pointer-events: none; }
.cd-confeti i { position: absolute; top: -20px; left: var(--x); width: 10px; height: 16px; background: var(--c); animation: cd-cae 2.6s var(--d) linear forwards; }
@keyframes cd-cae { to { transform: translateY(110vh) rotate(var(--g)); } }
@media (max-width: 700px) { .cd-cabeza { flex-direction: column; text-align: center; } .cd-cofre-wrap { width: 150px; } .cd-carta { width: 84px; } .cd-tira .cd-carta { width: 120px; } }
/* el pool entra entero sin scroll: los grupos van uno al lado del otro */
.cd-pool { display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: center; }
.cd-pool .cd-carta { width: 92px; }
.cd-caja { overflow: visible; max-height: none; }
@media (max-width: 700px) { .cd-caja { max-height: calc(100vh - 32px); overflow: auto; } .cd-pool .cd-carta { width: 76px; } }

/* ---------- Cofre diario v2: cofre 3D girando, sin vista previa, apertura rápida ---------- */
.cd-escena { --r: #ffd36a; position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; width: min(620px, 100%); padding: 10px 16px 20px; }
.cd-escena h2 { margin: 0; font: italic 900 clamp(44px, 7vw, 72px)/.9 var(--titulo); text-transform: uppercase; color: #fff; text-shadow: 0 5px 0 rgba(0, 0, 0, .4); }
.cd-escena .cd-cerrar { top: -4px; right: 0; }
.cd-tres { position: relative; width: min(400px, 82vw); aspect-ratio: 1 / .9; margin: -6px 0 -14px; }
.cd-tres canvas { position: relative; width: 100%; height: 100%; display: block; }
.cd-tres .cd-cofre.grande { width: 70%; margin: 12% auto; display: block; animation: cd-flota 3s ease-in-out infinite; }
.cd-aura { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--r) 55%, transparent), transparent 65%); animation: cd-aura 2.4s ease-in-out infinite; }
@keyframes cd-aura { 50% { transform: scale(1.12); opacity: .7; } }
.cd-prob { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 4px 0 8px; }
.cd-prob span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); color: #e9e4da; font: 700 13px var(--titulo); text-transform: uppercase; letter-spacing: .3px; }
.cd-prob i { width: 10px; height: 10px; border-radius: 50%; background: var(--r); box-shadow: 0 0 8px var(--r); }
.cd-prob b { color: var(--r); }
.cd-escena .cd-garantia { margin-bottom: 12px; }
.cd-escena .cd-boton { padding: 14px 54px; font-size: 32px; animation: cd-boton 1.4s ease-in-out infinite; }
@keyframes cd-boton { 50% { transform: scale(1.05); box-shadow: 0 5px 0 #a8701a, 0 0 46px rgba(255, 200, 60, .65); } }
.cd-escena.abriendo > :not(.cd-tres) { opacity: 0; transition: opacity .25s; pointer-events: none; }
.cd-escena.abriendo .cd-tres { transform: scale(1.3); transition: transform .7s cubic-bezier(.2, 1.3, .4, 1); }
.cd-escena.abierto .cd-aura { animation: cd-estalla .85s ease-out forwards; }
@keyframes cd-estalla { to { transform: scale(4.5); opacity: 0; } }
/* ruleta más corta y nerviosa */
.cd-tira { transition: transform 3.3s cubic-bezier(.1, .75, .12, 1); }
.cd-ruleta { cursor: pointer; }
.cd-ruleta .cd-ventana { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--r) 60%, #ffd36a), inset 0 0 60px rgba(0, 0, 0, .8), 0 0 60px color-mix(in srgb, var(--r) 35%, transparent); animation: cd-entra-ruleta .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes cd-entra-ruleta { from { transform: scaleY(.2); opacity: 0; } }
.cd-girando { font-size: 15px; opacity: .7; animation: none; }
/* revelación: onda expansiva */
.cd-onda { position: absolute; left: 50%; top: 45%; width: 60px; height: 60px; margin: -30px; border-radius: 50%; border: 6px solid var(--r); animation: cd-onda 1s ease-out forwards; }
@keyframes cd-onda { to { transform: scale(34); opacity: 0; border-width: 1px; } }
.cd-premio h2 { animation: cd-sube .5s .25s both; } .cd-premio .cd-chip, .cd-premio .cd-frase, .cd-premio .cd-acciones, .cd-premio .cd-repetida { animation: cd-sube .5s .45s both; }
@keyframes cd-sube { from { transform: translateY(24px); opacity: 0; } }
