/**
 * AleMontes — extra utilities (theme-level)
 * Uses WP preset variables so colors remain single-source in theme.json.
 */

:root {
  --header-height: 96px;

  /* Breakpoints for reference in media queries */
  --bp-mobile: 375px;
  --bp-mobile-lg: 480px;
  --bp-tablet-sm: 640px;
  --bp-tablet: 768px;
  --bp-desktop-sm: 1024px;
  --bp-desktop: 1280px;
  --bp-desktop-lg: 1440px;
}

.pm-texture {
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%231f4e5f' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
}

.pm-kicker {
  color: var(--wp--preset--color--brand-earth);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .pm-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
  }
}

.pm-hero-title {
  font-size: 3rem;
  line-height: 1.05;
  font-weight: 500;
}

@media (max-width: 768px) {
  .pm-hero-title {
    font-size: 2rem;
    line-height: 1.1;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .pm-hero-title {
    font-size: 2.5rem;
  }
}

.pm-accent {
  color: var(--wp--preset--color--brand-earth);
}

.pm-lead {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .pm-lead {
    font-size: 1rem;
    line-height: 1.6;
  }
}

.pm-text-muted {
  color: #667085;
}

.pm-text-muted-strong {
  color: #475467;
}

.pm-section-title {
  color: var(--wp--preset--color--brand-water);
  font-size: 2.25rem;
}

@media (max-width: 768px) {
  .pm-section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .pm-section-title {
    font-size: 1.5rem;
  }
}

.pm-section-quote {
  color: var(--wp--preset--color--brand-water);
  font-size: 2.25rem;
  font-style: italic;
}

@media (max-width: 768px) {
  .pm-section-quote {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .pm-section-quote {
    font-size: 1.5rem;
  }
}

.pm-libro-title {
  font-size: 2.5rem;
  line-height: 1.15;
}

@media (max-width: 768px) {
  .pm-libro-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .pm-libro-title {
    font-size: 1.75rem;
  }
}

.pm-card-kicker {
  color: var(--wp--preset--color--brand-cream);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pm-card-title-lg {
  font-size: 1.6rem;
}

.pm-card-pad-sm {
  padding: 1.25rem;
}

.pm-card-pad-md {
  padding: 1.5rem;
}

.pm-card-pad-lg {
  padding: 2rem;
}

.pm-card-stack {
  margin-bottom: 1.5rem;
}

.pm-columns-gap-xl {
  gap: 4rem;
}

.pm-columns-gap-lg {
  gap: 3rem;
}

.pm-columns-gap-md {
  gap: 2rem;
}

.pm-columns-top {
  margin-top: 3rem;
}

.pm-buttons-md {
  font-size: 0.95rem;
}

.pm-icon-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.pm-icon-muted {
  color: rgba(31, 78, 95, 0.3);
}

.pm-text-sm {
  font-size: 0.875rem;
}

.pm-section-divider {
  border-top: 1px solid var(--wp--preset--color--brand-sand);
}

.pm-logo-fallback {
  display: inline-flex;
  align-items: center;
}

.pm-logo-fallback img {
  width: 64px;
  height: auto;
  display: block;
}

.wp-custom-logo .pm-logo-fallback {
  display: none;
}

::selection {
  background: var(--wp--preset--color--brand-earth);
  color: #fff;
}

.pm-hero {
  position: relative;
  height: 82vh;
}

/* Mobile: reduce height to fit content better */
@media (max-width: 768px) {
  .pm-hero {
    height: auto;
    min-height: 60vh;
    padding: 3rem 0 2rem;
  }
}

.pm-hero .wp-block-column> :first-child {
  margin-top: 0;
}

.pm-organic-shape {
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  overflow: hidden;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

@media (max-width: 768px) {
  .pm-organic-shape {
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
    box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.2);
  }
}

.pm-blob {
  position: absolute;
  width: 18rem;
  height: 18rem;
  border-radius: 9999px;
  filter: blur(64px);
  opacity: 0.75;
  mix-blend-mode: multiply;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .pm-blob {
    width: 14rem;
    height: 14rem;
    filter: blur(48px);
  }
}

@media (max-width: 640px) {
  .pm-blob {
    width: 10rem;
    height: 10rem;
    filter: blur(32px);
    opacity: 0.6;
  }
}

.pm-blob--mist {
  background: var(--wp--preset--color--brand-water-light);
  top: -2rem;
  right: 0;
}

.pm-blob--sand {
  background: var(--wp--preset--color--brand-sand);
  bottom: -2rem;
  left: 0;
}

.pm-header-fixed {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 999;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(249, 247, 242, 0.9);
  border-bottom: 1px solid var(--wp--preset--color--brand-sand);
}

/* Default page title styling */
.pm-page-title {
  margin-top: 3rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Hide page title when hero block is present in the page content */
.wp-block-group:has(.pm-page-hero) .pm-page-title {
  display: none;
}

.pm-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 150ms ease, transform 150ms ease, border-color 150ms ease;
  background: #fff;
}

.pm-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.12);
}

.pm-card:hover .pm-card-title {
  color: var(--wp--preset--color--brand-earth);
}

.pm-card-cream {
  background: var(--wp--preset--color--brand-cream) !important;
  border-color: var(--wp--preset--color--brand-sand) !important;
}

.pm-card-cream:hover {
  border-color: var(--wp--preset--color--brand-sand) !important;
}

/* --- Button Style Variations --- */

/* Solid Buttons */
.is-style-pm-button-gold .wp-block-button__link {
  background: var(--wp--preset--color--brand-earth);
  color: #fff;
  transition: background 200ms ease, color 200ms ease, transform 150ms ease;
}

.is-style-pm-button-gold .wp-block-button__link:hover {
  background: var(--wp--preset--color--brand-sand);
  color: var(--wp--preset--color--ink);
  transform: translateY(-1px);
}

.is-style-pm-button-earth .wp-block-button__link {
  background: var(--wp--preset--color--brand-earth);
  color: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background 200ms ease, color 200ms ease, transform 150ms ease, box-shadow 200ms ease;
}

.is-style-pm-button-earth .wp-block-button__link:hover {
  background: #fff;
  color: var(--wp--preset--color--brand-earth);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.is-style-pm-button-water .wp-block-button__link {
  background: var(--wp--preset--color--brand-water);
  color: #fff;
  transition: background 200ms ease, transform 150ms ease;
}

.is-style-pm-button-water .wp-block-button__link:hover {
  background: var(--wp--preset--color--brand-water-light);
  transform: translateY(-1px);
}

.is-style-pm-button-sand .wp-block-button__link {
  background: var(--wp--preset--color--brand-sand);
  color: var(--wp--preset--color--brand-water);
  transition: background 200ms ease, color 200ms ease, transform 150ms ease;
}

.is-style-pm-button-sand .wp-block-button__link:hover {
  background: var(--wp--preset--color--brand-earth);
  color: #fff;
  transform: translateY(-1px);
}

/* Outline Buttons */
.is-style-pm-button-outline-light .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.is-style-pm-button-outline-light .wp-block-button__link:hover {
  background: rgba(255, 255, 255, 0.95);
  color: var(--wp--preset--color--brand-water);
  border-color: rgba(255, 255, 255, 0.95);
}

.is-style-pm-button-outline-cream .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--brand-cream);
  border: 1px solid rgba(249, 247, 242, 0.7);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.is-style-pm-button-outline-cream .wp-block-button__link:hover {
  background: var(--wp--preset--color--brand-cream);
  color: var(--wp--preset--color--brand-water);
  border-color: var(--wp--preset--color--brand-cream);
}

.is-style-pm-button-outline-dark .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--brand-water);
  border: 1px solid var(--wp--preset--color--brand-water);
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.is-style-pm-button-outline-dark .wp-block-button__link:hover {
  background: var(--wp--preset--color--brand-water);
  color: #fff;
  border-color: var(--wp--preset--color--brand-water);
}

