/* ═══════════════════════════════════════════════════════════════
   Visitas Guiadas — Public CSS  v1.26
   Cubre: formulario reserva, regalo standalone, check-in
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ────────────────────────────────────────────────── */
.vg-app {
  --c-brand:     #2d6a4f;
  --c-brand-dk:  #1b4332;
  --c-brand-lt:  #d8f3dc;
  --c-gold:      #f59e0b;
  --c-red:       #dc2626;
  --c-red-lt:    #fee2e2;
  --c-text:      #1f2937;
  --c-muted:     #6b7280;
  --c-border:    #e5e7eb;
  --c-bg:        #000000;
  --c-bg-soft:   #f9fafb;
  --c-green:     #166534;

  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 2px 8px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.12);

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-text);
  background: transparent;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 4px;
  box-sizing: border-box;
}
.vg-app *, .vg-app *::before, .vg-app *::after { box-sizing: inherit; }

/* ── Temas ────────────────────────────────────────────────────── */
.vg-theme-dark {
  --c-text:    #f9fafb;
  --c-muted:   #9ca3af;
  --c-border:  #374151;
  --c-bg:      #000000;
  --c-bg-soft: #1c1c1c;
}
.vg-theme-dark .vg-input  { background: var(--c-bg-soft); color: #f9fafb; border-color: #374151; }
.vg-theme-dark .vg-panel  { background: var(--c-bg-soft); }
.vg-theme-dark .vg-btn--ghost { border-color: #374151; color: #d1d5db; }
.vg-theme-dark .vg-btn--ghost:hover { background: #1f2937; }

/* ── Stepper ──────────────────────────────────────────────────── */
.vg-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}
.vg-stepper__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.vg-stepper__dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-bg-soft);
  color: var(--c-muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  transition: background .2s, color .2s;
}
.vg-stepper__label {
  font-size: 12px;
  color: var(--c-muted);
  white-space: nowrap;
  transition: color .2s;
}
.vg-stepper__item.active .vg-stepper__dot  { background: var(--c-brand); color: #fff; }
.vg-stepper__item.active .vg-stepper__label { color: white; font-weight: 600; }
.vg-stepper__item.done .vg-stepper__dot    { background: var(--c-brand-lt); color: var(--c-brand);border:1.5px solid var(--c-brand) }
.vg-stepper__item.done .vg-stepper__dot span{color: var(--c-brand);}
.vg-stepper__item.done .vg-stepper__label  { color: var(--c-brand); }
.vg-stepper__line {
  flex: 1;
  height: 2px;
  background: var(--c-border);
  margin: 0 4px;
  margin-bottom: 24px;
  transition: background .2s;
}
.vg-stepper__line.done { background: var(--c-brand-lt); }

/* ── Panel ────────────────────────────────────────────────────── */
.vg-panel {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

/* ── Cabecera modo regalo ─────────────────────────────────────── */
.vg-gift-mode__header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
}
.vg-gift-mode__icon {
  font-size: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}
.vg-gift-mode__title  { margin: 0 0 4px; font-size: 17px; font-weight: 700; }
.vg-gift-mode__desc   { margin: 0; font-size: 13px; color: var(--c-muted); }
.vg-gift-mode__close  {
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--c-muted); padding: 4px;
  border-radius: 6px; line-height: 1;
}
.vg-gift-mode__close:hover { background: var(--c-bg-soft); }

/* ── Título de sección ────────────────────────────────────────── */
.vg-section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--c-muted);
  margin: 0 0 12px;
}

