/* ============================================================
   LA CATEDRAL — V2 "GÓTICA"
   Arquitectura gótica clara · piedra caliza + morado suave + oro viejo
   Tipografía: Cinzel (display) + Source Serif + Inter
   ============================================================ */

:root {
  --piedra:       #F4EFE5;
  --piedra-2:     #E8DECF;
  --piedra-3:     #D5C4AD;
  --marfil:       #2D241A;
  --marfil-2:     #6A5A47;
  --marfil-3:     #FFF9EF;
  --morado:       #7B557B;
  --morado-d:     #5C3A63;
  --morado-l:     #A987A6;
  --dorado:       #AA8641;
  --dorado-d:     #7D6130;
  --dorado-l:     #D8B564;

  --rule:         rgba(125, 97, 48, 0.22);
  --rule-strong:  rgba(125, 97, 48, 0.45);

  --max:          1240px;
  --pad-x:        clamp(1.25rem, 4vw, 3rem);

  --font-display: 'Cinzel', 'Trajan Pro', serif;
  --font-serif:   'Source Serif 4', 'Source Serif Pro', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-serif);
  color: var(--marfil);
  background: var(--piedra);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
button { font: inherit; cursor: pointer; background: transparent; border: 0; color: inherit; }
::selection { background: var(--dorado); color: var(--marfil); }

