/* victoriakingdom.com/tienda — Victoria Premium y Premium+ (rediseño del 16-10-2026), sobre los tokens de
   estilos.css.

   La pieza que la distingue es la credencial: un carnet del Reino de Victoria que se arma en vivo con lo
   que elegís (nivel, plan, tu nombre y tu cara). Lleva lo mismo que el juego: las curvas de nivel del
   póster de J › Tienda, la placa ★ PREMIUM ★ dorada, el tricolor de la bandera y la letra pixel de los
   documentos (PixelOperator, CC0, la de los billetes). Todo lo demás es sobrio a propósito.

   Colores medidos de la bandera (skill victoria-identidad): marino #2A3786, rojo #CE2233, oro #F2A71B. */

@font-face {
  font-family: 'Pixel Victoria';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pixeloperator.woff2') format('woff2');
}
@font-face {
  font-family: 'Pixel Victoria';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/pixeloperator-bold.woff2') format('woff2');
}

.tp {
  --marino: #2a3786;
  --marino-hondo: #0f1640;
  --rojo-v: #ce2233;
  --rojo-hondo: #3d0710;
  --oro: #f2a71b;
  --oro-claro: #ffd77a;
  --oro-hondo: #8a5a06;
  --azul-premium: #7fa0ff;
  --rojo-premium: #f0505f;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--cabecera) + 40px) 24px 80px;
}
.tp [hidden] { display: none !important; }

/* ------------------------------------------------------------------ hero */
.tp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: min(720px, calc(100vh - var(--cabecera) - 40px));
  /* el resplandor del carnet se pasa de los bordes a propósito: que no agregue scroll de costado */
  overflow-x: clip;
  overflow-y: visible;
}
.tp-titulo {
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 0.98;
  margin: 0;
}
.tp-bajada {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.55;
  margin: 16px 0 30px;
  max-width: 46ch;
}

.tp-compra { display: grid; gap: 10px; max-width: 520px; }
.tp-compra fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.tp-rotulo { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin: 14px 0 8px; padding: 0; }
.tp-compra fieldset:first-child .tp-rotulo { margin-top: 0; }

/* el nivel: dos renglones que se eligen, cada uno con su muestra de color */
.tp-niveles { display: grid; gap: 8px; }
.tp-opcion {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--borde-fuerte);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.tp-opcion input { position: absolute; opacity: 0; pointer-events: none; }
.tp-opcion__muestra { width: 14px; height: 14px; border-radius: 4px; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.tp-opcion--premium { --c: var(--azul-premium); }
.tp-opcion--plus { --c: var(--rojo-premium); }
.tp-opcion__texto b { display: block; font-size: 16px; font-weight: 650; color: var(--text); }
.tp-opcion__texto small { display: block; font-size: 13px; color: var(--text-faint); margin-top: 2px; line-height: 1.4; }
.tp-opcion__precio { font-size: 13px; color: var(--text-dim); white-space: nowrap; text-align: right; }
.tp-opcion:hover { border-color: rgba(255, 255, 255, .22); }
.tp-opcion:has(input:checked) {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 9%, var(--surface));
}
.tp-opcion:has(input:focus-visible) { outline: 2px solid var(--c); outline-offset: 3px; }

/* la duración */
.tp-planes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tp-planes .tp-rotulo { grid-column: 1 / -1; }
.tp-plan { position: relative; cursor: pointer; }
.tp-plan input { position: absolute; opacity: 0; pointer-events: none; }
.tp-plan span {
  display: block;
  text-align: center;
  padding: 11px 8px;
  border-radius: 12px;
  border: 1px solid var(--borde-fuerte);
  background: var(--surface);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color .2s, border-color .2s, background-color .2s;
}
.tp-plan:hover span { color: var(--text); }
.tp-plan input:checked + span { color: var(--text); border-color: var(--text-dim); background: var(--surface-3); }
.tp-plan input:focus-visible + span { outline: 2px solid var(--text); outline-offset: 2px; }

/* el nombre */
.tp-nombre { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.tp-entrada {
  width: 100%;
  background: var(--bg-1);
  border: 1px solid var(--borde-fuerte);
  border-radius: 12px;
  color: var(--text);
  padding: 13px 15px;
  font: inherit;
  font-size: 16px;
}
.tp-entrada:focus { outline: none; border-color: var(--text-dim); box-shadow: 0 0 0 3px rgba(255, 255, 255, .06); }
.tp-entrada[aria-invalid='true'] { border-color: var(--rojo-premium); }
.tp-regalo { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--text-dim); cursor: pointer; white-space: nowrap; }
.tp-regalo input { width: 17px; height: 17px; margin: 0; accent-color: var(--oro); }
.tp-aviso { color: var(--rojo-premium); font-size: 14px; margin: 2px 0 0; line-height: 1.45; }

