/* ================================================
   SAMUEL & CRISTINA — BODA DIGITAL
   Antigua Guatemala · 29 & 30 Enero 2027
   Champagne · Sage Green · Gold · Cursive Elegance
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Infant:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&family=Great+Vibes&display=swap');

@font-face {
  font-family: 'CitadelScript';
  src: url('Citadel Script Std Regular/Citadel Script Std Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'SnellRoundhand';
  src: url('Snell Roundhand Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

/* ── TOKENS ─────────────────────────────────────── */
:root {
  --champagne: #F5EDD6;
  --cream: #FAF7F0;
  --white: #FDFCF9;
  --sage: #6B8C6B;
  --sage-dk: #3D5A3E;
  --sage-lt: #8FAF8F;
  --sage-pale: #EAF0EA;
  --gold: #C9A84C;
  --gold-lt: #E5D49A;
  --text: #2C2C2C;
  --text2: #5A5550;
  --text3: #8A8078;
  --border: rgba(107, 140, 107, 0.18);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.06);
  --fs: 'Great Vibes', cursive;
  --ff: 'Cinzel', serif;
  --fb: 'Cormorant Infant', serif;
  --navH: 62px;
  --py: 84px;
  --maxW: 920px;
  --r: 13px;
  --rLg: 13px;
}

/* ── RESET ──────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: var(--fb);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
}

html {
  scroll-behavior: smooth;
  font-size: 18px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

/* ── LAYOUT UTILITIES ───────────────────────────── */
.wrap {
  max-width: var(--maxW);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--py) 0;
  position: relative;
  overflow: hidden;
  /* Evita que las decoraciones botánicas causen scroll horizontal */
}

.text-center {
  text-align: center;
}

.label {
  display: block;
  font-family: var(--ff);
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}

.label--lt {
  color: rgba(255, 255, 255, .65);
}

.sec-title {
  font-family: var(--ff);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--text);
  line-height: 1.3;
}

.sec-title--lt {
  color: #fff;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px auto;
  max-width: 180px;
}

.ornament-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sage), transparent);
}

.ornament-dot {
  width: 5px;
  height: 5px;
  border: 1px solid var(--sage);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.subtitle {
  font-size: 1.15rem;
  color: var(--text2);
  font-style: italic;
  text-align: center;
  max-width: 500px;
  margin: 12px auto 0;
  line-height: 1.6;
}

/* fade-in on scroll */
.fi {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}

.fi.vis {
  opacity: 1;
  transform: translateY(0);
}

.fi:nth-child(2) {
  transition-delay: .1s;
}

.fi:nth-child(3) {
  transition-delay: .2s;
}

.fi:nth-child(4) {
  transition-delay: .3s;
}

/* ── NAVBAR ─────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  z-index: 999;
  height: var(--navH);
  background: rgb(250, 247, 240);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-c {
  width: 100%;
  max-width: 1100px;
  min-width: 0;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.nav-brand {
  font-family: var(--fs);
  font-size: 1.8rem;
  color: var(--sage-dk);
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap;
}

.nav-brand em {
  font-family: var(--fb);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--sage);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-family: var(--ff);
  font-weight: 700;
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text2);
  padding: 7px 7px;
  border-radius: 6px;
  transition: background .2s, color .2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--sage-dk);
  background: var(--sage-pale);
}

.nav-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  flex-shrink: 0;
  margin-left: 8px;
}

.nav-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.nav-btn.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-btn.open span:nth-child(2) {
  opacity: 0;
}

.nav-btn.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #d1d8d1;
  /* Base sage color placeholder */
  background-image: linear-gradient(180deg, #e9ede9 0%, #d1d8d1 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .5) 45%, rgba(0, 0, 0, .72) 100%);
}

.hero-body {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -20px;
}

/* Arch SVG "NUESTRA BODA" */
.arch-svg {
  width: min(280px, 78vw);
  display: block;
  margin-bottom: -6px;
}

.arch-text-path {
  font-family: var(--ff);
  font-size: 11.5px;
  letter-spacing: .3em;
  fill: rgba(255, 255, 255, .82);
}

.hero-names {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1150px;
  padding: 0 20px;
  margin: 0 auto 12px;
}

.hn-cris, .hn-samu {
  font-family: 'CitadelScript', cursive;
  font-size: clamp(4.8rem, 16vw, 8.5rem);
  color: #fff;
  line-height: 0.85;
  z-index: 2;
  position: relative;
  font-weight: normal; /* Evita que el navegador duplique trazos */
  text-shadow: none;   /* Eliminamos sombras para máxima nitidez */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hn-cris {
  align-self: flex-start;
  margin-left: -8%;
}

.hn-samu {
  align-self: flex-end;
  margin-right: -8%;
  margin-top: -15px;
}

.hn-amp {
  font-family: 'SnellRoundhand', cursive;
  font-size: clamp(9rem, 28vw, 18rem);
  color: var(--gold-lt);
  opacity: 0.38;
  position: absolute;
  top: 50%;
  left: 68%;
  transform: translate(-50%, -58%);
  z-index: 1;
  pointer-events: none;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  font-weight: normal;
  text-shadow: none;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 145px 0 14px;
}

.hero-divider span {
  width: 54px;
  height: 1px;
  background: rgba(255, 255, 255, .3);
  display: block;
}

.hero-divider svg {
  width: 15px;
  height: 15px;
  fill: var(--gold-lt);
  flex-shrink: 0;
}

.hero-date {
  font-family: var(--ff);
  font-size: .85rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 4px;
}

.hero-place {
  font-family: var(--fb);
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 16px;
}

/* Countdown */
.cd {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 13px;
  padding: 10px 18px;
}

.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
}

.cd-num {
  font-family: var(--ff);
  font-size: clamp(1.3rem, 5vw, 1.9rem);
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.cd-lbl {
  font-family: var(--ff);
  font-size: .55rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-top: 4px;
}

.cd-sep {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, .3);
  margin-bottom: 14px;
}

/* Scroll indicator */
.scroll-dn {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  transition: color .3s;
  animation: bounce 2.4s ease-in-out infinite;
  cursor: pointer;
}

.scroll-dn-text {
  font-family: var(--ff);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.scroll-dn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(9px)
  }
}

