/* Hacienda botánica · Boda — theme de muestra v1 (ADR-078).
 *
 * Papel marfil con grano, olivo y agave en acuarela, y el sello de terracota
 * con el monograma de la pareja. La paleta manda: el fondo es el papel, el
 * primario la terracota con que se escribe y se rellena, el acento la salvia
 * de las ilustraciones y los filetes. Fraunces para nombres y títulos, con el
 * «&» en itálica de terracota; Manrope para leer.
 *
 * Todo el movimiento vive bajo `prefers-reduced-motion: no-preference`.
 */
@font-face {
  font-family: HacDisplay;
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('./fonts/fraunces-normal-latin.woff2') format('woff2');
}
@font-face {
  font-family: HacDisplay;
  font-style: italic;
  font-weight: 300 600;
  font-display: swap;
  src: url('./fonts/fraunces-italic-latin.woff2') format('woff2');
}

[data-evento-theme='hacienda-boda'],
[data-evento-theme='hacienda-boda'] .hac-experience {
  --hac-paper: var(--event-background, #f8f4ec);
  --hac-ink: var(--event-text, #2f3a2b);
  --hac-terra: var(--event-primary, #9c4a2c);
  --hac-sage: var(--event-accent, #7e8f6a);
  --hac-on-terra: var(--event-on-primary, #ffffff);
  --hac-paper-2: color-mix(in srgb, var(--hac-sage) 9%, var(--hac-paper));
  --hac-card: color-mix(in srgb, var(--hac-paper) 70%, #ffffff);
  --hac-muted: color-mix(in srgb, var(--hac-ink) 74%, var(--hac-paper));
  --hac-line: color-mix(in srgb, var(--hac-sage) 45%, transparent);
  --hac-sage-deep: color-mix(in srgb, var(--hac-sage) 70%, var(--hac-ink));
  --hac-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --hac-display: HacDisplay, Fraunces, Georgia, serif;
  --hac-sans: Manrope, system-ui, sans-serif;
  --hac-label-size: 0.72rem;
  --hac-title-size: clamp(2rem, 7.5vw, 2.9rem);
  --hac-column: 42rem;
  --hac-gutter: clamp(1.25rem, 5vw, 2.5rem);
  --hac-ease: cubic-bezier(0.22, 1, 0.36, 1);
  accent-color: var(--hac-terra);
}

[data-evento-theme='hacienda-boda'].event-page {
  background: var(--hac-paper);
}
[data-evento-theme='hacienda-boda'].event-page main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
[data-evento-theme='hacienda-boda'] .hac-experience {
  position: relative;
  width: 100%;
  overflow: clip;
  background: var(--hac-grain), var(--hac-paper);
  color: var(--hac-ink);
  font: 400 1rem/1.7 var(--hac-sans);
  -webkit-font-smoothing: antialiased;
}
[data-evento-theme='hacienda-boda'] .hac-experience :where(h1, h2, h3, p, ul, ol, figure) {
  margin: 0;
}
[data-evento-theme='hacienda-boda'] .hac-experience :where(ul, ol) {
  padding: 0;
  list-style: none;
}
[data-evento-theme='hacienda-boda'] .hac-experience a:not(.hac-button) {
  color: var(--hac-terra);
}
[data-evento-theme='hacienda-boda'] .hac-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Ilustración */
[data-evento-theme='hacienda-boda'] .hac-botanical {
  display: block;
  overflow: visible;
  pointer-events: none;
}
[data-evento-theme='hacienda-boda'] .hac-botanical-stem {
  fill: none;
  stroke: var(--hac-sage-deep);
  stroke-width: 1.4;
  stroke-linecap: round;
  opacity: 0.7;
}
[data-evento-theme='hacienda-boda'] .hac-botanical-leaf {
  fill: color-mix(in srgb, var(--hac-sage) 55%, var(--hac-paper));
  stroke: var(--hac-sage-deep);
  stroke-width: 0.7;
  stroke-linejoin: round;
}
[data-evento-theme='hacienda-boda'] .hac-botanical-rib {
  fill: none;
  stroke: var(--hac-sage-deep);
  stroke-width: 0.5;
  stroke-linecap: round;
  opacity: 0.7;
}
[data-evento-theme='hacienda-boda'] .hac-botanical-fruit {
  fill: var(--hac-sage-deep);
  opacity: 0.8;
}
[data-evento-theme='hacienda-boda'] .hac-botanical-blade {
  fill: color-mix(in srgb, var(--hac-sage) 60%, #dfe6d3);
  stroke: var(--hac-sage-deep);
  stroke-width: 0.7;
  stroke-linejoin: round;
}

/* Tipografía común */
[data-evento-theme='hacienda-boda'] .hac-label {
  color: var(--hac-terra);
  font: 700 var(--hac-label-size) / 1.4 var(--hac-sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
[data-evento-theme='hacienda-boda'] .hac-label-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
[data-evento-theme='hacienda-boda'] .hac-icon {
  width: 1.3rem;
  height: 1.3rem;
  flex: none;
}
[data-evento-theme='hacienda-boda'] .hac-title {
  color: var(--hac-ink);
  font: 400 var(--hac-title-size) / 1.1 var(--hac-display);
  font-variation-settings:
    'SOFT' 100,
    'WONK' 0;
  text-wrap: balance;
}
[data-evento-theme='hacienda-boda'] .hac-text {
  color: var(--hac-muted);
}
[data-evento-theme='hacienda-boda'] .hac-prose {
  white-space: pre-line;
}
[data-evento-theme='hacienda-boda'] .hac-text strong {
  color: var(--hac-terra);
  letter-spacing: 0.06em;
}

/* Secciones y tarjetas */
[data-evento-theme='hacienda-boda'] .hac-section {
  position: relative;
  padding: clamp(3.5rem, 11vw, 6rem) var(--hac-gutter);
}
[data-evento-theme='hacienda-boda'] .hac-inner {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  max-width: var(--hac-column);
  margin: 0 auto;
  text-align: center;
}
[data-evento-theme='hacienda-boda'] .hac-card {
  display: grid;
  gap: 0.8rem;
  padding: clamp(1.75rem, 6vw, 2.5rem);
  border: 1px solid var(--hac-line);
  border-radius: 1.5rem;
  background: var(--hac-card);
  box-shadow: 0 24px 50px -38px color-mix(in srgb, var(--hac-ink) 60%, transparent);
}

/* Botones */
[data-evento-theme='hacienda-boda'] .hac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}
[data-evento-theme='hacienda-boda'] .hac-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.3rem;
  border: 1.5px solid var(--hac-terra);
  border-radius: 0.8rem;
  background: transparent;
  color: var(--hac-terra);
  font: 700 0.8rem/1 var(--hac-sans);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
[data-evento-theme='hacienda-boda'] .hac-button .hac-icon {
  width: 1rem;
  height: 1rem;
}
[data-evento-theme='hacienda-boda'] .hac-button:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--hac-terra) 10%, transparent);
}
[data-evento-theme='hacienda-boda'] .hac-button-solid {
  background: var(--hac-terra);
  color: var(--hac-on-terra);
}
[data-evento-theme='hacienda-boda'] .hac-button-solid:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--hac-terra) 85%, #000);
}
[data-evento-theme='hacienda-boda'] .hac-button-light {
  border-color: var(--hac-on-terra);
  background: var(--hac-on-terra);
  color: var(--hac-terra);
}
[data-evento-theme='hacienda-boda'] :is(.hac-button, button, a):focus-visible {
  outline: 2px solid var(--hac-terra);
  outline-offset: 3px;
}

/* Sello */
[data-evento-theme='hacienda-boda'] .hac-seal-svg {
  display: block;
}
[data-evento-theme='hacienda-boda'] .hac-seal-disc {
  fill: var(--hac-terra);
}
[data-evento-theme='hacienda-boda'] .hac-seal-ring {
  fill: none;
  stroke: color-mix(in srgb, var(--hac-on-terra) 55%, transparent);
  stroke-width: 1;
}
[data-evento-theme='hacienda-boda'] .hac-seal-text {
  fill: var(--hac-on-terra);
  font: 700 11px var(--hac-sans);
  letter-spacing: 0.18em;
}
[data-evento-theme='hacienda-boda'] .hac-seal-mono {
  fill: var(--hac-on-terra);
  font: 400 44px var(--hac-display);
}
[data-evento-theme='hacienda-boda'] .hac-seal-amp {
  font-style: italic;
  font-size: 34px;
}

/* Portada */
[data-evento-theme='hacienda-boda'] .hac-hero {
  position: relative;
  display: grid;
  gap: 2.25rem;
  padding: clamp(1.5rem, 6vw, 3rem) var(--hac-gutter) clamp(3rem, 9vw, 5rem);
}
/* Las ramas asoman por encima de las esquinas de la foto, como hojas prensadas. */
[data-evento-theme='hacienda-boda'] .hac-hero-branch {
  position: absolute;
  top: 0.25rem;
  z-index: 2;
  width: min(40vw, 13rem);
  filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.18));
}
[data-evento-theme='hacienda-boda'] .hac-hero-branch-left {
  left: -1.25rem;
  rotate: 10deg;
}
[data-evento-theme='hacienda-boda'] .hac-hero-branch-right {
  right: -1.25rem;
  rotate: -10deg;
}
[data-evento-theme='hacienda-boda'] .hac-hero-text {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  text-align: center;
}
[data-evento-theme='hacienda-boda'] .hac-hero-seal {
  width: 7.5rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 10px 16px color-mix(in srgb, var(--hac-terra) 35%, transparent));
}
[data-evento-theme='hacienda-boda'] .hac-hero-kicker {
  color: var(--hac-sage-deep);
  font: italic 400 1.35rem/1 var(--hac-display);
}
[data-evento-theme='hacienda-boda'] .hac-hero-names {
  display: grid;
  justify-items: center;
  color: var(--hac-ink);
  font: 350 clamp(3.8rem, 18vw, 6.6rem) / 0.95 var(--hac-display);
  font-variation-settings:
    'SOFT' 100,
    'WONK' 1;
  letter-spacing: -0.02em;
}
[data-evento-theme='hacienda-boda'] .hac-amp {
  margin-block: -0.12em;
  color: var(--hac-terra);
  font-style: italic;
  font-weight: 300;
  font-size: 0.72em;
}
/* La fecha, protagonista: en Fraunces itálica, con la ciudad en etiqueta. */
[data-evento-theme='hacienda-boda'] .hac-hero-date {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--hac-ink);
  font: italic 400 clamp(1.3rem, 5vw, 1.7rem) / 1.2 var(--hac-display);
}
[data-evento-theme='hacienda-boda'] .hac-hero-city {
  color: var(--hac-terra);
  font: 700 0.78rem/1.4 var(--hac-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
[data-evento-theme='hacienda-boda'] .hac-hero-photo {
  position: relative;
  order: -1;
  width: min(100%, 34rem);
  margin: 0 auto;
}
[data-evento-theme='hacienda-boda'] .hac-hero-photo::before {
  content: '';
  position: absolute;
  inset: 0.9rem -0.9rem -0.9rem 0.9rem;
  border: 1.5px solid var(--hac-terra);
  border-radius: 1.5rem;
}
/* En el teléfono la foto deja sitio a los nombres en la primera pantalla. */
[data-evento-theme='hacienda-boda'] .hac-hero-photo img {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(20rem, 58svh, 32rem);
  border-radius: 1.5rem;
  object-fit: cover;
  object-position: 50% 30%;
}
[data-evento-theme='hacienda-boda'] .hac-hero-agave {
  position: absolute;
  bottom: -2.2rem;
  left: -1.8rem;
  width: 8.5rem;
}
[data-evento-theme='hacienda-boda'] .hac-music {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--hac-line);
  border-radius: 50%;
  background: var(--hac-card);
  color: var(--hac-terra);
  cursor: pointer;
}
[data-evento-theme='hacienda-boda'] .hac-music.is-playing {
  background: var(--hac-terra);
  color: var(--hac-on-terra);
}

/* Personal */
[data-evento-theme='hacienda-boda'] .hac-personal {
  max-width: var(--hac-column);
  margin: 0 auto;
  justify-items: center;
  text-align: center;
}
[data-evento-theme='hacienda-boda'] .hac-personal-seats {
  color: var(--hac-terra);
  font: italic 400 1.4rem/1.2 var(--hac-display);
}

/* Cuenta regresiva: una cifra protagonista */
[data-evento-theme='hacienda-boda'] .hac-countdown-section {
  background: var(--hac-paper-2);
}
[data-evento-theme='hacienda-boda'] .hac-countdown {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
}
[data-evento-theme='hacienda-boda'] .hac-countdown-lead {
  color: var(--hac-sage-deep);
  font: italic 400 1.5rem/1 var(--hac-display);
}
[data-evento-theme='hacienda-boda'] .hac-countdown-days {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--hac-terra);
  font: 300 clamp(5.5rem, 28vw, 9rem) / 0.9 var(--hac-display);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.03em;
}
[data-evento-theme='hacienda-boda'] .hac-countdown-days-label {
  color: var(--hac-ink);
  font: italic 400 1.6rem/1 var(--hac-display);
  letter-spacing: 0;
}
[data-evento-theme='hacienda-boda'] .hac-countdown-small {
  display: flex;
  gap: 1.25rem;
  color: var(--hac-muted);
  font: 600 0.85rem/1 var(--hac-sans);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
[data-evento-theme='hacienda-boda'] .hac-countdown-small > span {
  display: inline-flex;
  gap: 0.25rem;
}
[data-evento-theme='hacienda-boda'] .hac-countdown-done {
  display: none;
  color: var(--hac-terra);
  font: italic 400 2.4rem/1.1 var(--hac-display);
}
[data-evento-theme='hacienda-boda'] .hac-countdown.is-done > :not(.hac-countdown-done) {
  display: none;
}
[data-evento-theme='hacienda-boda'] .hac-countdown.is-done .hac-countdown-done {
  display: block;
}

/* Bienvenida */
[data-evento-theme='hacienda-boda'] .hac-sprig {
  width: 7rem;
}
[data-evento-theme='hacienda-boda'] .hac-welcome-title {
  color: var(--hac-terra);
  font: italic 400 clamp(2.2rem, 8vw, 3rem) / 1.1 var(--hac-display);
}
[data-evento-theme='hacienda-boda'] .hac-welcome-text {
  display: grid;
  gap: 1rem;
  color: var(--hac-ink);
  font: 400 clamp(1.15rem, 4.4vw, 1.35rem) / 1.6 var(--hac-display);
}
[data-evento-theme='hacienda-boda'] .hac-signature {
  color: var(--hac-sage-deep);
  font: italic 400 1.3rem/1 var(--hac-display);
}

/* Familia */
[data-evento-theme='hacienda-boda'] .hac-family-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 58rem;
  margin: 2.25rem auto 0;
}
[data-evento-theme='hacienda-boda'] .hac-family-card {
  justify-items: center;
  text-align: center;
}
[data-evento-theme='hacienda-boda'] .hac-names {
  display: grid;
  gap: 0.75rem;
  color: var(--hac-ink);
  font: 400 1.25rem/1.3 var(--hac-display);
}
[data-evento-theme='hacienda-boda'] .hac-names small {
  display: block;
  margin-top: 0.15rem;
  color: var(--hac-sage-deep);
  font: 700 0.64rem/1.4 var(--hac-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Ruta de sedes */
[data-evento-theme='hacienda-boda'] .hac-route {
  display: grid;
  gap: 2.5rem;
  max-width: 64rem;
  margin: 2.5rem auto 0;
}
[data-evento-theme='hacienda-boda'] .hac-stop {
  display: grid;
  gap: 1.25rem;
}
[data-evento-theme='hacienda-boda'] .hac-stop-photo {
  position: relative;
}
[data-evento-theme='hacienda-boda'] .hac-stop-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1.25rem;
  object-fit: cover;
}
[data-evento-theme='hacienda-boda'] .hac-stop-number {
  position: absolute;
  top: -1rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--hac-terra);
  color: var(--hac-on-terra);
  font: 400 1.15rem/1 var(--hac-display);
  box-shadow: 0 0 0 5px var(--hac-paper);
}
[data-evento-theme='hacienda-boda'] .hac-stop-body {
  display: grid;
  justify-items: start;
  gap: 0.55rem;
}
[data-evento-theme='hacienda-boda'] .hac-stop-name {
  color: var(--hac-ink);
  font: 400 clamp(1.7rem, 6.5vw, 2.2rem) / 1.12 var(--hac-display);
  text-wrap: balance;
}
[data-evento-theme='hacienda-boda'] .hac-stop-time {
  color: var(--hac-terra);
  font: 300 2.2rem/1 var(--hac-display);
  font-variant-numeric: lining-nums;
}
[data-evento-theme='hacienda-boda'] .hac-stop-time span {
  font-size: 0.5em;
  font-style: italic;
}
[data-evento-theme='hacienda-boda'] .hac-parking {
  max-width: 64rem;
  margin: 2.5rem auto 0;
}
[data-evento-theme='hacienda-boda'] .hac-option {
  display: grid;
  justify-items: start;
  gap: 0.45rem;
}
[data-evento-theme='hacienda-boda'] .hac-option + .hac-option {
  margin-top: 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--hac-line);
}
[data-evento-theme='hacienda-boda'] .hac-option-name {
  color: var(--hac-ink);
  font: 400 1.3rem/1.2 var(--hac-display);
}

