/* Calendario de entradas — embed + página /tickets/ (calendar_mode) */

.page-embed-calendar {
  background: #0a0a0a !important;
  background-image: none !important;
  overflow: hidden;
  min-height: 0 !important;
  height: auto !important;
}

.calendar-site-wrap {
  margin: 0 auto 32px;
  max-width: 900px;
  overflow: hidden;
}

.embed-calendar-page--site {
  max-width: none;
}

.page-embed-calendar .body-wrapper {
  min-height: auto;
  padding-bottom: 0;
}

/* —— Tokens locales —— */
.embed-calendar-page {
  --cal-surface: rgba(255, 255, 255, 0.04);
  --cal-surface-2: rgba(255, 255, 255, 0.07);
  --cal-border: rgba(255, 255, 255, 0.1);
  --cal-border-strong: rgba(255, 255, 255, 0.16);
  --cal-radius: 14px;
  --cal-event-radius: 10px;
  --cal-green: #458936;
  --cal-orange: #e89a20;
  --cal-grey: #6b6b6b;

  color: var(--tn-text, #fff);
  font-family: var(--tn-font, "Dosis", sans-serif);
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 12px 20px;
}

.embed-calendar-header {
  text-align: center;
  margin-bottom: 16px;
}

.embed-calendar-header img {
  max-width: 140px;
  max-height: 64px;
  object-fit: contain;
}

.embed-calendar-header h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 8px 0 4px;
  letter-spacing: 0.02em;
}

.embed-calendar-header p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.75;
}

/* Leyenda */
.embed-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
  margin-bottom: 14px;
  padding: 10px 14px;
  font-size: 0.8rem;
  background: var(--cal-surface);
  border: 1px solid var(--cal-border);
  border-radius: var(--cal-radius);
}

.embed-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 999px;
  color: var(--tn-text-soft, rgba(255, 255, 255, 0.78));
}

.embed-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Interruptor Calendario / Lista (móvil) */
.embed-view-toggle {
  display: none;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 340px;
  margin: 0 auto 14px;
  padding: 4px;
  background: var(--cal-surface);
  border: 1px solid var(--cal-border);
  border-radius: 999px;
}

