/* =========================================================
   HECTOR & NICOLE — Invitación digital
   Estética: Cottagecore / Boho Natural
   ========================================================= */

/* ----- 1. Tokens de diseño ----- */
:root {
  /* Paleta */
  --color-pearl:     #F8F4EF;
  --color-lavender:  #C9B8D4;
  --color-olive:     #7A8C5E;
  --color-olive-dim: #5A6B45;
  --color-gold:      #C9A96E;
  --color-gold-soft: #D9BE89;
  --color-dark:      #1C1A17;
  --color-dark-mid:  #2A2620;
  --color-dark-soft: #38332B;
  --color-text:      #F0EBE3;
  --color-text-mute: #BFB6A8;

  /* Tipografía fluida */
  --font-display:    "Cormorant Garamond", "Times New Roman", serif;
  --font-body:       "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-xs:    clamp(0.75rem, 0.7rem + 0.2vw, 0.875rem);
  --text-sm:    clamp(0.875rem, 0.82rem + 0.2vw, 1rem);
  --text-base:  clamp(1rem, 0.92rem + 0.4vw, 1.125rem);
  --text-md:    clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-lg:    clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-xl:    clamp(2rem, 1.5rem + 2vw, 3rem);
  --text-xxl:   clamp(2.75rem, 1.8rem + 4vw, 5rem);
  --text-hero:  clamp(3rem, 1.5rem + 7vw, 7rem);

  /* Spacing */
  --space-xs:      0.5rem;
  --space-sm:      1rem;
  --space-md:      1.75rem;
  --space-lg:      3rem;
  --space-xl:      5rem;
  --space-section: clamp(4rem, 3rem + 5vw, 9rem);

  /* Layout */
  --container-narrow: 720px;
  --container-base:   1080px;
  --container-wide:   1280px;

  /* Motion */
  --duration-fast:   180ms;
  --duration-base:   320ms;
  --duration-slow:   780ms;
  --ease-out-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft:   cubic-bezier(0.22, 1, 0.36, 1);

  /* Borders & shadows */
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-soft:  0 18px 48px -24px rgba(0, 0, 0, 0.55);
  --shadow-card:  0 12px 36px -16px rgba(0, 0, 0, 0.6);
  --shadow-glow:  0 0 0 1px rgba(201, 169, 110, 0.18), 0 22px 60px -28px rgba(201, 169, 110, 0.35);

  /* z-index scale */
  --z-base:  1;
  --z-decor: 5;
  --z-nav:   30;
  --z-music: 40;
  --z-modal: 60;
}

/* ----- 2. Reset ----- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-dark);
  background-image:
    radial-gradient(circle at 20% 12%, rgba(122, 140, 94, 0.08), transparent 55%),
    radial-gradient(circle at 80% 88%, rgba(201, 169, 110, 0.06), transparent 60%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle paper grain on the whole document */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-decor);
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img { object-fit: cover; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out-soft);
}

a:hover { color: var(--color-gold-soft); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ----- 3. Typography helpers ----- */
.font-display { font-family: var(--font-display); letter-spacing: 0.01em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  color: var(--color-gold);
  font-weight: 400;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-xxl);
  line-height: 1.05;
  color: var(--color-pearl);
  text-align: center;
}

.section-title em {
  font-style: italic;
  color: var(--color-lavender);
}

.section-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--color-text-mute);
  text-align: center;
  max-width: 56ch;
  margin: var(--space-sm) auto 0;
}

/* ----- 4. Layout primitives ----- */
.section {
  padding: var(--space-section) var(--space-md);
  position: relative;
}

.container {
  width: 100%;
  max-width: var(--container-base);
  margin-inline: auto;
}