/* Programa */
[data-evento-theme='hacienda-boda'] .hac-itinerary {
  background: var(--hac-paper-2);
}
[data-evento-theme='hacienda-boda'] .hac-program {
  display: grid;
  gap: 0.25rem;
  max-width: 36rem;
  margin: 2rem auto 0;
}
[data-evento-theme='hacienda-boda'] .hac-program li {
  display: grid;
  grid-template-columns: 1.6rem 6rem 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--hac-line);
}
[data-evento-theme='hacienda-boda'] .hac-program-leaf {
  width: 1.4rem;
  height: 1.4rem;
  fill: color-mix(in srgb, var(--hac-sage) 45%, transparent);
  stroke: var(--hac-sage-deep);
  stroke-width: 1.2;
  stroke-linecap: round;
}
[data-evento-theme='hacienda-boda'] .hac-program-time {
  color: var(--hac-terra);
  font: 400 1.35rem/1 var(--hac-display);
  font-variant-numeric: lining-nums;
}
[data-evento-theme='hacienda-boda'] .hac-program-time span {
  font-size: 0.6em;
  font-style: italic;
}
[data-evento-theme='hacienda-boda'] .hac-program-label {
  color: var(--hac-ink);
  line-height: 1.4;
}

/* Hospedaje */
[data-evento-theme='hacienda-boda'] .hac-stay-card {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
}
[data-evento-theme='hacienda-boda'] .hac-stay-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
[data-evento-theme='hacienda-boda'] .hac-stay-body {
  display: grid;
  justify-items: start;
  gap: 0.6rem;
  padding: clamp(1.5rem, 6vw, 2.5rem);
}