/* ===== MOTION LAYER ===== */
.motion-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--dorado), var(--morado-l), var(--dorado-l));
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
.motion-artifact,
.motion-card-glint {
  pointer-events: none;
}
.motion-artifact {
  position: absolute;
  z-index: 0;
  color: var(--dorado);
  opacity: 0.18;
  overflow: visible;
}
.motion-artifact svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hero > .motion-artifact,
.section > .motion-artifact,
.footer > .motion-artifact {
  position: absolute !important;
  z-index: 0;
}
.artifact__fill {
  opacity: 0.16;
}
.artifact__fill--purple,
.artifact__fill--rose {
  fill: var(--morado);
}
.artifact__fill--stone {
  fill: var(--piedra-2);
}
.artifact__line,
.artifact__heavy {
  fill: none;
  stroke: currentColor;
  vector-effect: non-scaling-stroke;
}
.artifact__line {
  stroke-width: 1;
  opacity: 0.52;
}
.artifact__line--fine {
  opacity: 0.32;
}
.artifact__heavy {
  stroke-width: 2;
  opacity: 0.78;
}
.artifact__solid {
  fill: currentColor;
  opacity: 0.62;
}
.motion-artifact--hero-lancets {
  width: clamp(260px, 30vw, 440px);
  height: clamp(360px, 44vw, 620px);
  right: max(-6rem, calc((100vw - var(--max)) / 2 - 7rem));
  bottom: -3rem;
}
.motion-artifact--catalog-rose {
  width: clamp(170px, 21vw, 300px);
  height: clamp(170px, 21vw, 300px);
  right: max(1rem, calc((100vw - var(--max)) / 2 - 1rem));
  top: 1.25rem;
}
.motion-artifact--taller-tracery {
  width: clamp(180px, 24vw, 300px);
  height: clamp(420px, 50vw, 660px);
  left: max(-7rem, calc((100vw - var(--max)) / 2 - 7rem));
  top: 50%;
  translate: 0 -50%;
}
.motion-artifact--comprar-cloister {
  width: min(88vw, 860px);
  height: min(30vw, 280px);
  left: 50%;
  bottom: 0.5rem;
  translate: -50% 0;
}
.motion-artifact--footer-seal {
  width: clamp(160px, 18vw, 280px);
  height: clamp(160px, 18vw, 280px);
  right: max(1rem, calc((100vw - var(--max)) / 2));
  top: 1.2rem;
}
.motion-card-glint {
  position: absolute;
  inset: -18% auto auto 0;
  width: 44%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255, 249, 239, 0.34), rgba(216, 181, 100, 0.2), transparent);
  opacity: 0;
  mix-blend-mode: screen;
}
.motion-enhanced .card,
.motion-enhanced .cta,
.motion-enhanced .filter,
.motion-enhanced .ornament svg,
.motion-enhanced .motion-artifact,
.motion-enhanced .motion-card-glint {
  will-change: transform, opacity;
}
[hidden] {
  display: none !important;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== ORNAMENTS ===== */
.ornament {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  color: var(--dorado);
}
.ornament svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ornament__fill {
  fill: var(--morado);
  opacity: 0.42;
}
.ornament__line,
.ornament__heavy {
  fill: none;
  stroke: currentColor;
  vector-effect: non-scaling-stroke;
}
.ornament__line {
  stroke-width: 1;
  opacity: 0.54;
}
.ornament__heavy {
  stroke-width: 2;
  opacity: 0.82;
}
.ornament__solid {
  fill: currentColor;
  opacity: 0.82;
}
.section,
.footer {
  position: relative;
  overflow: hidden;
}
.section > :not(.ornament):not(.motion-artifact),
.footer > :not(.ornament):not(.motion-artifact) {
  position: relative;
  z-index: 1;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1.15rem var(--pad-x);
  background: rgba(244, 239, 229, 0.94);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  color: var(--marfil);
}
.brand__logo {
  display: block;
  width: min(178px, 42vw);
  height: auto;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav a {
  color: var(--marfil-2);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { color: var(--dorado); border-bottom-color: var(--dorado); }
@media (max-width: 880px) {
  .header { grid-template-columns: auto auto; }
  .nav { display: none; }
}

/* ===== CTA ===== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--dorado);
  transition: all 0.35s var(--ease);
  white-space: nowrap;
  position: relative;
}
.cta--primary { background: var(--dorado); color: var(--marfil); }
.cta--primary:hover { background: var(--dorado-l); border-color: var(--dorado-l); }
.cta--ghost { background: transparent; color: var(--dorado); }
.cta--ghost:hover { background: var(--dorado); color: var(--marfil); }
.cta--mini {
  padding: 0.55rem 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  border-color: var(--rule-strong);
  color: var(--marfil);
}
.cta--mini:hover { background: var(--dorado); color: var(--marfil); border-color: var(--dorado); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad-x) clamp(2.5rem, 6vw, 5rem);
  background: var(--piedra);
  overflow: hidden;
  min-height: clamp(560px, 84vh, 760px);
  display: flex;
  align-items: center;
}
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  background:
    linear-gradient(90deg, rgba(244, 239, 229, 0.98) 0%, rgba(244, 239, 229, 0.92) 30%, rgba(244, 239, 229, 0.5) 43%, rgba(244, 239, 229, 0.1) 58%, transparent 72%),
    linear-gradient(180deg, rgba(244, 239, 229, 0.42), rgba(244, 239, 229, 0.02) 34%, rgba(244, 239, 229, 0.24));
  z-index: 1;
}
.hero::after {
  top: auto;
  z-index: 1;
  height: 26%;
  background:
    linear-gradient(100deg, transparent 8%, rgba(170, 134, 65, 0.11) 8.2% 8.4%, transparent 8.6%),
    linear-gradient(80deg, transparent 8%, rgba(170, 134, 65, 0.11) 8.2% 8.4%, transparent 8.6%),
    linear-gradient(180deg, transparent, rgba(244, 239, 229, 0.72));
}
.hero__image {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: min(74vw, 1100px);
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 13%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.45) 13%, #000 30%);
}
.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(1.08) contrast(1.08);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}
.hero__copy {
  max-width: 600px;
  text-shadow: 0 1px 0 rgba(255, 249, 239, 0.58);
}
.hero__eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--dorado);
  margin-bottom: 1.75rem;
  letter-spacing: 0.05em;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  color: var(--marfil);
  text-transform: uppercase;
}
.hero__title--logo {
  max-width: 680px;
  margin-bottom: 2rem;
}
.hero__logo {
  display: block;
  width: 100%;
  height: auto;
}
.hero__lead {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--marfil-2);
  max-width: 30rem;
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero__meta {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--marfil-2);
  opacity: 0.75;
  border-top: 1px solid var(--rule);
  padding-top: 1.25rem;
}
@media (max-width: 880px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__image {
    width: 100%;
    opacity: 0.82;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(244, 239, 229, 0.8) 0%, rgba(244, 239, 229, 0.42) 40%, rgba(244, 239, 229, 0.94) 100%),
      linear-gradient(90deg, rgba(244, 239, 229, 0.92), rgba(244, 239, 229, 0.26));
  }
}
@media (max-width: 720px) {
  .header {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0.9rem var(--pad-x);
  }
  .header .cta--mini { display: none; }
  .brand__logo { width: min(170px, 58vw); }
  .hero {
    min-height: 730px;
    min-height: min(730px, calc(100svh - 5.5rem));
    padding-top: 3.25rem;
    align-items: flex-end;
  }
  .hero__image img { object-position: center center; }
  .hero__inner,
  .hero__copy {
    min-width: 0;
  }
  .hero__title {
    font-size: clamp(2.45rem, 11.5vw, 3rem);
    line-height: 0.98;
    letter-spacing: 0.01em;
    max-width: 100%;
  }
  .hero__title--logo { margin-bottom: 1.75rem; }
  .hero__lead {
    max-width: 31ch;
    font-size: 1.02rem;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: min(100%, calc(100vw - (2 * var(--pad-x))));
  }
  .hero__actions .cta,
  .comprar__cta .cta {
    justify-content: center;
    width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
  }
  .hero__meta {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }
  .section__title { font-size: clamp(1.8rem, 10vw, 2.6rem); }
  .catalog-notes {
    margin-top: -1.8rem;
    margin-bottom: 2rem;
    justify-content: flex-start;
  }
  .catalog-notes span {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }
  .filters { justify-content: flex-start; }
  .filter {
    flex: 1 1 calc(50% - 0.5rem);
    justify-content: center;
    padding: 0.55rem 0.75rem;
    letter-spacing: 0.14em;
  }
  .grid { grid-template-columns: 1fr; }
}

/* ===== SECTION ===== */
.section {
  padding: clamp(4rem, 9vw, 7rem) var(--pad-x);
  max-width: var(--max);
  margin: 0 auto;
}
.section--catalogo {
  isolation: isolate;
}
.section--catalogo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(100% 78% at 50% 100%, transparent 0 62%, rgba(170, 134, 65, 0.16) 63% 64%, transparent 65%) top center / 240px 260px repeat-x,
    linear-gradient(90deg, transparent 0 10%, rgba(170, 134, 65, 0.12) 10.2% 10.45%, transparent 10.7% 89.3%, rgba(170, 134, 65, 0.12) 89.55% 89.8%, transparent 90%) 0 0 / 240px 100% repeat-x;
  opacity: 0.55;
}
.ornament--catalog-rose {
  width: clamp(120px, 22vw, 220px);
  height: clamp(120px, 22vw, 220px);
  top: 1.75rem;
  right: max(1rem, calc((100vw - var(--max)) / 2 - 2rem));
  opacity: 0.28;
}
.ornament--catalog-arches {
  width: clamp(250px, 40vw, 430px);
  height: clamp(220px, 34vw, 370px);
  left: max(-8rem, calc((100vw - var(--max)) / 2 - 14rem));
  bottom: 1.5rem;
  opacity: 0.18;
}
.section__header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section__kicker {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--dorado);
  letter-spacing: 0.3em;
  margin-bottom: 1rem;
  font-weight: 500;
}
.section__title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--marfil);
  margin-bottom: 1.25rem;
}
.section__title::after {
  content: '✠';
  display: block;
  font-size: 1.3rem;
  color: var(--dorado);
  margin-top: 1rem;
  letter-spacing: 0;
}
.section__lead {
  max-width: 38rem;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--marfil-2);
  line-height: 1.7;
}
.catalog-notes {
  max-width: 900px;
  margin: -1.7rem auto 2.7rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.catalog-notes span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(170, 134, 65, 0.3);
  background: rgba(255, 249, 239, 0.48);
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--marfil-2);
}