.embed-view-toggle__btn {
  flex: 1;
  min-height: 44px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--tn-text-soft, rgba(255, 255, 255, 0.65));
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.embed-view-toggle__btn.is-active {
  background: linear-gradient(135deg, var(--tn-brand, #ff9a00) 0%, #ffb347 100%);
  color: #111;
  box-shadow: 0 2px 12px rgba(255, 154, 0, 0.35);
}

.embed-view-toggle__btn:focus-visible {
  outline: 2px solid var(--tn-brand, #ff9a00);
  outline-offset: 2px;
}

/* Lista de tarjetas (móvil) */
.embed-tickets-list {
  display: none;
  gap: 12px;
}

.embed-ticket-card {
  display: flex;
  gap: 12px;
  align-items: stretch;
  background: var(--cal-surface-2);
  border: 1px solid var(--cal-border);
  border-radius: var(--cal-radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.embed-ticket-card.is-available:hover {
  transform: translateY(-2px);
  border-color: var(--cal-border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.embed-ticket-card.is-soldout {
  opacity: 0.55;
}

.embed-ticket-card.is-upcoming {
  opacity: 0.82;
}

.embed-ticket-thumb {
  width: 92px;
  min-width: 92px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.08);
}

.embed-ticket-body {
  flex: 1;
  padding: 14px 14px 14px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.embed-ticket-date {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.2;
}

.embed-ticket-meta {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 2px;
}

.embed-ticket-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.embed-ticket-footer__main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.embed-ticket-card.is-upcoming .embed-ticket-footer {
  margin-top: 0;
}

.embed-ticket-card.is-upcoming .embed-ticket-countdown {
  margin-bottom: 10px;
}

.embed-ticket-price {
  font-size: 1.15rem;
  font-weight: 700;
}

.embed-ticket-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
}

.embed-ticket-badge.available { background: rgba(69, 137, 54, 0.28); color: #9ee08f; }
.embed-ticket-badge.upcoming { background: rgba(15, 23, 42, 0.55); color: #e0f2fe; border: 1px solid rgba(147, 197, 253, 0.35); }
.embed-ticket-countdown,
.fc-event-rich__countdown {
  display: block;
  margin: 0;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fbff;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(191, 219, 254, 0.28);
  line-height: 1.35;
  box-sizing: border-box;
}

.embed-ticket-countdown {
  margin-top: 8px;
  width: 100%;
}

.fc-event-rich__countdown {
  margin-top: 4px;
  max-width: 100%;
  text-shadow: none;
}
.embed-ticket-badge.low { background: rgba(255, 165, 0, 0.25); color: #ffc966; }
.embed-ticket-badge.soldout,
.embed-ticket-badge.closed { background: rgba(128, 128, 128, 0.28); color: #ccc; }

.embed-btn-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.12s ease, transform 0.12s ease, box-shadow 0.12s ease;
}

.embed-btn-buy:hover {
  opacity: 0.92;
  transform: scale(1.02);
  color: inherit;
  text-decoration: none;
}

.embed-btn-buy[disabled],
.embed-btn-buy.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: default;
}

/* —— FullCalendar —— */
.embed-calendar-wrap {
  display: block;
  padding: 14px;
  background: var(--cal-surface);
  border: 1px solid var(--cal-border);
  border-radius: var(--tn-radius-lg, 16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#calendar {
  width: 100%;
  margin: 0 auto;
}

.embed-calendar-wrap .fc-toolbar {
  margin-bottom: 14px !important;
  padding: 0;
  gap: 10px;
}

.embed-calendar-wrap .fc-toolbar h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: capitalize;
  margin: 0;
}

.embed-calendar-wrap .fc-button {
  background: var(--cal-surface-2) !important;
  border: 1px solid var(--cal-border-strong) !important;
  color: #fff !important;
  text-shadow: none !important;
  box-shadow: none !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.embed-calendar-wrap .fc-button:hover,
.embed-calendar-wrap .fc-button:focus {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

.embed-calendar-wrap .fc-button:active {
  transform: scale(0.97);
}

.embed-calendar-wrap .fc-head-container {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.embed-calendar-wrap .fc-day-header {
  padding: 10px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--tn-text-soft, rgba(255, 255, 255, 0.7));
  background: rgba(0, 0, 0, 0.25);
  border-color: var(--cal-border) !important;
}

.embed-calendar-wrap .fc-day-grid-container,
.embed-calendar-wrap .fc-widget-content,
.embed-calendar-wrap .fc-unthemed td,
.embed-calendar-wrap .fc-unthemed th {
  border-color: var(--cal-border) !important;
}

.embed-calendar-wrap .fc-day-grid {
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}

.embed-calendar-wrap .fc-day {
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.12s ease;
}

.embed-calendar-wrap .fc-sat,
.embed-calendar-wrap .fc-sun {
  background: rgba(255, 255, 255, 0.035);
}

.embed-calendar-wrap .fc-day.fc-today {
  background: var(--tn-brand-soft, rgba(255, 154, 0, 0.12)) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 154, 0, 0.35);
}

.embed-calendar-wrap .fc-day.fc-today .fc-day-number {
  color: var(--tn-brand, #ff9a00);
  font-weight: 800;
}

.embed-calendar-wrap .fc-other-month {
  opacity: 0.3;
}

.embed-calendar-wrap .fc-day-number {
  padding: 8px 10px 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.embed-calendar-wrap .fc-event {
  border: none !important;
  border-radius: var(--cal-event-radius) !important;
  margin: 3px 4px 4px !important;
  padding: 8px 6px !important;
  min-height: 44px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.embed-calendar-wrap .fc-event:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  filter: brightness(1.06);
  z-index: 2;
}

.embed-calendar-wrap .fc-event .fc-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
  min-height: 100%;
}

.embed-calendar-wrap .fc-event .fc-title {
  font-size: 0.8rem;
  font-weight: 800;
  white-space: normal;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  letter-spacing: 0.01em;
}

.embed-calendar-wrap .fc-event .fc-time {
  display: none;
}

.embed-calendar-empty {
  text-align: center;
  padding: 40px 16px;
  opacity: 0.7;
}

/* —— Escritorio —— */
@media (min-width: 768px) {
  .embed-calendar-page {
    padding: 8px 4px 24px;
    max-width: none;
  }

  .embed-legend {
    margin-bottom: 18px;
    font-size: 0.82rem;
  }

  .embed-tickets-list {
    display: none;
  }

  .embed-calendar-wrap {
    padding: 18px 20px 20px;
  }

  .embed-calendar-wrap .fc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    margin-bottom: 16px !important;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--cal-border);
    border-radius: var(--cal-radius);
  }

  .embed-calendar-wrap .fc-toolbar .fc-left,
  .embed-calendar-wrap .fc-toolbar .fc-center,
  .embed-calendar-wrap .fc-toolbar .fc-right {
    float: none;
    display: flex;
    align-items: center;
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    order: unset;
  }

  .embed-calendar-wrap .fc-toolbar .fc-center {
    flex: 1;
    justify-content: center;
  }

  .embed-calendar-wrap .fc-toolbar h2 {
    font-size: 1.4rem;
  }

  .embed-calendar-wrap .fc-button {
    min-height: 40px;
  }

  .embed-calendar-wrap .fc-day-grid .fc-row {
    min-height: 6.75rem;
  }

  .embed-calendar-wrap .fc-day {
    min-height: 6.75rem;
    vertical-align: top;
  }

  .embed-calendar-wrap .fc-day-header {
    font-size: 0.78rem;
    padding: 12px 6px;
  }

  .embed-calendar-wrap .fc-event.fc-event--rich {
    min-height: 88px;
    margin: 4px 5px 6px !important;
    padding: 0 !important;
    overflow: hidden;
  }

  .embed-calendar-wrap .fc-event.fc-event--rich .fc-content {
    height: 100%;
    min-height: 88px;
    padding: 0;
  }

  .embed-calendar-wrap .fc-event.fc-event--rich .fc-title {
    display: none;
  }

  .fc-event-rich {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 3px;
    width: 100%;
    height: 100%;
    min-height: 88px;
    padding: 8px 9px 9px;
    box-sizing: border-box;
    text-align: left;
    position: relative;
    z-index: 1;
  }

  .fc-event-rich__name {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
    max-width: 100%;
  }

  .fc-event-rich__meta {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.95;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  }

  .fc-event-rich__desc {
    font-size: 0.66rem;
    line-height: 1.25;
    opacity: 0.88;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
    max-width: 100%;
  }

  .fc-event-rich__price {
    font-size: 0.95rem;
    font-weight: 800;
    margin-top: 2px;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  }

  .fc-event-rich__badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    text-shadow: none;
    margin-top: 1px;
  }

  .fc-event-rich__badge.is-available {
    background: rgba(0, 0, 0, 0.35);
    color: #d4f5c8;
  }

  .fc-event-rich__badge.is-low {
    background: rgba(0, 0, 0, 0.4);
    color: #ffe0a8;
  }

  .fc-event-rich__badge.is-soldout {
    background: rgba(0, 0, 0, 0.45);
    color: #ddd;
  }

  .fc-event-rich__badge.is-upcoming {
    background: rgba(0, 0, 0, 0.45);
    color: #e0f2fe;
  }

  .fc-event-rich__countdown {
    font-size: 0.66rem;
    padding: 4px 7px;
    border-radius: 6px;
    color: #f8fbff;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-shadow: none;
    line-height: 1.3;
  }
}

/* —— Móvil —— */
@media (max-width: 767px) {
  body.page-tickets.page-with-header .body-wrapper {
    padding-left: 8px;
    padding-right: 8px;
  }

  body.page-tickets .calendar-site-wrap {
    padding: 12px 8px 16px;
    margin-left: 0;
    margin-right: 0;
  }

  .embed-calendar-page {
    padding: 0 2px 12px;
    max-width: none;
  }

  body.page-tickets.page-with-header .embed-calendar-page .tn-venue-title {
    display: none;
  }

  body.page-tickets.page-with-header .embed-calendar-page .tn-venue-subtitle {
    font-size: 0.88rem;
    margin-bottom: 6px;
    padding: 0 4px;
    line-height: 1.45;
  }

  .embed-view-toggle {
    display: flex;
    max-width: 100%;
    margin-bottom: 14px;
  }

  .embed-calendar-page.is-embed-view-calendar .embed-calendar-wrap {
    margin-top: 4px;
    padding: 12px 10px 14px;
  }

  .embed-calendar-page.is-embed-view-calendar .embed-tickets-list {
    display: none;
  }

  .embed-calendar-page.is-embed-view-calendar .embed-calendar-wrap {
    display: block;
  }

  .embed-calendar-page.is-embed-view-list .embed-tickets-list {
    display: flex;
    flex-direction: column;
  }

  .embed-calendar-page.is-embed-view-list .embed-calendar-wrap {
    display: none;
  }

  .embed-legend {
    margin-bottom: 12px;
    padding: 8px 10px;
    font-size: 0.76rem;
    gap: 6px 8px;
  }

  .embed-legend-item {
    padding: 3px 8px;
  }

  .embed-calendar-page.is-embed-view-list .embed-ticket-card.is-upcoming {
    align-items: stretch;
  }

  .embed-calendar-page.is-embed-view-list .embed-ticket-card.is-upcoming .embed-ticket-body {
    justify-content: flex-start;
  }

  .embed-calendar-page.is-embed-view-list .embed-ticket-card.is-available {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
  }

  .embed-calendar-page.is-embed-view-list .embed-ticket-card.is-available.is-touching,
  .embed-calendar-page.is-embed-view-list .embed-ticket-card.is-available:active {
    transform: scale(0.98);
    border-color: var(--cal-border-strong);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  }

  .embed-calendar-page.is-embed-view-list .embed-btn-buy:not(.is-disabled).is-touching,
  .embed-calendar-page.is-embed-view-list .embed-btn-buy:not(.is-disabled):active {
    transform: scale(0.94);
    opacity: 0.88;
  }

  .embed-calendar-wrap {
    margin: 0 -2px;
  }

  .embed-calendar-wrap .fc-toolbar {
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 14px !important;
    padding: 14px 10px 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--cal-border);
    border-radius: var(--cal-radius);
  }

  .embed-calendar-wrap .fc-toolbar .fc-left,
  .embed-calendar-wrap .fc-toolbar .fc-center,
  .embed-calendar-wrap .fc-toolbar .fc-right {
    float: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .embed-calendar-wrap .fc-toolbar .fc-center {
    order: 1;
    width: 100%;
    margin: 0 0 10px;
    padding: 0 4px 12px;
    border-bottom: 1px solid var(--cal-border);
  }

  .embed-calendar-wrap .fc-toolbar .fc-left {
    order: 2;
    width: 100%;
    margin: 2px 0 0;
  }

  .embed-calendar-wrap .fc-toolbar h2 {
    font-size: 1.22rem;
    line-height: 1.35;
    width: 100%;
    text-align: center;
    padding: 2px 8px 0;
  }

  .embed-calendar-wrap .fc-button {
    min-width: 44px;
    min-height: 44px;
  }

  .embed-calendar-wrap .fc-view-container {
    margin-top: 2px;
  }

  .embed-calendar-wrap .fc-head-container {
    margin-top: 4px;
  }

  .embed-calendar-wrap .fc-day-header {
    font-size: 0.62rem;
    padding: 9px 0 7px;
    letter-spacing: 0.04em;
  }

  .embed-calendar-wrap .fc-day-grid .fc-row {
    min-height: 5.75rem;
  }

  .embed-calendar-wrap .fc-day {
    min-height: 5.75rem;
    vertical-align: top;
    position: relative;
  }

  .embed-calendar-wrap .fc-day-top {
    position: relative;
    z-index: 8;
    min-height: 26px;
    pointer-events: none;
  }

  .embed-calendar-wrap .fc-day-number {
    float: right;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 7px 4px;
    line-height: 1;
    position: relative;
    z-index: 9;
    pointer-events: none;
  }

  .embed-calendar-wrap a.fc-day-grid-event.fc-event--mobile,
  .embed-calendar-wrap .fc-day-grid-event.fc-event--mobile {
    margin: 2px 2px 4px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    background-image: none !important;
    overflow: hidden;
    box-sizing: border-box;
    display: flex !important;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    z-index: 6;
    min-width: 36px;
    min-height: 36px;
  }

  .embed-calendar-wrap a.fc-day-grid-event.fc-event--mobile .fc-content,
  .embed-calendar-wrap .fc-event.fc-event--mobile .fc-content {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 3px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .embed-calendar-wrap a.fc-day-grid-event.fc-event--mobile:active,
  .embed-calendar-wrap a.fc-day-grid-event.fc-event--mobile.is-touching,
  .embed-calendar-wrap .fc-event.fc-event--mobile:active,
  .embed-calendar-wrap .fc-event.fc-event--mobile.is-touching {
    transform: scale(0.94);
    filter: brightness(1.05);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35), 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  }

  .embed-calendar-wrap a.fc-day-grid-event.fc-event--mobile.is-opening,
  .embed-calendar-wrap .fc-event.fc-event--mobile.is-opening {
    transform: scale(0.92);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5) !important;
  }

  .embed-calendar-wrap a.fc-day-grid-event.fc-event--mobile .fc-title,
  .embed-calendar-wrap .fc-event.fc-event--mobile .fc-title {
    display: block;
    width: 100%;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0;
    box-sizing: border-box;
  }

  .embed-calendar-wrap .fc-event.fc-event--mobile.fc-event--soldout {
    opacity: 0.7;
    cursor: not-allowed;
  }

  .embed-calendar-wrap .fc-event.fc-event--mobile.fc-event--upcoming {
    opacity: 0.82;
    cursor: not-allowed;
  }

  .embed-calendar-wrap .fc-event.fc-event--mobile.fc-event--soldout .fc-title {
    font-size: 0.58rem;
    letter-spacing: 0.02em;
  }
}

/* —— Animaciones y feedback táctil —— */
.embed-view-panels {
  position: relative;
  min-height: 120px;
}

.embed-calendar-page.is-view-switching .embed-view-panels {
  pointer-events: none;
}

.embed-calendar-page.is-view-switching .embed-calendar-wrap,
.embed-calendar-page.is-view-switching .embed-tickets-list {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.embed-calendar-page.is-panel-enter-calendar .embed-calendar-wrap,
.embed-calendar-page.is-panel-enter-list .embed-tickets-list {
  animation: tnCalPanelIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.embed-calendar-page--ready .embed-legend {
  animation: tnCalFadeDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.embed-calendar-page--ready .embed-view-toggle {
  animation: tnCalFadeDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.06s backwards;
}

.embed-calendar-page--ready .embed-view-panels {
  animation: tnCalFadeDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards;
}

.embed-calendar-wrap.is-month-anim .fc-view-container {
  animation: tnCalMonthSwap 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.embed-calendar-wrap.is-events-enter .fc-event.fc-event--embed-ticket:not(.fc-event--soldout) {
  animation: tnCalEventPop 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.embed-calendar-wrap.is-events-enter .fc-event.fc-event--embed-ticket:nth-child(odd) {
  animation-delay: 0.03s;
}

.embed-calendar-wrap.is-events-enter .fc-event.fc-event--embed-ticket:nth-child(even) {
  animation-delay: 0.06s;
}

@keyframes tnCalFadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tnCalPanelIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes tnCalMonthSwap {
  0% {
    opacity: 0.55;
    transform: translateX(8px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes tnCalEventPop {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes tnCalDenied {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes tnCalTodayPulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 154, 0, 0.35); }
  50% { box-shadow: inset 0 0 0 2px rgba(255, 154, 0, 0.55); }
}

.embed-calendar-wrap .fc-day.fc-today {
  animation: tnCalTodayPulse 3s ease-in-out infinite;
}

/* Press / touch */
.is-touching.embed-view-toggle__btn:not(.is-active) {
  transform: scale(0.97);
  opacity: 0.9;
}

.is-touching.embed-view-toggle__btn.is-active {
  transform: scale(0.96);
  filter: brightness(0.95);
}

.is-touching.embed-calendar-wrap .fc-button {
  transform: scale(0.94) !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

.embed-calendar-wrap .fc-event.is-touching:not(.fc-event--soldout) {
  transform: scale(0.96) !important;
  filter: brightness(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  z-index: 3;
}


.embed-calendar-wrap .fc-event.is-opening:not(.fc-event--soldout) {
  transform: scale(0.94) !important;
  filter: brightness(1.12);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.45), 0 8px 24px rgba(0, 0, 0, 0.45) !important;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.embed-calendar-wrap .fc-event.is-denied {
  animation: tnCalDenied 0.38s ease;
}

.embed-ticket-card.is-touching {
  transform: scale(0.98);
  border-color: var(--cal-border-strong);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.embed-calendar-page.is-panel-enter-list .embed-ticket-card {
  animation: tnCalListIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.embed-calendar-page.is-panel-enter-list .embed-ticket-card:nth-child(1) { animation-delay: 0.04s; }
.embed-calendar-page.is-panel-enter-list .embed-ticket-card:nth-child(2) { animation-delay: 0.08s; }
.embed-calendar-page.is-panel-enter-list .embed-ticket-card:nth-child(3) { animation-delay: 0.12s; }
.embed-calendar-page.is-panel-enter-list .embed-ticket-card:nth-child(4) { animation-delay: 0.16s; }
.embed-calendar-page.is-panel-enter-list .embed-ticket-card:nth-child(n+5) { animation-delay: 0.2s; }

@keyframes tnCalListIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (min-width: 768px) {
  .embed-calendar-wrap .fc-event.is-touching:not(.fc-event--soldout),
  .embed-calendar-wrap .fc-event.is-opening:not(.fc-event--soldout) {
    transform: translateY(-2px) scale(0.98) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .embed-calendar-page.is-view-switching .embed-calendar-wrap,
  .embed-calendar-page.is-view-switching .embed-tickets-list,
  .embed-calendar-page--ready .embed-legend,
  .embed-calendar-page--ready .embed-view-toggle,
  .embed-calendar-page--ready .embed-view-panels,
  .embed-calendar-page.is-panel-enter-calendar .embed-calendar-wrap,
  .embed-calendar-page.is-panel-enter-list .embed-tickets-list,
  .embed-calendar-page.is-panel-enter-list .embed-ticket-card,
  .embed-calendar-wrap.is-month-anim .fc-view-container,
  .embed-calendar-wrap.is-events-enter .fc-event,
  .embed-calendar-wrap .fc-day.fc-today {
    animation: none !important;
    transition: none !important;
  }

  .embed-calendar-page.is-view-switching .embed-calendar-wrap,
  .embed-calendar-page.is-view-switching .embed-tickets-list {
    opacity: 1;
    transform: none;
  }
}