/* ── EVENTS ─────────────────────────────────────── */
.events-section {
  background: var(--champagne);
  position: relative;
}

.timeline {
  margin-top: 44px;
}

.timeline-day {
  margin-bottom: 36px;
  text-align: center;
}

.tdb {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.tdb-name {
  font-family: var(--ff);
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sage);
}

.tdb-num {
  font-family: var(--fs);
  font-size: 5.5rem;
  line-height: .85;
  color: var(--sage-dk);
}

.tdb-month {
  font-family: var(--ff);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text3);
  margin-top: 4px;
}

/* ── HORIZONTAL EVENTS TIMELINE ─────────────────── */
.ev-htimeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 52px;
  position: relative;
}

/* Línea horizontal entre cards */
.ev-htimeline::before {
  content: '';
  position: absolute;
  top: 27px;
  /* altura del centro del dot */
  left: 25%;
  right: 25%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sage-lt) 10%, var(--sage) 50%, var(--sage-lt) 90%, transparent);
  z-index: 0;
}

.ev-hcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 0;
  position: relative;
}

/* Dot / ícono en la línea */
.ev-hcard-dot {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-bottom: 20px;
  box-shadow: 0 0 0 5px var(--champagne), 0 0 0 6px var(--gold-lt);
  transition: background .3s, box-shadow .3s;
}

/* Colores de dots por evento */
.ev-hcard--ceremony .ev-hcard-dot {
  background: var(--sage);
  box-shadow: 0 0 0 5px var(--champagne), 0 0 0 6px var(--sage-lt);
}

.ev-hcard--party .ev-hcard-dot {
  background: var(--sage-dk);
  box-shadow: 0 0 0 5px var(--champagne), 0 0 0 6px var(--sage);
}



.ev-hcard-dot svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Card body */
.ev-hcard-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rLg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  width: 100%;
  transition: box-shadow .3s, transform .3s;
  display: flex;
  flex-direction: column;
}

.ev-hcard-body:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* Banda de fecha (derecha de la card) */
.ev-hcard-date {
  background: var(--gold);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Colores personalizados por banda de fecha */
.ev-hcard--ceremony .ev-hcard-date {
  background: var(--sage); /* Verde principal (más fuerte que el anterior) */
}

.ev-hcard--party .ev-hcard-date {
  background: var(--sage-dk); /* Verde oscuro (como el Dress Code) */
}



.ev-hcard-day {
  font-family: var(--ff);
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
}

.ev-hcard-num {
  font-family: var(--fs);
  font-size: 3.4rem;
  color: #fff;
  line-height: .9;
  display: block;
}

.ev-hcard-month {
  font-family: var(--ff);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-top: 4px;
}

/* Info de la card */
.ev-hcard-info {
  padding: 18px 18px 20px;
  text-align: left;
  flex: 1;
}

.ev-hcard-name {
  font-family: var(--ff);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .03em;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.3;
}

.ev-hcard-venue {
  font-family: var(--fb);
  font-size: .88rem;
  font-style: normal;
  color: var(--text);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.ev-venue-icon {
  width: 14px;
  height: 14px;
  color: var(--text3);
  flex-shrink: 0;
}

.ev-hcard-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

/* Reutiliza .ev-chip y .ev-map existentes */
.ev-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--fb);
  font-size: .88rem;
  color: var(--text2);
}

.ev-chip svg {
  width: 13px;
  height: 13px;
  fill: var(--sage);
  flex-shrink: 0;
}

.ev-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff);
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sage-dk);
  border: 1px solid var(--sage);
  padding: 7px 14px;
  border-radius: 4px;
  transition: background .2s, color .2s;
}

.ev-map:hover {
  background: var(--sage-dk);
  color: #fff;
  border-color: var(--sage-dk);
}

.ev-map svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* Mobile: apilar verticalmente */
@media (max-width: 700px) {
  .ev-htimeline {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ev-htimeline::before {
    display: none;
  }

  .ev-hcard {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    padding: 0;
  }

  .ev-hcard-dot {
    margin-bottom: 0;
    margin-top: 0;
    flex-shrink: 0;
  }

  .ev-hcard-body {
    flex-direction: row;
  }

  .ev-hcard-date {
    min-width: 64px;
    padding: 12px 10px;
  }

  .ev-hcard-num {
    font-size: 2.6rem;
  }
}

/* ── DRESS CODE (ARCH) ──────────────────────────── */

.dc-section {
  background: var(--cream);
  padding: var(--py) 24px;
  display: flex;
  justify-content: center;
  position: relative;
}

#dc-title {
  /* Al estar en dos líneas, podemos usar un tamaño mínimo mayor sin desbordar el arco */
  font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  line-height: 1.15;
}