/* Detalles */
[data-evento-theme='hacienda-boda'] .hac-details-grid {
  display: grid;
  gap: 1.25rem;
  max-width: 64rem;
  margin: 0 auto;
}
[data-evento-theme='hacienda-boda'] .hac-detail {
  align-content: start;
}
[data-evento-theme='hacienda-boda'] .hac-detail-lead {
  color: var(--hac-ink);
  font: 400 1.2rem/1.5 var(--hac-display);
}

/* Galería en tira */
[data-evento-theme='hacienda-boda'] .hac-gallery-hint {
  font-size: 0.85rem;
}
[data-evento-theme='hacienda-boda'] .hac-strip {
  display: flex;
  gap: 1rem;
  height: clamp(18rem, 70vw, 26rem);
  margin: 2rem calc(var(--hac-gutter) * -1) 0;
  padding: 0 var(--hac-gutter) 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--hac-gutter);
  scrollbar-width: thin;
  scrollbar-color: var(--hac-line) transparent;
}
[data-evento-theme='hacienda-boda'] .hac-strip li {
  flex: none;
  height: 100%;
  scroll-snap-align: start;
}
[data-evento-theme='hacienda-boda'] .hac-strip-item {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 1.1rem;
  background: none;
  overflow: hidden;
  cursor: zoom-in;
}
[data-evento-theme='hacienda-boda'] .hac-strip-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 0.6s var(--hac-ease);
}
[data-evento-theme='hacienda-boda'] .hac-strip-item:hover img {
  scale: 1.04;
}
[data-evento-theme='hacienda-boda'] .hac-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0;
  border: 0;
  background: #1c211a;
}
[data-evento-theme='hacienda-boda'] .hac-lightbox[open] {
  display: grid;
  place-items: center;
}
[data-evento-theme='hacienda-boda'] .hac-lightbox::backdrop {
  background: rgb(0 0 0 / 0.85);
}
[data-evento-theme='hacienda-boda'] .hac-lightbox img {
  max-width: 100vw;
  max-height: 100dvh;
  object-fit: contain;
}
[data-evento-theme='hacienda-boda'] .hac-lightbox-top {
  position: absolute;
  inset: 1rem 1rem auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}
