/* Eventos v3 — AJUSTES_eventos.md */

body.cmsfc-v3.cmsfc-eventos-page .cmsfc-page-body {
  padding-bottom: 0;
}

body.cmsfc-v3 .cmsfc-eventos-section {
  padding: clamp(28px, 4vw, 40px) 0 clamp(48px, 6vw, 72px);
  display: flow-root;
}

body.cmsfc-v3 .cmsfc-eventos-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}

body.cmsfc-v3 .cmsfc-eventos-years {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 280px;
}

body.cmsfc-v3 .cmsfc-eventos-years__label {
  font-size: 13px;
  font-weight: 600;
  color: #4b5778;
  flex: none;
}

body.cmsfc-v3 .cmsfc-eventos-years__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

body.cmsfc-v3 .cmsfc-eventos-years__chips .cmsfc-chip {
  text-decoration: none;
  color: var(--color-primary);
  background: #eef3ff;
}

body.cmsfc-v3 .cmsfc-eventos-years__chips .cmsfc-chip.is-active {
  background: var(--color-primary);
  color: #fff;
}

body.cmsfc-v3 .cmsfc-eventos-count {
  font-size: 14.5px;
  color: #4b5778;
  flex: none;
  white-space: nowrap;
}

body.cmsfc-v3 .cmsfc-eventos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 720px) {
  body.cmsfc-v3 .cmsfc-eventos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  body.cmsfc-v3 .cmsfc-eventos-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.cmsfc-v3 .cmsfc-evento-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(7, 42, 115, 0.06), 0 4px 16px rgba(7, 42, 115, 0.04);
  text-decoration: none;
  color: var(--color-text);
  border: 1px solid transparent;
  box-sizing: border-box;
}

body.cmsfc-v3 .cmsfc-evento-card:hover {
  box-shadow: 0 0 0 2px var(--color-primary), 0 1px 2px rgba(7, 42, 115, 0.06), 0 4px 16px rgba(7, 42, 115, 0.04);
  color: var(--color-text);
}

body.cmsfc-v3 .cmsfc-evento-card:focus-visible {
  outline: 3px solid #f5b400;
  outline-offset: 2px;
}

body.cmsfc-v3 .cmsfc-evento-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e9eef8;
  overflow: hidden;
}

body.cmsfc-v3 .cmsfc-evento-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

body.cmsfc-v3 .cmsfc-evento-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9eef8;
}

body.cmsfc-v3 .cmsfc-evento-card__placeholder img {
  width: 52px;
  height: 52px;
  opacity: 0.28;
  filter: grayscale(1);
  object-fit: contain;
}

body.cmsfc-v3 .cmsfc-evento-card__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7, 42, 115, 0.88);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  max-width: calc(100% - 24px);
}

body.cmsfc-v3 .cmsfc-evento-card__badge .ms {
  font-size: 16px;
  flex: none;
}

body.cmsfc-v3 .cmsfc-evento-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
  padding: 16px 18px 18px;
}

body.cmsfc-v3 .cmsfc-evento-card__date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-primary);
}

body.cmsfc-v3 .cmsfc-evento-card__date .ms {
  font-size: 18px;
}

body.cmsfc-v3 .cmsfc-evento-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-primary-dark);
  text-wrap: pretty;
}

body.cmsfc-v3 .cmsfc-evento-card__local {
  margin: auto 0 0;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: #4b5778;
}

body.cmsfc-v3 .cmsfc-evento-card__local .ms {
  font-size: 18px;
  color: #9aa5bf;
  flex: none;
}

body.cmsfc-v3.cmsfc-eventos-page .cmsfc-institutional-band.cmsfc-section {
  padding-top: clamp(48px, 6vw, 72px);
}

@media (max-width: 719px) {
  body.cmsfc-v3 .cmsfc-eventos-years__chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    max-width: 100%;
  }

  body.cmsfc-v3 .cmsfc-evento-card__body {
    padding: 16px;
  }

  body.cmsfc-v3.cmsfc-eventos-page .acess-container {
    left: 16px;
    bottom: 16px;
  }

  body.cmsfc-v3.cmsfc-eventos-page [vw-access-button] {
    bottom: 16px !important;
    right: 16px !important;
    top: auto !important;
  }
}