.dc-arch-outer {
  width: 100%;
  max-width: 600px;
}

.dc-arch {
  background: var(--sage-dk);
  border-radius: 300px 300px 0 0;
  padding: 72px 48px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dc-arch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .07) 0%, transparent 65%);
}

/* Textura de papel opalina — referencia al filtro SVG definido en el HTML */
.dc-arch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  filter: url(#paper-noise);
  mix-blend-mode: soft-light;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.dc-inner {
  position: relative;
  z-index: 1;
}

.dc-items {
  display: flex;
  gap: 0;
  justify-content: center;
  margin: 28px 0 24px;
}

.dc-item {
  flex: 1;
  padding: 0 20px;
}

.dc-divider {
  width: 1px;
  background: rgba(255, 255, 255, .2);
  margin: 6px 0;
}

.dc-event {
  display: block;
  font-family: var(--ff);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  margin-bottom: 8px;
}

.dc-style {
  display: block;
  font-family: var(--fs);
  font-size: 2.5rem;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.dc-date {
  display: block;
  font-size: 1rem;
  color: rgba(255, 255, 255, .8);
  font-style: italic;
}

.dc-note {
  font-size: .95rem;
  color: rgba(255, 255, 255, .75);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 14px;
}

.dc-cursive {
  font-family: var(--fs);
  font-size: 1.4rem;
  color: rgba(255, 255, 255, .5);
}

/* Botanical for dc section */
.dc-botanical {
  position: absolute;
  opacity: .25;
  pointer-events: none;
}

.dc-botanical--left {
  left: -30px;
  top: 40px;
  transform: rotate(180deg) scaleX(-1);
}

.dc-botanical--right {
  right: -30px;
  top: 40px;
}

/* ── GUIDE SECTION ──────────────────────────────── */
.guide-section {
  background: var(--white);
}

.guide-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  background: rgba(107, 140, 107, .08);
  border-radius: 50px;
  padding: 4px;
  margin: 32px 0 0;
}

.guide-tabs::-webkit-scrollbar {
  display: none;
}

.guide-tab {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: var(--ff);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text2);
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.guide-tab.active {
  background: var(--sage-dk);
  color: #fff;
}

.guide-tab:hover:not(.active) {
  background: var(--sage-pale);
  color: var(--sage-dk);
}

.guide-panel {
  display: none;
  text-align: left;
  padding-top: 32px;
  animation: panelFade .4s ease;
}

.guide-panel.active {
  display: block;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(12px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.g-sub {
  margin-bottom: 36px;
}

.g-sub-title {
  font-family: var(--ff);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage-dk);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.places {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.place {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow .25s, transform .25s;
}

.place:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* ── FEATURED PLACE (Villa Bokeh) ────────────────── */
.place--featured {
  background: linear-gradient(135deg, var(--sage-dk) 0%, #2a4a2b 100%);
  border: none;
  color: #fff;
  grid-column: 1 / -1;
  /* Full-width across all columns */
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(61, 90, 62, .28);
  position: relative;
  overflow: hidden;
}

.place--featured::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(229, 212, 154, .18) 0%, transparent 70%);
  pointer-events: none;
}



.place--featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(61, 90, 62, .38);
}

.place-featured-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.place-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff);
  font-size: .52rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 4px;
}

.place-featured-badge svg {
  width: 11px;
  height: 11px;
  fill: var(--gold-lt);
  flex-shrink: 0;
}

.place--featured .place-name {
  color: #fff;
  font-size: 1.25rem;
}

.place--featured .place-desc {
  color: rgba(255, 255, 255, .65);
  font-size: .95rem;
}

.place-featured-code {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--fb);
  font-size: .9rem;
  color: rgba(255, 255, 255, .75);
}

.place-featured-code svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--gold-lt);
}

.place-featured-code strong {
  font-family: var(--ff);
  font-size: .7rem;
  letter-spacing: .12em;
  color: var(--gold-lt);
}

.place-featured-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.place--featured .place-link {
  color: rgba(255, 255, 255, .75);
  border-color: rgba(255, 255, 255, .3);
}

.place--featured .place-link:hover {
  color: #fff;
}

.place-featured-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage-dk);
  background: #25d366;
  padding: 7px 14px;
  border-radius: 6px;
  transition: background .2s, box-shadow .2s;
  font-weight: 700;
}

.place-featured-wa:hover {
  background: #1ebe5d;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .35);
}

.place-featured-wa svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── GOLD CARD (Villa Bokeh Hoteles) ─────────────── */
.place--gold {
  border: 1.5px solid var(--gold);
  box-shadow: 0 2px 12px rgba(201, 168, 76, .14);
  background: linear-gradient(135deg, #fffdf5 0%, var(--cream) 100%);
}

.place--gold:hover {
  box-shadow: 0 6px 24px rgba(201, 168, 76, .22);
}

.place-gold-code {
  font-family: var(--fb);
  font-size: .85rem;
  color: var(--text2);
  background: rgba(201, 168, 76, .08);
  border: 1px solid rgba(201, 168, 76, .22);
  border-radius: 6px;
  padding: 7px 12px;
  margin-top: 2px;
}

.place-gold-code strong {
  font-family: var(--ff);
  font-size: .65rem;
  letter-spacing: .1em;
  color: var(--gold);
}

.place-gold-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.place-gold-wa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff);
  font-size: .52rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: #25d366;
  padding: 6px 11px;
  border-radius: 6px;
  font-weight: 700;
  transition: background .2s, box-shadow .2s;
}