.container--narrow { max-width: var(--container-narrow); }
.container--wide   { max-width: var(--container-wide); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.divider-svg {
  width: clamp(120px, 18vw, 200px);
  color: var(--color-gold);
  opacity: 0.85;
}

/* ----- 5. Hero ----- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-xl) var(--space-md);
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.05);
  animation: heroZoom 18s var(--ease-out-soft) forwards;
}

@media (max-width: 768px) {
  .hero__bg img {
    object-position: 68% center;
  }
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(28, 26, 23, 0.35) 0%, rgba(28, 26, 23, 0.85) 100%),
    linear-gradient(180deg, rgba(28, 26, 23, 0.55) 0%, rgba(28, 26, 23, 0.1) 35%, rgba(28, 26, 23, 0.85) 100%);
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero__content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.hero__decor {
  width: clamp(80px, 12vw, 140px);
  color: var(--color-gold-soft);
  opacity: 0;
  transform: translateY(-12px);
  animation: fadeInDown 1.2s var(--ease-out-expo) 0.2s forwards;
}

.hero__names {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-hero);
  line-height: 0.95;
  color: var(--color-pearl);
  letter-spacing: 0.005em;
  opacity: 0;
  animation: fadeInUp 1.2s var(--ease-out-expo) 0.4s forwards;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero__names .amp {
  display: inline-block;
  font-style: italic;
  color: var(--color-gold);
  margin: 0 0.15em;
  transform: translateY(-0.04em);
}

.hero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--color-text);
  opacity: 0;
  animation: fadeInUp 1.2s var(--ease-out-expo) 0.7s forwards;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero__date {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
  color: var(--color-gold);
  opacity: 0;
  animation: fadeInUp 1.2s var(--ease-out-expo) 0.9s forwards;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.hero__date span {
  display: inline-block;
  margin: 0 0.4em;
  color: var(--color-pearl);
  font-weight: 300;
}

.hero__venue {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--color-text);
  opacity: 0;
  animation: fadeInUp 1.2s var(--ease-out-expo) 1.1s forwards;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.65);
}

.hero__cta {
  margin-top: var(--space-md);
  opacity: 0;
  animation: fadeInUp 1.2s var(--ease-out-expo) 1.3s forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll cue */
.hero__scroll-cue {
  position: absolute;
  bottom: clamp(1.5rem, 4vh, 3rem);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-pearl);
  opacity: 0.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 2s ease 1.6s both, floatY 2.6s ease-in-out 2s infinite;
}

.hero__scroll-cue::after {
  content: "";
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, var(--color-gold));
}

@keyframes fadeIn { to { opacity: 0.5; } from { opacity: 0; } }
@keyframes floatY { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ----- 6. Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.9em 1.8em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--color-pearl);
  background: transparent;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--duration-base) var(--ease-out-soft),
    color var(--duration-base) var(--ease-out-soft),
    border-color var(--duration-base) var(--ease-out-soft),
    box-shadow var(--duration-base) var(--ease-out-soft);
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-gold);
  color: var(--color-dark);
  box-shadow: var(--shadow-glow);
}

.btn--solid {
  background: var(--color-gold);
  color: var(--color-dark);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--color-gold-soft);
}

.btn--ghost {
  border-color: rgba(240, 235, 227, 0.4);
  color: var(--color-pearl);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(240, 235, 227, 0.06);
  color: var(--color-pearl);
  border-color: var(--color-pearl);
  box-shadow: none;
}

.btn--small {
  min-height: 40px;
  padding: 0.6em 1.3em;
  font-size: var(--text-xs);
}

/* ----- 7. Welcome message ----- */
.welcome {
  background: var(--color-dark-mid);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.welcome__inner {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.welcome__decor-top,
.welcome__decor-bottom {
  width: clamp(140px, 20vw, 220px);
  color: var(--color-olive);
  opacity: 0.85;
}

.welcome__text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--color-pearl);
}

.welcome__text p { margin-bottom: 1.3em; }
.welcome__text p:last-child { margin-bottom: 0; }

/* ----- 8. Countdown ----- */
.countdown {
  background: var(--color-dark);
  position: relative;
}

.countdown__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-xl);
  text-align: center;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.5rem, 2vw, 1.5rem);
  max-width: 720px;
  margin: 0 auto;
}

.countdown__cell {
  position: relative;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(0.5rem, 1.5vw, 1rem);
  text-align: center;
  background: linear-gradient(180deg, rgba(201, 169, 110, 0.06), rgba(201, 169, 110, 0.01));
  border-radius: var(--radius-md);
  isolation: isolate;
}

.countdown__cell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(201, 169, 110, 0.7), rgba(201, 169, 110, 0.05) 60%, rgba(201, 169, 110, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.countdown__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 1.4rem + 3.2vw, 4rem);
  line-height: 1;
  color: var(--color-gold);
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  display: block;
  margin-top: 0.6em;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-lavender);
}