/* ===== FILTERS ===== */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--rule-strong);
  color: var(--marfil-2);
  transition: all 0.3s var(--ease);
}
.filter:hover { border-color: var(--dorado); color: var(--marfil); }
.filter.is-active { background: var(--dorado); color: var(--marfil); border-color: var(--dorado); }

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(45, 36, 26, 0.28);
  display: inline-block;
}
.dot--blanco  { background: #FFF9EF; }
.dot--rojo    { background: #9D3430; }
.dot--verde   { background: #4F7350; }
.dot--morado  { background: #7B557B; }
.dot--dorado  { background: #AA8641; }
.dot--rosa    { background: #C68A95; }
.dot--negro   { background: #1A1410; }

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.card {
  background: var(--piedra-2);
  border: 1px solid var(--rule);
  transition: all 0.4s var(--ease);
  overflow: hidden;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(170, 134, 65, 0.09));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-4px);
  box-shadow: 0 22px 55px -28px rgba(77, 56, 30, 0.38);
}
.card:hover::before { opacity: 1; }

.card__arch {
  aspect-ratio: 3 / 4;
  padding: 1rem 1rem 0;
  background: var(--piedra);
  position: relative;
  overflow: hidden;
}
.card__arch::before,
.card__arch::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.card__arch::before {
  inset: 0.95rem 0.85rem 0;
  border: 1px solid rgba(170, 134, 65, 0.22);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(90deg, transparent 0 9%, rgba(170, 134, 65, 0.16) 9.2% 10%, transparent 10.2% 89.8%, rgba(170, 134, 65, 0.16) 90% 90.8%, transparent 91%),
    radial-gradient(82% 54% at 50% 0, rgba(123, 85, 123, 0.08), transparent 68%);
}
.card__arch::after {
  left: 50%;
  top: 1.35rem;
  width: 48%;
  height: 34%;
  border: 1px solid rgba(170, 134, 65, 0.18);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}
.card__arch svg { width: 100%; height: 100%; }
.card__arch svg {
  position: relative;
  z-index: 1;
}

.card__body { padding: 1.5rem 1.5rem 1.75rem; }
.card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dorado);
  font-weight: 500;
  margin-bottom: 0.85rem;
}
.card__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--marfil);
}
.card__desc {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--marfil-2);
  line-height: 1.6;
  margin-bottom: 1.3rem;
}
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--dorado);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--dorado);
  transition: all 0.3s var(--ease);
}
.card__cta:hover { color: var(--marfil); border-bottom-color: var(--marfil); transform: translateX(4px); }