/* --- Navigation helpers --- */
.pm-nav .wp-block-navigation__responsive-container-content,
.pm-nav .wp-block-navigation__container {
  align-items: center;
}

.pm-nav {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* "Acceso Alumnos" as a pill button inside Navigation */
.pm-nav-button>a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.05rem;
  border-radius: 9999px;
  border: 1px solid var(--wp--preset--color--brand-water);
  color: var(--wp--preset--color--brand-water);
  background: transparent;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.pm-nav-button>a:hover {
  background: var(--wp--preset--color--brand-water);
  color: #fff;
  border-color: var(--wp--preset--color--brand-water);
}

/* Hover color for normal nav links (keeps the "gold" accent behavior) */
.pm-nav a.wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--brand-earth);
}

.pm-nav .pm-nav-button a.wp-block-navigation-item__content:hover {
  color: var(--wp--preset--color--brand-cream);
}

/* Anchor offsets (avoid fixed header covering section anchors) */
#libro,
#escuela,
#blog {
  scroll-margin-top: 120px;
}

/* Chapter anchors must clear BOTH the fixed header (~96px) and the
 * sticky chapter-nav bar (~41px). Bump to 150px for chapters only. */
#origen,
#comunidad,
#camino,
#formaciones {
  scroll-margin-top: 150px;
}

/* Brand dot spacing on smaller screens */
.pm-brand-dot {
  margin-top: -0.05em;
}

/* Hero photo treatment */
.pm-hero-photo img {
  filter: grayscale(100%);
  transition: filter 1000ms ease, opacity 300ms ease;
  opacity: 0.9;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}

@media (max-width: 768px) {
  .pm-hero-photo img {
    aspect-ratio: 1 / 1;
    max-height: 400px;
  }
}

.pm-hero-photo:hover img {
  filter: grayscale(0%);
}

/* Hero scroll indicator */
.pm-hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 2.5rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  gap: 0.5rem;
}

.pm-hero-scroll-line {
  width: 1px;
  height: 4rem;
  background: var(--wp--preset--color--brand-water);
}

.pm-hero-scroll-text {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

/* Libro section */
.pm-wave-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  height: 100%;
  width: 100%;
  z-index: 1;
}