/* pagar: oro, como la placa del carnet; el monto adentro del botón dice exactamente qué pasa */
.tp-pagar {
  margin-top: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 17px 22px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--oro-claro), var(--oro) 55%, #d98c0b);
  color: #2a1a00;
  font: inherit;
  font-size: 17px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 34px -16px rgba(242, 167, 27, .9);
  transition: transform .15s var(--ease), box-shadow .2s;
}
.tp-pagar small { font-size: 13px; font-weight: 600; opacity: .72; }
.tp-pagar:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 18px 40px -14px rgba(242, 167, 27, 1); }
.tp-pagar:focus-visible { outline: 2px solid var(--oro-claro); outline-offset: 3px; }
.tp-pagar:disabled { cursor: default; filter: grayscale(.85) brightness(.6); box-shadow: none; }
.tp-nota { color: var(--text-faint); font-size: 13px; line-height: 1.5; margin: 4px 0 0; }

/* ------------------------------------------------------------------ la credencial */
.tp-hero__carnet { margin: 0; perspective: 1400px; position: relative; isolation: isolate; }
/* detrás del carnet, el resplandor del nivel elegido (como el del póster en el juego) */
.tp-hero__carnet::before {
  content: '';
  position: absolute;
  inset: -12% -10% 4%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 45%, var(--resplandor, rgba(206, 34, 51, .32)), transparent 70%);
  transition: background .5s;
  pointer-events: none;
}
.tp-hero__carnet:has([data-nivel='premium'])::before { --resplandor: rgba(59, 91, 219, .32); }
.tp-hero__carnet figcaption { color: var(--text-faint); font-size: 13px; text-align: center; margin-top: 22px; }

.tp-carnet {
  --fondo-1: #1b2560;
  --fondo-2: var(--marino-hondo);
  --tinta: #c9d5ff;
  --linea: rgba(127, 160, 255, .2);
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 30%;
  position: relative;
  aspect-ratio: 856 / 540;
  border-radius: 22px;
  overflow: hidden;
  padding: 6.2% 6.5% 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  color: #fff;
  font-family: 'Pixel Victoria', 'Outfit', monospace;
  background:
    radial-gradient(90% 80% at 85% 10%, rgba(255, 255, 255, .08), transparent 60%),
    linear-gradient(150deg, var(--fondo-1), var(--fondo-2));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .12),
    inset 0 1px 0 rgba(255, 255, 255, .18),
    0 40px 80px -30px rgba(0, 0, 0, .9),
    0 20px 40px -24px color-mix(in srgb, var(--fondo-1) 80%, transparent);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), background .5s;
  will-change: transform;
}
.tp-carnet[data-nivel='premiumplus'] {
  --fondo-1: #8e1424;
  --fondo-2: var(--rojo-hondo);
  --tinta: #ffd0d5;
  --linea: rgba(255, 138, 150, .2);
}
.tp-carnet.siguiendo { transition: transform .08s linear; }

.tp-carnet__curvas { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--linea); pointer-events: none; }
.tp-carnet__curvas path { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }

.tp-carnet__arriba, .tp-carnet__medio, .tp-carnet__abajo { position: relative; z-index: 1; }
.tp-carnet__arriba { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tp-carnet__pais { font-size: clamp(14px, 1.7vw, 21px); color: var(--tinta); letter-spacing: .02em; }
.tp-placa {
  font-family: 'Pixel Victoria', monospace;
  font-weight: 700;
  font-size: clamp(14px, 1.65vw, 20px);
  color: #2a1a00;
  padding: .28em .7em .22em;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--oro-claro), var(--oro) 60%, #d98c0b);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .35), 0 0 26px -6px var(--oro);
  white-space: nowrap;
}

