/* ============================================
   Invitada · web (desktop)
   noviosgift.cl/antonia-matias
   ============================================ */

:root {
  --paper: #F8F4EC;
  --bone: #F4EFE6;
  --cream: #ECE4D2;
  --ink: #2A2620;
  --ink-soft: #4A433B;
  --ink-mute: #8B8275;
  --line: #D9CFBC;
  --hairline: rgba(42, 38, 32, 0.10);
  --sage: #8A9279;
  --sage-deep: #5F6A52;
  --terracotta: #B86A4A;
  --terracotta-soft: #D9947A;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
input, textarea { font-family: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}
.serif { font-family: var(--serif); font-weight: 300; letter-spacing: -0.01em; }
.it { font-family: var(--serif); font-style: italic; font-weight: 300; }
.eyebrow {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  font-weight: 500; color: var(--terracotta);
}
.mono {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-mute);
}

/* ===== Top bar (subtle, transparent on hero) ===== */
.gtop {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.gtop.scrolled {
  background: rgba(248, 244, 236, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--hairline);
}
.gtop-mark {
  font-family: var(--serif);
  font-style: italic;
  white-space: nowrap;
  font-size: 18px;
  letter-spacing: 0.005em;
  color: var(--paper);
  transition: color 0.4s;
}
.gtop-mark .amp { color: var(--terracotta-soft); margin: 0 4px; }
.gtop.scrolled .gtop-mark { color: var(--ink); }
.gtop.scrolled .gtop-mark .amp { color: var(--terracotta); }

.gtop-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.gtop-nav a {
  font-size: 12px;
  letter-spacing: 0.18em;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(244, 239, 230, 0.78);
  transition: color 0.3s;
}
.gtop-nav a:hover { color: var(--paper); }
.gtop.scrolled .gtop-nav a { color: var(--ink-soft); }
.gtop.scrolled .gtop-nav a:hover { color: var(--ink); }

.gtop-day {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(244, 239, 230, 0.6);
  transition: color 0.4s;
}
.gtop.scrolled .gtop-day { color: var(--ink-mute); }

/* ===== HERO — full bleed cinematic ===== */
.ghero {
  position: relative;
  height: 100vh;
  min-height: 720px;
  overflow: hidden;
  background: #6e5e48;
}
.ghero-img {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(0,0,0,0.0) 50%, rgba(26, 22, 18, 0.6) 100%),
    repeating-linear-gradient(45deg,
      rgba(168, 140, 110, 0.35) 0px,
      rgba(168, 140, 110, 0.35) 2px,
      rgba(180, 152, 122, 0.35) 2px,
      rgba(180, 152, 122, 0.35) 4px),
    radial-gradient(ellipse at 50% 35%, #b8a07e 0%, #6e5e48 70%, #4a3e2e 100%);
  background-blend-mode: normal, soft-light, normal;
}
.ghero-img::before {
  content: "";
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 480px; height: 640px;
  background:
    radial-gradient(ellipse 110px 140px at 38% 20%, rgba(40,30,20,0.55), transparent 70%),
    radial-gradient(ellipse 110px 140px at 62% 22%, rgba(40,30,20,0.50), transparent 70%),
    radial-gradient(ellipse 200px 360px at 50% 78%, rgba(40,30,20,0.55), transparent 70%);
  filter: blur(3px);
}

.ghero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--paper);
  padding: 0 40px;
}
.ghero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.85);
  font-weight: 400;
  margin-bottom: 36px;
}
.ghero-names {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(72px, 11vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--paper);
}
.ghero-names .amp {
  display: block;
  font-style: italic;
  font-size: 0.55em;
  margin: 0.05em 0;
  color: rgba(244, 239, 230, 0.85);
  font-weight: 300;
}
.ghero-date {
  margin-top: 48px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: rgba(244, 239, 230, 0.92);
}
.ghero-date .sep {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.7);
  vertical-align: middle;
  margin: 0 14px;
}
.ghero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(244, 239, 230, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.ghero-scroll .line {
  width: 1px; height: 32px;
  background: linear-gradient(180deg, transparent, rgba(244,239,230,0.85));
  animation: dropline 2.4s var(--ease-out) infinite;
}
@keyframes dropline {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* welcome strip — dice quién entró con el código */
.welcome-strip {
  position: absolute;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(244, 239, 230, 0.14);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 239, 230, 0.18);
  border-radius: 100px;
  padding: 8px 18px 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--paper);
  z-index: 2;
}
.welcome-strip .badge {
  background: var(--terracotta);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}
