/* El primer plano corresponde a la institución. La agenda comparte su retícula. */
.home-compact .hero.fidelity-home .hero-note {
  max-width: none;
  margin: 0 0 .85rem;
  color: #09586e;
  font-size: clamp(.925rem, 1.3vw, 1.075rem);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .015em;
  text-transform: none;
}

@media (min-width: 961px) {
  .home-compact .hero.fidelity-home .hero-grid {
    min-height: clamp(27.5rem, 32vw, 31rem);
    padding-block: clamp(2.4rem, 3.6vw, 3.65rem);
  }
  .home-compact .hero.fidelity-home .hero-media img { object-position: center 19%; }
}

@media (max-width: 760px) {
  .home-compact .hero.fidelity-home .hero-media { height: clamp(10rem, 42vw, 13rem); }
}

.front-events {
  padding-block: clamp(1.35rem, 2.1vw, 2.1rem) clamp(1.65rem, 2.8vw, 2.7rem);
  background: #f2f6f8;
  color: #102c45;
  scroll-margin-top: 6rem;
}

.front-events #front-events-title {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 clamp(.85rem, 1.4vw, 1.2rem);
  color: #102c45;
  font-size: clamp(1.6rem, 2.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.035em;
}

.front-events #front-events-title::before {
  width: clamp(1.15rem, 2vw, 2rem);
  height: .2rem;
  border-radius: 1rem;
  background: #087a83;
  content: "";
}

.front-events__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.85rem, 1.55vw, 1.5rem);
}

.front-event {
  --ink: #103546;
  --accent: #c5f4ec;
  --action: #0b5260;
  --inset: clamp(1rem, 1.6vw, 1.55rem);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cfdee3;
  border-radius: .95rem;
  background: white;
}

.front-event--seminar {
  --ink: #352335;
  --accent: #ffdae1;
  --action: #70364d;
}

.front-event__lead {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: .8rem;
  min-height: 9.45rem;
  padding: .95rem var(--inset) 1.05rem;
  background: var(--ink);
}

.front-event__media {
  position: absolute;
  z-index: -1;
  inset-block: 0;
  right: 0;
  width: 48%;
  overflow: hidden;
}

.front-event__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 29%;
}

.front-event--seminar .front-event__media img { object-position: 65% 47%; }

.front-event__media::after {
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, var(--ink) 1%, transparent 76%);
  content: "";
}

.front-event .front-event__date {
  margin: 0;
  padding: .24rem .55rem;
  border-radius: .32rem;
  background: var(--accent);
  color: var(--ink);
  font-size: .89rem;
  font-weight: 650;
  line-height: 1.35;
}

.front-event .front-event__lead h3 {
  max-width: 79%;
  margin: 0;
  color: white;
  font-size: clamp(1.55rem, 2.35vw, 2.1rem);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -.033em;
  text-wrap: balance;
  overflow-wrap: break-word;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .52);
}

.front-event__lead h3 span {
  display: block;
  margin-bottom: .25rem;
  color: var(--accent);
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.front-event__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  padding: .9rem var(--inset) 1.05rem;
}

.front-event__offer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .15rem 1rem;
  width: 100%;
}

.front-event__offer p, .front-event p.front-event__detail {
  margin: 0;
  color: #30475a;
  font-size: .95rem;
  line-height: 1.5;
}

.front-event__offer p:first-child { color: #142f43; font-weight: 600; }
.front-event__offer .front-event__price { font-size: .86rem; }
.front-event__price strong { color: var(--ink); font-size: 1.14rem; white-space: nowrap; }
.front-event .front-event__detail strong { color: #142f43; }

.front-event a.front-event__action {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  min-height: 44px;
  max-width: 100%;
  margin-top: auto;
  padding: .42rem .85rem;
  border-radius: .45rem;
  background: var(--action);
  color: white;
  font-size: .93rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.front-event__action span { font-size: 1.25em; }
.front-event a.front-event__action:hover { background: var(--ink); text-decoration: underline; text-underline-offset: .18em; }
.front-event a.front-event__action:focus-visible { outline: 3px solid #0865d2; outline-offset: 3px; }

@media (min-width: 881px) {
  .front-event {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    row-gap: 0;
  }
  .front-event .front-event__lead h3 { max-width: min(79%, 20ch); }
}

@media (max-width: 880px) {
  .front-events__grid { grid-template-columns: minmax(0, 1fr); }
  .front-event__lead { min-height: 8.45rem; }
}

@media (max-width: 560px) {
  .front-event { --inset: .95rem; }
  .front-event__lead { min-height: 8rem; gap: .7rem; padding-block: .8rem .9rem; }
  .front-event__media { width: 48%; }
  .front-event__media::after {
    background: linear-gradient(90deg, var(--ink), transparent 90%),
                linear-gradient(0deg, rgb(9 20 35 / 55%), transparent 74%);
  }
  .front-event .front-event__lead h3 { max-width: 100%; font-size: clamp(1.44rem, 6vw, 1.8rem); }
  .front-event .front-event__date { font-size: .84rem; }
  .front-event__body { gap: .5rem; }
}

html[data-text="large"] .front-event :is(.front-event__date, h3 span, .front-event__offer p, .front-event__detail, a.front-event__action) { font-size: 1.125rem; }
html[data-contrast="high"] .front-event { --ink: #101828; --accent: white; --action: #101828; border-color: #101828; }
html[data-contrast="high"] .front-event__media { opacity: .38; }