.pm-libro {
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.pm-libro .wp-block-columns {
  z-index: 2;
  position: relative;
}

.pm-book-cover {
  transform: rotate(3deg);
  transition: transform 500ms ease;
  border-radius: 0.125rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.pm-book-cover:hover {
  transform: rotate(0deg);
}

.pm-book-cover img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

/* Buttons used in Libro section */
.pm-button-rect .wp-block-button__link {
  border-radius: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.pm-button-earth .wp-block-button__link {
  background: var(--wp--preset--color--brand-earth);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.pm-button-earth .wp-block-button__link:hover {
  background: #fff;
  color: var(--wp--preset--color--brand-earth);
}

.pm-button-outline-cream .wp-block-button__link {
  background: transparent;
  color: var(--wp--preset--color--brand-cream);
  border: 1px solid rgba(249, 247, 242, 0.7);
}

.pm-button-outline-cream .wp-block-button__link:hover {
  background: var(--wp--preset--color--brand-cream);
  color: var(--wp--preset--color--brand-water);
}

/* Escuela media placeholders */
.pm-media-placeholder {
  aspect-ratio: 16 / 9;
  background: #e5e7eb;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  overflow: hidden;
  margin-bottom: 1rem;
}

.pm-media-lock {
  background: var(--wp--preset--color--brand-water);
  color: var(--wp--preset--color--brand-cream);
  flex-direction: column;
  gap: 0.5rem;
}

/* CTA links */
.pm-cta-link a {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--wp--preset--color--brand-water);
  border-bottom: 1px solid var(--wp--preset--color--brand-water);
  padding-bottom: 0.25rem;
  text-decoration: none;
}

.pm-cta-link a:hover {
  color: var(--wp--preset--color--brand-earth);
  border-bottom-color: var(--wp--preset--color--brand-earth);
}

/* Card link with arrow icon */
.pm-card-link {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wp--preset--color--brand-water);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.pm-card-link svg {
  width: 0.75rem;
  height: 0.75rem;
}

.pm-card-link::after {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h12M13 6l6 6-6 6' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12h12M13 6l6 6-6 6' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pm-card-kicker.wp-block-post-terms a {
  text-decoration: none;
  color: var(--wp--preset--color--brand-earth);
}

.pm-card-kicker.wp-block-post-terms a:hover {
  color: var(--wp--preset--color--brand-water);
}


/* Footer social icons */
.pm-footer-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  color: var(--wp--preset--color--brand-water);
}

@media (max-width: 480px) {
  .pm-footer-icons {
    gap: 1.25rem;
    margin: 1.5rem 0;
  }
}

.pm-footer-icons a {
  color: inherit;
}

.pm-footer-icons a:hover {
  color: var(--wp--preset--color--brand-earth);
}

.pm-footer-icons svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 480px) {
  .pm-footer-icons svg {
    width: 24px;
    height: 24px;
  }
}

/* Audio teaser hover & playback states */
.pm-audioTeaser {
  cursor: pointer;
}

.pm-audioTeaser:hover .pm-audioTeaser__button {
  background: var(--wp--preset--color--brand-earth);
}

.pm-audioTeaser__bars--paused span {
  animation-play-state: paused !important;
  opacity: 0.3 !important;
}

.pm-audioTeaser.is-playing .pm-audioTeaser__button {
  background: var(--wp--preset--color--brand-earth);
}

.pm-audioTeaser.is-playing .pm-audioTeaser__triangle {
  border-left: 4px solid #fff;
  border-right: 4px solid #fff;
  border-top: none;
  border-bottom: none;
  width: 10px;
  height: 12px;
  margin-left: 0;
}

.pm-audioTeaser.has-error {
  opacity: 0.5;
  pointer-events: none;
}

.pm-audioTeaser__progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.pm-audioTeaser__track {
  flex: 1;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.pm-audioTeaser__track:hover {
  height: 6px;
}

.pm-audioTeaser__fill {
  height: 100%;
  width: 0%;
  background: var(--wp--preset--color--brand-earth);
  border-radius: 4px;
  transition: width 150ms linear;
}

.pm-audioTeaser__time {
  font-size: 11px;
  font-family: var(--wp--preset--font-family--sans);
  color: #9ca3af;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Ensure audio teaser button is large enough for touch */
@media (max-width: 768px) {
  .pm-audioTeaser__button {
    min-width: 52px;
    min-height: 52px;
    padding: 0.75rem;
  }
}

/* Libro pill */
.pm-pill {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(249, 247, 242, 0.3);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Scroll animations (micro-interactions.js) --- */
.pm-animate-fade-in,
.pm-animate-fade-up,
.pm-animate-stagger {
  opacity: 0;
  transition: opacity 600ms ease, transform 600ms ease;
}

.pm-animate-fade-up {
  transform: translateY(20px);
}

.pm-animate-fade-in.is-visible,
.pm-animate-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animation delays for child elements */
.pm-animate-stagger.is-visible:nth-child(1) {
  transition-delay: 0ms;
}

.pm-animate-stagger.is-visible:nth-child(2) {
  transition-delay: 100ms;
}

.pm-animate-stagger.is-visible:nth-child(3) {
  transition-delay: 200ms;
}

.pm-animate-stagger.is-visible:nth-child(4) {
  transition-delay: 300ms;
}

.pm-animate-stagger.is-visible:nth-child(5) {
  transition-delay: 400ms;
}

/* Parallax elements */
.pm-parallax {
  will-change: transform;
}

/* Card focus states for keyboard navigation */
.pm-card.has-focus {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
  transform: translateY(-1px);
  border-color: rgba(0, 0, 0, 0.12);
}

.pm-card.has-focus .pm-card-title {
  color: var(--wp--preset--color--brand-earth);
}

/* Book cover image loading states */
.pm-book-cover img {
  opacity: 0;
  transition: opacity 400ms ease;
}

.pm-book-cover.loaded img {
  opacity: 1;
}

.pm-book-cover.load-failed {
  background: var(--wp--preset--color--brand-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.pm-book-cover.load-failed img {
  display: none;
}

.pm-book-cover.load-failed::after {
  content: 'Imagen no disponible';
  color: var(--wp--preset--color--ink);
  opacity: 0.5;
  font-size: 0.875rem;
}

/* ========================================
   Breadcrumb Navigation
   ======================================== */

.pm-breadcrumbs {
  margin: 2rem 0;
  padding: 0;
}

.pm-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.875rem;
  line-height: 1.5;
}

.pm-breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pm-breadcrumbs__link {
  color: var(--wp--preset--color--brand-water);
  text-decoration: none;
  transition: color 200ms ease;
  letter-spacing: 0.02em;
}

.pm-breadcrumbs__link:hover {
  color: var(--wp--preset--color--brand-earth);
}

.pm-breadcrumbs__current {
  color: var(--wp--preset--color--brand-bronze);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.pm-breadcrumbs__separator {
  color: var(--wp--preset--color--brand-sand);
  font-weight: 300;
  opacity: 0.7;
  user-select: none;
  font-size: 0.75rem;
}

/* Breadcrumb style variant: Uppercase minimal */
.pm-breadcrumbs--uppercase .pm-breadcrumbs__list {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
}

.pm-breadcrumbs--uppercase .pm-breadcrumbs__separator {
  margin: 0 0.25rem;
}

/* Breadcrumb style variant: With icons */
.pm-breadcrumbs--with-icons .pm-breadcrumbs__item:first-child .pm-breadcrumbs__link::before {
  content: "";
  display: inline-block;
  width: 0.875rem;
  height: 0.875rem;
  margin-right: 0.375rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2V9z' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9 22V12h6v10' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 01-2 2H5a2 2 0 01-2-2V9z' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9 22V12h6v10' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  vertical-align: middle;
}

/* Breadcrumb style variant: Card style */
.pm-breadcrumbs--card {
  background: var(--wp--preset--color--brand-cream);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--wp--preset--color--brand-sand);
}

.pm-breadcrumbs--card .pm-breadcrumbs__list {
  font-size: 0.8125rem;
}

@media (max-width: 782px) {
  .pm-breadcrumbs {
    margin: 1.5rem 0;
  }

  .pm-breadcrumbs__list {
    font-size: 0.8125rem;
  }

  .pm-breadcrumbs--uppercase .pm-breadcrumbs__list {
    font-size: 0.6875rem;
  }

  .pm-breadcrumbs--card {
    padding: 0.75rem 1rem;
  }
}

/* ========================================
   Quote Block Styles
   ======================================== */

/* Base quote block - refined editorial style */
.wp-block-quote {
  margin: 3rem 0;
  padding: 2.5rem 0 2.5rem 3rem;
  border-left: 3px solid var(--wp--preset--color--brand-earth);
  background: transparent;
  position: relative;
}

.wp-block-quote p {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.5rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--wp--preset--color--brand-water);
  margin: 0 0 1rem 0;
  font-weight: 400;
}

.wp-block-quote cite,
.wp-block-quote footer {
  display: block;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.875rem;
  font-style: normal;
  color: var(--wp--preset--color--brand-bronze);
  margin-top: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.wp-block-quote cite::before,
.wp-block-quote footer::before {
  content: "— ";
  color: var(--wp--preset--color--brand-earth);
}

/* Decorative quotation mark */
.wp-block-quote::before {
  content: "\"";
  position: absolute;
  left: -0.25rem;
  top: 1.75rem;
  font-family: var(--wp--preset--font-family--serif);
  font-size: 6rem;
  line-height: 1;
  color: var(--wp--preset--color--brand-sand);
  font-weight: 700;
  z-index: -1;
  opacity: 0.4;
}

/* Style variation: Featured/Pull Quote - centered, larger */
.wp-block-quote.is-style-plain,
.wp-block-quote.is-style-pm-quote-featured {
  border: none;
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(135deg,
      var(--wp--preset--color--brand-cream) 0%,
      rgba(249, 247, 242, 0.3) 100%);
  border-radius: 1rem;
  margin: 4rem auto;
  max-width: 800px;
}

.wp-block-quote.is-style-plain::before,
.wp-block-quote.is-style-pm-quote-featured::before {
  left: 50%;
  transform: translateX(-50%);
  top: -1rem;
  font-size: 8rem;
  opacity: 0.15;
  color: var(--wp--preset--color--brand-water);
}

.wp-block-quote.is-style-plain p,
.wp-block-quote.is-style-pm-quote-featured p {
  font-size: 2rem;
  line-height: 1.5;
  color: var(--wp--preset--color--brand-water);
  margin-bottom: 1.5rem;
}

.wp-block-quote.is-style-plain cite,
.wp-block-quote.is-style-pm-quote-featured cite {
  margin-top: 1.5rem;
  color: var(--wp--preset--color--brand-earth);
}

/* Style variation: Card Quote - contained with background */
.wp-block-quote.is-style-pm-quote-card {
  border-left: none;
  padding: 2.5rem;
  background: var(--wp--preset--color--brand-water);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(31, 78, 95, 0.15);
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
}

.wp-block-quote.is-style-pm-quote-card::before {
  content: "\"";
  position: absolute;
  right: 1.5rem;
  bottom: 1rem;
  font-size: 10rem;
  color: rgba(255, 255, 255, 0.08);
  line-height: 1;
  z-index: 0;
  left: auto;
  top: auto;
  transform: none;
  opacity: 1;
}

.wp-block-quote.is-style-pm-quote-card p {
  color: var(--wp--preset--color--brand-cream);
  font-size: 1.375rem;
  position: relative;
  z-index: 1;
}

.wp-block-quote.is-style-pm-quote-card cite {
  color: var(--wp--preset--color--brand-sand);
  position: relative;
  z-index: 1;
}

/* Style variation: Minimal Quote - subtle, inline style */
.wp-block-quote.is-style-pm-quote-minimal {
  border-left: none;
  padding: 1.5rem 0 1.5rem 2rem;
  margin: 2rem 0;
  background: transparent;
  position: relative;
}

.wp-block-quote.is-style-pm-quote-minimal::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom,
      var(--wp--preset--color--brand-earth) 0%,
      var(--wp--preset--color--brand-sand) 100%);
  opacity: 0.6;
}

.wp-block-quote.is-style-pm-quote-minimal p {
  font-size: 1.25rem;
  font-style: normal;
  color: var(--wp--preset--color--ink);
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 300;
  line-height: 1.7;
}

.wp-block-quote.is-style-pm-quote-minimal cite {
  font-size: 0.8125rem;
  margin-top: 1rem;
  color: #667085;
}

/* Style variation: Testimony Quote - warm, personal */
.wp-block-quote.is-style-pm-quote-testimony {
  border: 2px solid var(--wp--preset--color--brand-sand);
  border-left-width: 4px;
  border-left-color: var(--wp--preset--color--brand-earth);
  padding: 2rem 2rem 2rem 2.5rem;
  background: var(--wp--preset--color--brand-cream);
  border-radius: 0.5rem;
  margin: 3rem 0;
  position: relative;
}

.wp-block-quote.is-style-pm-quote-testimony::before {
  display: none;
}

.wp-block-quote.is-style-pm-quote-testimony p {
  font-size: 1.25rem;
  color: var(--wp--preset--color--ink);
  line-height: 1.65;
  font-style: normal;
}

.wp-block-quote.is-style-pm-quote-testimony cite {
  color: var(--wp--preset--color--brand-water);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wp-block-quote.is-style-pm-quote-testimony cite::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--wp--preset--color--brand-earth);
  display: inline-block;
}

@media (max-width: 782px) {
  .wp-block-quote {
    padding: 2rem 0 2rem 1.5rem;
    margin: 2rem 0;
  }

  .wp-block-quote p {
    font-size: 1.25rem;
  }

  .wp-block-quote::before {
    font-size: 4rem;
    top: 1rem;
  }

  .wp-block-quote.is-style-plain,
  .wp-block-quote.is-style-pm-quote-featured {
    padding: 2rem 1.5rem;
    margin: 2.5rem 0;
  }

  .wp-block-quote.is-style-plain p,
  .wp-block-quote.is-style-pm-quote-featured p {
    font-size: 1.5rem;
  }

  .wp-block-quote.is-style-pm-quote-card {
    padding: 2rem 1.5rem;
  }

  .wp-block-quote.is-style-pm-quote-card p {
    font-size: 1.125rem;
  }

  .wp-block-quote.is-style-pm-quote-card::before {
    font-size: 6rem;
    right: 0.5rem;
  }
}

/* ========================================
   Figure Captions
   ======================================== */

.wp-block-image figcaption.wp-element-caption {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.75rem;
  font-style: italic;
  color: var(--wp--preset--color--brand-bronze);
  text-align: center;
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* ========================================
   Testimonials
   ======================================== */

.pm-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.pm-testimonial {
  padding: 2rem;
  background: var(--wp--preset--color--brand-cream);
  border-radius: 1rem;
  border: 1px solid var(--wp--preset--color--brand-sand);
  position: relative;
}

.pm-testimonial::before {
  content: "\201C";
  font-family: var(--wp--preset--font-family--serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--wp--preset--color--brand-sand);
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  opacity: 0.5;
}

.pm-testimonial__text {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.05rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--wp--preset--color--brand-water);
  margin-bottom: 1rem;
}

.pm-testimonial__author {
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--brand-earth);
}

.pm-testimonial__author::before {
  content: "— ";
}

.pm-testimonial__detail {
  font-size: 0.75rem;
  color: #667085;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .pm-testimonials {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Contact Form 7 — Brand Styling
   ======================================== */

.wpcf7 {
  background: #fff;
  border: 1px solid var(--wp--preset--color--brand-sand);
  border-radius: 1rem;
  padding: 2.5rem;
  max-width: 720px;
  margin: 2.5rem auto;
}

.wpcf7 .pm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 0;
  column-gap: 1.25rem;
}

.wpcf7 .pm-form-grid>p {
  margin: 0 0 1.5rem 0;
}

.wpcf7 .pm-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wp--preset--color--brand-water);
}

