/* =====================================================================
   Florencia & Alejo — Landing de casamiento
   Paleta: Bordó / Terracota / Oro viejo / Marfil  (editorial romántico)
   ===================================================================== */

:root {
  /* Paleta */
  --wine:      #6e2333;   /* bordó profundo */
  --wine-deep: #4a1622;   /* bordó oscuro */
  --terra:     #b45a4a;   /* terracota */
  --gold:      #c39a5b;   /* oro viejo */
  --gold-soft: #dcc79b;
  --cream:     #faf4ec;   /* marfil cálido (fondo) */
  --cream-2:   #f3e9dc;   /* marfil un tono más */
  --ink:       #2a1a1f;   /* texto principal */
  --muted:     #7d6660;   /* texto secundario */

  --shadow: 0 18px 50px -20px rgba(74, 22, 34, .35);
  --shadow-sm: 0 8px 24px -12px rgba(74, 22, 34, .3);

  --serif:  "Cormorant Garamond", Georgia, serif;
  --sans:   "Jost", system-ui, sans-serif;
  --script: "Parisienne", cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =====================  LAYOUT  ===================== */
.wrap { width: min(1100px, 90vw); margin-inline: auto; }
.wrap--narrow { width: min(660px, 90vw); }
.center { text-align: center; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section--alt   { background: var(--cream-2); }
.section--where { background: var(--wine); color: var(--cream); }
.section--rsvp  { background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%); color: var(--cream); }
.section--gift  { background: var(--cream-2); }

.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.5vw, 3.2rem);
  letter-spacing: .01em;
  line-height: 1.1;
  margin-bottom: .5rem;
  color: inherit;
}
.section--when .section__title,
.section--alt  .section__title,
.section--gallery .section__title { color: var(--wine); }
.section--gift .section__title { color: var(--wine); }

.section__lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3.2vw, 1.7rem);
  font-style: italic;
  color: var(--terra);
  margin-bottom: 1.8rem;
}
.section--where .section__lead { color: var(--gold-soft); }

.section__text {
  max-width: 46ch;
  margin: 0 auto 1.8rem;
  font-size: 1.05rem;
  color: var(--muted);
}
.section--where .section__text,
.section--rsvp .section__text { color: rgba(250,244,236,.85); }

.section__note {
  color: var(--muted);
  font-size: .95rem;
  font-style: italic;
  margin: .4rem auto 1.4rem;
  max-width: 48ch;
}

/* Filigrana decorativa antes de cada título */
.section__title::before {
  content: "✦";
  display: block;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 1rem;
  letter-spacing: .4em;
}

/* =====================  HERO  ===================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
  overflow: hidden;
  color: var(--cream);
  background: var(--wine-deep);
}

/* Foto del Indio: esfumada, sin presencia preponderante */
.hero__bg {
  position: absolute; inset: 0;
  background: url("indio-fondo.jpg") center 26% / cover no-repeat;
  filter: grayscale(22%) blur(2px) brightness(.82) contrast(1.05);
  opacity: .46;
  transform: scale(1.08);
}
/* Velo de color por encima para integrarla a la paleta */
.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 95% at 50% 6%, rgba(110,35,51,.10) 0%, rgba(74,22,34,.68) 66%, var(--wine-deep) 100%),
    linear-gradient(180deg, rgba(74,22,34,.22) 0%, rgba(74,22,34,.60) 100%);
}

.hero__content { position: relative; z-index: 2; max-width: 720px; }

.hero__eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .5em;
  font-size: .72rem;
  font-weight: 500;
  color: var(--gold-soft);
  margin-bottom: 1.6rem;
  padding-left: .5em;
  animation: fade-up .9s ease both;
}

.hero__icon { margin-bottom: 1rem; animation: fade-up .9s .1s ease both; }
.hero__icon .ico { color: var(--gold-soft); }

.hero__names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.4rem, 12vw, 7rem);
  line-height: 1;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0,0,0,.4);
  animation: fade-up 1s .2s ease both;
}
.hero__amp { color: var(--gold-soft); font-size: .85em; }

.hero__rule {
  display: flex; align-items: center; justify-content: center; gap: .8rem;
  margin: 1.6rem auto;
  animation: fade-up 1s .35s ease both;
}
.hero__rule span { display: block; height: 1px; width: clamp(40px, 12vw, 90px); background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.hero__rule span:last-child { background: linear-gradient(90deg, var(--gold-soft), transparent); }
.hero__rule .dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%; }

