/* ============================================================
   SEMINARS — "Señal en vivo" identity (.sw- prefix)
   Free live-seminar funnel: dark broadcast stage + violet signal.
   Depends on unified.css tokens (--u-primary, --u-font-heading…).
   ============================================================ */

.sw-page { --sw-ink: #17102b; --sw-ink-2: #241740; --sw-glow: rgba(124, 58, 237, 0.55); }

/* ---------- HERO: broadcast stage ---------- */
.sw-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(124, 58, 237, 0.45), transparent 60%),
    radial-gradient(700px 380px at 88% 0%, rgba(6, 182, 212, 0.22), transparent 55%),
    radial-gradient(520px 300px at 55% 110%, rgba(245, 158, 11, 0.14), transparent 60%),
    linear-gradient(160deg, #17102b 0%, #241740 55%, #1a0f33 100%);
  color: #f4f1ff;
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.35);
}
.sw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 241, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(closest-side at 50% 30%, #000, transparent 95%);
  pointer-events: none;
}
.sw-hero::after {
  /* scanline sweep — broadcast feel */
  content: "";
  position: absolute;
  left: 0; right: 0; height: 140px; top: -140px;
  background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.10), transparent);
  animation: sw-scan 7s linear infinite;
  pointer-events: none;
}
@keyframes sw-scan { to { transform: translateY(calc(100vh + 280px)); } }