/* ----- 9. Story (family album) ----- */
.story { background: var(--color-dark-mid); }

/* Album: stacked vertical, varied aspect ratios, slight offset for handmade feel */
.album {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.album__entry {
  display: grid;
  gap: var(--space-md);
  align-items: center;
}

.album__entry--landscape { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.album__entry--portrait  { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.album__entry--square    { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Reverse the pattern on alternating entries, but vary ratios so it's not mechanical */
.album__entry:nth-child(2) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.album__entry:nth-child(2) .album__photo { order: 2; }
.album__entry:nth-child(2) .album__body { order: 1; text-align: right; }

.album__entry:nth-child(4) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.album__entry:nth-child(4) .album__photo { order: 2; }
.album__entry:nth-child(4) .album__body { order: 1; text-align: right; }

.album__photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-dark-soft);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(201, 169, 110, 0.18);
}

.album__entry:nth-child(3) .album__photo { aspect-ratio: 4 / 5; }
.album__entry:nth-child(4) .album__photo { aspect-ratio: 1 / 1; }
.album__entry:nth-child(5) .album__photo { aspect-ratio: 3 / 4; }
.album__entry:nth-child(1) .album__photo { aspect-ratio: 4 / 3; }

.album__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out-soft);
}

.album__entry:hover .album__photo img { transform: scale(1.03); }

.album__body {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.album__caption {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-gold);
}

.album__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-lg);
  color: var(--color-pearl);
  line-height: 1.2;
}

.album__title em { color: var(--color-lavender); font-style: italic; }

.album__desc {
  color: var(--color-text-mute);
  font-size: var(--text-base);
  font-family: var(--font-body);
  line-height: 1.7;
  max-width: 38ch;
}

.album__entry:nth-child(2) .album__desc,
.album__entry:nth-child(4) .album__desc { margin-left: auto; }

@media (max-width: 720px) {
  .album { gap: var(--space-lg); }
  .album__entry,
  .album__entry--landscape,
  .album__entry--portrait,
  .album__entry--square,
  .album__entry:nth-child(2),
  .album__entry:nth-child(4) {
    grid-template-columns: 1fr;
  }
  .album__entry:nth-child(2) .album__photo,
  .album__entry:nth-child(4) .album__photo { order: 0; }
  .album__entry:nth-child(2) .album__body,
  .album__entry:nth-child(4) .album__body {
    order: 1; text-align: left;
  }
  .album__entry:nth-child(2) .album__desc,
  .album__entry:nth-child(4) .album__desc { margin-left: 0; }
  .album__photo { aspect-ratio: 4 / 3 !important; }
}

/* ----- 10. Event details — single editorial schedule ----- */
.details { background: var(--color-dark); }

.schedule {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.schedule__row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px dashed rgba(201, 169, 110, 0.3);
}

.schedule__row:last-of-type { border-bottom: none; }

.schedule__type {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--color-gold);
  flex: 0 0 auto;
}

.schedule__time {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-xl);
  color: var(--color-pearl);
}

.schedule__time--pending {
  font-style: italic;
  font-size: var(--text-md);
  color: var(--color-text-mute);
}

.schedule__divider {
  display: block;
  width: 80px;
  height: 12px;
  margin: var(--space-md) auto;
  color: var(--color-gold);
  opacity: 0.7;
}

.location-block {
  text-align: center;
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75em;
}

.location-block__pin {
  width: 28px;
  height: 28px;
  color: var(--color-olive);
}

.location-block__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  color: var(--color-pearl);
}

.location-block__addr {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-text-mute);
  font-size: var(--text-md);
}

.location-block .btn {
  margin-top: var(--space-sm);
}

/* ----- 11. Dress code ----- */
.dress { background: var(--color-dark-mid); text-align: center; }

.dress__photo {
  margin: var(--space-lg) auto 0;
  max-width: 380px;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  border: 1px solid rgba(201,169,110,0.18);
}

.dress__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.dress__photo figcaption {
  padding: 0.55rem 1rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-mute);
  text-align: center;
  background: rgba(0,0,0,0.35);
}

.dress__icons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  color: var(--color-olive);
}

.dress__icons svg { width: 36px; height: 36px; }

.dress__text {
  max-width: 56ch;
  margin: var(--space-md) auto 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--color-text-mute);
  line-height: 1.7;
}