.welcome-strip .it {
  font-style: italic;
  color: rgba(244, 239, 230, 0.85);
}

/* ===== Section base ===== */
.gsection {
  padding: 140px 0;
  position: relative;
}
.gsection.tight { padding: 100px 0; }
.gsection.bone { background: var(--bone); }
.gsection.cream { background: var(--cream); }
.gsection.ink {
  background: var(--ink);
  color: var(--paper);
}
.gsection.ink h2, .gsection.ink .ginfo-value { color: var(--paper); }
.gsection.ink .eyebrow { color: var(--terracotta-soft); }
.gsection.ink .ginfo-label { color: rgba(244,239,230,0.55); }

.gsection-head {
  max-width: 720px;
  margin: 0 auto 80px;
  text-align: center;
}
.gsection-eyebrow { margin-bottom: 24px; }
.gsection-h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}
.gsection-h2 .it { font-style: italic; }
.gsection-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ===== Historia ===== */
.story {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 96px;
  align-items: center;
}
.story-photo-frame {
  height: 600px;
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(168, 140, 110, 0.28) 0px, rgba(168, 140, 110, 0.28) 2px,
      rgba(192, 162, 130, 0.28) 2px, rgba(192, 162, 130, 0.28) 4px),
    linear-gradient(180deg, #c8b598, #9b8567);
  border-radius: 4px;
}
.story-photo-frame::after {
  content: "una tarde de noviembre";
  position: absolute;
  bottom: 18px; right: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(244, 239, 230, 0.92);
}
.story-photo-stamp {
  position: absolute;
  top: 22px; left: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(244, 239, 230, 0.85);
  background: rgba(0,0,0,0.18);
  padding: 6px 10px;
  border-radius: 4px;
}

.story-text h2 { font-size: clamp(40px, 4.6vw, 56px); margin-bottom: 24px; }
.story-body p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 20px;
  max-width: 50ch;
}
.story-body em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 300;
}
.story-sig {
  margin-top: 32px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
}
.story-sig .small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  font-style: normal;
  margin-bottom: 6px;
}

/* ===== Detalles del evento ===== */
.gdetails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-top: 24px;
}
.gsection.ink .gdetails {
  border-top-color: rgba(244,239,230,0.15);
  border-bottom-color: rgba(244,239,230,0.15);
}
.gdetail {
  padding: 56px 40px;
  border-right: 1px solid var(--hairline);
  text-align: center;
}
.gsection.ink .gdetail { border-right-color: rgba(244,239,230,0.15); }
.gdetail:last-child { border-right: none; }
.ginfo-label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 16px;
}
.ginfo-value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 28px;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
}
.ginfo-value .it { font-style: italic; }
.ginfo-detail {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-mute);
  margin-top: 8px;
}
.ginfo-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--terracotta);
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 2px;
}
.gsection.ink .ginfo-link { color: var(--terracotta-soft); border-bottom-color: var(--terracotta-soft); }

/* dress code + countdown row */
.gevent-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 80px;
  align-items: center;
}
.dress {
  text-align: center;
}
.dress-label {
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  margin-bottom: 16px;
}
.dress-value {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.dress-value .it { font-style: italic; }
.dress-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-mute);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 24px;
  text-align: center;
}
.cd {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 24px 24px;
  min-width: 90px;
}
.cd-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.cd-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-top: 8px;
}

/* ===== RSVP ===== */
.rsvp {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.rsvp-question {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 32px 0 32px;
  color: var(--ink);
}
.rsvp-question .it { font-style: italic; color: var(--terracotta); }
.rsvp-options {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.rsvp-btn {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 18px 36px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.3s var(--ease-out);
}
.rsvp-btn:hover {
  border-color: var(--ink);
  background: #fff;
  transform: translateY(-2px);
}
.rsvp-btn.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.rsvp-btn.no.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.rsvp-confirm {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--sage-deep);
  min-height: 24px;
  transition: opacity 0.3s;
}

/* ===== GIFTS GRID ===== */
.gifts-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 48px;
  flex-wrap: wrap;
}
.gifts-head h2 { margin: 0; }
.gifts-stats {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.08em;
  display: flex;
  gap: 24px;
}
.gifts-stats .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--terracotta);
  margin-right: 6px;
}

.ggrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.gcard {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
}
.gcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 50px rgba(42, 38, 32, 0.10);
  border-color: var(--terracotta);
}
.gcard.taken {
  opacity: 0.55;
  cursor: default;
}
.gcard.taken:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--hairline);
}
.gcard-img {
  height: 200px;
  position: relative;
  background: linear-gradient(135deg, #c8b598, #9b8567);
  overflow: hidden;
}
.gcard-img.s1 { background: radial-gradient(ellipse at 50% 60%, rgba(184, 106, 74, 0.35), transparent 70%), linear-gradient(135deg, #d4b8a0, #b8916e); }
.gcard-img.s2 { background: radial-gradient(ellipse at 30% 40%, rgba(138, 146, 121, 0.45), transparent 70%), linear-gradient(135deg, #b8b8a0, #8a9279); }
.gcard-img.s3 { background: radial-gradient(ellipse at 70% 30%, rgba(184, 153, 104, 0.55), transparent 70%), linear-gradient(135deg, #d4c4a0, #a08868); }
.gcard-img.s4 { background: radial-gradient(ellipse at 40% 70%, rgba(217, 148, 122, 0.45), transparent 70%), linear-gradient(135deg, #c8a8a0, #a07868); }
.gcard-img.s5 { background: radial-gradient(ellipse at 60% 50%, rgba(95, 106, 82, 0.45), transparent 70%), linear-gradient(135deg, #a8b89a, #6e7e60); }
.gcard-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.gcard-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(45deg,
    rgba(255,255,255,0.04) 0px, rgba(255,255,255,0.04) 1px,
    transparent 1px, transparent 4px);
}
.gcard-img.has-image::before {
  background: linear-gradient(to bottom, rgba(42,38,32,0.08), rgba(42,38,32,0));
}
.gcard-status {
  position: absolute;
  top: 14px;
  white-space: nowrap;
  left: 14px;
  background: rgba(248, 244, 236, 0.95);
  backdrop-filter: blur(8px);
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--sage-deep);
  display: flex;
  align-items: center;
  gap: 6px;
}
.gcard-status .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--sage-deep);
}
.gcard-status.taken { color: var(--terracotta); }
.gcard-status.taken .dot { background: var(--terracotta); }

.gcard-body { padding: 22px 24px 26px; }
.gcard-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
  color: var(--ink);
}
.gcard-name .it { font-style: italic; }
.gcard-desc {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-mute);
  margin: 0 0 18px;
  min-height: 42px;
}
.gcard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}
.gcard-amount {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.gcard-amount .clp {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  margin-right: 4px;
  font-weight: 500;
}
.gcard-cta {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}
.gcard:hover .gcard-cta { gap: 10px; }
.gcard.taken .gcard-cta {
  color: var(--ink-mute);
  font-style: italic;
  font-family: var(--serif);
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
}
.gcard-takenby {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
}

/* gifts intro */
.gifts-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

/* ===== Mensajes recibidos ===== */
.messages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.msg-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 28px 28px;
}
.msg-quote {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.msg-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.msg-author {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.msg-author .small {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 2px;
  letter-spacing: 0;
}
.msg-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}

/* ===== Lugar / mapa ===== */
.glugar {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.glugar-text h2 { font-size: clamp(40px, 4.6vw, 56px); margin-bottom: 24px; }
.glugar-body p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 48ch;
}
.glugar-stays {
  margin-top: 32px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 24px 28px;
}
.glugar-stays-h {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.glugar-stay {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.glugar-stay:last-child { border-bottom: none; }
.glugar-stay-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 16px;
}
.glugar-stay-name .it { font-style: italic; }
.glugar-stay-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

.glugar-map {
  height: 540px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background:
    radial-gradient(circle at 30% 20%, rgba(138, 146, 121, 0.20), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(217, 148, 122, 0.20), transparent 50%),
    repeating-linear-gradient(0deg, rgba(42,38,32,0.04) 0px, rgba(42,38,32,0.04) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(90deg, rgba(42,38,32,0.04) 0px, rgba(42,38,32,0.04) 1px, transparent 1px, transparent 80px),
    var(--bone);
  border: 1px solid var(--hairline);
}
.glugar-map:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
}
.glugar-map::before {
  content: "";
  position: absolute;
  top: 30%; left: 20%;
  right: 25%; bottom: 35%;
  border: 1px dashed var(--ink-mute);
  border-radius: 50%;
  opacity: 0.3;
}
.map-pin {
  position: absolute;
  top: 48%;
  left: 52%;
  transform: translate(-50%, -100%);
}
.map-pin .dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--terracotta), 0 4px 16px rgba(184, 106, 74, 0.4);
  margin: 0 auto;
}
.map-pin .label {
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 8px;
  white-space: nowrap;
}
.map-pin .label::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--ink);
}
.map-mini-pins {
  position: absolute;
  inset: 0;
}
.map-mini-pins span {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--ink-mute);
  border-radius: 50%;
  border: 2px solid var(--bone);
}
.map-open {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
}
.map-open:hover {
  background: var(--terracotta);
}

/* ===== Footer ===== */
.gfooter {
  background: var(--ink);
  color: var(--paper);
  padding: 96px 0 40px;
  text-align: center;
}
.gfooter-mark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.gfooter-mark .amp {
  display: block;
  font-style: italic;
  font-size: 0.55em;
  margin: 0.05em 0;
  color: var(--terracotta-soft);
  font-weight: 300;
}
.gfooter-date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(244, 239, 230, 0.65);
  margin: 24px 0 64px;
}
.gfooter-thanks {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  line-height: 1.4;
  color: rgba(244, 239, 230, 0.92);
  max-width: 480px;
  margin: 0 auto 48px;
}
.gfooter-mini {
  border-top: 1px solid rgba(244,239,230,0.10);
  padding-top: 24px;
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 230, 0.40);
}
.gfooter-mini a {
  color: rgba(244, 239, 230, 0.55);
  transition: color 0.2s;
}
.gfooter-mini a:hover { color: var(--paper); }

