/* =========================================
   Ashley & Cristóbal · 30.05.2026
   Elegante clásico · Mobile-first
   ========================================= */

:root {
  --cream:   #F5F1EA;
  --ivory:   #FFFCF7;
  --paper:   #FAF6EF;
  --ink:     #1F2423;
  --ink-2:   #3D4542;
  --gold:    #A38856;
  --gold-dk: #8A6F3E;
  --sage:    #6B7A5A;
  --mute:    #8E8577;
  --line:    #E6DFD3;

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1100px;
  --narrow: 720px;
  --radius: 2px;
  --shadow-soft: 0 6px 30px rgba(31, 36, 35, 0.06);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-dk); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
button { font-family: inherit; }

/* ----- Typography ----- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: .01em; color: var(--ink); margin: 0; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.25rem; font-weight: 500; }
p  { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .35em;
  color: var(--mute);
  margin: 0 0 1rem;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: .5em;
}
.section-sub {
  text-align: center;
  color: var(--mute);
  max-width: 520px;
  margin: 0 auto 2.5em;
}

.divider {
  text-align: center;
  color: var(--gold);
  margin: 0 auto 1.5rem;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 220px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: .35;
}

.amp {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
  margin: 0 .15em;
}

/* ----- Layout ----- */
.section {
  padding: 5rem 1.25rem;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
}
.container.narrow { max-width: var(--narrow); }
.container.center, .center { text-align: center; }

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  padding: .95rem 1.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .25s ease;
  border: 1px solid transparent;
  min-width: 200px;
  text-align: center;
}
.btn-primary {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--gold-dk);
  color: var(--ivory);
  border-color: var(--gold-dk);
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  margin-top: 1rem;
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--ivory);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  color: var(--ivory);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-image: url('fotos/hero.jpg');
  background-size: cover;
  background-position: center 15%;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(31,36,35,.15) 0%,
      rgba(31,36,35,.30) 25%,
      rgba(31,36,35,.55) 55%,
      rgba(31,36,35,.88) 100%);
}
.hero-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 3rem 1.25rem 3rem;
}
.hero .eyebrow { color: rgba(255,252,247,.85); }
.couple {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  line-height: 1;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.4);
  color: var(--ivory);
}
.couple > span { display: inline-block; }
.couple .amp {
  display: inline-block;
  color: var(--gold);
  font-size: .75em;
  margin: 0 .2em;
}
.date-line {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  letter-spacing: .1em;
  margin: 0 0 .25rem;
  color: var(--ivory);
}
.place-line {
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,252,247,.8);
  margin: 0 0 2.5rem;
}

/* Countdown */
.countdown {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 2.5rem;
}
.cd-unit {
  min-width: 72px;
  background: rgba(255, 252, 247, .1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 252, 247, .2);
  padding: .75rem .9rem;
  border-radius: var(--radius);
  text-align: center;
}
.cd-num {
  display: block;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ivory);
}
.cd-label {
  display: block;
  margin-top: .35rem;
  font-size: .62rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,252,247,.75);
}

.hero .btn-primary {
  background: var(--ivory);
  color: var(--ink);
  border-color: var(--ivory);
}
.hero .btn-primary:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ivory);
}

/* =========================================
   INVITACIÓN
   ========================================= */
.invite {
  background: var(--ivory);
  text-align: center;
}
.invite .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 2rem auto 3rem;
  max-width: 540px;
}
.note {
  max-width: 580px;
  margin: 0 auto;
  padding: 2.25rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  position: relative;
}
.note::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 2px;
  background: var(--gold);
  opacity: .7;
}
.note p { margin: 0 0 1em; color: var(--ink-2); line-height: 1.7; }
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--ink); }
.note-title {
  font-family: var(--serif);
  text-align: center;
  font-size: 1.3rem;
  color: var(--gold-dk) !important;
  margin-bottom: 1.25em !important;
  font-style: italic;
  letter-spacing: .02em;
}
.note-title strong { color: var(--gold-dk); font-weight: 500; }

/* =========================================
   CUÁNDO & DÓNDE
   ========================================= */
.place { background: var(--cream); }
.place-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
.place-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.info-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: var(--radius);
}
.info-eyebrow {
  font-size: .65rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.info-main {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink-2);
  margin: 0;
}
.info-highlight {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2rem);
  color: var(--ink);
  margin: .25rem 0 0;
  letter-spacing: .05em;
}
.info-sub {
  color: var(--mute);
  margin: .4rem 0 0;
  font-size: .95rem;
}
.map-wrap {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* =========================================
   ITINERARIO
   ========================================= */
.itinerary {
  background: var(--ivory);
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 2rem;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 65px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--gold);
  opacity: .4;
}
.timeline li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  position: relative;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 61px;
  top: 12px;
  width: 9px;
  height: 9px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--ivory);
  z-index: 1;
}
.tl-time {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold-dk);
  min-width: 55px;
  padding-top: 3px;
  letter-spacing: .02em;
  font-weight: 500;
}
.tl-body { padding-left: 1.5rem; flex: 1; }
.tl-body h3 { margin: 0 0 .3em; color: var(--ink); }
.tl-body p { margin: 0; color: var(--mute); font-size: .95rem; }