.place-gold-wa:hover {
  background: #1ebe5d;
  box-shadow: 0 4px 12px rgba(37, 211, 102, .3);
}

.place-gold-wa svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex-shrink: 0;
}

.place-name {
  font-family: var(--fb);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.place-desc {
  font-size: .9rem;
  color: var(--text2);
  font-style: italic;
  line-height: 1.4;
  flex: 1;
}

.place-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff);
  font-size: .58rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 2px;
  transition: color .2s;
}

.place-link:hover {
  color: var(--sage-dk);
}

.place-link svg {
  width: 10px;
  height: 10px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}

/* ── PLACES EXPANDABLE ───────────────────────────── */
.places--hidden {
  display: none;
  margin-top: 10px;
}

.places--hidden.open {
  display: grid;
}

.places-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  width: 100%;
  padding: 0 4px;
}

.places-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--ff);
  font-size: .6rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage-dk);
  background: transparent;
  border: 1px solid var(--sage);
  padding: 10px 22px;
  border-radius: 99px;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}

.places-toggle-btn:hover {
  background: var(--sage-dk);
  color: #fff;
  border-color: var(--sage-dk);
  box-shadow: 0 4px 18px rgba(61, 90, 62, .18);
}

.places-toggle-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  flex-shrink: 0;
  transition: transform .35s ease;
}

.places-toggle-btn[aria-expanded="true"] .places-toggle-icon {
  transform: rotate(180deg);
}

.badge {
  display: inline-block;
  font-family: var(--ff);
  font-size: .5rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 4px;
}

.badge--high {
  background: rgba(201, 168, 76, .14);
  color: #8B6914;
}

.badge--mid {
  background: var(--sage-pale);
  color: var(--sage-dk);
}

.badge--low {
  background: rgba(107, 140, 107, .1);
  color: var(--sage);
}

.badge--airbnb {
  background: rgba(255, 90, 71, .08);
  color: #c0392b;
}

.badge--care {
  background: rgba(155, 89, 182, .12);
  color: #7d3c98;
}

.place-link--wa {
  background: #25d366;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: .62rem;
  letter-spacing: .12em;
  transition: background .2s, box-shadow .2s, transform .2s;
  border: none;
}

.place-link--wa:hover {
  background: #1ebe5d;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .35);
  transform: translateY(-1px);
}

.place-link--wa svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
}

/* Emergency card */
.emergency {
  background: rgba(61, 90, 62, .06);
  border: 1px solid rgba(61, 90, 62, .14);
  border-radius: var(--r);
  padding: 22px 24px;
  margin-top: 28px;
}

.emergency h3 {
  font-family: var(--ff);
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage-dk);
  margin-bottom: 14px;
}

.emergency-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.emergency-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.e-label {
  font-family: var(--ff);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
}

.e-num {
  font-family: var(--ff);
  font-size: .95rem;
  color: var(--text);
  font-weight: 500;
  transition: color .2s;
}

.e-num:hover {
  color: var(--sage-dk);
}

/* ── TRANSPORT ──────────────────────────────────── */
.transport-section {
  background: var(--champagne);
}

.t-card {
  max-width: 580px;
  margin: 40px auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rLg);
  padding: 52px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.t-card::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(107, 140, 107, .1) 0%, transparent 70%);
  border-radius: 50%;
}

.t-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--sage-dk);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.t-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t-route {
  font-family: var(--ff);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 8px;
}



.t-title {
  font-family: var(--fs);
  font-size: 2.4rem;
  color: var(--sage-dk);
  margin-bottom: 14px;
  line-height: 1.1;
}

.t-desc {
  font-size: 1rem;
  color: var(--text2);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.t-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.t-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .88rem;
  color: var(--text2);
}

.t-feature svg {
  width: 15px;
  height: 15px;
  fill: var(--sage);
  flex-shrink: 0;
}

.t-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sage-dk);
  color: #fff;
  padding: 14px 34px;
  border-radius: 50px;
  font-family: var(--ff);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .2s, transform .2s;
  cursor: pointer;
}

.t-btn:hover {
  background: var(--sage);
  transform: translateY(-2px);
}

.t-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
}

/* ── RSVP ───────────────────────────────────────── */
/* ── RSVP REDESIGN ─────────────────────────────── */
.rsvp-section {
  background: var(--cream);
  padding: 100px 0;
}

.rsvp-card-outer {
  max-width: 650px;
  margin: 0 auto;
  padding: 0 20px;
}

.rsvp-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 72px 48px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
}

.rsvp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.rsvp-card .label {
  margin-bottom: 12px;
  opacity: 0.8;
}

.rsvp-card .sec-title {
  margin-bottom: 28px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.diamond-sep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 35px;
}

.diamond-sep .d-line {
  height: 1px;
  width: 50px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.4;
}

.diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.rsvp-desc {
  font-family: var(--fb);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 48px;
}

.rsvp-action {
  margin-bottom: 48px;
}

.rsvp-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 56px;
  background: var(--white);
  color: var(--sage-dk);
  border: 1.5px solid var(--sage-dk);
  border-radius: 100px;
  font-family: var(--ff);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.rsvp-heart {
  width: 18px;
  height: 18px;
  fill: var(--sage-dk);
  transition: transform 0.3s ease;
}