/* ── Tarjetas de tipo de visita ───────────────────────────────── */
.vg-et-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.vg-gift-et-card {
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.vg-gift-et-card:hover { border-color: var(--c-brand); }
.vg-gift-et-card.active {
  border-color: var(--c-brand);
  box-shadow: 0 0 0 3px rgba(45,106,79,.12);
}
.vg-et-card__img {
  height: 100px;
  background-size: cover;
  background-position: center;
  background-color: var(--c-bg-soft);
}
.vg-et-card__body  { padding: 10px 12px; }
.vg-et-card__name  { font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.vg-et-card__price { font-size: 12px; color: var(--c-muted); }

/* ── Selector de tipo (individual / exclusiva) ────────────────── */
.vg-type-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.vg-type-btn {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-muted);
  text-align: center;
  transition: border-color .15s, color .15s, background .15s;
}
.vg-type-btn:hover   { border-color: var(--c-brand); color: var(--c-brand); }
.vg-type-btn.active  { border-color: var(--c-brand); color: var(--c-brand); background: var(--c-brand-lt); font-weight: 700; }
.vg-type-btn__price  { display: block; font-size: 12px; font-weight: 400; margin-top: 2px; }

/* ── Subtipos ─────────────────────────────────────────────────── */
.vg-subtype-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.vg-subtype-btn {
  flex: 1; min-width: 140px;
  padding: 12px 16px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.vg-subtype-btn:hover { border-color: var(--c-brand); background: var(--c-brand-lt); }
.vg-subtype-btn--active { border-color: var(--c-brand); background: var(--c-brand-lt); }
.vg-subtype-btn__img { display: block; width: 100%; height: 90px; object-fit: cover; border-radius: calc(var(--radius) - 4px); margin: -12px -16px 10px; width: calc(100% + 32px); }
.vg-subtype-btn__name { display: block; font-size: 15px; font-weight: 600; color: var(--c-text); }
.vg-subtype-btn__desc { display: block; font-size: 12px; color: var(--c-muted); margin-top: 3px; }

/* ── Tarifas ──────────────────────────────────────────────────── */
.vg-tiers { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.vg-tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg-soft);
  transition: border-color .15s;
}
.vg-tier--locked {
  border-color: #86efac;
  background: #f0fdf4;
  position: relative;
}
.vg-tier--locked::after {
  content: attr(data-locked-label);
  position: absolute;
  top: -10px; right: 10px;
  font-size: 10px;
  background: var(--c-brand);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
}
.vg-tier__info    { display: flex; flex-direction: column; gap: 2px; }
.vg-tier__name    { font-weight: 600; font-size: 14px; }
.vg-tier__price   { font-size: 13px; color: var(--c-muted); }

/* ── Contador ─────────────────────────────────────────────────── */
.vg-counter {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.vg-counter__btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  background: var(--c-bg);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text);
  transition: border-color .1s, background .1s;
}
.vg-counter__btn:hover:not(:disabled) { border-color: var(--c-brand); color: var(--c-brand); }
.vg-counter__btn:disabled { opacity: .4; cursor: default; }
.vg-counter__val { min-width: 24px; text-align: center; font-weight: 700; font-size: 15px; }

/* ── Resumen de pedido ────────────────────────────────────────── */
.vg-order-summary {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
}
.vg-order-summary__line { font-size: 14px; padding: 2px 0;display:flex;justify-content:space-between; }
.vg-order-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--c-border);
  font-size: 15px;
}
.vg-order-summary__total strong { font-size: 18px; }

/* ── Formulario ───────────────────────────────────────────────── */
.vg-field-group { margin-bottom: 16px; }
.vg-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}
@media (max-width: 500px) { .vg-field-row { grid-template-columns: 1fr; } }

.vg-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px;
}
.vg-required { color: var(--c-red); margin-left: 2px; }

.vg-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg);
  color: var(--c-text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  -webkit-appearance: none;
}
.vg-input:focus   { border-color: var(--c-brand); box-shadow: 0 0 0 3px rgba(45,106,79,.1); }
.vg-input--error  { border-color: var(--c-red); }
.vg-input--ok     { border-color: #22c55e; }
.vg-input::placeholder { color: var(--c-muted); opacity: .7; }

select.vg-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.vg-field-hint {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

/* ── Botones ──────────────────────────────────────────────────── */
.vg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s, opacity .15s;
  line-height: 1;
}
.vg-btn:disabled { opacity: .5; cursor: default; }

.vg-btn--primary {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
}
.vg-btn--primary:hover:not(:disabled) { background: var(--c-brand-dk); border-color: var(--c-brand-dk); }

.vg-btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border);
}
.vg-btn--ghost:hover:not(:disabled) { background: var(--c-bg-soft); }

.vg-btn--block { width: 100%; }
.vg-btn--sm    { padding: 8px 16px; font-size: 13px; }

.vg-form-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
}