/* ===== TALLER ===== */
.section--taller {
  max-width: none;
  margin: 0;
  background: linear-gradient(180deg, var(--piedra-2) 0%, var(--piedra) 100%);
  padding-left: 0;
  padding-right: 0;
  isolation: isolate;
}
.section--taller::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(110% 84% at 50% 100%, transparent 0 61%, rgba(170, 134, 65, 0.13) 62% 63%, transparent 64%) top center / 260px 310px repeat-x,
    linear-gradient(90deg, transparent 0 49.6%, rgba(170, 134, 65, 0.1) 49.8% 50.2%, transparent 50.4%) top center / 260px 100% repeat-x;
  opacity: 0.5;
}
.ornament--taller-window {
  width: clamp(300px, 42vw, 560px);
  height: clamp(420px, 58vw, 760px);
  right: max(-14rem, calc((100vw - var(--max)) / 2 - 16rem));
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.14;
}
.taller {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.taller__art { max-width: 320px; justify-self: center; filter: drop-shadow(0 15px 35px rgba(77, 56, 30, 0.24)); }
.taller__title {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  color: var(--marfil);
}
.taller__lead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.4;
  color: var(--morado);
  margin-bottom: 1.5rem;
}
.taller__copy p {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--marfil-2);
  margin-bottom: 1rem;
}
.taller__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.taller__stats div { text-align: left; }
.taller__stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--dorado);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.taller__stats span {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--marfil-2);
  opacity: 0.8;
}
@media (max-width: 880px) {
  .taller { grid-template-columns: 1fr; gap: 2.5rem; }
  .taller__art { max-width: 240px; }
  .taller__stats { grid-template-columns: 1fr; gap: 1rem; }
}

/* ===== STEPS ===== */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto 3rem;
  padding: 0;
}
.steps li {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  background: var(--piedra-2);
  border: 1px solid var(--rule);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.steps li::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 1rem;
  z-index: -1;
  width: min(70%, 210px);
  height: 74%;
  border: 1px solid rgba(170, 134, 65, 0.2);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  transform: translateX(-50%);
}
.steps li::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 8px;
  background: linear-gradient(90deg, transparent, rgba(170, 134, 65, 0.28), transparent);
}
.steps__num {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--marfil);
  background: var(--dorado);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}
