/* Tienda · diseño v2. Cada rango es un «plan» grande con su color; el favorito va en tinta.
   El carrito es una hoja lateral (abajo en móvil). El flujo de compra no cambia: ver tienda.js. */

/* ---------- portada ---------- */
.t-portada__arte { position: relative; width: clamp(140px, 19vw, 290px); margin-right: clamp(0px, 6vw, 110px); }
.t-portada__arte img { width: 100%; filter: drop-shadow(0 34px 28px rgba(18, 16, 16, 0.2)); animation: flota 7s ease-in-out infinite; }
.t-portada__arte .nota-mano { position: absolute; left: -12%; bottom: 6%; text-align: center; }
.t-cierre { display: grid; gap: 20px; justify-items: start; padding: clamp(28px, 4vw, 60px); }

/* ---------- barra de la compra ---------- */
.t-barra-zona { position: sticky; top: 10px; z-index: 20; margin-block: 6px clamp(10px, 2vw, 26px); pointer-events: none; }
.t-barra { pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 10px 10px 10px 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -22px rgba(18, 16, 16, 0.4), inset 0 0 0 1px var(--linea); }
.t-cuenta { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-cuenta img { width: 36px; height: 36px; border-radius: 10px; image-rendering: pixelated; }
.t-cuenta div { display: grid; min-width: 0; line-height: 1.15; }
.t-cuenta b { font: 500 16px/1.1 var(--f); letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-cuenta .nota { font-size: 13px; }
.t-herr { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.t-barra .filtros button { padding: 0.62em 0.95em; font-size: 13.5px; }
.t-carro { padding: 0.72em 0.8em 0.72em 1.25em; }
.t-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; font: 500 13.5px/1 var(--f); background: var(--rojo); color: #fff; }
.t-carro:hover .t-n { background: #fff; color: var(--rojo); }
.t-entrar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: clamp(22px, 3vw, 40px); }
.t-entrar[data-aviso="si"] { box-shadow: inset 0 0 0 2px var(--rojo); }

/* ---------- planes ---------- */
.t-rangos-zona { scroll-margin-top: 90px; }
.t-planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: clamp(14px, 1.6vw, 24px); align-items: stretch; }
.t-planes > .vacio { grid-column: 1 / -1; }
.t-plan { --c: var(--rojo); position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: clamp(16px, 1.6vw, 24px); padding: clamp(22px, 2.2vw, 34px); border-radius: clamp(20px, 2vw, 32px); background: #fff; overflow: hidden; isolation: isolate; transition: translate 320ms var(--ease), box-shadow 320ms var(--ease); }
.t-plan::before { content: ""; position: absolute; z-index: -1; right: -22%; top: -30%; width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--c); opacity: 0.2; filter: blur(46px); transition: opacity 320ms ease, scale 500ms var(--ease); }
.t-plan:hover { translate: 0 -6px; box-shadow: 0 34px 60px -34px color-mix(in srgb, var(--c) 70%, #121010); }
.t-plan:hover::before { opacity: 0.34; scale: 1.15; }
.t-plan__cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.t-plan__nombre { display: inline-flex; align-items: center; gap: 10px; font: 500 clamp(22px, 2vw, 30px)/1 var(--f); letter-spacing: -0.04em; }
.t-plan__nombre::before { content: ""; width: 0.62em; height: 0.62em; border-radius: 0.16em; rotate: 45deg; background: var(--c); }
.t-plan__cinta { padding: 0.42em 0.8em; border-radius: 999px; font: 500 12.5px/1 var(--f); background: var(--c); color: #121010; }
.t-plan__precio { font: 600 clamp(54px, 6vw, 96px)/0.86 var(--f); letter-spacing: -0.06em; overflow-wrap: anywhere; }
.t-plan__precio small { margin-left: 0.14em; font: 500 0.26em/1 var(--f); letter-spacing: 0; color: var(--tinta-2); }
.t-plan__unidad { margin-top: 10px; font: 400 14.5px/1.2 var(--f); color: var(--tinta-2); }
.t-plan__lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; align-content: start; font-size: 15.5px; line-height: 1.3; }
.t-plan__lista li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; }
.t-plan__lista li::before { content: ""; width: 9px; height: 5px; margin-top: 0.34em; border-left: 2px solid var(--c); border-bottom: 2px solid var(--c); rotate: -45deg; filter: brightness(0.78); }
.t-plan__lista em { font: 500 13px/1 var(--f); font-style: normal; color: var(--tinta-2); white-space: nowrap; }
.t-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.t-poner { flex: 1 1 auto; justify-content: center; white-space: nowrap; }
.t-poner[aria-pressed="true"] { background: var(--c); color: #121010; }
.t-regalar { white-space: nowrap; }
/* el favorito: en tinta, un punto más alto */
.t-plan[data-destacado] { background: var(--tinta); color: var(--papel); }
.t-plan[data-destacado]::before { opacity: 0.5; }
.t-plan[data-destacado] :is(.t-plan__unidad, .t-plan__precio small, .t-plan__lista em) { color: rgba(244, 242, 240, 0.62); }
.t-plan[data-destacado] .t-plan__lista li::before { filter: none; }
.t-plan[data-destacado] .t-poner { background: var(--papel); color: var(--tinta); }
.t-plan[data-destacado] .t-poner:hover, .t-plan[data-destacado] .t-poner[aria-pressed="true"] { background: var(--c); color: #121010; }
.t-plan[data-destacado] .t-regalar:hover { color: var(--c); }
@media (min-width: 900px) { .t-plan[data-destacado] { margin-block: -14px; padding-block: calc(clamp(22px, 2.2vw, 34px) + 14px); } }

/* comparativa completa */
.t-comparar-caja > summary { list-style: none; cursor: pointer; width: fit-content; }
.t-comparar-caja > summary::-webkit-details-marker { display: none; }
.t-comparar-caja[open] > summary { margin-bottom: 18px; }
.t-comparar { min-width: 560px; }
.t-comparar thead th:not(:first-child), .t-comparar td { text-align: center; }
.t-comparar tbody th { text-align: left; font-weight: 400; padding: 14px; border-bottom: 1px solid var(--linea); }
.t-comparar td { font-weight: 500; }
.t-si { color: #13804a; font-weight: 600; }
.t-no { color: #b3acad; }

/* ---------- paquetes (banda de tinta) ---------- */
.t-paquetes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.t-paq { --c: #3ddc74; display: grid; align-content: start; gap: 16px; }
.t-paq[data-cupo] { --c: #ffc42e; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 60%, transparent); }
.t-paq__cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.t-paq__precio { font: 600 clamp(28px, 2.6vw, 40px)/1 var(--f); letter-spacing: -0.05em; }
.t-paq__nombre { font: 500 clamp(22px, 2vw, 30px)/1.08 var(--f); letter-spacing: -0.04em; overflow-wrap: anywhere; }
.t-paq ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15.5px; color: rgba(244, 242, 240, 0.78); }
.t-paq li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.t-paq li::before { content: ""; width: 9px; height: 5px; margin-top: 0.34em; border-left: 2px solid var(--c); border-bottom: 2px solid var(--c); rotate: -45deg; }
.t-paq .t-poner { background: var(--papel); color: var(--tinta); }
.t-paq .t-poner:hover, .t-paq .t-poner[aria-pressed="true"] { background: var(--c); color: #121010; }

/* ---------- el cupo del evento: un boleto a todo el ancho, con su talón recortable ---------- */
.t-boleto { --c: #ffc42e; grid-column: 1 / -1; position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr); border-radius: clamp(18px, 1.6vw, 26px);
  background: linear-gradient(120deg, #1f1a12 0%, #2b2110 55%, #3a2a0c 100%); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent), 0 30px 60px -34px rgba(255, 196, 46, 0.45); color: var(--papel); }
.t-boleto__cuerpo { display: grid; align-content: start; gap: 14px; padding: clamp(22px, 2.6vw, 42px); }
.t-boleto__sello { justify-self: start; padding: 0.42em 0.9em; border-radius: 999px; background: var(--c); color: #121010; font: 600 12px/1 var(--f); letter-spacing: 0.12em; text-transform: uppercase; }
.t-boleto__nombre { font: 500 clamp(32px, 4.2vw, 64px)/0.98 var(--f); letter-spacing: -0.045em; text-wrap: balance; overflow-wrap: anywhere; }
.t-boleto__texto { max-width: 34em; color: rgba(244, 242, 240, 0.8); }
.t-boleto__lista { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px 22px; font-size: 15.5px; }
.t-boleto__lista li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.t-boleto__lista li::before { content: ""; width: 9px; height: 5px; margin-top: 0.34em; border-left: 2px solid var(--c); border-bottom: 2px solid var(--c); rotate: -45deg; }
/* el talón: línea de puntos y dos muescas, como un boleto de verdad */
.t-boleto__talon { position: relative; display: grid; align-content: center; gap: 18px; padding: clamp(22px, 2.6vw, 42px); border-left: 2px dashed color-mix(in srgb, var(--c) 55%, transparent); }
.t-boleto__talon::before, .t-boleto__talon::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--tinta); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); }
.t-boleto__talon::before { top: -12px; clip-path: inset(50% 0 0 0); }
.t-boleto__talon::after { bottom: -12px; clip-path: inset(0 0 50% 0); }
.t-boleto__precio { display: grid; gap: 6px; }
.t-boleto__precio .t-paq__precio { font-size: clamp(40px, 4.4vw, 68px); color: var(--c); }
.t-boleto__unidad { font: 400 14px/1 var(--f); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244, 242, 240, 0.7); }
.t-boleto__cupos { display: grid; gap: 8px; font-size: 14.5px; color: rgba(244, 242, 240, 0.8); }
.t-boleto__barra { height: 6px; border-radius: 999px; background: rgba(244, 242, 240, 0.16); overflow: hidden; }
.t-boleto__barra i { display: block; height: 100%; border-radius: inherit; background: var(--c); transition: width 600ms var(--ease); }
.t-boleto .t-poner { background: var(--c); color: #121010; }
.t-boleto .t-poner:hover, .t-boleto .t-poner[aria-pressed="true"] { background: var(--papel); color: var(--tinta); }
.t-boleto .t-regalar { color: var(--papel); }
@media (max-width: 760px) {
  .t-boleto { grid-template-columns: minmax(0, 1fr); }
  .t-boleto__talon { border-left: 0; border-top: 2px dashed color-mix(in srgb, var(--c) 55%, transparent); }
  .t-boleto__talon::before, .t-boleto__talon::after { top: -13px; bottom: auto; }
  .t-boleto__talon::before { left: -12px; clip-path: inset(0 0 0 50%); }
  .t-boleto__talon::after { left: auto; right: -12px; clip-path: inset(0 50% 0 0); }
}
@media (prefers-reduced-motion: reduce) { .t-boleto__barra i { transition: none; } }

/* ---------- pasos ---------- */
.t-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(20px, 3vw, 54px); }
.t-pasos li { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1.5px solid var(--tinta); }
.t-pasos b { font: 600 clamp(54px, 6vw, 92px)/0.86 var(--f); letter-spacing: -0.06em; color: transparent; background: linear-gradient(90deg, var(--tinta), var(--rojo-2)); -webkit-background-clip: text; background-clip: text; width: fit-content; padding-right: 0.07em; }
.t-pasos li:last-child b { background-image: linear-gradient(90deg, var(--rojo-2), var(--rojo)); }
.t-pasos h3 { margin-top: 6px; font: 500 clamp(21px, 1.8vw, 28px)/1.1 var(--f); letter-spacing: -0.035em; }
.t-pasos p { color: var(--tinta-2); }

/* ---------- preguntas ---------- */
.t-dudas { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 90px); align-items: start; }
.t-pregunta { border-top: 1px solid var(--linea); }
.t-pregunta:last-child { border-bottom: 1px solid var(--linea); }
.t-pregunta summary { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: clamp(16px, 1.8vw, 24px) 0; cursor: pointer; font: 500 clamp(18px, 1.5vw, 23px)/1.2 var(--f); letter-spacing: -0.03em; transition: color 180ms ease; }
.t-pregunta summary::-webkit-details-marker { display: none; }
.t-pregunta summary::after { content: ""; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: rotate 300ms var(--ease); }
.t-pregunta[open] summary::after { rotate: 135deg; }
.t-pregunta summary:hover { color: var(--rojo); }
.t-pregunta p { padding-bottom: clamp(16px, 1.8vw, 24px); }

/* ---------- carrito: hoja lateral ---------- */
.t-carrito { inset: 0 0 0 auto; margin: 0; width: min(480px, 100vw); height: 100svh; max-height: none; padding: 0; border: 0; background: var(--papel); color: var(--tinta); box-shadow: -40px 0 90px -30px rgba(18, 16, 16, 0.55); overflow-y: auto; }
.t-carrito::backdrop { background: rgba(18, 16, 16, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.t-carrito[open] { animation: t-entra 380ms var(--ease); }
@keyframes t-entra { from { translate: 100% 0; } }
.t-carrito__in { display: grid; gap: 22px; align-content: start; min-height: 100%; padding: clamp(22px, 3vw, 36px); }
.t-carrito__cab { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.t-vista { display: grid; gap: 22px; align-content: start; }
.t-item { --c: var(--rojo); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 18px 20px; border-radius: 20px; background: #fff; }
.t-item__punto { width: 16px; height: 16px; border-radius: 4px; rotate: 45deg; background: var(--c); }
.t-item__t { display: grid; min-width: 0; }
.t-item__n { font: 500 21px/1.1 var(--f); letter-spacing: -0.035em; overflow-wrap: anywhere; }
.t-item__p { font: 600 22px/1 var(--f); letter-spacing: -0.04em; }
.t-item .enlace { grid-column: 2 / -1; justify-self: start; font-size: 14px; color: var(--tinta-2); }
.t-check { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font: 500 16px/1.2 var(--f); width: fit-content; }
.t-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.t-check__caja { position: relative; width: 46px; height: 28px; border-radius: 999px; background: #d7d1ce; transition: background-color 200ms ease; }
.t-check__caja::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: translate 260ms var(--ease); }
.t-check input:checked + .t-check__caja { background: var(--tinta); }
.t-check input:checked + .t-check__caja::after { translate: 18px 0; }
.t-check input:focus-visible + .t-check__caja { outline: 2px solid var(--rojo); outline-offset: 3px; }
#c-regalo-caja { display: grid; gap: 8px; }
.t-codigo { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.t-total { margin: 0; display: grid; gap: 12px; padding-top: 18px; border-top: 1.5px solid var(--tinta); }
.t-total div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.t-total dt { color: var(--tinta-2); }
.t-total dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; text-align: right; }
.t-total__n { font: 600 clamp(34px, 4vw, 48px)/1 var(--f); letter-spacing: -0.05em; }
.t-pagar { justify-content: center; width: 100%; }
.t-clave { display: grid; gap: 10px; }
.t-clave__c { font: 600 clamp(24px, 3vw, 34px)/1.1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.04em; overflow-wrap: anywhere; user-select: all; }
.t-hecho { justify-items: start; }

@media (max-width: 900px) {
  .t-portada__arte { order: -1; width: min(34%, 150px); margin-right: 0; }
  .t-dudas { grid-template-columns: minmax(0, 1fr); }
  .t-barra { border-radius: 24px; padding: 12px; }
  .t-cuenta { padding-left: 8px; }
}
@media (max-width: 560px) {
  .t-carrito { inset: auto 0 0 0; width: 100vw; height: auto; max-height: 92svh; border-radius: 26px 26px 0 0; box-shadow: 0 -30px 80px -30px rgba(18, 16, 16, 0.6); }
  @keyframes t-entra { from { translate: 0 100%; } }
  .t-herr { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { .t-carrito[open], .t-portada__arte img { animation: none; } .t-plan:hover { translate: 0 0; } }
.t-portada__arte .nota-mano { left: auto; right: 104%; bottom: 10%; white-space: nowrap; }
@media (max-width: 900px) { .t-portada__arte .nota-mano { right: auto; left: 104%; } }