.rsvp-pill-btn:hover {
  transform: translateY(-4px);
  background: var(--sage-dk);
  color: #fff;
  box-shadow: 0 10px 25px rgba(61, 90, 62, 0.2);
}

.rsvp-pill-btn:hover .rsvp-heart {
  fill: #fff;
  transform: scale(1.2);
}

.rsvp-footer {
  border-top: 1px solid rgba(0,0,0,0.05);
  padding-top: 32px;
  font-family: var(--fb);
  font-size: 1rem;
  color: var(--text3);
  font-style: italic;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .rsvp-card {
    padding: 56px 24px;
  }
  .rsvp-desc {
    font-size: 1.2rem;
  }
  .rsvp-pill-btn {
    padding: 16px 36px;
    font-size: 0.75rem;
    width: 100%;
    max-width: 300px;
  }
}
/* ── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--sage-dk);
  color: rgba(255, 255, 255, .8);
  text-align: center;
  padding: 56px 24px 36px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .06) 0%, transparent 65%);
}

.footer-inner {
  position: relative;
  z-index: 1;
}

.footer-names {
  font-family: var(--fs);
  font-size: 3rem;
  color: #fff;
  margin-bottom: 8px;
}

.footer-date {
  font-family: var(--ff);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 24px;
}

.footer-line {
  width: 70px;
  height: 1px;
  background: rgba(255, 255, 255, .2);
  margin: 0 auto 20px;
}

.footer-msg {
  font-family: var(--fs);
  font-size: 1.6rem;
  color: rgba(255, 255, 255, .5);
}

/* Botanical SVG global */
.botanical {
  pointer-events: none;
}

/* ── HISTORIA & REGALOS ─────────────────────────── */
.history-section {
  background: var(--cream);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Efecto UI UX Pro Max: Luz dorada difuminada (Ambient Glow) */
.history-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, rgba(201, 168, 76, 0.20) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(201, 168, 76, 0.20) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
  filter: blur(30px);
}

.history-section .label.fi {
  transition-delay: 0.1s;
}

#history-title.fi {
  transition-delay: 0.25s;
}

.history-section .ornament.fi {
  transition-delay: 0.4s;
}

.lyrics-container.fi {
  transition-delay: 0.55s;
}

/* ── NUESTRA HISTORIA (CANCIÓN) ───────────────────────── */
.lyrics-container {
  margin: 50px auto 0;
  max-width: 650px;
  /* Se eliminó el fondo, borde y sombra para un look más poético y orgánico */
}

.lyrics-text {
  font-family: var(--fb);
  font-size: 1.4rem;
  /* Texto protagonista */
  color: var(--sage-dk);
  /* Contraste profundo y súper elegante */
  line-height: 2;
  /* Respiro amplio entre los versos */
  text-align: center;
  font-style: italic;
  letter-spacing: 0.02em;
}

.lyrics-text p {
  margin-bottom: 35px;
}

.lyrics-text p:last-child {
  margin-bottom: 0;
}

.lyrics-text p.fi {
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.lyrics-text p.fi.vis {
  transition-delay: 0.1s;
}

@media (max-width: 768px) {
  .lyrics-text {
    font-size: 1.2rem;
    line-height: 1.8;
  }

  .lyrics-text p {
    margin-bottom: 25px;
  }
}

.gifts-section {
  background: var(--cream);
}

/* ── GIFTS FLORAL ICON TOP ──────────────────────── */
.gifts-floral-icon {
  width: 80px;
  height: 140px;
  margin: 0 auto 10px;
  overflow: visible;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.gifts-floral-icon:hover {
  opacity: 1;
}

.gifts-floral-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ── GIFTS TITLE MAIN ───────────────────────────── */
.gifts-title-main {
  letter-spacing: .35em !important;
  font-size: 1.45rem;
}

/* ── GIFTS INTRO TEXTS ──────────────────────────── */
.gifts-intro {
  font-family: var(--fb);
  font-size: 1.1rem;
  color: var(--text2);
  line-height: 1.75;
  margin: 22px auto 0;
  max-width: 460px;
}

.gifts-cursive {
  font-family: var(--fs);
  font-size: 2rem;
  color: var(--text2);
  margin: 14px auto 0;
  line-height: 1.4;
  opacity: .85;
}

.gifts-heart-sep {
  margin: 18px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gifts-sub {
  font-family: var(--fb);
  font-size: 1rem;
  color: var(--text2);
  line-height: 1.8;
  margin: 0 auto;
  max-width: 400px;
}

.gifts-divider {
  width: 60px;
  height: 1px;
  background: var(--sage-lt);
  margin: 30px auto 24px;
}

.gifts-stores-label {
  font-family: var(--ff);
  font-size: .58rem;
  letter-spacing: .26em;
  color: var(--text3);
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* ── GIFTS STORES GRID ──────────────────────────── */
.gifts-stores {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--rLg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* Vertical separator between stores */
.gifts-store-sep {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
  align-self: stretch;
}

/* Individual store card */
.gifts-store-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 20px 22px;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, transform .2s;
  position: relative;
  gap: 10px;
  min-width: 0;
}

.gifts-store-card:hover {
  background: var(--champagne);
  transform: translateY(-2px);
}

/* Logo container */
.gifts-store-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  /* Tightened to match Sukasa logo */
  width: 100%;
  overflow: hidden;
}

.gifts-store-logo svg,
.gifts-store-logo img {
  max-width: 100%;
  height: 40px;
  display: block;
  object-fit: contain;
}

/* Specific scaling requested by user */
#giftStoreSukasa .gifts-store-logo img {
  height: 70px;
  /* Restored to 70px */
}

#giftStoreAmbitec .gifts-store-logo svg,
#giftStoreCrateBarrel .gifts-store-logo img {
  height: 55px;
  /* Consistent height for both */
}

/* Mini botanical sprig below logo */
.gifts-store-sprig {
  display: flex;
  justify-content: center;
  margin: 5px 0;
}

.gifts-store-sprig svg {
  width: 28px;
  height: 64px;
  /* Adjusted for vertical sprig-2 */
  display: block;
  opacity: .9;
}

/* "Da clic en el logo..." text */
.gifts-store-cta {
  font-family: var(--fb);
  font-size: .78rem;
  color: var(--text3);
  line-height: 1.5;
  text-align: center;
  font-style: italic;
}

/* Ambitec — coming soon state */
.gifts-store-card--soon {
  opacity: .65;
  cursor: default;
  pointer-events: none;
  position: relative;
}

.gifts-store-card--soon::after {
  content: 'Próximamente';
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--ff);
  font-size: .45rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-pale);
  border: 1px solid var(--border);
  padding: 3px 7px;
  border-radius: 4px;
}

