/**
 * GreenTicket — Single de evento (PDP) · nuevo layout.
 *   Top:  imagen destacada (izq, sin zoom) + información (der)
 *   Down: pestañas (izq) + galería con modal (der)
 *   Banda full-width de recomendados (máx. 4)
 * Prefijo .gtc-  ·  tokens de theme.json.
 */
.single-product{
  --gtc-ink:#333;--gtc-muted:#777;--gtc-border:#e6e9ee;--gtc-primary:#79add1;
  --gtc-primary-dark:#5a9fb5;--gtc-primary-light:#e3f2fd;--gtc-error:#f44336;--gtc-radius:16px;
  --gtc-ease:cubic-bezier(.22,.61,.36,1);
  --gtc-brand-grad:linear-gradient(320deg,#5a9fb5 0%,#7cb342 100%);
  --gtc-brand-grad-h:linear-gradient(135deg,#5a9fb5 0%,#7cb342 100%);
}

/* ============================================================
   Variantes "Día" como tarjetas
   ============================================================ */
.single-product .variations.gtc-variants-hidden{display:none}
.single-product .gtc-variants-label{
  font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;
  color:var(--gtc-muted);margin:4px 0 10px;
}
.single-product .gtc-variants{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:10px;margin:0 0 20px;
}
.single-product .gtc-variant{
  display:flex;flex-direction:column;gap:3px;text-align:left;cursor:pointer;
  border:1.5px solid var(--gtc-border);border-radius:12px;padding:12px 14px;background:#fff;
  transition:border-color .2s var(--gtc-ease),background .2s var(--gtc-ease),box-shadow .2s var(--gtc-ease),transform .15s var(--gtc-ease);
}
.single-product .gtc-variant:hover{border-color:var(--gtc-primary);transform:translateY(-1px)}
.single-product .gtc-variant.is-active{border-color:var(--gtc-primary);background:var(--gtc-primary-light);box-shadow:0 0 0 3px rgba(121,173,209,.35)}
.single-product .gtc-variant .d{font-weight:700;color:var(--gtc-ink);font-size:.92rem;line-height:1.2}
.single-product .gtc-variant .p{font-weight:800;color:var(--gtc-primary-dark);font-size:.9rem}
.single-product .gtc-variant.is-sold{opacity:.5;cursor:not-allowed}
.single-product .gtc-variant.is-sold .p::after{content:" · Agotado";color:var(--gtc-error);font-weight:700;font-size:.72rem}
.single-product .gtc-variants.gtc-variants-flash{animation:gtcFlash .6s ease 0s 2}
@keyframes gtcFlash{50%{box-shadow:0 0 0 3px rgba(244,67,54,.35);border-radius:12px}}

/* Mensaje de promoción 2×1 */
.single-product .gtc-2x1-note[hidden]{display:none!important}
.single-product .gtc-2x1-note{
  display:flex;align-items:center;gap:12px;margin:2px 0 18px;padding:12px 16px;
  border-radius:12px;background:linear-gradient(135deg,#fff6e5 0%,#eef8ea 100%);
  border:1px solid #f3e2b3;border-left:4px solid #f5a623;
  animation:gtcPdpFade .35s var(--gtc-ease);
}
.single-product .gtc-2x1-tag{
  flex:none;background:linear-gradient(135deg,#f5a623 0%,#e8890b 100%);color:#fff;
  font-weight:800;font-size:.8rem;padding:6px 12px;border-radius:999px;letter-spacing:.3px;
  box-shadow:0 4px 10px rgba(245,166,35,.35);white-space:nowrap;
}
.single-product .gtc-2x1-txt{font-weight:600;color:#7a5b12;font-size:.95rem}

/* Botón "Proceder al pago" (CTA final, acento) */
.single-product .gtc-checkout-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;
  margin-top:6px;padding:14px 24px;border:1px solid #fff;border-radius:30px;cursor:pointer;
  background:var(--gtc-brand-grad);color:#fff;font-weight:800;font-size:1.02rem;
  box-shadow:0 8px 20px rgba(90,159,181,.32);
  transition:background .3s var(--gtc-ease),transform .2s var(--gtc-ease),box-shadow .3s var(--gtc-ease);
}
.single-product .gtc-checkout-btn:hover{background:var(--gtc-brand-grad-h);transform:translateY(-2px);box-shadow:0 12px 28px rgba(90,159,181,.45)}
.single-product .gtc-checkout-btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(121,173,209,.6)}
.single-product .gtc-checkout-btn.is-disabled{opacity:.5;box-shadow:none;transform:none;pointer-events:none;cursor:not-allowed}

/* ============================================================
   TOP — destacada (izq, sin zoom) + info (der)
   ============================================================ */
.gtc-pdp-top.wp-block-columns{margin-top:28px;gap:44px;align-items:flex-start}
.gtc-pdp-featured-block{margin:0}
.gtc-pdp-featured-block img{
  width:100%;object-fit:cover;display:block;
  border-radius:var(--gtc-radius);box-shadow:0 6px 20px rgba(16,24,40,.08);
  cursor:default;
}
/* Muestra el título del evento (arkko-eventos.css lo oculta globalmente). */
.single-product .gtc-pdp-top h1.wp-block-post-title{
  display:block;
  font-size:clamp(1.7rem,3.4vw,2.4rem);font-weight:800;letter-spacing:-.5px;line-height:1.15;margin:0 0 .4em;
}
.single-product .gtc-pdp-top .wp-block-woocommerce-product-price{
  font-weight:800;color:var(--gtc-ink);
}

/* ============================================================
   DOWN — pestañas (izq) + galería (der)
   ============================================================ */
.gtc-pdp-down.wp-block-columns{margin-top:50px;gap:40px;align-items:flex-start}

/* Galería (miniaturas) */
.gtc-gallery-label{
  font-size:.75rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;
  color:var(--gtc-muted);margin:0 0 12px;
}
.gtc-gallery-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:12px;
}
.gtc-gallery-thumb{
  position:relative;border:0;padding:0;border-radius:12px;overflow:hidden;
  aspect-ratio:1;background:#eef2f6;cursor:pointer;
  transition:transform .2s var(--gtc-ease),box-shadow .2s var(--gtc-ease);
}
.gtc-gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s var(--gtc-ease)}
.gtc-gallery-thumb:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(16,24,40,.15)}
.gtc-gallery-thumb:hover img{transform:scale(1.08)}
.gtc-gallery-thumb:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(121,173,209,.55)}
.gtc-gallery-zoom{
  position:absolute;inset:0;display:grid;place-items:center;
  background:rgba(15,34,51,.35);opacity:0;transition:opacity .2s var(--gtc-ease);
}
.gtc-gallery-thumb:hover .gtc-gallery-zoom,
.gtc-gallery-thumb:focus-visible .gtc-gallery-zoom{opacity:1}
.gtc-gallery-zoom svg{width:22px;height:22px;color:#fff}

/* ============================================================
   LIGHTBOX (modal galería)
   ============================================================ */
.gtc-lightbox[hidden]{display:none!important}
.gtc-lightbox{
  position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;
  animation:gtcLbIn .2s var(--gtc-ease);
}
@keyframes gtcLbIn{from{opacity:0}to{opacity:1}}
.gtc-lb-backdrop{position:absolute;inset:0;background:rgba(10,18,26,.92);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.gtc-lb-stage{
  position:relative;z-index:2;margin:0;display:flex;flex-direction:column;align-items:center;gap:14px;
  max-width:92vw;
}
.gtc-lb-img{
  max-width:92vw;max-height:80vh;object-fit:contain;border-radius:8px;
  box-shadow:0 24px 70px rgba(0,0,0,.55);transition:opacity .25s var(--gtc-ease);background:#0d1219;
}
.gtc-lb-counter{color:#dfe7ee;font-size:.85rem;font-weight:600;letter-spacing:.3px}
.gtc-lb-btn{
  position:absolute;z-index:3;width:48px;height:48px;border:0;border-radius:50%;
  background:rgba(255,255,255,.14);color:#fff;display:grid;place-items:center;cursor:pointer;
  transition:background .2s var(--gtc-ease),transform .2s var(--gtc-ease);
}
.gtc-lb-btn:hover{background:rgba(255,255,255,.28)}
.gtc-lb-btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(121,173,209,.8)}
.gtc-lb-btn svg{width:26px;height:26px}
.gtc-lb-close{top:20px;right:24px;width:44px;height:44px}
.gtc-lb-prev{left:16px;top:50%;transform:translateY(-50%)}
.gtc-lb-next{right:16px;top:50%;transform:translateY(-50%)}
.gtc-lb-prev:hover{transform:translateY(-50%) scale(1.06)}
.gtc-lb-next:hover{transform:translateY(-50%) scale(1.06)}
@media(max-width:600px){
  .gtc-lb-prev{left:8px}.gtc-lb-next{right:8px}
  .gtc-lb-btn{width:42px;height:42px}
}

/* ============================================================
   BANDA "Te recomendamos estos Eventos" (full-width, color)
   ============================================================ */
.gtc-reco-band{overflow:hidden}
.single-product .gtc-reco-band .wp-block-woocommerce-product-collection{--gtc-ease:cubic-bezier(.22,.61,.36,1);margin-top:0}
.single-product .gtc-reco-band h2.wp-block-heading{
  text-align:center;font-size:clamp(1.5rem,2.8vw,2rem);font-weight:800;letter-spacing:-.3px;
  color:var(--gtc-ink);margin:0 0 32px;
}
/* Tarjeta de evento recomendado */
.single-product .gtc-reco-band li.product{
  background:#fff;border:1px solid rgba(255,255,255,.7);border-radius:16px;overflow:hidden;
  box-shadow:0 4px 14px rgba(16,24,40,.08);
  transition:transform .3s var(--gtc-ease),box-shadow .3s var(--gtc-ease);
  display:flex;flex-direction:column;padding:0 0 16px;
}
.single-product .gtc-reco-band li.product:hover{transform:translateY(-6px);box-shadow:0 20px 45px rgba(16,24,40,.18)}
.single-product .gtc-reco-band li.product > *{padding-left:16px;padding-right:16px}
.single-product .gtc-reco-band li.product .wc-block-components-product-image{margin:0 0 14px;padding:0;overflow:hidden}
.single-product .gtc-reco-band li.product .wc-block-components-product-image a,
.single-product .gtc-reco-band li.product .wc-block-components-product-image img{display:block;width:100%;border-radius:0}
.single-product .gtc-reco-band li.product .wc-block-components-product-image img{aspect-ratio:16/11;object-fit:cover;transition:transform .6s var(--gtc-ease)}
.single-product .gtc-reco-band li.product:hover .wc-block-components-product-image img{transform:scale(1.07)}
.single-product .gtc-reco-band li.product .wp-block-post-title{font-size:1.02rem;font-weight:700;line-height:1.3;margin:2px 0 6px}
.single-product .gtc-reco-band li.product .wp-block-post-title a{color:var(--gtc-ink);text-decoration:none}
.single-product .gtc-reco-band li.product:hover .wp-block-post-title a{color:var(--gtc-primary-dark)}
.single-product .gtc-reco-band li.product .wc-block-components-product-price,
.single-product .gtc-reco-band li.product .has-small-font-size{color:var(--gtc-ink);font-weight:700;white-space:nowrap;margin-bottom:12px}
.single-product .gtc-reco-band li.product .wc-block-components-product-button{margin-top:auto}
.single-product .gtc-reco-band li.product .wc-block-components-product-button .wp-block-button__link,
.single-product .gtc-reco-band li.product .wc-block-components-product-button a{
  display:inline-flex;align-items:center;justify-content:center;width:100%;
  background:var(--gtc-ink);color:#fff;font-weight:700;font-size:.9rem;
  padding:11px 16px;border-radius:10px;text-decoration:none;border:0;
  transition:background .22s var(--gtc-ease);
}
.single-product .gtc-reco-band li.product .wc-block-components-product-button .wp-block-button__link:hover,
.single-product .gtc-reco-band li.product .wc-block-components-product-button a:hover{background:var(--gtc-primary-dark);color:#fff}

@media(prefers-reduced-motion:reduce){
  .single-product *{animation:none!important;transition:none!important}
}