/* ===== Modal regalo ===== */
.gmodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 18, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: fade-in 0.3s var(--ease-out);
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.gmodal {
  background: var(--paper);
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 8px;
  position: relative;
  animation: pop-up 0.4s var(--ease-out);
  box-shadow: 0 60px 120px rgba(0,0,0,0.4);
}
@keyframes pop-up {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.gmodal-x {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  font-size: 20px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: background 0.2s;
}
.gmodal-x:hover { background: #fff; }

.gmodal-step { padding: 56px 56px 48px; }
.gmodal-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 500;
  text-align: center;
  margin-bottom: 22px;
}
.gmodal-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-align: center;
  margin: 0 0 14px;
}
.gmodal-title .it { font-style: italic; }
.gmodal-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-soft);
  text-align: center;
  margin: 0 0 36px;
  line-height: 1.5;
}

.gmodal-preview {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}
.gmodal-preview-img {
  width: 72px; height: 72px;
  border-radius: 4px;
  flex-shrink: 0;
}
.gmodal-preview-name {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 4px;
}
.gmodal-preview-name .it { font-style: italic; }
.gmodal-preview-amount {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* fields */
.gfield {
  margin-bottom: 20px;
}
.gfield-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 10px;
}
.gfield-input,
.gfield-textarea {
  width: 100%;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 16px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: all 0.2s;
}
.gfield-input:focus,
.gfield-textarea:focus {
  border-color: var(--terracotta);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184, 106, 74, 0.10);
}
.gfield-textarea {
  resize: none;
  font-style: italic;
  line-height: 1.5;
  min-height: 110px;
}
.gfield-input::placeholder,
.gfield-textarea::placeholder {
  color: var(--ink-mute);
  opacity: 0.7;
  font-style: italic;
}

.gamount-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.gamount-chip {
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.gamount-chip:hover { border-color: var(--ink-mute); }
.gamount-chip.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.gbtn {
  width: 100%;
  padding: 18px 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.gbtn:hover { background: var(--terracotta); transform: translateY(-1px); }
.gbtn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.gbtn.terra { background: var(--terracotta); }
.gbtn.terra:hover { background: #a25a3d; }

.gbtn-text {
  width: 100%;
  text-align: center;
  padding: 16px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
  margin-top: 8px;
  transition: color 0.2s;
}
.gbtn-text:hover { color: var(--ink); }

/* transferencia */
.gtransfer {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  margin-bottom: 16px;
}
.gtransfer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--hairline);
}
.gtransfer-row:last-child { border-bottom: none; }
.gtransfer-row-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-bottom: 4px;
}
.gtransfer-row-value {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.gtransfer-copy {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(184, 106, 74, 0.08);
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  font-size: 14px;
}
.gtransfer-copy:hover { background: rgba(184, 106, 74, 0.16); }
.gtransfer-copy.copied {
  background: var(--sage-deep);
  color: var(--paper);
}
.gtransfer-help {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-mute);
  text-align: center;
  margin: 18px 0 28px;
  line-height: 1.5;
}
.gtransfer-help strong {
  color: var(--terracotta);
  font-style: normal;
  font-weight: 500;
  font-family: var(--sans);
}