.tp-carnet__medio { display: grid; grid-template-columns: auto 1fr; gap: 6%; align-items: center; }
.tp-carnet__foto {
  width: clamp(76px, 10.5vw, 132px);
  aspect-ratio: 1;
  padding: 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .28);
  box-shadow: inset 0 0 0 2px rgba(242, 167, 27, .55);
}
.tp-carnet__foto img { width: 100%; height: 100%; display: block; image-rendering: pixelated; border-radius: 4px; }
.tp-carnet__datos { margin: 0; display: grid; gap: 10px; min-width: 0; }
.tp-carnet__datos dt { font-size: clamp(12px, 1.25vw, 15px); color: var(--tinta); opacity: .8; }
.tp-carnet__datos dd { margin: 0; font-size: clamp(16px, 1.9vw, 24px); line-height: 1.1; }
#tp-nombre { font-weight: 700; font-size: clamp(22px, 3vw, 38px); overflow-wrap: anywhere; }
.tp-carnet__fila { display: flex; gap: 12%; }

.tp-carnet__abajo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 4.2%;
  font-size: clamp(12px, 1.3vw, 16px);
  color: var(--tinta);
}
.tp-carnet__estrellas { color: var(--oro); letter-spacing: .3em; }

/* el tricolor, abajo de todo, como el borde de un documento */
.tp-carnet__bandera { position: relative; z-index: 1; display: grid; grid-template-rows: repeat(3, 1fr); height: clamp(9px, 1.3vw, 15px); margin: 0 -7.5%; }
.tp-carnet__bandera i:nth-child(1) { background: var(--rojo-v); }
.tp-carnet__bandera i:nth-child(2) { background: #fff; }
.tp-carnet__bandera i:nth-child(3) { background: var(--marino); }

/* el reflejo sigue al mouse: es lo único que se mueve solo cuando lo pedís */
.tp-carnet__brillo {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(40% 55% at var(--mx) var(--my), rgba(255, 255, 255, .16), transparent 70%);
  mix-blend-mode: soft-light;
}

/* la cara: entra con un parpadeo corto cuando cambia el nombre */
.tp-carnet__foto img.cambiando { animation: tp-cara .35s var(--ease-out); }
@keyframes tp-cara { from { opacity: 0; transform: scale(.92); } }

/* ------------------------------------------------------------------ bloques */
.tp-bloque { margin-top: clamp(64px, 9vw, 112px); }
.tp-bloque__cabeza { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: end; margin-bottom: 26px; }
.tp-bloque h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; letter-spacing: -0.015em; margin: 0; line-height: 1.1; }
.tp-bloque__cabeza p { color: var(--text-dim); margin: 0; font-size: 15px; line-height: 1.55; max-width: 52ch; justify-self: end; }