/* ── GIFTS BANK BANNER ────────────────────────────── */
.gifts-bank-banner {
  display: flex;
  align-items: stretch;
  max-width: 680px;
  margin: 0 auto 60px;
  background: #f4f1ee;
  /* Soft champagne background from reference */
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.gifts-bank-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 40px;
  /* Reduced padding */
  flex-shrink: 0;
  color: #a69076;
}

.gifts-bank-icon-wrap svg {
  width: 38px;
  /* Slightly smaller icon */
  height: 38px;
}

.gifts-bank-divider {
  width: 1px;
  background: rgba(166, 144, 118, 0.2);
  margin: 20px 0;
  /* Shorter divider */
  flex-shrink: 0;
}

.gifts-bank-content {
  flex: 1;
  padding: 22px 40px;
  /* Reduced padding */
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.gifts-bank-intro {
  font-family: var(--fb);
  font-size: .95rem;
  /* Slightly smaller text */
  color: #555;
  line-height: 1.4;
  /* Tighter line height */
  margin: 0 0 12px;
  /* Reduced margin */
}

.gifts-bank-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  /* Tighter gap between account rows */
}

.gifts-bank-row {
  font-family: var(--ff);
  font-size: .78rem;
  color: #444;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.gifts-bank-label {
  font-weight: 700;
  color: #a69076;
  text-transform: uppercase;
  font-size: .62rem;
  letter-spacing: .05em;
  min-width: 55px;
}

.gifts-bank-value {
  font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 650px) {
  .gifts-bank-banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 20px 40px;
  }

  .gifts-bank-divider {
    width: 60px;
    height: 1px;
    margin: 0;
  }

  .gifts-bank-icon-wrap {
    padding: 35px 20px 20px;
  }

  .gifts-bank-content {
    padding: 20px 25px 40px;
    text-align: center;
  }

  .gifts-bank-intro {
    font-size: .95rem;
  }
}

.gifts-bank-num {
  font-family: var(--ff);
  font-size: .85rem;
  color: var(--text);
  font-weight: 500;
  letter-spacing: .06em;
  word-break: break-all;
}

/* ── GIFTS BOTTOM ORNAMENT ──────────────────────── */
.gifts-bottom-ornament {
  display: flex;
  justify-content: center;
  margin-top: 8px;
  opacity: .65;
}

/* ── RESPONSIVE GIFTS ───────────────────────────── */
@media (max-width: 640px) {
  .gifts-stores {
    flex-direction: column;
    max-width: 340px;
  }

  .gifts-store-sep {
    width: 100%;
    height: 1px;
  }

  .gifts-store-card {
    padding: 22px 24px 18px;
  }

  .gifts-bank-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 22px 20px;
  }

  .gifts-bank-row {
    justify-content: center;
  }

  .gifts-bank-label {
    min-width: auto;
  }

  .gifts-bank-intro {
    text-align: center;
  }

  .gifts-title-main {
    font-size: 1.15rem;
    letter-spacing: .22em !important;
  }

  .gifts-cursive {
    font-size: 1.7rem;
  }
}