.food-note {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}
.food-note p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* =========================================
   DRESS CODE
   ========================================= */
.dress { background: var(--cream); }
.dress-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  color: var(--gold-dk);
  margin: 1rem 0;
}
.dress-body {
  max-width: 520px;
  margin: 0 auto 2rem;
  color: var(--ink-2);
  font-size: 1.02rem;
}
.dress-colors {
  display: flex;
  gap: .8rem;
  justify-content: center;
  margin: 1rem 0;
}
.swatch {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.dress-hint {
  font-size: .9rem;
  color: var(--mute);
  font-style: italic;
  margin: .5rem 0 0;
}

/* =========================================
   GALERÍA
   ========================================= */
.gallery { background: var(--ivory); }
.masonry {
  column-count: 1;
  column-gap: 12px;
  margin-top: 2rem;
}
.masonry figure {
  break-inside: avoid;
  margin: 0 0 12px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform .4s ease;
}
.masonry figure:hover { transform: translateY(-3px); }
.masonry img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .6s ease;
}
.masonry figure:hover img { transform: scale(1.03); }

/* =========================================
   REGALOS
   ========================================= */
.gifts { background: var(--cream); }
.gifts-intro {
  text-align: center;
  color: var(--ink-2);
  margin: 2rem auto 2.5rem;
  max-width: 540px;
}
.gift-card {
  background: var(--ivory);
  border: 1px solid var(--line);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.gift-data {
  margin: 0 0 1.5rem;
  text-align: left;
}
.gift-data > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
}
.gift-data > div:last-child { border-bottom: 0; }
.gift-data dt {
  color: var(--mute);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0;
}
.gift-data dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
  font-size: .95rem;
}
.copy-btn { position: relative; width: 100%; }
.copy-btn .copy-ok { color: #7aa06e; }
.copy-btn.is-copied {
  background: var(--sage);
  border-color: var(--sage);
}
.copy-btn.is-copied .copy-default { display: none; }
.copy-btn.is-copied .copy-ok { display: inline; }

/* =========================================
   RSVP
   ========================================= */
.rsvp { background: var(--ivory); }
.form-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: .5rem;
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 680px;
  margin: 2rem auto 1.5rem;
}
.form-wrap iframe {
  border: 0;
  display: block;
  width: 100%;
  background: transparent;
}
.form-fallback {
  text-align: center;
  color: var(--mute);
  font-size: .9rem;
  margin-top: 1rem;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: 3.5rem 1.25rem;
}
.foot-couple {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 300;
  margin: 0 0 .2em;
  letter-spacing: .02em;
}
.foot-couple .amp { color: var(--gold); }
.foot-date {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  letter-spacing: .25em;
  margin: 0 0 1.5em;
}
.foot-love {
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 252, 247, .6);
  margin: 0;
}

/* =========================================
   STICKY BAR (floating CTA)
   ========================================= */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.25rem;
  background: rgba(31, 36, 35, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(163, 136, 86, .35);
  color: var(--ivory);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.sticky-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sb-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.sb-mono {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: .05em;
}
.sb-mono em {
  font-style: italic;
  color: var(--gold);
  margin: 0 .1em;
}
.sb-date {
  font-size: .65rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255, 252, 247, .65);
  margin-top: .1rem;
}
.sb-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--ivory);
  padding: .65rem 1.3rem;
  border-radius: var(--radius);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s ease;
}
.sb-cta:hover { background: var(--gold-dk); color: var(--ivory); }

/* Add bottom padding so content doesn't hide behind sticky bar */
body { padding-bottom: 64px; }

/* =========================================
   DESKTOP (≥ 768px)
   ========================================= */
@media (min-width: 768px) {
  .section { padding: 7rem 2rem; }

  .place-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: stretch;
  }
  .place-info { flex-direction: column; }

  .masonry { column-count: 2; column-gap: 16px; }
  .masonry figure { margin-bottom: 16px; }

  .timeline::before { left: 90px; }
  .timeline li::before { left: 86px; }
  .tl-time { min-width: 80px; font-size: 1.2rem; }
}

@media (min-width: 768px) {
  .sticky-bar { padding: 1rem 2rem; }
  .sb-mono { font-size: 1.25rem; }
}

@media (min-width: 1024px) {
  .masonry { column-count: 3; }
  .hero-photo { background-position: center 30%; }
}

/* ----- Motion (respects user preference) ----- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