/* ── Barra de regalo (dentro del formulario principal) ────────── */
.vg-gift-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.vg-gift-bar__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--c-brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.vg-gift-bar__btn:hover { background: var(--c-brand-dk); }
.vg-gift-bar__sep {
  width: 1px; height: 28px;
  background: var(--c-border);
  flex-shrink: 0;
}
@media (max-width: 480px) { .vg-gift-bar__sep { display: none; } }
.vg-gift-bar__voucher { flex: 1; min-width: 180px; }
.vg-gift-bar__voucher-label { display: block; font-size: 12px; color: var(--c-muted); margin-bottom: 6px; }
.vg-gift-bar__voucher-row   { display: flex; gap: 6px; }
.vg-gift-bar__code-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  background: var(--c-bg);
  text-transform: uppercase;
  font-family: monospace;
  letter-spacing: .03em;
}
.vg-gift-bar__apply-btn {
  padding: 8px 16px;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s;
}
.vg-gift-bar__apply-btn:hover { border-color: var(--c-brand); color: var(--c-brand); }

/* ── Banner vale aplicado ─────────────────────────────────────── */
.vg-voucher-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.vg-voucher-banner__icon { font-size: 22px; flex-shrink: 0; }
.vg-voucher-banner__text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}
.vg-voucher-banner__text strong { font-size: 14px; color: var(--c-green); }
.vg-voucher-banner__cancel {
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--c-muted); padding: 4px;
  border-radius: 6px; line-height: 1; flex-shrink: 0;
}
.vg-voucher-banner__cancel:hover { background: rgba(0,0,0,.05); }

/* ── Error ────────────────────────────────────────────────────── */
.vg-error-msg {
  background: var(--c-red-lt);
  color: var(--c-red);
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  margin: 12px 0;
}

/* ── Feedback voucher (ok/error inline) ───────────────────────── */
#vg-gift-code-feedback {
  font-size: 12px;
  margin-top: 6px;
  padding: 4px 0;
}
#vg-gift-code-feedback.is-ok  { color: #166534; }
#vg-gift-code-feedback.is-err { color: var(--c-red); }

/* ── Loading ──────────────────────────────────────────────────── */
.vg-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--c-muted);
  padding: 12px 0;
  justify-content: center;
}
.vg-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--c-border);
  border-top-color: var(--c-brand);
  border-radius: 50%;
  animation: vg-spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes vg-spin { to { transform: rotate(360deg); } }

/* ── Bloque destinatario regalo ──────────────────────────────── */
.vg-gift-recipient-box {
    background: var(--c-bg-soft);
    border: 1.5px solid var(--c-brand);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 20px;
  }
.vg-gift-recipient-box .vg-section-title { margin-bottom: 14px; color: var(--c-brand); }
.vg-gift-recipient-box .vg-field-group   { margin-bottom: 12px; }
.vg-gift-recipient-box .vg-field-group:last-child { margin-bottom: 0; }
textarea.vg-input { resize: vertical; min-height: 72px; line-height: 1.5; }

/* ── Mensaje vacío ────────────────────────────────────────────── */
.vg-empty-msg {
  color: var(--c-muted);
  font-style: italic;
  text-align: center;
  padding: 24px 0;
}

