/**
 * Componentes reutilizables por la portada y las páginas internas.
 * Mobile-first, sin JavaScript.
 */

:is(.adelaida-theme, .editor-styles-wrapper) .am-section {
  margin-block: 0;
  padding: clamp(3.5rem, 8vw, 7rem) var(--am-gutter);
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-section > :where(h2, .am-section-intro) {
  margin-inline: auto;
  max-width: 760px;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-section-intro {
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-section .wp-block-columns {
  gap: clamp(1.5rem, 4vw, 4rem);
  margin-bottom: 0;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-media-frame {
  margin: 0;
  overflow: hidden;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-media-frame img {
  aspect-ratio: 4 / 5;
  border-radius: var(--am-radius);
  display: block;
  object-fit: cover;
  width: 100%;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-copy > * {
  max-width: 620px;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-copy > p:not(.am-kicker) {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-faq {
  max-width: 900px;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-faq__item {
  background: var(--am-white);
  border: 1px solid var(--am-border);
  border-radius: 12px;
  margin: 0 0 0.75rem;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-faq__item > summary {
  align-items: center;
  color: var(--am-charcoal);
  cursor: pointer;
  font-size: clamp(1.25rem, 2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.4;
  min-height: 56px;
  padding: 1rem 1.25rem;
  transition: color 160ms ease;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-faq__item > summary::marker {
  color: currentColor;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-faq__item > summary:hover,
:is(.adelaida-theme, .editor-styles-wrapper) .am-faq__item[open] > summary {
  color: var(--am-terracotta);
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-faq__item[open] > summary {
  border-bottom: 1px solid var(--am-border);
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-faq__item > :not(summary) {
  margin: 0;
  padding: 1rem 1.25rem 1.25rem;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-contact-list {
  border-top: 1px solid var(--am-border);
  margin-top: 1.75rem;
  padding-top: 0.5rem;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-contact-list > p {
  border-bottom: 1px solid var(--am-border);
  margin: 0;
  padding-block: 1rem;
}

:is(.adelaida-theme, .editor-styles-wrapper) .am-contact-list a {
  overflow-wrap: anywhere;
}