[data-evento-theme='hacienda-boda'] .hac-lightbox-count {
  margin: 0 auto 0 0;
  color: #fff;
  font: 600 var(--hac-label-size) / 1 var(--hac-sans);
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
}
[data-evento-theme='hacienda-boda'] .hac-lightbox-close {
  border-color: #fff;
  background: #fff;
  color: #1c211a;
}
[data-evento-theme='hacienda-boda'] .hac-lightbox-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.4);
  color: #fff;
  cursor: pointer;
}
[data-evento-theme='hacienda-boda'] .hac-lightbox-nav svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-evento-theme='hacienda-boda'] .hac-lightbox-prev {
  left: 0.75rem;
}
[data-evento-theme='hacienda-boda'] .hac-lightbox-next {
  right: 0.75rem;
}

/* Asistencia */
[data-evento-theme='hacienda-boda'] .hac-rsvp-card {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.25rem, 8vw, 3.25rem) clamp(1.5rem, 6vw, 3rem);
  border-radius: 2rem;
  background: var(--hac-terra);
  color: var(--hac-on-terra);
  text-align: center;
}
[data-evento-theme='hacienda-boda'] .hac-rsvp-card .hac-title,
[data-evento-theme='hacienda-boda'] .hac-rsvp-card .hac-text {
  color: var(--hac-on-terra);
}
[data-evento-theme='hacienda-boda'] .hac-rsvp-seal {
  width: 5.5rem;
}
[data-evento-theme='hacienda-boda'] .hac-rsvp-seal .hac-seal-disc {
  fill: var(--hac-on-terra);
}
[data-evento-theme='hacienda-boda'] .hac-rsvp-seal :is(.hac-seal-text, .hac-seal-mono) {
  fill: var(--hac-terra);
}
[data-evento-theme='hacienda-boda'] .hac-rsvp-seal .hac-seal-ring {
  stroke: color-mix(in srgb, var(--hac-terra) 45%, transparent);
}
[data-evento-theme='hacienda-boda'] .hac-rsvp-card :focus-visible {
  outline-color: var(--hac-on-terra);
}