/* ── Calendario (step 1 sesiones) ────────────────────────────── */
.vg-calendar {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}
.vg-calendar th {
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vg-calendar td { padding: 4px; text-align: center; }
.vg-cal-day {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
  transition: background .1s, color .1s;
  margin: auto;
  display: flex; align-items: center; justify-content: center;
}
.vg-cal-day:hover        { background: var(--c-brand-lt); }
.vg-cal-day--today       { font-weight: 700; color: var(--c-brand); }
.vg-cal-day--has-session { background: var(--c-brand-lt); color: var(--c-brand); font-weight: 700; }
.vg-cal-day--has-session:hover { background: var(--c-brand); color: #fff; }
.vg-cal-day--selected    { background: var(--c-brand) !important; color: #fff !important; }
.vg-cal-day--past, .vg-cal-day--disabled { opacity: .3; cursor: default; pointer-events: none; }
.vg-cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.vg-cal-nav__btn {
  background: none; border: 1.5px solid var(--c-border); border-radius: 8px;
  padding: 6px 12px; cursor: pointer; font-size: 18px; color: var(--c-muted);
  transition: border-color .1s, color .1s;
}
.vg-cal-nav__btn:hover { border-color: var(--c-brand); color: var(--c-brand); }
.vg-cal-nav__title { font-weight: 700; font-size: 15px; }

/* ── Slots de horario ─────────────────────────────────────────── */
.vg-slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.vg-slot {
  padding: 8px 16px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: border-color .1s, background .1s;
  position: relative;
}
.vg-slot:hover            { border-color: var(--c-brand); }
.vg-slot.active           { border-color: var(--c-brand); background: var(--c-brand-lt); color: var(--c-brand); font-weight: 700; }
.vg-slot--full            { opacity: .45; cursor: default; pointer-events: none; text-decoration: line-through; }
.vg-slot__badge {
  position: absolute;
  top: -8px; right: -4px;
  background: var(--c-gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 6px;
  white-space: nowrap;
}
.vg-slot__spots { font-size: 11px; color: var(--c-muted); margin-left: 4px; }

/* ── Tarjeta de sesión seleccionada ───────────────────────────── */
.vg-selected-session {
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.vg-selected-session__icon { font-size: 22px; flex-shrink: 0; }
.vg-selected-session__info { flex: 1; }
.vg-selected-session__date { font-weight: 700; font-size: 15px; }
.vg-selected-session__meta { font-size: 13px; color: var(--c-muted); margin-top: 2px; }
.vg-selected-session__change {
  background: none; border: 1.5px solid var(--c-border); border-radius: 8px;
  padding: 6px 12px; cursor: pointer; font-size: 12px; color: var(--c-muted);
  transition: border-color .1s;
}
.vg-selected-session__change:hover { border-color: var(--c-brand); color: var(--c-brand); }

/* ── Nota de tarifa bloqueada (canje vale) ────────────────────── */
#vg-voucher-step2-note { font-size: 13px; }

/* ── Cupón de descuento ───────────────────────────────────────── */
.vg-coupon-row { display: flex; gap: 8px; margin-top: 8px; }
.vg-coupon-applied {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--c-green);
  margin-top: 8px;
}
.vg-coupon-remove {
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--c-muted); padding: 2px 4px;
}

/* ── Acordeón NIF (facturación) ───────────────────────────────── */
.vg-billing-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-brand);
  cursor: pointer;
  margin-bottom: 12px;
  background: none; border: none; padding: 0;
  font-weight: 600;
}
.vg-billing-toggle svg { transition: transform .2s; }
.vg-billing-toggle.open svg { transform: rotate(180deg); }

/* ── Modal de confirmación ────────────────────────────────────── */
.vg-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.vg-modal {
  background: var(--c-bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  max-width: 420px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.vg-modal__title { font-size: 18px; font-weight: 700; margin: 0 0 16px; }
.vg-modal__body  { font-size: 14px; color: var(--c-muted); margin-bottom: 20px; line-height: 1.6; }
.vg-modal__footer { display: flex; gap: 10px; justify-content: flex-end; }

/* ── Imagen de tipo de visita ─────────────────────────────────── */
.vg-et-image {
  margin: -24px -24px 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  max-height: 200px;
}
.vg-et-image img {
  width: 100%; height: 200px;
  object-fit: cover; display: block;
}

/* ── Descripción intro ────────────────────────────────────────── */
.vg-intro { font-size: 14px; color: var(--c-muted); margin: 0 0 20px; line-height: 1.6; }

/* ── Lista de sesiones ────────────────────────────────────────── */
.vg-sessions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }

.vg-session {
  display: flex; align-items: center; gap: 14px;
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-bg); cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.vg-session:hover  { border-color: var(--c-brand); box-shadow: 0 2px 8px rgba(45,106,79,.08); }
.vg-session.active { border-color: var(--c-brand); background: var(--c-brand-lt); }
.vg-session--full  { opacity: .55; cursor: default; pointer-events: none; }

.vg-session__date {
  display: flex; flex-direction: column; align-items: center;
  min-width: 42px; flex-shrink: 0;
}
.vg-session__day   { font-size: 24px; font-weight: 700; line-height: 1; color: var(--c-brand); }
.vg-session__month { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--c-muted); letter-spacing: .05em; }

.vg-session__info    { flex: 1; min-width: 0; }
.vg-session__et-name { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--c-muted); letter-spacing: .04em; margin-bottom: 2px; }
.vg-session__name    { font-size: 15px; font-weight: 600; color: var(--c-text); }
.vg-session__time    { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--c-muted); margin-top: 3px; }