/* la tabla: tres columnas, los dos niveles con su color arriba */
.tp-tabla-caja { border: 1px solid var(--borde); border-radius: 18px; overflow: hidden; background: var(--surface); }
.tp-tabla { width: 100%; border-collapse: collapse; font-size: 15px; }
.tp-tabla th, .tp-tabla td { padding: 13px 20px; text-align: left; border-top: 1px solid var(--borde); }
.tp-tabla thead th, .tp-tabla thead td { border-top: 0; padding-top: 18px; padding-bottom: 16px; font-size: 16px; font-weight: 700; width: 26%; }
.tp-tabla thead td { width: auto; }
.tp-col-premium { color: var(--azul-premium); box-shadow: inset 0 3px 0 var(--azul-premium); }
.tp-col-plus { color: var(--rojo-premium); box-shadow: inset 0 3px 0 var(--rojo-premium); background: rgba(240, 80, 95, .05); }
.tp-tabla tbody th[scope='row'] { font-weight: 500; color: var(--text-cuerpo); }
.tp-tabla tbody td { color: var(--text); font-weight: 600; }
.tp-tabla tbody td:last-child { background: rgba(240, 80, 95, .05); }
.tp-tabla td.tp-no { color: var(--text-faint); font-weight: 400; }
.tp-grupo th { background: var(--bg-1); color: var(--text-faint); font-size: 13px; font-weight: 600; padding-top: 10px !important; padding-bottom: 10px !important; }
.tp-chip { display: inline-block; font-family: 'Pixel Victoria', monospace; font-weight: 700; font-size: 14px; padding: 2px 8px 1px; border-radius: 4px; color: #fff; }
.tp-chip--azul { background: #3b5bdb; }
.tp-chip--rojo { background: #c62a3c; }

/* lo que se gana con el tiempo: una regla con los días; bronce, plata y oro en su color */
.tp-escalera {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  position: relative;
}
.tp-escalera::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 23px;
  height: 2px;
  background: linear-gradient(90deg, var(--borde-fuerte), var(--oro));
}
.tp-escalera li { position: relative; padding-right: 14px; }
.tp-escalera b {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-0);
  border: 2px solid var(--c, var(--borde-fuerte));
  color: var(--c, var(--text));
  font-family: 'Pixel Victoria', monospace;
  font-size: 18px;
  margin-bottom: 14px;
}
.tp-escalera span { display: block; font-size: 14px; color: var(--text-cuerpo); line-height: 1.4; }
.tp-bronce { --c: #c7803e; }
.tp-plata { --c: #c9ced6; }
.tp-oro { --c: var(--oro); }
.tp-fundador b { background: var(--oro); color: #2a1a00; border-color: var(--oro); box-shadow: 0 0 24px -6px var(--oro); }

/* cómo se reclama y preguntas */
.tp-dos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); }
.tp-bloque--suelto h2 { margin-bottom: 22px; }
.tp-pasos { list-style: none; counter-reset: paso; margin: 0; padding: 0; display: grid; gap: 18px; }
.tp-pasos li { counter-increment: paso; display: grid; grid-template-columns: 34px 1fr; gap: 0 14px; color: var(--text-dim); font-size: 15px; line-height: 1.5; }
.tp-pasos li::before {
  content: counter(paso);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--borde-fuerte);
  font-family: 'Pixel Victoria', monospace;
  font-size: 18px;
  color: var(--text);
}
.tp-pasos b { color: var(--text); font-weight: 650; }
.tp-pagos { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tp-pagos li { font-size: 13px; color: var(--text-dim); border: 1px solid var(--borde-fuerte); border-radius: 999px; padding: 6px 12px; }

.tp-preguntas details { border-top: 1px solid var(--borde); }
.tp-preguntas details:last-child { border-bottom: 1px solid var(--borde); }
.tp-preguntas summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
.tp-preguntas summary::-webkit-details-marker { display: none; }
.tp-preguntas summary::after { content: '+'; color: var(--text-faint); font-weight: 400; font-size: 20px; line-height: 1; transition: transform .2s; }
.tp-preguntas details[open] summary::after { transform: rotate(45deg); }
.tp-preguntas summary:focus-visible { outline: 2px solid var(--text-dim); outline-offset: 4px; border-radius: 4px; }
.tp-preguntas details p { color: var(--text-dim); font-size: 15px; line-height: 1.6; margin: -4px 0 18px; max-width: 60ch; }
.tp-preguntas a, .tp-legal a { color: var(--text-cuerpo); }

.tp-legal { color: var(--text-faint); font-size: 13px; line-height: 1.6; margin: 64px auto 0; max-width: 72ch; text-align: center; }

/* de vuelta del pago */
.tp-gracias { max-width: 560px; margin: 40px auto; text-align: center; }
.tp-gracias h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.02em; margin: 0 0 14px; }
.tp-gracias p { color: var(--text-dim); line-height: 1.6; margin: 0 0 28px; }

/* ------------------------------------------------------------------ chico */
@media (max-width: 960px) {
  .tp-hero { grid-template-columns: 1fr; min-height: 0; }
  .tp-hero__carnet { order: -1; max-width: 560px; width: 100%; margin: 0 auto; }
  .tp-compra { max-width: none; }
  .tp-bloque__cabeza, .tp-dos { grid-template-columns: 1fr; }
  .tp-bloque__cabeza p { justify-self: start; }
  .tp-escalera { grid-template-columns: 1fr; gap: 14px; }
  .tp-escalera::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--borde-fuerte), var(--oro)); }
  .tp-escalera li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 0; }
  .tp-escalera b { margin: 0; }
}
@media (max-width: 560px) {
  .tp { padding-left: 16px; padding-right: 16px; }
  .tp-carnet { border-radius: 14px; }
  .tp-opcion { grid-template-columns: 12px 1fr; }
  .tp-opcion__precio { grid-column: 2; text-align: left; }
  .tp-nombre { grid-template-columns: 1fr; }
  .tp-tabla { font-size: 13.5px; }
  .tp-tabla th, .tp-tabla td { padding: 11px 10px; }
  .tp-tabla thead th { width: 28%; font-size: 14px; }
  .tp-chip { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-carnet, .tp-carnet.siguiendo { transition: none; transform: none; }
  .tp-carnet__foto img.cambiando { animation: none; }
  .tp-pagar { transition: none; }
}

/* 04-11-2026: los botones de PayPal (cuenta y tarjeta). Van sobre blanco: el formulario de tarjeta que abre PayPal
   adentro de la página tiene letra oscura y sobre el fondo oscuro de la tienda no se leía. */
.tp-paypal { margin-top: 14px; padding: 12px 12px 4px; border-radius: 14px; background: #fff; min-height: 60px; }