/* ----- 12. Camping ----- */
.camping {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  color: var(--color-pearl);
  padding: clamp(5rem, 10vw, 9rem) var(--space-md);
}

.camping__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.camping__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.camping__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 26, 23, 0.6), rgba(122, 140, 94, 0.55)),
    radial-gradient(circle at center, rgba(28, 26, 23, 0.4), rgba(28, 26, 23, 0.85));
}

.camping__inner {
  max-width: 640px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.camping__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--text-xxl);
  line-height: 1.05;
  color: var(--color-pearl);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 1px 6px rgba(0, 0, 0, 0.4);
}

.camping__text {
  color: var(--color-pearl);
  opacity: 0.95;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.8;
  max-width: 52ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.camping__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.6em 1.4em;
  border-radius: var(--radius-pill);
  background: rgba(28, 26, 23, 0.55);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ----- 13. Gallery ----- */
.gallery { background: var(--color-dark); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.2vw, 1rem);
}

@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(220px, auto);
  }

  /* asymmetric, editorial layout */
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(6) { grid-column: span 2; }
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-dark-soft);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  border: none;
  padding: 0;
  display: block;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  transition: transform 1s var(--ease-out-soft), filter var(--duration-base);
  filter: saturate(0.95);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(28, 26, 23, 0.55));
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-out-soft);
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.1);
}

.gallery__item:hover::after,
.gallery__item:focus-visible::after { opacity: 1; }

.gallery__icon {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  color: var(--color-pearl);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration-base), transform var(--duration-base) var(--ease-out-soft);
}

.gallery__item:hover .gallery__icon,
.gallery__item:focus-visible .gallery__icon {
  opacity: 0.95;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.94);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.is-open {
  display: flex;
  animation: fadeInBox var(--duration-base) var(--ease-out-soft);
}

@keyframes fadeInBox { from { opacity: 0; } to { opacity: 1; } }

.lightbox__img {
  max-width: min(94vw, 1200px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(28, 26, 23, 0.7);
  border: 1px solid rgba(201, 169, 110, 0.45);
  color: var(--color-pearl);
  display: grid;
  place-items: center;
  transition: background var(--duration-base);
}

.lightbox__btn:hover { background: rgba(28, 26, 23, 0.95); }
.lightbox__btn--prev { left: clamp(0.5rem, 2vw, 2rem); }
.lightbox__btn--next { right: clamp(0.5rem, 2vw, 2rem); }
.lightbox__btn--close {
  top: 1.25rem;
  right: 1.25rem;
  transform: none;
  width: 44px;
  height: 44px;
}

/* ----- 14. RSVP ----- */
.rsvp {
  background: var(--color-dark-mid);
  position: relative;
}

.rsvp__panel {
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(165deg, rgba(56, 51, 43, 0.8), rgba(28, 26, 23, 0.85));
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
}

.rsvp__step { display: none; }
.rsvp__step.is-active {
  display: block;
  animation: stepIn var(--duration-slow) var(--ease-out-expo);
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rsvp__label {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-pearl);
  font-size: var(--text-md);
  margin-bottom: 0.6em;
  text-align: center;
}

.input,
.select {
  width: 100%;
  min-height: 48px;
  padding: 0.8em 1em;
  font: inherit;
  color: var(--color-pearl);
  background: rgba(28, 26, 23, 0.7);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-base), background var(--duration-base);
}

.input::placeholder { color: rgba(240, 235, 227, 0.4); }

.input:focus,
.select:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(28, 26, 23, 0.9);
}

.rsvp__hint {
  font-size: var(--text-sm);
  color: var(--color-text-mute);
  text-align: center;
  margin-top: var(--space-sm);
}

.rsvp__error {
  margin-top: var(--space-sm);
  padding: 0.9em 1em;
  background: rgba(201, 169, 110, 0.08);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-style: italic;
  font-family: var(--font-display);
  font-size: var(--text-base);
  display: none;
}

.rsvp__error.is-visible { display: block; }

.rsvp__greeting {
  text-align: center;
  margin-bottom: var(--space-md);
}

.rsvp__greeting h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-xl);
  color: var(--color-pearl);
  margin-bottom: 0.3em;
}

.rsvp__greeting p {
  color: var(--color-text-mute);
  font-style: italic;
  font-family: var(--font-display);
  font-size: var(--text-md);
}

