/* =========================================================
   CashTicket Home — layout discovery (rompe el template viejo)
   ========================================================= */

.ct-home {
  background: #f4f4f1;
  min-height: 70vh;
  padding: 1.25rem 0 3rem;
}

.ct-home-inner {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.ct-home-intro {
  margin: 0.5rem 0 1.25rem;
}

.ct-home-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
}

.ct-home-heading {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  color: #0a0a0a;
  max-width: 14ch;
}

.ct-home-search {
  margin-bottom: 2rem;
}

.ct-home-block {
  margin-bottom: 2.5rem;
}

.ct-home-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ct-home-h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  color: #0a0a0a;
}

.ct-state {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 7rem;
  color: #555;
  padding: 1.5rem;
}

/* ---- Search (mata la caja gris vieja) ---- */
.ct-home .filter-container {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.ct-home .main-filter {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0 !important;
}

@media (min-width: 768px) {
  .ct-home .main-filter {
    flex-direction: row;
    align-items: stretch;
  }
}

.ct-home .search-input-wrapper {
  flex: 1;
}

.ct-home .main-search-input {
  border: 2px solid #0a0a0a !important;
  border-radius: 999px !important;
  background: #fff !important;
  padding: 0.95rem 6.5rem 0.95rem 1.35rem !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.ct-home .main-search-input:focus {
  border-color: #ffcc03 !important;
  box-shadow: 0 0 0 3px rgba(255, 204, 3, 0.35) !important;
}

.ct-home .search-btn {
  right: 0.35rem !important;
  top: 50%;
  transform: translateY(-50%);
  background: #0a0a0a !important;
  color: #ffcc03 !important;
  border-radius: 999px !important;
  padding: 0.55rem 1.1rem !important;
  font-weight: 700 !important;
}

.ct-home .search-btn:hover {
  background: #ffcc03 !important;
  color: #0a0a0a !important;
}

.ct-home .search-suggestions {
  border-radius: 1rem !important;
  border: 2px solid #0a0a0a !important;
}

.ct-home .expand-filters-btn {
  background: transparent !important;
  border: 2px solid #0a0a0a !important;
  border-radius: 999px !important;
  color: #0a0a0a !important;
  font-weight: 700 !important;
  align-self: flex-start;
}

.ct-home .additional-filters {
  background: #fff !important;
  border: 2px solid #0a0a0a !important;
  border-radius: 1rem !important;
  padding: 1rem !important;
  margin-top: 0.75rem !important;
}

.ct-home .filters-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0.75rem !important;
  align-items: end !important;
}

@media (min-width: 480px) and (max-width: 767.98px) {
  .ct-home .filters-row {
    grid-template-columns: 1fr 1fr !important;
  }

  .ct-home .filter-field-clear {
    grid-column: 1 / -1;
  }
}

@media (min-width: 768px) {
  .ct-home .filters-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto !important;
    gap: 0.75rem 1rem !important;
  }
}

/* ---- Featured rail ---- */
.ct-feat-rail-wrap {
  position: relative;
}

.ct-feat-rail-wrap--scrollable::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: calc(100% - 1.75rem);
  background: linear-gradient(90deg, transparent, rgba(244, 244, 241, 0.95));
  border-radius: 0 1rem 1rem 0;
  z-index: 1;
}

@media (min-width: 768px) {
  .ct-feat-rail-wrap--scrollable::after {
    display: none;
  }
}

.ct-feat-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge legacy */
}

.ct-feat-rail::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
  width: 0;
  height: 0;
}

.ct-feat-rail-item {
  flex: 0 0 min(78vw, 280px);
  width: min(78vw, 280px);
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .ct-feat-rail-item {
    flex: 0 0 300px;
    width: 300px;
  }
}

.ct-feat-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  min-height: 0.75rem;
}

.ct-feat-dot {
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #d0d0d0;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.ct-feat-dot.active {
  width: 1.15rem;
  background: #ffcc03;
}

@media (min-width: 768px) {
  .ct-feat-dots {
    display: none;
  }
}

/* ---- Featured poster tile ---- */
.ct-feat-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  background: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ct-feat-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.ct-feat-tile:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 204, 3, 0.7);
}