/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 992px) {
  :root {
    --py: 60px;
  }

  .nav-links {
    position: fixed;
    top: var(--navH);
    left: 0;
    right: 0;
    background: rgb(250, 247, 240);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 14px 20px 20px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s ease, opacity .4s ease;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    width: 100%;
    box-sizing: border-box;
    max-height: calc(100svh - var(--navH));
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  }

  .nav-links a {
    font-size: .68rem;
    padding: 12px 16px;
    text-align: center;
    width: 100%;
    border-radius: 8px;
  }

  .nav-btn {
    display: flex;
  }

  .dc-items {
    flex-direction: column;
    gap: 20px;
  }

  .dc-divider {
    width: 50px;
    height: 1px;
    margin: 0 auto;
  }

  .dc-arch {
    padding: 56px 28px 44px;
  }

  .dc-style {
    font-size: 2.1rem;
  }

  .dc-date {
    font-size: 0.9rem;
  }

  .t-events {
    max-width: 100%;
  }

  .t-card {
    padding: 36px 24px;
  }

  .places {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:460px) {
  .places {
    grid-template-columns: 1fr;
  }

  .cd {
    padding: 8px 12px;
    gap: 4px;
  }

  .cd-item {
    min-width: 36px;
  }

  .cd-sep {
    font-size: 1rem;
  }
}

/* ── MUSIC TOGGLE BUTTON ────────────────────────── */
.music-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.music-tooltip {
  background: var(--white);
  color: var(--sage-dk);
  border: 1px solid var(--gold);
  padding: 10px 18px;
  border-radius: 30px;
  font-family: var(--ff);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  position: relative;
  pointer-events: none; /* Permite que el clic pase al botón de abajo */
}

/* Flechita del tooltip */
.music-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 18px;
  width: 10px;
  height: 10px;
  background: var(--white);
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
}

.music-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: tooltip-bounce 2.5s infinite ease-in-out;
}

@keyframes tooltip-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.music-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--sage-dk);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  border: none;
  pointer-events: auto;
}

.music-toggle:hover {
  transform: scale(1.1);
  background: var(--sage);
}

.float-lang-toggle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  color: var(--sage-dk);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  pointer-events: auto;
  font-family: var(--ff);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 12px;
}

.float-lang-toggle:hover {
  transform: scale(1.1);
  background: var(--sage-pale);
}

.music-icon {
  width: 24px;
  height: 24px;
}

.music-playing .music-icon-play {
  display: none !important;
}

.music-playing .music-icon-pause {
  display: block !important;
}

@media (max-width: 768px) {
  .music-toggle {
    bottom: 30px;
    right: 20px;
    width: 48px;
    height: 48px;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  .float-lang-toggle {
    width: 48px;
    height: 48px;
  }

  .music-icon {
    width: 22px;
    height: 22px;
  }
}
/* ── ENVELOPE OVERLAY ──────────────────────────── */
.lock-scroll {
  overflow: hidden !important;
  height: 100vh;
}

.envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f5edd6; /* fallback champagne — visible si la imagen tarda */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.5s ease, visibility 1.5s;
  perspective: 2500px;
  overflow: hidden;
  visibility: visible;
  opacity: 1;
}

/* ── Background image (4.png) con Ken Burns ─── */
.env-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.env-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: envKenBurns 22s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes envKenBurns {
  0%   { transform: scale(1.04) translate(0, 0); }
  25%  { transform: scale(1.07) translate(-1%, 0.5%); }
  50%  { transform: scale(1.05) translate(0.5%, -0.5%); }
  75%  { transform: scale(1.08) translate(-0.5%, 1%); }
  100% { transform: scale(1.04) translate(1%, 0); }
}

.env-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.35); /* Filtro más sutil para que se vea el fondo */
}

/* ── Corner decorations ─── */
.env-corner {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  filter: blur(14px);
  width: clamp(180px, 25vw, 350px);
}

.env-corner--tl {
  top: 0; left: 0;
  transform: translate(-10%, -10%) scale(0.82);
  transform-origin: top left;
  animation: cEnterTL 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}
.env-corner--tr {
  top: 0; right: 0;
  transform: translate(10%, -10%) scale(0.82);
  transform-origin: top right;
  animation: cEnterTR 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}
.env-corner--bl {
  bottom: 0; left: 0;
  transform: translate(-10%, 10%) scale(0.82);
  transform-origin: bottom left;
  animation: cEnterBL 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
.env-corner--br {
  bottom: 0; right: 0;
  transform: translate(10%, 10%) scale(0.82);
  transform-origin: bottom right;
  animation: cEnterBR 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

@keyframes cEnterTL { to { opacity: 1; filter: blur(0); transform: translate(0,0) scale(1); } }
@keyframes cEnterTR { to { opacity: 1; filter: blur(0); transform: translate(0,0) scale(1); } }
@keyframes cEnterBL { to { opacity: 1; filter: blur(0); transform: translate(0,0) scale(1); } }
@keyframes cEnterBR { to { opacity: 1; filter: blur(0); transform: translate(0,0) scale(1); } }


.envelope-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Todo arriba */
  transform-style: preserve-3d;
  gap: clamp(4px, 1vh, 10px);
  padding: clamp(60px, 10vh, 120px) clamp(16px, 4vw, 40px) clamp(20px, 3vh, 50px);
}

/* ── Names header (over envelope) ─── */
.env-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
  width: 100%;
  opacity: 0;
  transform: translateY(-16px);
  filter: blur(10px);
  animation: envHeaderIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
  margin-bottom: -70px; /* trae el sobre mucho más cerca */
  position: relative;
  z-index: 10;
}