.vg-session__spots { flex-shrink: 0; }

.vg-session__arrow { font-size: 22px; color: var(--c-muted); flex-shrink: 0; line-height: 1; }
.vg-session:hover .vg-session__arrow { color: var(--c-brand); }

/* ── Píldoras de disponibilidad ───────────────────────────────── */
.vg-pill          { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.vg-pill--green   { background: #dcfce7; color: #15803d; }
.vg-pill--amber   { background: #fef9c3; color: #92400e; }
.vg-pill--red     { background: #fee2e2; color: #b91c1c; }

/* ── Cabecera de grupo (multi-ET) ─────────────────────────────── */
.vg-group-header {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0 10px 12px;
  border-left: 3px solid var(--c-group, var(--c-brand));
  margin-bottom: 10px;
}
.vg-group-header__thumb { width: 48px; height: 48px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.vg-group-header__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vg-group-header__text h3 { margin: 0 0 2px; font-size: 16px; font-weight: 700; }
.vg-group-header__text p  { margin: 0; font-size: 13px; color: var(--c-muted); }
.vg-group-sep { border: none; border-top: 1px solid var(--c-border); margin: 20px 0; }

/* ── Estado vacío ─────────────────────────────────────────────── */
.vg-empty { text-align: center; padding: 40px 20px; color: var(--c-muted); }
.vg-empty__icon { font-size: 40px; margin-bottom: 12px; }

/* ── Calendario unificado ─────────────────────────────────────── */
.vg-cal__nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.vg-cal__arrow {
  background: none; border: 1.5px solid var(--c-border); border-radius: 8px;
  padding: 6px 14px; cursor: pointer; font-size: 20px; color: var(--c-muted);
  line-height: 1; transition: border-color .1s, color .1s;
}
.vg-cal__arrow:hover  { border-color: var(--c-brand); color: var(--c-brand); }
.vg-cal__month        { font-weight: 700; font-size: 16px; text-transform: capitalize; }

.vg-cal__weekdays     { display: grid; grid-template-columns: repeat(7,1fr); margin-bottom: 6px; }
.vg-cal__weekdays span { font-size: 12px; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 0; text-align: center; }

.vg-ucal__days  { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.vg-ucal__empty { display: block; }

.vg-ucal__day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 2px; border: none; border-radius: 8px; background: none;
  cursor: pointer; font-size: 13px; font-weight: 500; color: var(--c-text);
  transition: background .1s, color .1s; min-height: 44px;
}
.vg-ucal__day:hover:not([disabled]) { background: var(--c-brand-lt); color: var(--c-brand); }
.vg-ucal__day--selected { background: var(--c-brand) !important; color: #fff !important; border-radius: 8px; }
.vg-ucal__day--blocked  { opacity: .3; cursor: default; }
.vg-ucal__day--skeleton { opacity: .15; cursor: default; }
.vg-ucal__day-num       { font-size: 14px; font-weight: 600; line-height: 1; }
.vg-ucal__dots          { display: flex; gap: 3px; margin-top: 4px; justify-content: center; }
.vg-ucal__dot           { width: 6px; height: 6px; border-radius: 50%; }
.vg-ucal__dot--fixed    { background: var(--c-brand); }
.vg-ucal__dot--cal      { background: var(--c-gold); }

.vg-ucal__panel {
  margin-top: 12px; padding: 14px 16px;
  background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius);
}
.vg-cal__loading { font-size: 14px; color: var(--c-muted); text-align: center; margin: 0; }

.vg-ucal__slot {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 12px 14px; margin-bottom: 8px;
  border: 1.5px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-bg); cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s;
}
.vg-ucal__slot:last-child { margin-bottom: 0; }
.vg-ucal__slot:hover:not([disabled]) { border-color: var(--c-brand); background: var(--c-brand-lt); }
.vg-ucal__slot[disabled]  { opacity: .5; cursor: default; }
.vg-ucal__slot-thumb      { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.vg-ucal__slot-dot        { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.vg-ucal__slot-label      { flex: 1; font-size: 14px; font-weight: 600; }
.vg-ucal__slot-time       { font-size: 13px; color: var(--c-muted); flex-shrink: 0; }
.vg-ucal__slot-avail      { font-size: 11px; color: var(--c-muted); }

.vg-ucal__legend      { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.vg-ucal__legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c-muted); }
.vg-ucal__legend-thumb { width: 18px; height: 18px; border-radius: 3px; object-fit: cover; }

/* ── Botón volver ─────────────────────────────────────────────── */
.vg-back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--c-muted);
  padding: 0; margin-bottom: 16px; transition: color .15s;
}
.vg-back-btn:hover { color: var(--c-brand); }

/* ── Cabecera paso 2 ──────────────────────────────────────────── */
.vg-step2-header {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; margin-bottom: 20px;
  background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius);
}
.vg-step2-header__img {
  width: 60px; height: 60px; border-radius: 8px;
  background-size: cover; background-position: center; background-color: var(--c-bg-soft); flex-shrink: 0;
}
.vg-step2-header__info h3  { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.vg-step2-header__info div { font-size: 13px; color: var(--c-muted); }

/* ── Badge de sesión seleccionada ─────────────────────────────── */
.vg-selection-badge {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 20px;
  background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius);
}
.vg-selection-badge__date   { font-size: 20px; font-weight: 700; color: var(--c-brand); min-width: 42px; text-align: center; flex-shrink: 0; }
.vg-selection-badge__detail { font-size: 14px; }

/* ── Título de panel ──────────────────────────────────────────── */
.vg-panel__title { font-size: 17px; font-weight: 700; margin: 0 0 16px; color: var(--c-text); }

/* ── Selector tipo (contenedor) ───────────────────────────────── */
.vg-ticket-type   { display: flex; gap: 8px; margin-bottom: 16px; }
.vg-type-btn__icon  { display: block; font-size: 18px; margin-bottom: 2px; }
.vg-type-btn__label { display: block; font-size: 13px; }

/* ── IVA y nota seguridad ─────────────────────────────────────── */
.vg-order-summary__tax { font-size: 11px; color: var(--c-muted); margin: 6px 0 0; text-align: right; }
.vg-secure-note {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 12px; color: var(--c-muted); margin-top: 10px;
}

/* ── Cupón de descuento ───────────────────────────────────────── */
.vg-coupon { margin: 12px 0 16px; }
.vg-coupon__row   { display: flex; gap: 8px; }
.vg-coupon__input { flex: 1; text-transform: uppercase; }
.vg-coupon__btn {
  padding: 10px 16px; background: var(--c-bg);
  border: 1.5px solid var(--c-border); border-radius: var(--radius);
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: border-color .15s;
}
.vg-coupon__btn:hover { border-color: var(--c-brand); color: var(--c-brand); }
#vg-coupon-feedback { font-size: 12px; margin-top: 6px; }
#vg-coupon-feedback.ok  { color: var(--c-green); }
#vg-coupon-feedback.err { color: var(--c-red); }

/* ── Error de paso ────────────────────────────────────────────── */
.vg-step-error {
  background: var(--c-red-lt); color: var(--c-red);
  border: 1px solid #fecaca; border-radius: var(--radius);
  padding: 10px 14px; font-size: 13px; margin: 12px 0;
}

/* ── Botón CTA principal ──────────────────────────────────────── */
.vg-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 24px;
  background: var(--c-brand); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: background .15s; margin-top: 20px;
}
.vg-cta:hover:not(:disabled) { background: var(--c-brand-dk); }
.vg-cta:disabled { opacity: .5; cursor: default; }

/* ── Fieldsets de formulario ──────────────────────────────────── */
.vg-fieldset { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.vg-fieldset__legend {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--c-text);
  padding: 0 6px; text-transform: uppercase; letter-spacing: .04em;
}

/* ── Filas de formulario ──────────────────────────────────────── */
.vg-form-row              { margin-bottom: 14px; }
.vg-form-row:last-child   { margin-bottom: 0; }
.vg-req  { color: var(--c-red); margin-left: 2px; }
.vg-opt  { font-size: 12px; color: var(--c-muted); font-weight: 400; margin-left: 4px; }
.vg-hint { display: block; font-size: 12px; color: var(--c-muted); margin-top: 4px; }
.vg-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

/* ── Loading overlay ──────────────────────────────────────────── */
.vg-loading-overlay {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; padding: 24px 0; color: var(--c-muted); font-size: 14px;
}
.vg-loading-overlay p { margin: 0; }

/* ── Fila de tarifa (formulario regular) ──────────────────────── */
.vg-tier-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; margin-bottom: 8px;
  border: 1px solid var(--c-border); border-radius: var(--radius);
  background: var(--c-bg-soft);
}
.vg-tier-row__info    { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.vg-tier-row__name    { font-weight: 600; font-size: 14px; }
.vg-tier-row__price   { font-size: 13px; color: var(--c-muted); }

.vg-tier-extra { margin-top: 6px; padding: 0 2px; }
.vg-tier-extra__label { display: block; font-size: 12px; font-weight: 600; color: var(--c-muted); margin-bottom: 4px; }

/* ── Imagen en cabecera paso 2 (img dinámico) ─────────────────── */
.vg-step2-header__img img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 8px; display: block;
}