.rsvp__list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: var(--space-md);
}

.rsvp__guest {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(28, 26, 23, 0.55);
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--duration-base), background var(--duration-base);
}

.rsvp__guest:hover { border-color: rgba(201, 169, 110, 0.4); }
.rsvp__guest.is-checked { border-color: var(--color-gold); background: rgba(201, 169, 110, 0.08); }
.rsvp__guest.is-locked  { opacity: 0.95; cursor: default; }

.rsvp__check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1.5px solid var(--color-gold);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: transparent;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.rsvp__guest.is-checked .rsvp__check {
  background: var(--color-gold);
  color: var(--color-dark);
}

.rsvp__guest-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.rsvp__guest-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-gold);
}

.rsvp__guest-name {
  font-family: var(--font-display);
  color: var(--color-pearl);
  font-size: var(--text-md);
}

.rsvp__guest-input {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0;
  font: inherit;
  color: var(--color-pearl);
  background: transparent;
  border: none;
  border-bottom: 1px dashed rgba(201, 169, 110, 0.45);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-style: italic;
}

.rsvp__guest-input:focus {
  outline: none;
  border-bottom-color: var(--color-gold);
}

.rsvp__contact {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px dashed rgba(201, 169, 110, 0.25);
}

.rsvp__optional {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-xs);
  color: var(--color-text-mute);
  font-style: italic;
}

.rsvp__contact-fields {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

@media (min-width: 520px) {
  .rsvp__contact-fields {
    flex-direction: row;
  }
  .rsvp__contact-fields .input {
    flex: 1;
  }
}

.rsvp__camping {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px dashed rgba(201, 169, 110, 0.25);
}

.rsvp__radio-group {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.rsvp__radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(28, 26, 23, 0.55);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color var(--duration-base), background var(--duration-base);
  font-family: var(--font-display);
  color: var(--color-pearl);
  font-size: var(--text-base);
}

.rsvp__radio.is-active {
  border-color: var(--color-gold);
  background: rgba(201, 169, 110, 0.1);
  color: var(--color-gold);
}

.rsvp__camping-count {
  margin-top: var(--space-sm);
  display: none;
}

.rsvp__camping-count.is-visible { display: block; }

.rsvp__actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.rsvp__success {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
}

.rsvp__success-icon {
  width: 80px;
  height: 80px;
  color: var(--color-gold);
}

.rsvp__deadline {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--color-text-mute);
  padding: var(--space-md);
}

/* ----- 15. Gifts ----- */
.gifts { background: var(--color-dark); }

.gifts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.gift-card {
  background: linear-gradient(160deg, rgba(56, 51, 43, 0.8), rgba(42, 38, 32, 0.8));
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  transition: transform var(--duration-base) var(--ease-out-soft), border-color var(--duration-base);
}

.gift-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 169, 110, 0.45);
}

.gift-card__icon {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  color: var(--color-gold);
}

.gift-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-pearl);
}

.gift-card__desc {
  color: var(--color-text-mute);
  font-size: var(--text-sm);
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: var(--space-sm);
}

.gift-card__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

/* ----- Mensaje de regalo ----- */
.gifts__note {
  max-width: 540px;
  margin: 0 auto var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gifts__note-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-md);
  color: var(--color-gold-soft);
  letter-spacing: 0.02em;
}

.gifts__note-hint {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-xs);
  color: var(--color-text-mute);
  line-height: 1.55;
}

.gifts__note-field {
  position: relative;
}

.gifts__note-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  line-height: 1.65;
  padding: 0.85rem 1rem 1.8rem;
  resize: none;
  outline: none;
  transition: border-color 0.22s;
  box-sizing: border-box;
}

.gifts__note-textarea::placeholder {
  color: rgba(201, 169, 110, 0.35);
  font-style: italic;
}

.gifts__note-textarea:focus {
  border-color: rgba(201, 169, 110, 0.65);
  background: rgba(255, 255, 255, 0.06);
}

.gifts__note-counter {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: rgba(201, 169, 110, 0.38);
  pointer-events: none;
  letter-spacing: 0.05em;
}

.gifts__note-copied {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-xs);
  color: var(--color-gold-soft);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  text-align: center;
}

.gifts__note-copied.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gifts__sender {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.gifts__sender-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-xs);
  color: var(--color-text-mute);
}