.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  color: rgba(250,244,236,.92);
  max-width: 30ch;
  margin: 0 auto 1.6rem;
  animation: fade-up 1s .5s ease both;
}

.hero__date {
  font-family: var(--sans);
  letter-spacing: .5em;
  font-size: clamp(.95rem, 2.6vw, 1.15rem);
  font-weight: 400;
  color: var(--gold-soft);
  padding-left: .5em;
  animation: fade-up 1s .65s ease both;
}

/* Indicador de scroll */
.hero__scroll {
  position: absolute; bottom: 1.8rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 1.5px solid rgba(220,199,155,.6);
  border-radius: 20px;
  display: grid; place-items: start center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 4px; height: 8px; border-radius: 4px;
  background: var(--gold-soft);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 0%,100%{opacity:0;transform:translateY(0)} 40%{opacity:1} 80%{opacity:0;transform:translateY(12px)} }

/* =====================  BADGES / ICON WRAPPERS  ===================== */
.ico-badge {
  width: 78px; height: 78px;
  margin: 0 auto 1.4rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid rgba(195,154,91,.4);
  box-shadow: var(--shadow-sm);
  color: var(--wine);
}
.section--where .ico-badge {
  background: rgba(250,244,236,.08);
  border-color: rgba(220,199,155,.4);
  color: var(--gold-soft);
}

/* =====================  ICONOS (SVG base)  ===================== */
.ico { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ico .fill { fill: currentColor; stroke: none; }
.ico .fill-soft { fill: currentColor; stroke: none; opacity: .16; }
.ico .ring { opacity: .5; }

/* ---- Animaciones en loop de los iconos ---- */
@keyframes heartbeat { 0%,100%{transform:scale(1)} 15%{transform:scale(1.18)} 30%{transform:scale(.96)} 45%{transform:scale(1.1)} 60%{transform:scale(1)} }
.ico--heartbeat { animation: heartbeat 2.2s ease-in-out infinite; transform-origin: center; }

@keyframes sway { 0%,100%{transform:rotate(-4deg)} 50%{transform:rotate(4deg)} }
.ico--sway { animation: sway 3s ease-in-out infinite; transform-origin: 50% 15%; }

@keyframes drop { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
.ico--drop { animation: drop 2.4s ease-in-out infinite; transform-origin: center bottom; }

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-5px)} }
.ico--float { animation: float 3s ease-in-out infinite; }

@keyframes bounce { 0%,100%{transform:translateY(0) rotate(0)} 30%{transform:translateY(-4px) rotate(-3deg)} 60%{transform:translateY(0) rotate(3deg)} }
.ico--bounce { animation: bounce 2.6s ease-in-out infinite; transform-origin: center bottom; }

@keyframes focus-pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }
.ico--focus .ring { transform-origin: 16px 18px; animation: focus-pulse 2s ease-in-out infinite; }

/* Anillos: brillo que recorre */
@keyframes shimmer { 0%,100%{opacity:.6} 50%{opacity:1;filter:drop-shadow(0 0 4px var(--gold))} }
.ico--shimmer { animation: shimmer 2.4s ease-in-out infinite; }

/* Brindis: las copas se chocan y saltan chispas */
@keyframes clink-l { 0%,100%{transform:rotate(0)} 45%{transform:rotate(9deg)} 60%{transform:rotate(6deg)} }
@keyframes clink-r { 0%,100%{transform:rotate(0)} 45%{transform:rotate(-9deg)} 60%{transform:rotate(-6deg)} }
.ico--cheers .glass--l { transform-origin: 12px 26px; animation: clink-l 2.6s ease-in-out infinite; }
.ico--cheers .glass--r { transform-origin: 28px 26px; animation: clink-r 2.6s ease-in-out infinite; }
@keyframes spark { 0%,40%{opacity:0;transform:translateY(4px) scale(.4)} 55%{opacity:1;transform:translateY(0) scale(1)} 90%,100%{opacity:0;transform:translateY(-6px) scale(.6)} }
.ico--cheers .spark { opacity: 0; animation: spark 2.6s ease-in-out infinite; }
.ico--cheers .s1 { animation-delay: .05s; }
.ico--cheers .s2 { animation-delay: .18s; }
.ico--cheers .s3 { animation-delay: .28s; }