.steps h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.7rem;
  color: var(--marfil);
}
.steps p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--marfil-2);
  line-height: 1.6;
}
.comprar__cta {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.section--comprar {
  isolation: isolate;
}
.section--comprar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 7%, rgba(170, 134, 65, 0.12) 7.2% 7.5%, transparent 7.8% 92.2%, rgba(170, 134, 65, 0.12) 92.5% 92.8%, transparent 93%),
    radial-gradient(90% 70% at 50% 100%, transparent 0 64%, rgba(170, 134, 65, 0.14) 65% 66%, transparent 67%);
  opacity: 0.32;
}
.comprar__sanctuary {
  position: relative;
  z-index: 1;
  width: min(100%, 860px);
  margin: -1.4rem auto 2.75rem;
  color: var(--dorado);
  opacity: 0.9;
  filter: drop-shadow(0 24px 46px rgba(77, 56, 30, 0.13));
}
.comprar__sanctuary svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.sanctuary__arch {
  fill: rgba(216, 201, 178, 0.42);
  stroke: currentColor;
  stroke-width: 2;
}
.sanctuary__arch--main {
  fill: rgba(123, 85, 123, 0.1);
}
.sanctuary__line,
.sanctuary__rose-line,
.sanctuary__pillars {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.sanctuary__line--fine {
  opacity: 0.42;
}
.sanctuary__rose-fill {
  fill: url(#sanctuary-purple-v2);
  opacity: 0.64;
}
.sanctuary__rose-solid,
.sanctuary__frontal {
  fill: var(--morado);
}
.sanctuary__rose-solid {
  opacity: 0.76;
}
.sanctuary__step {
  fill: rgba(213, 196, 173, 0.52);
  stroke: currentColor;
  stroke-width: 1;
}
.sanctuary__altar {
  fill: rgba(170, 134, 65, 0.2);
  stroke: currentColor;
  stroke-width: 1;
}
.sanctuary__mensal,
.sanctuary__flame {
  fill: var(--dorado-l);
  stroke: var(--dorado-d);
  stroke-width: 1;
}
.sanctuary__frontal {
  opacity: 0.64;
  stroke: currentColor;
  stroke-width: 1;
}
.sanctuary__cross {
  fill: none;
  stroke: var(--marfil-3);
  stroke-width: 5;
  stroke-linecap: square;
}
.ornament--comprar-arches {
  width: min(92vw, 760px);
  height: min(46vw, 360px);
  left: 50%;
  bottom: 0.5rem;
  transform: translateX(-50%);
  opacity: 0.2;
}
.ornament--comprar-rose {
  width: clamp(100px, 16vw, 180px);
  height: clamp(100px, 16vw, 180px);
  top: 1.5rem;
  left: max(1rem, calc((100vw - var(--max)) / 2));
  opacity: 0.24;
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 1rem; }
  .comprar__sanctuary {
    width: calc(100% + (2 * var(--pad-x)));
    max-width: none;
    margin-left: calc(-1 * var(--pad-x));
    margin-right: calc(-1 * var(--pad-x));
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--piedra-3);
  color: var(--marfil-2);
  padding: clamp(3rem, 6vw, 5rem) var(--pad-x) 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid var(--rule);
  isolation: isolate;
}
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(100% 92% at 50% 100%, transparent 0 61%, rgba(125, 97, 48, 0.18) 62% 63%, transparent 64%) top center / 220px 240px repeat-x,
    linear-gradient(90deg, transparent 0 12%, rgba(125, 97, 48, 0.12) 12.2% 12.55%, transparent 12.8% 87.2%, rgba(125, 97, 48, 0.12) 87.45% 87.8%, transparent 88%) 0 0 / 220px 100% repeat-x;
  opacity: 0.38;
}
.ornament--footer-rose {
  width: clamp(150px, 24vw, 260px);
  height: clamp(150px, 24vw, 260px);
  right: max(1rem, calc((100vw - var(--max)) / 2));
  top: 1.5rem;
  opacity: 0.16;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}
.footer__logo {
  display: block;
  width: min(260px, 100%);
  height: auto;
  margin-bottom: 0.8rem;
}
.footer__tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--marfil-2);
  opacity: 0.85;
}
.footer__col h4 {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer__col p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--marfil-2);
}
.footer__col a { border-bottom: 1px solid transparent; transition: border-color 0.25s var(--ease); }
.footer__col a:hover { color: var(--dorado); border-bottom-color: var(--dorado); }
.footer__legal {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: 0.65rem;
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--marfil-2);
  opacity: 0.6;
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .ornament--catalog-rose {
    top: 1rem;
    right: -2.75rem;
    opacity: 0.18;
  }
  .ornament--catalog-arches {
    left: -10rem;
    bottom: 8rem;
    opacity: 0.13;
  }
  .ornament--taller-window {
    width: 320px;
    height: 450px;
    right: -11rem;
    top: 18rem;
    opacity: 0.11;
  }
  .ornament--comprar-arches {
    width: 560px;
    height: 280px;
    bottom: 4rem;
    opacity: 0.12;
  }
  .ornament--comprar-rose {
    left: -2rem;
    opacity: 0.18;
  }
  .ornament--footer-rose {
    right: -4rem;
    top: 2rem;
    opacity: 0.12;
  }
  .motion-artifact--hero-lancets {
    width: 280px;
    height: 390px;
    right: -8rem;
    bottom: 2rem;
  }
  .motion-artifact--catalog-rose {
    width: 190px;
    height: 190px;
    right: -4.5rem;
    top: 0.75rem;
  }
  .motion-artifact--taller-tracery {
    width: 190px;
    height: 460px;
    left: -6rem;
  }
  .motion-artifact--comprar-cloister {
    width: 560px;
    height: 190px;
    bottom: 3.5rem;
  }
  .motion-artifact--footer-seal {
    width: 190px;
    height: 190px;
    right: -4.5rem;
    top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