.gifts__sender-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.22s, background 0.22s;
  box-sizing: border-box;
}

.gifts__sender-input:focus {
  border-color: rgba(201, 169, 110, 0.65);
  background: rgba(255, 255, 255, 0.06);
}

.gifts__sender-input::placeholder {
  color: rgba(201, 169, 110, 0.35);
  font-style: italic;
}

.gifts__amount {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 0.25rem;
}

.gifts__amount-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-xs);
  color: var(--color-text-mute);
}

.gifts__amount-input {
  width: 150px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 110, 0.28);
  border-radius: var(--radius-sm, 6px);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color 0.22s, background 0.22s;
  box-sizing: border-box;
}

.gifts__amount-input:focus {
  border-color: rgba(201, 169, 110, 0.65);
  background: rgba(255, 255, 255, 0.06);
}

.gifts__amount-input::placeholder {
  color: rgba(201, 169, 110, 0.35);
}

/* ATH Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 8, 0.85);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal.is-open {
  display: flex;
  animation: fadeInBox var(--duration-base) var(--ease-out-soft);
}

.modal__panel {
  background: var(--color-dark-mid);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem var(--space-md) var(--space-md);
  max-width: 400px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--color-text-mute);
  transition: color var(--duration-fast), background var(--duration-fast);
}

.modal__close:hover { color: var(--color-pearl); background: rgba(255, 255, 255, 0.05); }

.modal__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-pearl);
  margin: 0.25rem 0 1rem;
  padding-right: 2rem;
}

/* QR + número lado a lado */
.modal__body {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
  text-align: left;
}

.modal__qr {
  width: 148px;
  height: 148px;
  flex-shrink: 0;
  background: var(--color-pearl);
  border-radius: var(--radius-md);
  padding: 0.6rem;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.modal__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal__qr-fallback {
  color: var(--color-dark);
  font-size: 0.62rem;
  text-align: center;
  font-family: var(--font-body);
  line-height: 1.4;
}

.modal__contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.modal__contact-hint {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-mute);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.modal__phone {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.9rem + 1.5vw, 1.6rem);
  letter-spacing: 0.04em;
  color: var(--color-gold);
  cursor: pointer;
  padding: 0.45em 0.75em;
  border: 1px dashed rgba(201, 169, 110, 0.5);
  border-radius: var(--radius-md);
  display: inline-block;
  transition: background var(--duration-base);
  white-space: nowrap;
}

.modal__phone:hover { background: rgba(201, 169, 110, 0.1); }

.modal__copied {
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--color-olive);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.modal__copied.is-visible { opacity: 1; }

.modal__instructions {
  color: var(--color-text-mute);
  font-size: var(--text-sm);
  font-style: italic;
  font-family: var(--font-display);
  line-height: 1.6;
  text-align: center;
  border-top: 1px solid rgba(201, 169, 110, 0.12);
  padding-top: 0.85rem;
}

/* En pantallas muy pequeñas, apilar verticalmente */
@media (max-width: 360px) {
  .modal__body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .modal__contact {
    align-items: center;
  }
}

/* ----- 16. Music section ----- */
.music-section {
  background: var(--color-dark-mid);
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.music-section__inner {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  background: rgba(56, 51, 43, 0.6);
  border: 1px solid rgba(201, 169, 110, 0.25);
}

.music-section__icon {
  width: 22px;
  height: 22px;
  color: var(--color-gold);
}

.music-section__text {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--color-pearl);
  font-size: var(--text-base);
}

.music-section__text em { font-style: italic; }

.music-section__text a {
  color: var(--color-lavender);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-base);
}

.music-section__text a:hover { border-bottom-color: var(--color-lavender); }

/* Floating music toggle */
.music-toggle {
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.5rem);
  right: clamp(1rem, 3vw, 1.5rem);
  z-index: var(--z-music);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-dark-mid);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  transition: background var(--duration-base), color var(--duration-base), transform var(--duration-base);
}

.music-toggle:hover { background: var(--color-gold); color: var(--color-dark); }

.music-toggle.is-playing .music-toggle__pulse {
  animation: pulse 2.4s ease-in-out infinite;
}

.music-toggle__icon { width: 18px; height: 18px; }
.music-toggle__pulse {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  opacity: 0;
}