/* ── Tarjetas ET modo regalo ──────────────────────────────────── */
.vg-gift-et-cards {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
  gap: 12px; margin-bottom: 20px;
}
.vg-gift-et-card__img {
  height: 90px; background-size: cover; background-position: center;
  background-color: var(--c-bg-soft);
}
.vg-gift-et-card__name {
  display: block; padding: 8px 10px;
  font-weight: 600; font-size: 13px; color: var(--c-text);
}
.vg-gift-et-card__dot { display: block; width: 8px; height: 8px; border-radius: 50%; margin: 0 10px 8px; }

/* ── Etiqueta sección (regalo) ────────────────────────────────── */
.vg-gift-section-label {
  font-size: 13px; font-weight: 600; color: var(--c-muted);
  text-transform: uppercase; letter-spacing: .05em; margin: 0 0 12px;
}

/* ── Curso Online ─────────────────────────────────────────────── */
.vg-online-section { margin-top: 4px; }

.vg-online-card {
  --c-online-accent: var(--c-brand);
  border: 1.5px solid var(--c-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--c-surface);
  transition: box-shadow .15s;
}
.vg-online-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }

.vg-online-card__img { width: 100%; height: 180px; overflow: hidden; }
.vg-online-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.vg-online-card__body { padding: 20px 22px 22px; }