.ct-feat-tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ct-feat-tile-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background: #ffcc03;
  color: #0a0a0a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 0.35rem;
}

.ct-feat-tile-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 1rem 0.95rem 1.05rem;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

.ct-feat-tile-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.ct-feat-tile-meta {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
}

.ct-feat-tile-meta .fa {
  color: #ffcc03;
  margin-top: 0.12rem;
  width: 0.9rem;
  text-align: center;
}

.ct-feat-tile-btn {
  margin-top: 0.35rem;
  width: 100%;
  border: none;
  background: #ffcc03;
  color: #0a0a0a;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ct-feat-tile-btn:hover {
  background: #fff;
  color: #0a0a0a;
}

/* ---- Event grid ---- */
.ct-event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 700px) {
  .ct-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1050px) {
  .ct-event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- Cards estilo ticketPass × CashTicket ---- */
.ct-pass-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  outline: none;
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ct-pass-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.ct-pass-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 204, 3, 0.55);
}

.ct-pass-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #ddd;
  overflow: hidden;
  flex: 0 0 auto;
}

.ct-pass-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ct-pass-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: #198754;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
}

.ct-pass-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.1rem 1.15rem;
  flex: 1 1 auto;
}

.ct-pass-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}

.ct-pass-sub {
  margin: 0;
  font-size: 0.88rem;
  color: #666;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

.ct-pass-org {
  margin: 0;
  font-size: 0.88rem;
  color: #555;
  line-height: 1.35;
}

.ct-pass-org span {
  color: #c9a000;
  font-weight: 600;
}

.ct-pass-divider {
  border: 0;
  border-top: 1px solid #ececec;
  margin: 0.15rem 0;
}

.ct-pass-detail {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.35;
}

.ct-pass-detail .fa {
  color: #ffcc03;
  margin-top: 0.15rem;
  width: 1rem;
  text-align: center;
}

.ct-pass-btn {
  margin-top: auto;
  width: 100%;
  border: 2px solid #ffcc03;
  background: #fff;
  color: #0a0a0a;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0.55rem;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ct-pass-btn:hover {
  background: #ffcc03;
  color: #0a0a0a;
}

.ct-home-pager {
  margin-top: 1.5rem;
}

/* Chips + header unificado */
.ct-header {
  background: #0a0a0a;
}

.ct-header-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.55rem 1.25rem;
  background: #0a0a0a;
}

.ct-header-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.ct-header-logo img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

.ct-header-chips {
  flex: 1 1 auto;
  min-width: 0;
}

.ct-header-chips .home-chips-scroll {
  padding: 0;
}

.ct-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.ct-header-promo {
  color: #ffcc03;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ct-header-promo:hover {
  color: #fff;
  text-decoration: underline;
}

.ct-header-user {
  color: #fff !important;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.ct-header-user b {
  color: #ffcc03;
}

.ct-header-login {
  background: transparent;
  border: 1px solid #ffcc03;
  color: #ffcc03;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.ct-header-login:hover {
  background: #ffcc03;
  color: #0a0a0a;
}

.ct-header-chips-mobile {
  background: #0a0a0a;
  padding: 0.5rem 0.75rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-chips-nav.barra-navegacion {
  background: #0a0a0a !important;
  border-bottom: none !important;
}

.home-chip {
  border-color: rgba(255, 255, 255, 0.35) !important;
  background: transparent !important;
  color: #fff !important;
}

.home-chip:hover {
  border-color: #ffcc03 !important;
  color: #ffcc03 !important;
}

.home-chip.active {
  background: #ffcc03 !important;
  border-color: #ffcc03 !important;
  color: #0a0a0a !important;
}

.home-chips-logo img {
  max-height: 28px;
}

/* apagar restos del template en el home */
.ct-home .portfolioContainer {
  display: contents;
}

/* Header: evitar doble barra/logo (desktop vs mobile) */
@media (min-width: 768px) {
  .ct-header .mobile-header {
    display: none !important;
  }

  .ct-header .ct-header-bar {
    display: flex !important;
  }
}

@media (max-width: 767.98px) {
  .ct-header .ct-header-bar {
    display: none !important;
  }
}