@keyframes pulse {
  0%   { transform: scale(0.95); opacity: 0.7; }
  50%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* ----- 17. Footer ----- */
.footer {
  background: var(--color-dark);
  text-align: center;
  padding: var(--space-lg) var(--space-md) var(--space-xl);
  color: var(--color-text-mute);
}

.footer__signature {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--text-xl);
  color: var(--color-pearl);
  margin-bottom: var(--space-sm);
}

.footer__decor {
  width: 120px;
  margin: var(--space-md) auto 0;
  color: var(--color-gold);
  opacity: 0.7;
}

.footer__meta {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--color-text-mute);
  letter-spacing: 0.04em;
}

/* ----- 17b. RSVP autocomplete suggestions ----- */
.rsvp__suggestions {
  margin-top: var(--space-sm);
  display: none;
  flex-direction: column;
  gap: 0.4rem;
}

.rsvp__suggestions.is-visible { display: flex; }

.rsvp__suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: rgba(28, 26, 23, 0.55);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--color-pearl);
  transition: border-color var(--duration-fast), background var(--duration-fast);
  width: 100%;
}

.rsvp__suggestion:hover,
.rsvp__suggestion:focus-visible {
  border-color: var(--color-gold);
  background: rgba(201, 169, 110, 0.1);
}

.rsvp__suggestion-arrow {
  color: var(--color-gold);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ----- 18. Reveal-on-scroll ----- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--duration-slow) var(--ease-out-expo),
    transform var(--duration-slow) var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }
.reveal--delay-4 { transition-delay: 320ms; }

/* ----- 19. Visually hidden ----- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ----- 20. Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .hero__bg img { transform: none; animation: none; }
  .hero__decor,
  .hero__names,
  .hero__sub,
  .hero__date,
  .hero__venue,
  .hero__cta,
  .hero__scroll-cue { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* =========================================================
   PHOTO BREAKS — distribución editorial a lo largo de la página
   ========================================================= */

/* Foto completa centrada — fondo difuminado de la misma foto rellena los lados */
.photo-break {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(3rem, 7vw, 7rem) var(--space-md);
  background: var(--color-dark);
}

.photo-break__bg {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(0.32) saturate(0.55);
  pointer-events: none;
}

.photo-break img {
  display: block;
  max-height: 82vh;
  max-width: min(560px, 88vw);
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 72px -16px rgba(0, 0, 0, 0.75);
}

/* =========================================================
   STORY PHOTOS — 3 fotos editoriales sin captions
   ========================================================= */

.story__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.story__photo {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-dark-soft);
}

.story__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out-soft);
}

.story__photo:hover img {
  transform: scale(1.04);
}

.story__photo--wide {
  grid-column: 1 / -1;
  height: clamp(260px, 48vw, 500px);
}

.story__photo--half {
  height: clamp(190px, 32vw, 360px);
}

@media (max-width: 600px) {
  .story__photos { grid-template-columns: 1fr; }
  .story__photo--wide,
  .story__photo--half { grid-column: auto; height: clamp(220px, 60vw, 340px); }
}

/* =========================================================
   FOTO DE CIERRE — cinematic full-width antes del footer
   ========================================================= */

/* Foto landscape 3:2 — aspect-ratio exacto de la foto, cero recorte */
.photo-close {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 88vh;
  overflow: hidden;
  position: relative;
  background: var(--color-dark);
}

.photo-close img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.photo-close::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 26, 23, 0.2) 0%,
    transparent 20%,
    transparent 70%,
    rgba(28, 26, 23, 0.4) 100%
  );
  pointer-events: none;
}

/* =========================================================
   PHOTO STRIP — tira horizontal de fotos
   ========================================================= */

.photo-strip {
  display: flex;
  height: clamp(200px, 38vw, 400px);
  gap: 3px;
  overflow: hidden;
}

.photo-strip__item {
  flex: 1;
  overflow: hidden;
  margin: 0;
}

.photo-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 700ms var(--ease-out-soft);
}

.photo-strip__item:hover img {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .photo-strip { height: clamp(140px, 45vw, 220px); }
}

/* =========================================================
   GIFTS — fondo fotográfico
   ========================================================= */

.gifts {
  position: relative;
  background-image: url('../assets/photos/gallery-6.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.gifts::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 15, 0.82);
  pointer-events: none;
  z-index: 0;
}

.gifts .container {
  position: relative;
  z-index: 1;
}