/* confirm step */
.gconfirm {
  text-align: center;
  padding: 24px 0 8px;
}
.gconfirm-mark {
  width: 64px; height: 64px;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  animation: mark-in 0.8s var(--ease-out);
}
.gconfirm-mark::after {
  content: "";
  width: 10px; height: 10px;
  background: var(--terracotta);
  border-radius: 50%;
}
@keyframes mark-in {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.gconfirm-msg {
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 22px 26px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  text-align: left;
  margin: 24px 0 32px;
  line-height: 1.6;
}
.gconfirm-msg .label {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
  font-style: normal;
}

/* ── Fee breakdown ── */
.gfee-box {
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  overflow: hidden;
  margin: 16px 0 24px;
}
.gfee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--hairline);
}
.gfee-row:last-child { border-bottom: none; }
.gfee-detail {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-mute);
  background: rgba(255,255,255,0.4);
}
.gfee-detail em { font-style: normal; color: var(--ink-mute); }
.gfee-total {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  padding: 14px 16px;
}
.gfee-total span:last-child { color: var(--terracotta); }
.gfee-service {
  color: var(--ink-mute);
  font-size: 13px;
}
.gfee-micro {
  padding: 10px 16px 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
  border-top: 1px solid var(--hairline);
  background: rgba(255,255,255,0.5);
}

/* ── Payment summary ── */
.gpay-summary {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.gpay-summary-gift {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.gpay-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 5px 0;
}
.gpay-summary-row.muted { color: var(--ink-mute); font-style: italic; }
.gpay-summary-row.total {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  border-top: 1px solid var(--hairline);
  margin-top: 8px;
  padding-top: 12px;
}
.gpay-summary-row.total span:last-child { color: var(--terracotta); }

/* ── Card form ── */
.gcard-form { margin-bottom: 16px; }
.gcard-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gfield-mono {
  font-family: var(--mono) !important;
  letter-spacing: 0.08em;
}
.gcard-brand {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--terracotta);
  vertical-align: middle;
}

.gpay-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.gpay-lock { font-style: normal; }

/* reveal */
.greveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.greveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* responsive */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
  .story, .glugar { grid-template-columns: 1fr; gap: 48px; }
  .gdetails, .ggrid, .messages { grid-template-columns: 1fr; }
  .gdetail { border-right: none; border-bottom: 1px solid var(--hairline); }
  .gdetail:last-child { border-bottom: none; }
  .gevent-extras { grid-template-columns: 1fr; gap: 32px; }
  .gtop-nav { display: none; }
  .gsection { padding: 80px 0; }
  .gmodal-step { padding: 36px 28px; }
}

@media (max-width: 680px) {
  .container { padding: 0 22px; }

  .gtop {
    padding: 16px 20px;
  }

  .gtop-day {
    display: none;
  }

  .ghero {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .ghero-content {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding: 88px 22px 72px;
  }

  .ghero-eyebrow {
    font-size: 9px;
    letter-spacing: 0.28em;
    margin-bottom: 24px;
  }

  .ghero-names {
    font-size: clamp(48px, 18vw, 76px);
    line-height: 0.96;
  }

  .ghero-date {
    margin-top: 32px;
    font-size: 18px;
    line-height: 1.45;
  }

  .ghero-date .sep {
    margin: 0 8px;
  }

  .gsection {
    padding: 64px 0;
  }
}

@media (max-width: 420px) {
  .gtop {
    padding: 14px 16px;
  }

  .ghero-content {
    padding-inline: 16px;
  }

  .ghero-names {
    font-size: clamp(42px, 17vw, 64px);
  }

  .ghero-date {
    font-size: 16px;
  }
}