.sw-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 991.98px) {
  .sw-hero { padding: 48px 0 40px; }
  .sw-hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* live / date badges */
.sw-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.sw-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--u-font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 255, 0.22);
  background: rgba(244, 241, 255, 0.07);
  color: #e9e3ff;
  backdrop-filter: blur(4px);
}
.sw-badge--live { border-color: rgba(239, 68, 68, 0.6); color: #fecaca; background: rgba(239, 68, 68, 0.12); }
.sw-badge--free { border-color: rgba(52, 211, 153, 0.5); color: #a7f3d0; background: rgba(52, 211, 153, 0.10); }
.sw-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: sw-pulse 1.6s ease-out infinite;
}
@keyframes sw-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.sw-title {
  font-family: var(--u-font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: #ffffff;
  text-wrap: balance;
}
.sw-title em {
  font-style: normal;
  background: linear-gradient(100deg, #c4b5fd, #8b5cf6 55%, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sw-tagline { font-size: 1.08rem; color: rgba(233, 227, 255, 0.82); max-width: 46ch; margin-bottom: 20px; }

.sw-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 26px; }
.sw-meta-item { display: inline-flex; align-items: center; gap: 8px; color: rgba(233, 227, 255, 0.78); font-size: 0.92rem; }
.sw-meta-item i { color: #a78bfa; }

/* countdown */
.sw-countdown { display: flex; gap: 12px; align-items: stretch; }
.sw-count-cell {
  min-width: 74px;
  text-align: center;
  padding: 12px 10px 10px;
  border-radius: var(--u-radius-md, 14px);
  background: rgba(244, 241, 255, 0.06);
  border: 1px solid rgba(167, 139, 250, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px -14px var(--sw-glow);
}
.sw-count-num {
  display: block;
  font-family: var(--u-font-heading);
  font-variant-numeric: tabular-nums;
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
}
.sw-count-label {
  display: block;
  margin-top: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(233, 227, 255, 0.6);
}
@media (max-width: 575.98px) {
  .sw-countdown { gap: 8px; }
  .sw-count-cell { min-width: 0; flex: 1; }
  .sw-count-num { font-size: 1.35rem; }
}

/* ---------- TICKET (reservation card / state machine) ---------- */
.sw-ticket {
  position: relative;
  background: #ffffff;
  color: #1f2937;
  border-radius: 18px;
  box-shadow: 0 24px 60px -18px rgba(23, 16, 43, 0.65), 0 0 0 1px rgba(124, 58, 237, 0.18);
  overflow: hidden;
}
.sw-ticket::before,
.sw-ticket::after {
  /* ticket notches */
  content: "";
  position: absolute;
  top: 58%;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sw-ink);
  z-index: 2;
}
.sw-ticket::before { left: -11px; }
.sw-ticket::after { right: -11px; }
@media (max-width: 991.98px) {
  .sw-ticket::before, .sw-ticket::after { background: var(--sw-ink-2); }
}
.sw-ticket-cover { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.sw-ticket-cover--placeholder {
  aspect-ratio: 16 / 8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #c4b5fd;
  background:
    radial-gradient(320px 160px at 30% 20%, rgba(124, 58, 237, 0.25), transparent 60%),
    linear-gradient(140deg, #f5f3ff, #ede9fe);
}
.sw-ticket-body { padding: 22px 24px 24px; border-top: 2px dashed #e5e7eb; }
.sw-ticket-date {
  font-family: var(--u-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--u-primary-strong, #6d28d9);
  margin-bottom: 4px;
}
.sw-ticket-note { color: #6b7280; font-size: 0.88rem; margin: 10px 0 0; }
.sw-ticket-spots { font-size: 0.82rem; color: #b45309; margin-top: 8px; }

.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 22px;
  border: 0;
  border-radius: 12px;
  font-family: var(--u-font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.sw-btn--primary {
  color: #ffffff;
  background: linear-gradient(120deg, var(--u-primary, #7c3aed), var(--u-primary-strong, #6d28d9));
  box-shadow: 0 14px 30px -12px rgba(124, 58, 237, 0.65);
}
.sw-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(124, 58, 237, 0.8); color: #fff; }
.sw-btn--ghost {
  color: var(--u-primary-strong, #6d28d9);
  background: var(--u-primary-soft, #f5f3ff);
  border: 1px solid rgba(124, 58, 237, 0.3);
}
.sw-btn--ghost:hover { background: #ede9fe; color: var(--u-primary-strong, #6d28d9); }
.sw-btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.sw-ticket-confirmed { text-align: left; }
.sw-ticket-confirmed-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--u-font-heading);
  font-weight: 700; font-size: 1.06rem; color: #065f46;
  margin-bottom: 10px;
}
.sw-ticket-confirmed-head i { color: #10b981; font-size: 1.3rem; }
.sw-ticket-links { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.sw-ticket-mini { font-size: 0.85rem; color: #6b7280; margin-top: 12px; }
.sw-ticket-mini a { color: var(--u-primary-strong, #6d28d9); }

.sw-alert {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Full Access upsell inside ticket */
.sw-upsell {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border: 1px solid rgba(124, 58, 237, 0.25);
  font-size: 0.9rem;
}
.sw-upsell strong { color: var(--u-primary-strong, #6d28d9); }
.sw-upsell a { font-weight: 700; color: var(--u-primary-strong, #6d28d9); white-space: nowrap; }

/* Offer state */
.sw-offer-code-box {
  margin: 14px 0;
  padding: 16px;
  text-align: center;
  border: 2px dashed var(--u-primary, #7c3aed);
  border-radius: 14px;
  background: var(--u-primary-soft, #f5f3ff);
}
.sw-offer-code {
  font-family: var(--u-font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--u-primary-strong, #6d28d9);
  user-select: all;
}
.sw-offer-expiry { font-size: 0.82rem; color: #92400e; margin-top: 6px; }
.sw-copy-btn {
  border: 0; background: transparent; color: var(--u-primary, #7c3aed);
  font-size: 0.85rem; cursor: pointer; margin-top: 4px;
}

/* ---------- BODY sections ---------- */
.sw-body { padding: 56px 0 24px; }
.sw-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 44px;
  align-items: start;
}
@media (max-width: 991.98px) { .sw-body-grid { grid-template-columns: 1fr; } }

.sw-section-kicker {
  font-family: var(--u-font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--u-primary, #7c3aed);
  margin-bottom: 10px;
}
.sw-section-title {
  font-family: var(--u-font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: #111827;
  margin-bottom: 16px;
}
.sw-desc { color: #374151; line-height: 1.7; white-space: pre-line; }

.sw-agenda { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: sw-agenda; }
.sw-agenda li {
  counter-increment: sw-agenda;
  position: relative;
  padding: 14px 16px 14px 62px;
  border: 1px solid #ede9fe;
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 10px;
  color: #1f2937;
  box-shadow: var(--u-shadow-sm, 0 4px 14px -8px rgba(23, 16, 43, 0.18));
}
.sw-agenda li::before {
  content: counter(sw-agenda, decimal-leading-zero);
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--u-font-heading);
  font-weight: 700;
  color: #c4b5fd;
  font-size: 1.05rem;
}

/* speaker card */
.sw-speaker {
  position: sticky;
  top: 96px;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #ede9fe;
  box-shadow: var(--u-shadow-md, 0 18px 40px -20px rgba(23, 16, 43, 0.3));
}
.sw-speaker-photo { width: 100%; aspect-ratio: 1 / 0.9; object-fit: cover; display: block; }
.sw-speaker-photo--placeholder {
  aspect-ratio: 1 / 0.9;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: #c4b5fd;
  background: linear-gradient(140deg, #f5f3ff, #ede9fe);
}
.sw-speaker-body { padding: 18px 20px 22px; }
.sw-speaker-name { font-family: var(--u-font-heading); font-weight: 700; font-size: 1.15rem; color: #111827; margin: 0; }
.sw-speaker-role { color: var(--u-primary-strong, #6d28d9); font-size: 0.9rem; font-weight: 600; margin: 2px 0 10px; }
.sw-speaker-bio { color: #4b5563; font-size: 0.92rem; line-height: 1.6; margin: 0; }

/* ---------- LIST page ---------- */
.sw-list-hero { text-align: center; padding: 64px 0 48px; }
.sw-list-hero .sw-title { margin-bottom: 10px; }
.sw-list-hero .sw-tagline { margin: 0 auto 0; }

.sw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
  padding: 44px 0 8px;
}
.sw-card {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #ede9fe;
  box-shadow: var(--u-shadow-sm, 0 6px 18px -10px rgba(23, 16, 43, 0.2));
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.sw-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -18px rgba(124, 58, 237, 0.4);
  color: inherit;
}
.sw-card-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.sw-card-cover--placeholder {
  aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #c4b5fd;
  background:
    radial-gradient(280px 140px at 30% 20%, rgba(124, 58, 237, 0.22), transparent 60%),
    linear-gradient(140deg, #f5f3ff, #ede9fe);
}
.sw-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sw-card-date {
  font-family: var(--u-font-heading);
  font-size: 0.82rem; font-weight: 600;
  color: var(--u-primary-strong, #6d28d9);
}
.sw-card-title { font-family: var(--u-font-heading); font-weight: 700; font-size: 1.14rem; color: #111827; margin: 0; }
.sw-card-speaker { color: #6b7280; font-size: 0.88rem; }
.sw-card-badges { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.sw-chip {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.sw-chip--free { background: #ecfdf5; color: #047857; }
.sw-chip--live { background: #fef2f2; color: #b91c1c; }
.sw-chip--past { background: #f3f4f6; color: #6b7280; }
.sw-card--past { opacity: 0.78; }
.sw-card--past:hover { opacity: 1; }

.sw-past-title {
  font-family: var(--u-font-heading);
  font-weight: 700; font-size: 1.15rem; color: #6b7280;
  margin: 40px 0 4px;
}

.sw-empty {
  text-align: center;
  padding: 56px 24px;
  border: 2px dashed #ddd6fe;
  border-radius: 18px;
  color: #6b7280;
  margin-top: 40px;
}
.sw-empty i { font-size: 2rem; color: #c4b5fd; margin-bottom: 12px; display: block; }

/* ---------- UNSUBSCRIBE page ---------- */
.sw-unsub {
  max-width: 480px;
  margin: 48px auto;
  background: #ffffff;
  border: 1px solid #ede9fe;
  border-radius: 18px;
  box-shadow: var(--u-shadow-md, 0 18px 40px -20px rgba(23, 16, 43, 0.3));
  padding: 36px 32px;
  text-align: center;
}
.sw-unsub i { font-size: 2.2rem; color: var(--u-primary, #7c3aed); margin-bottom: 14px; }
.sw-unsub h1 { font-family: var(--u-font-heading); font-weight: 700; font-size: 1.4rem; color: #111827; }
.sw-unsub p { color: #4b5563; }