.vg-online-card__badge {
  display: inline-block;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--c-online-accent); color: #fff;
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}

.vg-online-card__title {
  font-size: 20px; font-weight: 800; color: var(--c-heading);
  margin: 0 0 8px; line-height: 1.3;
}

.vg-online-card__desc {
  font-size: 14px; color: var(--c-text-2); line-height: 1.6;
  margin: 0 0 14px;
}

.vg-online-card__includes {
  list-style: none; padding: 0; margin: 0 0 14px;
}
.vg-online-card__includes li {
  font-size: 13px; color: var(--c-text); padding: 4px 0;
  display: flex; align-items: flex-start; gap: 8px;
}
.vg-online-card__includes li::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--c-online-accent);
  margin-top: 5px; flex-shrink: 0;
}

.vg-online-card__price {
  font-size: 14px; color: var(--c-text-2); margin-bottom: 18px;
}
.vg-online-card__price strong { font-size: 22px; font-weight: 800; color: var(--c-heading); }

.vg-online-card__cta {
  width: 100%; justify-content: center;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 420px) {
  .vg-app     { padding: 0; }
  .vg-panel   { padding: 18px 16px; }
  .vg-btn     { font-size: 14px; padding: 10px 20px; }
  .vg-et-cards, .vg-gift-et-cards { grid-template-columns: 1fr 1fr; }
  .vg-type-selector, .vg-ticket-type { gap: 6px; }
  .vg-et-image { margin: -18px -16px 16px; }
  .vg-cta     { font-size: 15px; padding: 13px 20px; }
}
