/* Guías teaser (#guia). Breakpoints: --mv-bp-md 1020px, --mv-bp-sm 720px.
   Type scale: home-typography.css. Shared arrow motion: home-card-link.css. */

.o3-guides {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--mv-content-max);
  margin: 0 auto;
  padding: var(--mv-section-space) var(--mv-page-gutter);
  overflow: visible;
}

.o3-guides .o3-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(16px, 2vw, 35px);
}

.o3-guides .o3-section-head h2 {
  overflow-wrap: anywhere;
}

.o3-guides .o3-section-head > a {
  align-self: end;
  margin-bottom: 7px;
}

.o3-guides > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 20px);
  isolation: isolate;
  overflow: visible;
}

.o3-guide {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: visible;
  position: relative;
  z-index: 0;
  border-top: 1px solid #cfc8be;
  padding-top: 17px;
  transition: border-color var(--mv-motion-fast);
}

.o3-guide-media {
  display: block;
  overflow: visible;
  margin-bottom: 17px;
  position: relative;
  z-index: 1;
}

.o3-guide-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transform: scale(1);
  filter: saturate(1);
  transition:
    transform .65s cubic-bezier(.2, .7, .2, 1),
    filter .35s ease,
    box-shadow var(--mv-motion-standard);
}

.o3-guide p {
  margin: 0 0 9px;
  color: var(--o3-red, var(--mv-color-red));
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.o3-guide h3 {
  flex: 1;
  overflow-wrap: anywhere;
  font: 500 27px / 1.13 'Playfair Display', Georgia, serif;
  margin: 0 0 18px;
}

.o3-guide-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  margin-top: auto;
  font-size: var(--mv-type-meta);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--o3-grey, var(--mv-color-muted));
  transition: color var(--mv-motion-fast);
}

@media (hover: hover) {
  .o3-guide:hover {
    z-index: 1;
    border-color: var(--o3-red, var(--mv-color-red));
  }

  .o3-guide:hover .o3-guide-media img {
    transform: scale(1.035);
    filter: saturate(1.05);
    box-shadow: 0 16px 32px rgba(25, 24, 22, .18);
  }

  .o3-guide:hover .o3-guide-cta {
    color: var(--o3-red, var(--mv-color-red));
  }
}

@media (max-width: 1020px) {
  .o3-guides .o3-section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .o3-guides .o3-section-head > a {
    display: inline-flex;
    margin: 0;
    align-self: start;
  }

  .o3-guides > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .o3-guides {
    padding: var(--mv-section-space-compact) var(--mv-page-gutter);
  }

  .o3-guides > div:last-child {
    grid-template-columns: minmax(0, 1fr);
  }
}