/* =====================  CONTADOR  ===================== */
.countdown {
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(.6rem, 2vw, 1.4rem);
  margin: 2rem auto 2.4rem;
}
.count__item {
  min-width: 78px;
  padding: 1rem .6rem;
  background: var(--cream);
  border: 1px solid rgba(195,154,91,.35);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: .25rem;
}
.count__num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1;
  color: var(--wine);
  font-variant-numeric: tabular-nums;
}
.count__label {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .68rem;
  color: var(--muted);
}
.countdown.is-done { font-family: var(--serif); }

/* =====================  BOTONES  ===================== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
  text-decoration: none;
  color: var(--cream);
  background: var(--wine);
  padding: .95rem 2.1rem;
  border-radius: 40px;
  border: 1px solid var(--wine);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); background: var(--wine-deep); }

.btn--outline {
  background: transparent; color: var(--wine); border-color: var(--wine);
}
.section--where .btn--outline { color: var(--gold-soft); border-color: var(--gold-soft); }
.btn--outline:hover { background: var(--wine); color: var(--cream); }
.section--where .btn--outline:hover { background: var(--gold-soft); color: var(--wine-deep); border-color: var(--gold-soft); }

.section--rsvp .btn { background: var(--gold); border-color: var(--gold); color: var(--wine-deep); }
.section--rsvp .btn:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn--lg { padding: 1.1rem 2.8rem; font-size: .9rem; }

/* =====================  MAPA  ===================== */
.map {
  position: relative;
  margin-top: clamp(2.6rem, 6vw, 3.2rem);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(220,199,155,.55);
  box-shadow: var(--shadow);
  line-height: 0;
}
.map iframe {
  width: 100%;
  height: 340px;
  border: 0;
  display: block;
  /* Tinte cálido bordó/dorado sobre el mapa */
  filter: sepia(.6) saturate(1.5) hue-rotate(-14deg) brightness(.97) contrast(1.04);
}
/* Capa de color que refuerza los tonos de la landing (no bloquea el mapa) */
.map::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(110,35,51,.30) 0%, rgba(74,22,34,.16) 48%, rgba(195,154,91,.20) 100%);
  mix-blend-mode: multiply;
}
@media (max-width: 640px) {
  .map { margin-top: 2.9rem; }
  .map iframe { height: 260px; }
}

/* =====================  TIMELINE / CRONOGRAMA  ===================== */
.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2rem);
  margin-top: 2.6rem;
}
.tl-card {
  background: var(--cream);
  border: 1px solid rgba(195,154,91,.3);
  border-radius: 18px;
  padding: 2.4rem 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.tl-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tl-card__ico { color: var(--terra); margin-bottom: 1rem; height: 46px; display: grid; place-items: center; }
.tl-card__time {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--wine);
}
.tl-card__text { color: var(--muted); margin-top: .2rem; }

/* =====================  GALERÍA  ===================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
  margin: 2.4rem 0;
}
.gitem {
  position: relative;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gitem img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gitem:hover img { transform: scale(1.05); }
/* Fino borde dorado por encima de cada foto */
.gitem::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(195,154,91,.4);
  border-radius: 14px;
  pointer-events: none;
}
.g1 { grid-column: span 2; grid-row: span 2; }  /* foto destacada */
.g5 { grid-column: span 2; }                     /* foto ancha */

/* =====================  ALIAS / REGALO  ===================== */
.alias {
  display: inline-flex; flex-direction: column; gap: .3rem;
  padding: 1.2rem 2.4rem;
  background: var(--cream);
  border: 1px dashed var(--gold);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.alias__label { text-transform: uppercase; letter-spacing: .2em; font-size: .7rem; color: var(--muted); }
.alias__value { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--wine); letter-spacing: .02em; }

/* =====================  FOOTER  ===================== */
.footer {
  background: var(--wine-deep);
  color: var(--cream);
  text-align: center;
  padding: 3.5rem 1.5rem;
}
.footer__names { font-family: var(--script); font-size: 2.6rem; }
.footer__names span { color: var(--gold-soft); }
.footer__date { color: rgba(250,244,236,.7); letter-spacing: .12em; font-size: .85rem; margin: .3rem 0 1rem; }
.footer__heart { color: var(--terra); }

/* =====================  RESPONSIVE  ===================== */
@media (max-width: 640px) {
  .timeline { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g1 { grid-column: span 2; grid-row: span 1; }  /* destacada full-width */
  .g5 { grid-column: span 1; }
  .count__item { min-width: 66px; padding: .8rem .5rem; }
  .hero__rule span { width: 40px; }
}
@media (max-width: 380px) {
  .countdown { gap: .5rem; }
  .count__item { min-width: 60px; }
}

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  html { scroll-behavior: auto; }
}
