/* pases.css — Selector de pases (3 tier cards) para la sección "Nuestros pases".
 * Replica el diseño del PaseSelector v7 (Symfony LiveComponent) en estático.
 * Tokens de color tomados del design system v7 (v7-tokens.css). */

.ptb-pases {
  --lime-300: #BFE04D;
  --lime-500: #7FB800;
  --lime-600: #659900;
  --surface-base: #FFFFFF;
  --surface-inverse: #000000;
  --surface-muted: #E8EBF0;
  --text-primary: #1F2937;
  --text-secondary: #4B5563;
  --text-tertiary: #AEB7C3;
  --text-inverse: #FFFFFF;
  --border-default: #DEE2E8;
  --action-primary: #0A0F18;
  --lime-base: #7FB800;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* ---- Cabecera de la sección: título a la izquierda, CTA a la derecha ---- */
.ptb-pases-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.ptb-pases-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--action-primary, #0A0F18);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  white-space: nowrap;
  transition: opacity .2s ease;
}
.ptb-pases-cta:hover { opacity: .85; }
.ptb-pases-cta svg { width: 14px; height: 14px; }

/* ---- Card ---- */
.ptb-pase {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface-base);
  border: 2px solid var(--border-default);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  padding-bottom: 20px;
}
.ptb-pase--featured {
  background: var(--surface-inverse);
  border-color: var(--lime-300);
  box-shadow: 3px 8px 20px -4px rgba(147, 215, 11, .4), 0 2px 4px rgba(184, 240, 30, .4);
}

/* ---- Imagen + badges ---- */
.ptb-pase__img {
  position: relative;
  width: 100%;
  height: 177px;
  overflow: hidden;
  background: #fff;
}
.ptb-pase__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ptb-pase__badge-top {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(78deg, var(--lime-500) 0%, var(--lime-300) 100%);
  color: #000;
  font-weight: 600; font-size: 13px; line-height: 20px;
  padding: 4px 14px 6px;
  border-radius: 0 0 12px 12px;
  white-space: nowrap;
}
.ptb-pase__badge-row {
  position: absolute;
  bottom: 12px; left: 16px;
  display: flex; gap: 8px;
}
.ptb-pase__pill {
  display: inline-flex; align-items: center;
  background: var(--surface-base, #fff);
  color: var(--surface-inverse, #000);
  font-weight: 600; font-size: 13px; line-height: 20px;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ---- Cuerpo ---- */
.ptb-pase__body { display: flex; flex-direction: column; gap: 20px; padding: 0 16px; flex: 1; }
.ptb-pase__head { display: flex; gap: 12px; align-items: center; }
.ptb-pase__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-primary);
  flex: 0 0 auto;
}
.ptb-pase__icon svg { width: 16px; height: 16px; }
.ptb-pase--featured .ptb-pase__icon {
  background: linear-gradient(225deg, var(--lime-300) 0%, var(--lime-500) 100%);
  color: #000;
}
.ptb-pase__name { margin: 0; font-size: 18px; font-weight: 700; line-height: 28px; color: var(--text-primary); }
.ptb-pase--featured .ptb-pase__name { color: var(--text-inverse); }

/* ---- Features ---- */
.ptb-pase__features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ptb-pase__features li { display: flex; gap: 8px; align-items: center; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.ptb-pase--featured .ptb-pase__features li { color: var(--text-inverse); }
.ptb-pase__features svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--lime-base); }
.ptb-pase--featured .ptb-pase__features svg { color: var(--lime-300); }

/* ---- Footer: precios + CTA ---- */
.ptb-pase__footer { display: flex; flex-direction: column; gap: 16px; padding: 0 16px; margin-top: auto; }
.ptb-pase__prices { display: flex; gap: 14px; }
.ptb-pase__price { display: flex; flex-direction: column; }
.ptb-pase__price .amount { font-size: 18px; font-weight: 700; line-height: 24px; color: var(--text-secondary); }
.ptb-pase--featured .ptb-pase__price .amount { color: var(--text-inverse); }
.ptb-pase__price .label { font-size: 13px; line-height: 20px; color: var(--text-tertiary); }
.ptb-pase--featured .ptb-pase__price .label { color: var(--text-inverse); opacity: .6; }
.ptb-pase__divider { width: 1px; align-self: stretch; background: var(--border-default); }
.ptb-pase--featured .ptb-pase__divider { background: rgba(255,255,255,.4); }

.ptb-pase__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--action-primary);
  color: var(--text-secondary);
  background: transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ptb-pase__btn:hover { background: var(--action-primary); color: #fff; }
.ptb-pase--featured .ptb-pase__btn { border: 2px solid var(--lime-base); color: var(--lime-300); }
.ptb-pase--featured .ptb-pase__btn:hover {
  background: linear-gradient(81deg, var(--lime-600) 0%, var(--lime-300) 100%);
  color: #000; border-color: transparent;
}

/* ---- Mobile: carrusel horizontal con snap ---- */
@media screen and (max-width: 767px) {
  .ptb-pases {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 16px;
  }
  .ptb-pase { flex: 0 0 85%; max-width: 342px; scroll-snap-align: center; }
  .ptb-pases-header { margin-bottom: 28px; }
}
