/*
 * RTG Luxury — Sistema de pedidos (Fase 2)
 * Solo reglas nuevas y aditivas. No modifica cart.css ni style.css.
 * Se carga en /cart/ (aviso + botón "generando") y en /pedido/CODIGO.
 */

/* ─── /cart/: formulario del botón "Generar pedido RTG" ─── */
.wc-proceed-to-checkout .rtg-generate-order-form{
  display: block;
  width: 100%;
}
.checkout-button.rtg-loading,
.checkout-button:disabled{
  opacity: .7;
  cursor: not-allowed;
  gap: 10px;
}
/* Fase 4: spinner discreto mientras el POST real está en curso. Se activa
 * únicamente vía la clase que ya agrega rtg-orders.js al enviar el
 * formulario (ver rtg-generate-order-form); es la única animación
 * infinita del sistema y solo corre mientras la acción está en progreso. */
.checkout-button.rtg-loading::before{
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(10,10,10,.3);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: rtg-spin .6s linear infinite;
  flex-shrink: 0;
}
@keyframes rtg-spin{
  to{ transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce){
  .checkout-button.rtg-loading::before{ animation-duration: 1.2s; }
}

/* ─── /cart/: reCAPTCHA v3 (Fase 5) ───
 * Badge oculto siguiendo la forma oficial permitida por Google (visibility,
 * no display:none): https://developers.google.com/recaptcha/docs/faq
 * El aviso legal requerido se muestra en su lugar, junto al botón. */
.grecaptcha-badge{
  visibility: hidden;
}
.rtg-recaptcha-notice{
  margin-top: 14px;
  text-align: center;
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.rtg-recaptcha-notice a{
  color: var(--muted);
  text-decoration: underline;
}
@media (hover: hover){
  .rtg-recaptcha-notice a:hover{
    color: var(--gold-light);
  }
}

/* ─── /cart/: aviso de error / límite / carrito vacío ─── */
.rtg-cart-notice{
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: var(--white);
}

/* ─── PÁGINA DE PEDIDO: layout general ─── */
.rtg-order-page{
  max-width: 1180px;
  /* Un poco más cerca del header fijo que el resto de .section (64px por
   * defecto) — pedido explícito: "no pegarlo, solo reducir un poco". */
  padding-top: 46px;
}

/* .rtg-order-heading es además .rtgds-glow-soft: el degradado radial se
 * dibuja "at 50% 0%" (centrado justo en el borde superior de la caja), así
 * que sin margen propio la mitad superior del óvalo queda fuera de la caja
 * y se ve como si el brillo estuviera cortado. La forma (más ancha, centro
 * más abajo) se ajusta en el override de abajo — aquí solo se le da a la
 * caja el padding-top que ese óvalo necesita para respirar. */
.rtg-order-heading{
  padding-top: 22px;
  margin-bottom: 32px;
}
.rtg-order-heading.rtgds-glow-soft::before{
  background: radial-gradient(ellipse 80% 100% at 50% 25%, rgba(201,168,76,.08) 0%, transparent 70%);
}
.rtg-order-heading .section-label{ margin-bottom: 10px; }
.rtg-order-heading .rtg-cart-title.section-title{
  font-size: 44px;
  line-height: 1;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 14px;
}
@media (min-width: 700px){
  .rtg-order-heading .rtg-cart-title.section-title{ font-size: 56px; }
}

.rtg-order-meta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.rtg-order-status{
  display: inline-flex;
  align-items: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 30px;
}
.rtg-order-status-pending{
  background: rgba(201,168,76,.12);
  color: var(--gold-light);
  border: 1px solid var(--gold);
}
.rtg-order-status-attended{
  background: rgba(201,168,76,.9);
  color: var(--black);
  border: 1px solid var(--gold);
}

.rtg-order-date{
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: var(--muted);
}

/* ─── Estado especial: no encontrado / expirado ─── */
.rtg-order-state-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px 28px;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.rtg-order-state-card .section-label{ justify-content: center; }
.rtg-order-state-card .rtg-cart-title.section-title{
  font-size: 36px;
  margin-bottom: 14px;
}
.rtg-order-state-text{
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}
.rtg-order-back-btn{
  display: inline-flex;
  background: var(--gold);
  color: var(--black);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 30px;
  border-radius: 30px;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
@media (hover: hover){
  .rtg-order-back-btn:hover{
    background: var(--gold-light);
    transform: translateY(-1px);
  }
}
.rtg-order-back-btn:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ─── Contenido: productos + sidebar ─── */
.rtg-order-content{
  display: block;
}
@media (min-width: 960px){
  .rtg-order-content{
    display: grid;
    grid-template-columns: 1fr 380px;
    align-items: start;
    gap: 40px;
  }
}

/* ─── Tarjetas de producto (mismo lenguaje visual que /cart/) ─── */
.rtg-order-item{
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 8px 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
@media (hover: hover){
  .rtg-order-item:hover{
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 16px 36px rgba(201,168,76,.14);
  }
}

.rtg-order-item-thumb img{
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.rtg-order-item-info{
  min-width: 0;
}
.rtg-order-item-name{
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 4px;
}
.rtg-order-item-name:hover{ color: var(--gold-light); }

.rtg-order-item-variations{
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.rtg-order-item-qty{
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.rtg-order-item-link{
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.rtg-order-item-link:hover{
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.rtg-order-item-prices{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}
.rtg-order-item-unit{
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: var(--muted);
}
.rtg-order-item-subtotal{
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: .5px;
  color: var(--gold);
}

/* ─── Sidebar: resumen, acciones, QR ─── */
.rtg-order-sidebar{
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
@media (min-width: 960px){
  .rtg-order-sidebar{ margin-top: 0; position: sticky; top: 90px; }
}

.rtg-order-summary,
.rtg-order-actions,
.rtg-order-qr{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
}

.rtg-order-summary h2{
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.rtg-order-summary-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: var(--muted);
}
.rtg-order-summary-total{
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 18px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: .5px;
  color: var(--white);
}
.rtg-order-summary-total span:last-child{ color: var(--gold); }

.rtg-order-actions{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rtg-order-copy-btn{
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 13px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, transform .1s ease;
}
@media (hover: hover){
  .rtg-order-copy-btn:hover{
    border-color: var(--gold);
    color: var(--gold-light);
  }
}
.rtg-order-copy-btn:active{
  transform: scale(.98);
}
.rtg-order-copy-btn:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.rtg-order-copy-feedback{
  display: block;
  min-height: 16px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  text-align: center;
  opacity: 0;
  transition: opacity .25s ease;
}
.rtg-order-copy-feedback.is-visible{ opacity: 1; }
.rtg-order-copy-feedback.is-error{ color: var(--red); }

.rtg-order-whatsapp-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--gold);
  color: var(--black);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 22px;
  border-radius: 30px;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
@media (hover: hover){
  .rtg-order-whatsapp-btn:hover{
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(201,168,76,.25);
  }
}
.rtg-order-whatsapp-btn:active{
  transform: translateY(0) scale(.98);
}
.rtg-order-whatsapp-btn:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.rtg-order-qr{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
#rtg-order-qr-code{
  background: var(--white);
  padding: 10px;
  border-radius: 12px;
  line-height: 0;
}
.rtg-order-qr-label{
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: var(--muted);
}

/* ─── Fase 4: entrada visual única al cargar la página del pedido ───
 * Una sola vez, discreta (opacity + translateY pequeño). No hay entradas
 * escalonadas por tarjeta. */
.rtg-order-page{
  animation: rtg-order-page-in .35s ease both;
}
@keyframes rtg-order-page-in{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ─── Fase 4: prefers-reduced-motion ───
 * Se conserva el feedback funcional (spinner, textos de estado); solo se
 * apagan las animaciones decorativas. */
@media (prefers-reduced-motion: reduce){
  .rtg-order-page{ animation: none; }
  .rtg-order-page *{
    transition-duration: .01ms !important;
  }
}


/* ═══════════════════════════════════════════════════════════
 * PÁGINA DE PEDIDO 2.0  (.rtgo)
 * ═══════════════════════════════════════════════════════════ */
.rtgo { max-width: 1120px; margin: 0 auto; }

/* ── Cabecera ── */
.rtgo-hero { position: relative; text-align: center; padding: 8px 0 34px; display: flex; flex-direction: column; align-items: center; }
.rtgo-hero::before {
  content: ''; position: absolute; left: 50%; top: -60px; width: min(780px, 130vw); height: 420px; transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 30%, rgba(201,168,76,.2), rgba(201,168,76,0) 65%); pointer-events: none;
}
.rtgo-hero > * { position: relative; }
.rtgo-seal { width: 104px; height: 104px; margin-bottom: 14px; }
.rtgo-seal svg { display: block; overflow: visible; filter: drop-shadow(0 0 22px rgba(201,168,76,.45)); }
.rtgo-seal-ring { fill: rgba(201,168,76,.08); stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 277; stroke-dashoffset: 277; transform: rotate(-90deg); transform-origin: 50% 50%; animation: rtgo-draw .9s var(--ease) .1s forwards; }
.rtgo-seal-check { fill: none; stroke: var(--gold-light); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; animation: rtgo-draw .55s var(--ease) .75s forwards; }
.rtgo-seal.is-attended .rtgo-seal-ring { fill: rgba(201,168,76,.22); }
@keyframes rtgo-draw { to { stroke-dashoffset: 0; } }
.rtgo-label { justify-content: center; }
.rtgo-label::after { display: none; }
.rtgo-title { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(46px, 11vw, 84px); line-height: .95; letter-spacing: 2px; margin: 4px 0 10px; color: var(--white); animation: rtgo-rise .8s var(--ease) .35s both; }
.rtgo-lead { margin: 0 auto 26px; max-width: 36ch; color: var(--muted); font-size: 16px; line-height: 1.55; animation: rtgo-rise .8s var(--ease) .45s both; }
@keyframes rtgo-rise { from { opacity: 0; transform: translateY(16px); } }

/* Código: etiqueta tipo boleto */
.rtgo-code {
  display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 22px; margin-bottom: 20px; max-width: 100%;
  background: linear-gradient(180deg, #181816, #111); border: 1px dashed rgba(201,168,76,.55); border-radius: 999px;
  animation: rtgo-rise .8s var(--ease) .55s both;
}
.rtgo-code-k { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.rtgo-code-v { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(22px, 6vw, 30px); letter-spacing: 3px; color: var(--gold-light); overflow-wrap: anywhere; }
.rtgo-copy {
  display: inline-flex; align-items: center; gap: 8px; flex: none; cursor: pointer; border: 0; border-radius: 999px; padding: 11px 18px;
  background: var(--gold); color: var(--black);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  transition: transform .3s var(--ease), background .25s ease;
}
.rtgo-copy:hover { background: var(--gold-light); }
.rtgo-copy:active { transform: scale(.95); }
.rtgo-copy.is-copied { background: #fff; }

/* Botón principal de WhatsApp */
.rtgo-wa {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: min(100%, 420px); padding: 18px 28px; border-radius: 999px; text-decoration: none; color: #07130b;
  background: linear-gradient(135deg, #3ddc84, #1fb866);
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 17px; letter-spacing: 2px; text-transform: uppercase;
  box-shadow: 0 16px 40px rgba(31,184,102,.28);
  transition: transform .4s var(--ease), box-shadow .3s ease;
  animation: rtgo-rise .8s var(--ease) .65s both;
}
.rtgo-wa::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); animation: rtgo-shine 3.2s ease-in-out 1.6s infinite; }
@keyframes rtgo-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@media (hover: hover) { .rtgo-wa:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(31,184,102,.4); } }
.rtgo-wa:active { transform: scale(.98); }

.rtgo-minor { display: flex; gap: 22px; justify-content: center; margin-top: 16px; }
.rtgo-link { background: none; border: 0; cursor: pointer; padding: 6px 2px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #444; font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; transition: color .2s ease; }
.rtgo-link:hover, .rtgo-link:focus-visible { color: var(--gold-light); }
.rtgo-link[hidden] { display: none; }
.rtgo-fb { height: 18px; margin-top: 6px; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); opacity: 0; transition: opacity .25s ease; }
.rtgo-fb.is-visible { opacity: 1; }
.rtgo-fb.is-error { color: #ff7a70; }
.rtgo-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; padding: 0; }
.rtgo-chips li { padding: 7px 14px; border-radius: 999px; border: 1px solid #2a2a2a; color: #b9b3a8; font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }

/* Destello dorado (una vez) */
.rtgo-burst { position: absolute; left: 50%; top: 66px; width: 0; height: 0; pointer-events: none; z-index: 3; }
.rtgo-burst i { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 10px rgba(232,201,106,.9); opacity: 0; animation: rtgo-pop 1.3s cubic-bezier(.12,.8,.25,1) forwards; }
@keyframes rtgo-pop { 0% { opacity: 1; transform: translate(0,0) scale(1); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.2); } }

/* ── Línea de tiempo ── */
.rtgo-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin: 6px 0 42px; padding: 0; counter-reset: s; }
.rtgo-step { position: relative; text-align: center; padding: 0 4px; }
.rtgo-step::before { content: ''; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: #262626; z-index: 0; }
.rtgo-step:first-child::before { display: none; }
.rtgo-step.is-done::before, .rtgo-step.is-now::before { background: linear-gradient(90deg, var(--gold), var(--gold)); }
.rtgo-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 10px; border-radius: 50%; background: #111; border: 2px solid #2d2d2d; color: #6c675f; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; }
.rtgo-step.is-done .rtgo-dot { background: var(--gold); border-color: var(--gold); color: var(--black); }
.rtgo-step.is-now .rtgo-dot { border-color: var(--gold); color: var(--gold-light); animation: rtgo-pulse 2s ease-in-out infinite; }
@keyframes rtgo-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,.5); } 50% { box-shadow: 0 0 0 10px rgba(201,168,76,0); } }
.rtgo-step-t { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; color: #6c675f; line-height: 1.2; }
.rtgo-step.is-done .rtgo-step-t, .rtgo-step.is-now .rtgo-step-t { color: var(--white); }
.rtgo-step-s { display: block; margin-top: 4px; font-size: 12px; line-height: 1.35; color: #6c675f; }
.rtgo-step.is-now .rtgo-step-s { color: var(--gold-light); }

/* ── Contenido ── */
.rtgo-grid { display: block; }
.rtgo-h { font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 30px; letter-spacing: 1.5px; margin: 0 0 16px; color: var(--white); }
.rtgo-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 16px; align-items: center; padding: 14px; margin-bottom: 12px;
  background: var(--card); border: 1px solid var(--border); border-radius: 22px;
  opacity: 0; transform: translateY(14px); animation: rtgo-item-in .7s var(--ease) forwards; animation-delay: calc(.7s + var(--i, 0) * 70ms);
  transition: border-color .3s ease, transform .4s var(--ease);
}
@keyframes rtgo-item-in { to { opacity: 1; transform: none; } }
@media (hover: hover) { .rtgo-item:hover { border-color: rgba(201,168,76,.5); } }
.rtgo-thumb { position: relative; display: block; width: 92px; height: 92px; border-radius: 16px; overflow: hidden; background: #1a1a1a; }
.rtgo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rtgo-qty { position: absolute; right: 6px; bottom: 6px; min-width: 28px; padding: 3px 8px; border-radius: 999px; background: var(--gold); color: var(--black); text-align: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 14px; }
.rtgo-info { min-width: 0; }
.rtgo-name { display: block; color: var(--white); text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 18px; line-height: 1.2; }
.rtgo-name:hover { color: var(--gold-light); }
.rtgo-vars { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rtgo-vars span { padding: 3px 10px; border-radius: 999px; background: #202020; color: var(--muted); font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.rtgo-vars b { color: var(--white); font-weight: 600; }
.rtgo-unit { margin-top: 8px; color: var(--muted); font-size: 13px; }
.rtgo-line { font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 1px; color: var(--gold-light); white-space: nowrap; }

.rtgo-aside { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.rtgo-card { padding: 22px; background: var(--card); border: 1px solid var(--border); border-radius: 22px; }
.rtgo-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #202020; color: #c9c4ba; font-size: 15px; }
.rtgo-row--fee { color: #7ee2a0; }
.rtgo-total { border-bottom: 0; padding-top: 16px; align-items: baseline; color: var(--white); font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 2px; }
.rtgo-total span:last-child { font-size: 38px; color: var(--gold-light); }
.rtgo-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; color: var(--muted); font-size: 13px; }
.rtgo-qr #rtg-order-qr-code { padding: 10px; background: #f0ede8; border-radius: 14px; line-height: 0; }
.rtgo-qr #rtg-order-qr-code img, .rtgo-qr #rtg-order-qr-code canvas { max-width: 100%; height: auto; }
.rtgo-ghost { display: block; text-align: center; padding: 15px 22px; border-radius: 999px; border: 1px solid #333; color: var(--white); text-decoration: none; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; transition: border-color .25s ease, color .25s ease; }
.rtgo-ghost:hover, .rtgo-ghost:focus-visible { border-color: var(--gold); color: var(--gold-light); }

.rtgo-recent { margin-top: 64px; }

@media (min-width: 960px) {
  .rtgo-grid { display: grid; grid-template-columns: 1fr 390px; gap: 40px; align-items: start; }
  .rtgo-aside { margin-top: 0; position: sticky; top: 110px; }
}
@media (max-width: 560px) {
  .rtgo-code { padding-left: 16px; gap: 10px; }
  .rtgo-code-k { display: none; }
  .rtgo-item { grid-template-columns: 76px 1fr; padding: 12px; }
  .rtgo-thumb { width: 76px; height: 76px; }
  .rtgo-line { grid-column: 2; font-size: 22px; }
  .rtgo-step-s { display: none; }
  .rtgo-step-t { font-size: 12px; letter-spacing: .6px; }
}
@media (prefers-reduced-motion: reduce) {
  .rtgo-seal-ring, .rtgo-seal-check { animation: none; stroke-dashoffset: 0; }
  .rtgo-title, .rtgo-lead, .rtgo-code, .rtgo-wa { animation: none; }
  .rtgo-wa::after, .rtgo-step.is-now .rtgo-dot { animation: none; }
  .rtgo-item { animation: none; opacity: 1; transform: none; }
}

.rtg-order-page { margin-left: auto; margin-right: auto; width: 100%; }


/* ── Mostrar el pedido en persona (QR plegable, discreto) ── */
.rtgo-show { border: 1px dashed #333; border-radius: 18px; overflow: hidden; transition: border-color .3s ease; }
.rtgo-show.is-open { border-color: rgba(201,168,76,.45); }
.rtgo-show-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 18px; background: transparent; border: 0; cursor: pointer; color: var(--muted); text-align: left;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; transition: color .25s ease; }
.rtgo-show-btn span { flex: 1; }
.rtgo-show-btn:hover, .rtgo-show-btn:focus-visible, .rtgo-show.is-open .rtgo-show-btn { color: var(--gold-light); }
.rtgo-show-chev { transition: transform .45s var(--ease); }
.rtgo-show.is-open .rtgo-show-chev { transform: rotate(180deg); }
.rtgo-show-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.rtgo-show.is-open .rtgo-show-panel { grid-template-rows: 1fr; }
.rtgo-show-inner { min-height: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 0 18px; opacity: 0; transition: opacity .35s ease, padding .55s var(--ease); color: var(--muted); font-size: 13px; }
.rtgo-show.is-open .rtgo-show-inner { padding: 6px 18px 20px; opacity: 1; }
.rtgo-show-inner #rtg-order-qr-code { padding: 10px; background: #f0ede8; border-radius: 14px; line-height: 0; }
.rtgo-show-inner #rtg-order-qr-code img, .rtgo-show-inner #rtg-order-qr-code canvas { max-width: 100%; height: auto; }
@media (prefers-reduced-motion: reduce) { .rtgo-show-panel, .rtgo-show-inner, .rtgo-show-chev { transition: none; } }
