/* IPP Homenaje en Vida v0.1.1 */
.ipp-homenaje-hero-image img{object-position:center center!important}

.ipp-homenaje-purpose-grid,
.ipp-homenaje-steps-grid,
.ipp-homenaje-timeline{
  display:flex!important;
  flex-wrap:wrap;
  gap:22px;
  margin-top:34px;
  justify-content:center;
  align-items:stretch;
}
.ipp-homenaje-steps-grid{margin-bottom:34px}

.ipp-homenaje-purpose-card,
.ipp-homenaje-step,
.ipp-homenaje-date-card{
  padding:26px;
  border:1px solid #e6e0e8;
  border-radius:18px;
  background:#fff;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  min-height:100%;
}

.ipp-homenaje-purpose-card{
  flex:0 1 calc((100% - 44px)/3);
  max-width:calc((100% - 44px)/3);
}
.ipp-homenaje-step{
  flex:0 1 calc((100% - 44px)/3);
  max-width:calc((100% - 44px)/3);
}
.ipp-homenaje-date-card{
  flex:0 1 calc((100% - 66px)/4);
  max-width:calc((100% - 66px)/4);
  border-top:3px solid #664771;
}

.ipp-homenaje-purpose-card h3,
.ipp-homenaje-step h3,
.ipp-homenaje-date-card h3{margin:10px 0 8px!important}
.ipp-homenaje-purpose-card p,
.ipp-homenaje-step p,
.ipp-homenaje-date-card p{margin-bottom:0!important;line-height:1.6}

.ipp-homenaje-kicker,
.ipp-homenaje-step>span,
.ipp-homenaje-label,
.ipp-homenaje-date-card>strong,
.ipp-homenaje-courtesy>span{
  color:#664771;
  font-size:13px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.ipp-homenaje-step>span{
  display:inline-flex;
  width:36px;height:36px;
  align-items:center;justify-content:center;
  border-radius:999px;
  background:#efe8f1;
  letter-spacing:0;
}

.ipp-homenaje-date-card>strong{display:block;margin-bottom:6px}

.ipp-homenaje-winner-card{
  max-width:760px;
  margin:0 auto;
  padding:38px 40px;
  border:1px solid #dfd5e3;
  border-radius:22px;
  background:#fff;
  text-align:center;
  box-sizing:border-box;
  box-shadow:0 10px 26px rgba(43,37,48,.05);
}
.ipp-homenaje-winner-card h2{font-size:clamp(2rem,1.6rem + 2vw,3.4rem);margin:8px 0 16px!important;color:#664771}
.ipp-homenaje-winner-card>p:not(.ipp-homenaje-label){font-size:18px;line-height:1.7}
.ipp-homenaje-winner-note{margin-top:22px;padding:18px 20px;border-radius:14px;background:#f7f5f7;line-height:1.6}

.ipp-homenaje-courtesy{
  padding:30px;
  border:1px solid #e6e0e8;
  border-radius:18px;
  background:#f7f5f7;
}
.ipp-homenaje-courtesy h3{margin:8px 0 10px!important}
.ipp-homenaje-courtesy p{margin-bottom:0!important}

.ipp-homenaje-consent-card{
  max-width:820px;
  margin:0 auto;
  padding:30px 32px;
  border-left:5px solid #664771;
  border-radius:0 18px 18px 0;
  background:#fff;
}
.ipp-homenaje-consent-card h2{margin-top:0!important}
.ipp-homenaje-consent-card p:last-child{margin-bottom:0!important}

@media(max-width:980px){
  .ipp-homenaje-purpose-card,
  .ipp-homenaje-step,
  .ipp-homenaje-date-card{
    flex-basis:calc((100% - 22px)/2);
    max-width:calc((100% - 22px)/2);
  }
}

@media(max-width:782px){
  .ipp-homenaje-purpose-grid,
  .ipp-homenaje-steps-grid,
  .ipp-homenaje-timeline{gap:16px}
  .ipp-homenaje-purpose-card,
  .ipp-homenaje-step,
  .ipp-homenaje-date-card{
    flex-basis:100%;
    max-width:100%;
    padding:22px;
  }
  .ipp-homenaje-winner-card{padding:28px 22px}
  .ipp-homenaje-consent-card{padding:24px 22px}
}


/* =========================================================
   v0.1.2 — Gutenberg flow-spacing reset
   The card containers are wp:group blocks. Gutenberg keeps its
   default flow-layout margin on every child after the first one,
   which pushes cards 2+ downward even when the parent is flex.
   ========================================================= */

.ipp-homenaje-purpose-grid > .ipp-homenaje-purpose-card,
.ipp-homenaje-steps-grid > .ipp-homenaje-step,
.ipp-homenaje-timeline > .ipp-homenaje-date-card{
  margin-top:0 !important;
  margin-bottom:0 !important;
  margin-block-start:0 !important;
  margin-block-end:0 !important;
  align-self:stretch !important;
}

.ipp-homenaje-purpose-grid.wp-block-group-is-layout-flow > * + *,
.ipp-homenaje-purpose-grid.is-layout-flow > * + *,
.ipp-homenaje-steps-grid.wp-block-group-is-layout-flow > * + *,
.ipp-homenaje-steps-grid.is-layout-flow > * + *,
.ipp-homenaje-timeline.wp-block-group-is-layout-flow > * + *,
.ipp-homenaje-timeline.is-layout-flow > * + *{
  margin-block-start:0 !important;
}

/* Normalize the first internal element too, so the visual top line is identical. */
.ipp-homenaje-purpose-card > :first-child,
.ipp-homenaje-step > :first-child,
.ipp-homenaje-date-card > :first-child{
  margin-top:0 !important;
  margin-block-start:0 !important;
}