@keyframes envHeaderIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ── "NUESTRA BODA" texto sobre la imagen ─── */
.env-nuestra-boda {
  font-family: var(--ff);
  font-size: clamp(0.72rem, 2vw, 1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #68844B;
  font-weight: 600;
  margin: 0 0 4px 0;
  text-align: center;
}

/* Names image (Text.png) */
.env-names-img {
  width: min(320px, 75vw);
  height: auto;
  display: block;
  /* La imagen tiene fondo blanco — usamos mix-blend-mode para que se integre */
  mix-blend-mode: multiply;
  margin-top: -10px;
}

.env-names {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  width: 100%;
  max-width: clamp(280px, 88vw, 1000px);
  padding: 0 20px;
}

.env-name-cris,
.env-name-samu {
  font-family: 'CitadelScript', cursive;
  font-size: clamp(4.2rem, 13vw, 7.8rem);
  color: #fff;
  line-height: 0.85;
  position: relative;
  z-index: 2;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: none;
}

.env-name-cris {
  align-self: flex-start;
  margin-left: -8%;
}

.env-name-samu {
  align-self: flex-end;
  margin-right: -8%;
  margin-top: -15px;
}

.env-name-amp {
  font-family: 'SnellRoundhand', cursive;
  font-size: clamp(6rem, 20vw, 15rem);
  color: var(--gold-lt);
  opacity: 0.38;
  position: absolute;
  left: 68%;
  top: 50%;
  transform: translate(-50%, -58%);
  z-index: 1;
  pointer-events: none;
  font-weight: normal;
  line-height: 1;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

/* ── Footer text (Cinzel — misma fuente que arch "NUESTRA BODA") ─── */
.env-footer-text {
  text-align: center;
  margin: 0;
  opacity: 0;
  transform: translateY(14px);
  filter: blur(8px);
  animation: envFooterIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards;
}

.env-footer-script {
  font-family: var(--ff);
  font-size: clamp(0.72rem, 2vw, 1rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #68844B;
  font-weight: 600;
  display: block;
}

@keyframes envFooterIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.envelope {
  position: relative;
  width: min(700px, 94vw);
  height: min(480px, 50vh);
  min-height: 240px;
  transform-style: preserve-3d;
  transition: transform 1.5s ease-in-out;
  opacity: 0;
  transform: scale(0.9) translateY(14px);
  animation: envelopeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

@keyframes envelopeIn {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.18));
  }
}

.envelope.is-open {
  transform: scale(0.9);
}

/* Main body of the envelope */
.envelope-body {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.env-img-body {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
}

/* Top Flap */
.envelope-flap {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 100%; 
  transform-origin: center 12.8%;
  z-index: 10;
  transition: transform 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.env-img-flap {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
}

.envelope.is-open .envelope-flap {
  transform: rotateX(110deg);
}

/* Wax Seal */
.wax-seal {
  position: absolute;
  top: 54%; 
  left: 50%;
  width: min(190px, 38vw);
  height: min(190px, 38vw);
  transform: translate(-50%, -50%) translateZ(15px);
  z-index: 20;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  border-radius: 50%;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.1) translateZ(25px);
}

.wax-seal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 15px rgba(0,0,0,0.22));
}

.seal-hint-svg {
  position: absolute;
  top: 54%;
  left: 50%;
  width: min(280px, 62vw);
  transform: translate(-50%, -93%) translateZ(10px);
  z-index: 25;
  pointer-events: none;
  opacity: 0;
  animation: hintFadeIn 0.8s ease forwards 0.6s;
}

.seal-hint-text {
  font-family: var(--ff);
  font-size: 13px;
  fill: #68844B;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.envelope.is-open .seal-hint-svg {
  opacity: 0 !important;
  transition: opacity 0.4s ease;
}

.hint-mobile {
  display: none;
}

@media (max-width: 480px) {
  .hint-desktop {
    display: none;
  }
  .hint-mobile {
    display: block;
  }
  .seal-hint-svg {
    width: min(195px, 60vw);
    transform: translate(-50%, -107%) translateZ(10px);
    animation-delay: 0.4s;
  }
  .seal-hint-text {
    font-size: 10.5px;
    letter-spacing: 0.14em;
  }
}

@keyframes hintFadeIn {
  to { opacity: 1; }
}

.envelope.is-open .wax-seal {
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease 0.3s;
  animation: none; /* Detiene el latido al abrir */
}

@keyframes sealPulse {
  0%, 100% { 
    transform: translate(-50%, -50%) scale(1) translateZ(15px);
  }
  50% { 
    transform: translate(-50%, -50%) scale(1.06) translateZ(30px);
  }
}

@media (max-width: 768px) {
  .env-corner { width: clamp(100px, 25vw, 180px); }

  .envelope-wrapper {
    gap: clamp(6px, 1.5vh, 14px);
    padding-top: clamp(64px, 10vh, 100px);
  }

  .envelope {
    width: 95vw;
    height: clamp(210px, 38vh, 320px);
    min-height: 210px;
  }

  .envelope-flap {
    transform-origin: center 10%;
  }

  .wax-seal {
    width: min(140px, 32vw);
    height: min(140px, 32vw);
    top: 51%;
  }

  .env-names {
    width: clamp(210px, 84vw, 380px);
  }
}

@media (max-width: 480px) {
  .env-corner { width: clamp(80px, 22vw, 140px); }

  .env-name-cris,
  .env-name-samu {
    font-size: clamp(2.2rem, 10.5vw, 3.5rem);
  }

  .envelope {
    height: clamp(190px, 34vh, 280px);
    min-height: 190px;
  }

  .envelope-flap {
    transform-origin: center 9%;
  }

  .wax-seal {
    width: min(120px, 28vw);
    height: min(120px, 28vw);
    top: 50%;
  }
}

@media (min-height: 900px) and (min-width: 768px) {
  .envelope {
    width: min(640px, 78vw);
    height: min(440px, 46vh);
  }
}

@media (min-width: 1024px) {
  .envelope-flap {
    transform-origin: center 9.5%;
  }
}
