/* Agenda de la Vall de Seta — calendario + detalle del día */

.vfag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 32px 0 24px;
  align-items: flex-start;
}
.vfag-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vfag-filter__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vf-ink-3, #6b6b6b);
}
.vfag-select {
  font-family: inherit;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  min-width: 200px;
}
.vfag-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vfag-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: all .15s ease;
}
.vfag-cat__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.vfag-cat.is-off {
  opacity: 0.35;
}
.vfag-cat:hover { transform: translateY(-1px); }

/* Layout: calendario + detalle */
.vfag-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 28px;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .vfag-grid { grid-template-columns: 1fr; }
}

/* Calendario */
.vfag-cal {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 20px;
}
.vfag-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.vfag-cal__title {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  text-transform: capitalize;
}
.vfag-cal__nav {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vfag-cal__nav:hover { background: #f5f5f5; }
.vfag-cal__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}
.vfag-cal__weekdays span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--vf-ink-3, #6b6b6b);
  text-transform: uppercase;
  padding: 4px;
}
.vfag-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.vfag-day {
  aspect-ratio: 1;
  padding: 6px 6px 4px;
  background: #fafafa;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: all .12s ease;
  position: relative;
}
.vfag-day:hover {
  background: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.08);
}
.vfag-day__num {
  font-size: 14px;
  font-weight: 600;
  color: var(--vf-ink-1, #1c1c1c);
}
.vfag-day--other .vfag-day__num { color: rgba(0, 0, 0, 0.25); }
.vfag-day--today {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
}
.vfag-day--today .vfag-day__num { color: rgb(99, 102, 241); }
.vfag-day--selected {
  background: #1c1c1c;
  border-color: #1c1c1c;
}
.vfag-day--selected .vfag-day__num { color: #fff; }
.vfag-day__dots {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 100%;
  min-height: 8px;
}
.vfag-day__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.vfag-day--selected .vfag-day__dot { box-shadow: 0 0 0 1px rgba(255,255,255,0.4); }
.vfag-day__more {
  font-size: 9px;
  font-weight: 600;
  color: var(--vf-ink-3, #6b6b6b);
}
.vfag-day--selected .vfag-day__more { color: rgba(255,255,255,0.8); }

.vfag-cal__hint {
  font-size: 12px;
  color: var(--vf-ink-3, #888);
  text-align: center;
  margin: 12px 0 0;
}

/* Detalle del día */
.vfag-detail {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 24px;
  min-height: 320px;
}
.vfag-detail__placeholder {
  color: var(--vf-ink-3, #888);
  font-size: 14px;
  text-align: center;
  padding: 60px 12px;
}
.vfag-detail__date {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 14px;
  text-transform: capitalize;
}
.vfag-detail__empty {
  color: var(--vf-ink-3, #888);
  font-size: 14px;
  padding: 40px 0;
  text-align: center;
}
.vfag-event {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.vfag-event:first-child { border-top: none; }
.vfag-event__time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  font-weight: 500;
  min-width: 100px;
  color: var(--vf-ink-2, #444);
  white-space: nowrap;
  padding-top: 1px;
}
.vfag-event__body { flex: 1; }
.vfag-event__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--vf-ink-1, #1c1c1c);
  margin: 0;
}
.vfag-event__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.vfag-event__meta {
  font-size: 12.5px;
  color: var(--vf-ink-3, #6b6b6b);
  margin: 2px 0 0;
}
.vfag-event__notes {
  font-size: 13px;
  color: var(--vf-ink-2, #444);
  margin: 4px 0 0;
}
.vfag-event__phone {
  color: var(--vf-ink-2, #444);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
}
.vfag-event--oneoff .vfag-event__title::after {
  content: '★';
  margin-left: 6px;
  color: #ef4444;
  font-size: 12px;
}

/* Leyenda */
.vfag-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 14px;
  font-size: 12.5px;
  color: var(--vf-ink-2, #444);
}
.vfag-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vfag-legend__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.vfag-legend__one-off {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ef4444;
  font-weight: 600;
}

/* CTA al final */
.vfag-cta {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 32px;
}

/* Estados de carga / error */
.vfag-loading,
.vfag-error {
  text-align: center;
  padding: 40px 0;
  color: var(--vf-ink-3, #888);
  font-size: 14px;
}
.vfag-error { color: #ef4444; }