/* Cierre */
[data-evento-theme='hacienda-boda'] .hac-footer .hac-inner {
  gap: 0.75rem;
}
[data-evento-theme='hacienda-boda'] .hac-footer .hac-actions {
  justify-content: center;
}
[data-evento-theme='hacienda-boda'] .hac-footer-name {
  color: var(--hac-ink);
  font: 350 clamp(2.4rem, 11vw, 3.4rem) / 1.05 var(--hac-display);
  font-variation-settings:
    'SOFT' 100,
    'WONK' 1;
}
[data-evento-theme='hacienda-boda'] .hac-footer-agave {
  width: 9rem;
  margin-top: 1.5rem;
}
[data-evento-theme='hacienda-boda'] .hac-calendar {
  margin: 0 auto 1.25rem;
  border-collapse: collapse;
  color: var(--hac-ink);
  font: 400 1rem/1 var(--hac-display);
  font-variant-numeric: lining-nums tabular-nums;
}
[data-evento-theme='hacienda-boda'] .hac-calendar-month {
  padding-bottom: 1rem;
  color: var(--hac-terra);
  font: 700 var(--hac-label-size) / 1 var(--hac-sans);
  letter-spacing: 0.26em;
  text-transform: uppercase;
}
[data-evento-theme='hacienda-boda'] .hac-calendar th {
  padding-bottom: 0.6rem;
  color: var(--hac-muted);
  font: 700 0.65rem/1 var(--hac-sans);
}
[data-evento-theme='hacienda-boda'] .hac-calendar :is(th, td) {
  width: 2.4rem;
  height: 2.2rem;
  text-align: center;
}
[data-evento-theme='hacienda-boda'] .hac-calendar-on {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--hac-terra);
  color: var(--hac-on-terra);
}
[data-evento-theme='hacienda-boda'] .hac-credit {
  margin-top: 1rem;
  font: 700 0.62rem/1 var(--hac-sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
[data-evento-theme='hacienda-boda'] .hac-credit a {
  color: var(--hac-muted);
  text-decoration: none;
}
[data-evento-theme='hacienda-boda'] .hac-credit span {
  color: var(--hac-terra);
}

/* Cabecera de las pantallas del invitado */
[data-evento-theme='hacienda-boda'] .guest-head-hac {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
}
[data-evento-theme='hacienda-boda'] .hac-seal-small {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0;
  border-radius: 50%;
  background: var(--hac-terra);
  color: var(--hac-on-terra);
  font: 400 1.1rem/1 var(--hac-display);
}

/* Escritorio */
@media (min-width: 56rem) {
  [data-evento-theme='hacienda-boda'] .hac-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    max-width: 76rem;
    margin: 0 auto;
    min-height: 100svh;
  }
  [data-evento-theme='hacienda-boda'] .hac-hero-branch {
    top: -0.5rem;
    z-index: 0;
    width: min(44vw, 15rem);
    filter: none;
  }
  [data-evento-theme='hacienda-boda'] .hac-hero-branch-right {
    right: auto;
    left: 34%;
  }
  [data-evento-theme='hacienda-boda'] .hac-hero-text {
    padding-top: 2.5rem;
  }
  [data-evento-theme='hacienda-boda'] .hac-hero-photo {
    order: 0;
  }
  [data-evento-theme='hacienda-boda'] .hac-hero-photo img {
    height: auto;
    aspect-ratio: 4 / 5;
  }
  [data-evento-theme='hacienda-boda'] .hac-family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-evento-theme='hacienda-boda'] .hac-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-evento-theme='hacienda-boda'] .hac-stay-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  [data-evento-theme='hacienda-boda'] .hac-stay-photo img {
    height: 100%;
    aspect-ratio: auto;
  }
  [data-evento-theme='hacienda-boda'] .hac-details-grid {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    align-items: start;
  }
  /* La tira se vuelve mosaico: tres columnas, las apaisadas ocupan dos. */
  [data-evento-theme='hacienda-boda'] .hac-gallery-hint {
    display: none;
  }
  [data-evento-theme='hacienda-boda'] .hac-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 1rem;
    height: auto;
    max-width: 76rem;
    margin: 2rem auto 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  [data-evento-theme='hacienda-boda'] .hac-strip li {
    height: auto;
  }
  [data-evento-theme='hacienda-boda'] .hac-strip li[data-wide] {
    grid-column: span 2;
  }
}

/* Movimiento */
@media (prefers-reduced-motion: no-preference) {
  :root[data-hac-motion='ok'] [data-evento-theme='hacienda-boda'] .hac-hero-seal {
    animation: hac-stamp 1s 0.2s var(--hac-ease) both;
  }
  :root[data-hac-motion='ok'] [data-evento-theme='hacienda-boda'] .hac-hero-branch {
    animation: hac-grow 1.6s var(--hac-ease) both;
  }
  [data-evento-theme='hacienda-boda'] .hac-will-reveal {
    opacity: 0;
    translate: 0 1.25rem;
    transition:
      opacity 0.9s var(--hac-ease),
      translate 0.9s var(--hac-ease);
  }
  [data-evento-theme='hacienda-boda'] .hac-will-reveal.is-visible {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes hac-stamp {
  0% {
    opacity: 0;
    scale: 1.6;
    rotate: -18deg;
  }
  70% {
    opacity: 1;
    scale: 0.94;
  }
  100% {
    opacity: 1;
    scale: 1;
    rotate: 0deg;
  }
}
@keyframes hac-grow {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}