.wpcf7 .pm-form-grid .wpcf7-form-control-wrap {
  display: block;
}

/* Mensaje and submit span full width */
.wpcf7 .pm-form-grid>p:nth-last-of-type(-n+2) {
  grid-column: 1 / -1;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 0.75rem 0.3rem;
  border: 1px solid var(--wp--preset--color--brand-sand);
  border-radius: 0.5rem;
  font-family: var(--wp--preset--font-family--sans);
  font-size: 0.95rem;
  color: var(--wp--preset--color--ink);
  background: var(--wp--preset--color--brand-cream);
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--brand-water);
  box-shadow: 0 0 0 3px rgba(31, 78, 95, 0.1);
  background: #fff;
}

.wpcf7 textarea {
  min-height: 120px;
  resize: vertical;
}

.wpcf7 .pm-button-submit {
  text-align: center;
  margin-top: 0.5rem;
}

.wpcf7 .pm-button-submit input[type="submit"],
.wpcf7 input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 999px;
  background: var(--wp--preset--color--brand-earth);
  color: #fff;
  font-family: var(--wp--preset--font-family--sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 200ms ease, transform 150ms ease, box-shadow 200ms ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.wpcf7 .pm-button-submit input[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover {
  background: var(--wp--preset--color--brand-water);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.wpcf7 .wpcf7-response-output {
  border-radius: 0.5rem;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.wpcf7 .wpcf7-spinner {
  display: none;
}

@media (max-width: 640px) {
  .wpcf7 {
    padding: 1.5rem;
    max-width: 100%;
    margin: 2rem auto;
  }

  .wpcf7 .pm-form-grid {
    grid-template-columns: 1fr;
  }

  .wpcf7 .pm-form-grid>p:nth-last-of-type(-n+2) {
    grid-column: auto;
  }
}

/* ========================================
   Responsive Card Components
   ======================================== */

@media (max-width: 768px) {
  .pm-card-title-lg {
    font-size: 1.35rem;
  }

  .pm-nav {
    letter-spacing: 0.12em;
    font-size: 0.8125rem;
  }

  .pm-nav-button>a {
    padding: 0.75rem 1.25rem;
    font-size: 0.8125rem;
  }

  .pm-columns-gap-md {
    gap: 1.5rem;
  }

  .pm-columns-top {
    margin-top: 2rem;
  }

  .pm-libro {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .pm-book-cover {
    transform: rotate(0deg);
    max-width: 350px;
    margin: 0 auto 2rem;
  }

  .pm-wave-bg {
    opacity: 0.03;
  }

  .wp-block-button__link {
    min-height: 44px;
    min-width: 44px;
    padding: 0.9rem 1.5rem;
  }
}

@media (max-width: 782px) {
  .wp-block-navigation__responsive-container.is-menu-open {
    height: 100vh !important;
    height: 100dvh !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-close {
    min-height: 100%;
    display: flex;
    flex-direction: column;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .pm-card-pad-sm {
    padding: 1rem;
  }

  .pm-card-pad-md {
    padding: 1.25rem;
  }

  .pm-card-pad-lg {
    padding: 1.5rem;
  }

  .pm-card-stack {
    margin-bottom: 1rem;
  }

  .pm-columns-gap-xl {
    gap: 1.5rem;
  }

  .pm-columns-gap-lg {
    gap: 1.25rem;
  }

  .pm-buttons-md {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .pm-card-title-lg {
    font-size: 1.25rem;
  }

  .pm-columns-gap-md {
    gap: 1rem;
  }

  .pm-columns-top {
    margin-top: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .pm-columns-gap-xl {
    gap: 2.5rem;
  }

  .pm-columns-gap-lg {
    gap: 2rem;
  }

  .pm-libro {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* ========================================
   Responsive Utilities
   ======================================== */

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .wp-site-blocks {
    overflow-x: hidden;
  }

  .wp-block-columns {
    flex-direction: column;
  }

  .wp-block-column {
    flex-basis: 100% !important;
  }

  .has-small-padding-mobile {
    padding: 1rem !important;
  }

  .has-medium-padding-mobile {
    padding: 1.5rem !important;
  }

  .has-large-padding-mobile {
    padding: 2rem !important;
  }

  .has-no-margin-top-mobile {
    margin-top: 0 !important;
  }

  .has-small-margin-top-mobile {
    margin-top: 1rem !important;
  }

  .has-medium-margin-top-mobile {
    margin-top: 2rem !important;
  }

  .hide-on-mobile {
    display: none !important;
  }
}

@media (max-width: 640px) {

  .wp-block-group.alignfull,
  .wp-block-cover.alignfull {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .has-text-align-center-mobile {
    text-align: center !important;
  }

  .has-text-align-left-mobile {
    text-align: left !important;
  }

  .has-large-font-size {
    font-size: 1.5rem !important;
  }

  .has-x-large-font-size {
    font-size: 1.75rem !important;
  }

  .has-xx-large-font-size {
    font-size: 2rem !important;
  }
}

@media (min-width: 769px) {
  .hide-on-desktop {
    display: none !important;
  }

  .show-on-mobile {
    display: none !important;
  }
}

/* ===========================================================
 * Rediseño Escuela del Pensamiento Materno — utility classes
 * =========================================================== */

/* Pull-quote with rule lines (used in Capítulo I) */
.pm-pullquote-rule {
  text-align: center;
  padding: 2rem 1rem;
  margin: 2rem 0 0;
  border-top: 1px solid var(--wp--preset--color--brand-earth);
  border-bottom: 1px solid var(--wp--preset--color--brand-earth);
}

.pm-pullquote-rule p,
.pm-pullquote-rule cite {
  font-family: var(--wp--preset--font-family--serif);
  font-style: italic;
  font-size: 1.6rem;
  line-height: 1.35;
  color: var(--wp--preset--color--brand-water);
  margin: 0;
}

@media (max-width: 640px) {
  .pm-pullquote-rule p {
    font-size: 1.25rem;
  }
}

/* Callout box (used for "no es ruta lineal" in Capítulo III) */
.pm-callout-coral {
  background: rgba(120, 97, 70, 0.08);
  border-left: 3px solid var(--wp--preset--color--brand-earth);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.pm-callout-coral p {
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}

/* Closing italic paragraph (used at end of Capítulo IV) */
.pm-closing-italic p,
p.pm-closing-italic {
  font-family: var(--wp--preset--font-family--serif);
  font-style: italic;
  text-align: center;
  max-width: 640px;
  margin: 2.5rem auto 0;
  font-size: 1.5rem;
  line-height: 1.55;
  opacity: 0.85;
}

/* Featured guide layout (used for Maribel in Capítulo II) */
.pm-guide-featured {
  display: grid;
  grid-template-columns: minmax(160px, 35%) 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(31, 78, 95, 0.15);
}

.pm-guide-featured__photo {
  margin: 0;
}

.pm-guide-featured__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.pm-guide-featured__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp--preset--color--brand-earth);
  font-weight: 600;
}

.pm-guide-featured__name {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.6rem;
  font-weight: 500;
  margin: 0.3rem 0 0.5rem;
}

@media (max-width: 640px) {
  .pm-guide-featured {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Chapter-image — inline image inside chapter body. Soft rounded corners,
 * cap height so portrait shots don't dominate the chapter. */
.pm-chapter-image {
  margin: 2.5rem auto;
  max-width: 720px;
}

/* Credential badge — small centered logo + italic serif caption.
 * Used for the "Instructora Oficial" mark in La Voz del Útero. The source
 * artwork is 113x123 so we hold it at native size to avoid pixelation. */
.wp-block-image.pm-instructor-badge,
.pm-instructor-badge {
  max-width: 140px;
  margin: 2rem auto !important;
  text-align: center;
}
.pm-instructor-badge img {
  display: block;
  width: 113px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
  box-shadow: none;
}
.pm-instructor-badge figcaption,
.pm-instructor-badge .wp-element-caption {
  font-family: var(--wp--preset--font-family--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--wp--preset--color--brand-water);
  margin-top: 0.65rem;
  letter-spacing: 0.04em;
  text-align: center;
}

.pm-chapter-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(40, 68, 71, 0.12);
}

/* Photo collage — asymmetric 3-photo grid with subtle rotations,
 * inspired by jleerivera. Used inside chapter body as a visual break. */
.pm-collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  max-width: 720px;
  margin: 3rem auto;
  aspect-ratio: 4 / 3;
}

.pm-collage>.wp-block-image:nth-of-type(1) {
  grid-row: 1 / span 2;
  transform: rotate(-1deg);
}

.pm-collage>.wp-block-image:nth-of-type(2) {
  transform: rotate(1.5deg);
}

.pm-collage>.wp-block-image:nth-of-type(3) {
  transform: rotate(-2deg);
}

.pm-collage>.wp-block-image,
.pm-collage>figure {
  margin: 0;
  height: 100%;
}

.pm-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(40, 68, 71, 0.15);
}

@media (max-width: 640px) {
  .pm-collage {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    aspect-ratio: auto;
  }

  .pm-collage>.wp-block-image:nth-of-type(1) {
    grid-row: auto;
  }
}

/* CTA pill — applied to .pm-cta-link inside cards in chapter IV.
 * Inspired by jleerivera's coral pill buttons. */
.pm-chapter--dark .pm-card .pm-cta-link {
  margin-top: 1rem;
}

.pm-chapter--dark .pm-card .pm-cta-link a {
  display: inline-block;
  background: var(--wp--preset--color--brand-earth);
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease,
    box-shadow 200ms ease;
}

.pm-chapter--dark .pm-card .pm-cta-link a:hover {
  background: var(--wp--preset--color--brand-bronze);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(40, 68, 71, 0.18);
}

/* Team-grid — subtle rotation on each photo (jleerivera-inspired)
 * to feel like community, not catalog. Scoped to chapter context. */
.pm-chapter .pm-team-member:nth-child(4n+1) .pm-team-member__photo {
  transform: rotate(-1.5deg);
}

.pm-chapter .pm-team-member:nth-child(4n+2) .pm-team-member__photo {
  transform: rotate(0.8deg);
}

.pm-chapter .pm-team-member:nth-child(4n+3) .pm-team-member__photo {
  transform: rotate(-0.5deg);
}

.pm-chapter .pm-team-member:nth-child(4n) .pm-team-member__photo {
  transform: rotate(1.2deg);
}

.pm-chapter .pm-team-member__photo {
  transition: transform 300ms ease;
}

.pm-chapter .pm-team-member:hover .pm-team-member__photo {
  transform: rotate(0deg) scale(1.02);
}

/* Announcement banner (used for Parteras-Cuidadoras in Capítulo III) */
.pm-announcement-banner {
  background: var(--wp--preset--color--brand-bronze);
  color: var(--wp--preset--color--brand-cream);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

.pm-announcement-banner__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.pm-announcement-banner__title {
  font-family: var(--wp--preset--font-family--serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0.15rem 0 0;
}

.pm-announcement-banner__date {
  font-size: 0.9rem;
  opacity: 0.9;
}

@media (max-width: 560px) {
  .pm-announcement-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===========================================================
 * "Respiro" utilities — botanical accents to give breathing room
 * to long-form chapter text without shortening Alejandra's voice.
 * =========================================================== */

/* Botanical divider — short horizontal line + 4-petal flower at center.
 * Used between thematic paragraph groups within a chapter. */
.pm-divider-botanical.wp-block-separator,
hr.pm-divider-botanical {
  border: 0;
  height: 16px;
  width: 80px;
  max-width: 80px;
  margin: 2.25rem auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 16' fill='none'%3E%3Cline x1='0' y1='8' x2='32' y2='8' stroke='%23786146' stroke-width='.6'/%3E%3Cline x1='48' y1='8' x2='80' y2='8' stroke='%23786146' stroke-width='.6'/%3E%3Cpath d='M40 4Q42 6 40 8Q38 6 40 4Z' fill='%23C87961'/%3E%3Cpath d='M44 8Q42 10 40 8Q42 6 44 8Z' fill='%23C87961'/%3E%3Cpath d='M40 12Q38 10 40 8Q42 10 40 12Z' fill='%23C87961'/%3E%3Cpath d='M36 8Q38 6 40 8Q38 10 36 8Z' fill='%23C87961'/%3E%3Ccircle cx='40' cy='8' r='1' fill='%23786146'/%3E%3C/svg%3E");
}

/* Sub-section title — italic serif, with sprig icon and dotted rule.
 * Used inside chapters to label thematic sub-blocks (e.g. "Tejer la placenta"). */
.wp-block-heading.pm-subsec-title,
.pm-subsec-title {
  font-family: var(--wp--preset--font-family--serif);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--wp--preset--color--brand-bronze);
  margin: 2.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pm-subsec-title::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.65;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M9 3v13' stroke='%23786146' stroke-width='.8' stroke-linecap='round'/%3E%3Cellipse cx='5.5' cy='7' rx='2.2' ry='1' transform='rotate(-35 5.5 7)' fill='%23786146' opacity='.75'/%3E%3Cellipse cx='12.5' cy='10' rx='2.2' ry='1' transform='rotate(35 12.5 10)' fill='%23786146' opacity='.75'/%3E%3Cellipse cx='5.5' cy='13' rx='1.8' ry='.9' transform='rotate(-35 5.5 13)' fill='%23786146' opacity='.75'/%3E%3Ccircle cx='9' cy='3' r='1.5' fill='%23C87961' opacity='.85'/%3E%3C/svg%3E");
}

.pm-subsec-title::after {
  content: "";
  flex: 1 1 auto;
  border-bottom: 1px dotted rgba(120, 97, 70, 0.35);
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .wp-block-heading.pm-subsec-title {
    font-size: 1.1rem;
  }
}

/* Inline pull-quote — distilled phrase as visual rest between paragraphs.
 * Lighter than pm-pullquote-rule; uses ornament dingbat above and below. */
.wp-block-quote.pm-pullquote-inline,
blockquote.pm-pullquote-inline {
  border: 0;
  padding: 1.5rem 1rem;
  margin: 2.5rem auto;
  max-width: 540px;
  text-align: center;
}

.pm-pullquote-inline p {
  font-family: var(--wp--preset--font-family--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--wp--preset--color--brand-water);
  margin: 0;
}

.pm-pullquote-inline::before,
.pm-pullquote-inline::after {
  content: "";
  display: block;
  width: 40px;
  height: 8px;
  margin: 0.55rem auto;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.75;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8' fill='none'%3E%3Cline x1='0' y1='4' x2='15' y2='4' stroke='%23C87961' stroke-width='.7'/%3E%3Cline x1='25' y1='4' x2='40' y2='4' stroke='%23C87961' stroke-width='.7'/%3E%3Cpath d='M20 1Q22 3 20 4Q18 3 20 1Z' fill='%23C87961'/%3E%3Cpath d='M23 4Q21 6 20 4Q21 2 23 4Z' fill='%23C87961'/%3E%3Cpath d='M20 7Q18 5 20 4Q22 5 20 7Z' fill='%23C87961'/%3E%3Cpath d='M17 4Q19 2 20 4Q19 6 17 4Z' fill='%23C87961'/%3E%3C/svg%3E");
}

@media (max-width: 640px) {
  .pm-pullquote-inline p {
    font-size: 1.1rem;
  }
}

/* Dark-chapter overrides — sub-section titles, dotted rules, inline
 * pull-quotes and botanical dividers default to bronze/coral, which
 * have poor contrast on the dark teal (.pm-chapter--dark) background.
 * Lighten them so they stay readable. */
.pm-chapter--dark .pm-subsec-title,
.pm-chapter--dark .wp-block-heading.pm-subsec-title {
  color: var(--wp--preset--color--brand-water-light);
}

.pm-chapter--dark .pm-subsec-title::before {
  /* The sprig icon is a bronze SVG — brighten so it reads on teal. */
  filter: brightness(2.1) saturate(0.5);
}

.pm-chapter--dark .pm-subsec-title::after {
  border-bottom-color: rgba(224, 242, 241, 0.3);
}

.pm-chapter--dark .pm-pullquote-inline p {
  color: var(--wp--preset--color--brand-cream);
}

.pm-chapter--dark .pm-pullquote-rule p,
.pm-chapter--dark .pm-pullquote-rule cite {
  color: var(--wp--preset--color--brand-cream);
}

.pm-chapter--dark .pm-divider-botanical.wp-block-separator,
.pm-chapter--dark hr.pm-divider-botanical {
  filter: brightness(1.8);
}

.pm-chapter--dark .pm-pullquote-inline::before,
.pm-chapter--dark .pm-pullquote-inline::after {
  filter: brightness(1.6);
}