/* =========================================================
   Pilar & Carlos — estilos
   ========================================================= */

:root {
  /* Paleta (paleta.jpeg) */
  --almond-cream: #F0EAD8;
  --meadow-mist: #ACB090;
  --olive-grove: #6F6C43;
  --golden-chamomile: #D2BF81;
  --coastal-sage: #99ABA6;

  --bg: var(--olive-grove);
  --text: var(--almond-cream);
  --text-soft: rgba(240, 234, 216, 0.72);
  --accent: var(--golden-chamomile);
  --accent-soft: var(--meadow-mist);
  --accent-warm: var(--golden-chamomile);
  --accent-cool: var(--coastal-sage);
  --surface: var(--almond-cream);
  --border: rgba(240, 234, 216, 0.22);

  /* texto e bordes para contenido sobre tarjetas claras (--surface) */
  --ink: #3E3D28;
  --ink-soft: #6b6a4f;
  --border-surface: rgba(111, 108, 67, 0.2);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  --container: 1100px;
  --radius: 4px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Evita que iOS convierta fechas o ubicaciones en enlaces automáticos de Maps. */
a[x-apple-data-detectors] {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none !important;
  cursor: default !important;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--accent);
  margin: 0;
}

p { margin: 0 0 1em; }

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

a { color: var(--accent); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--text-soft);
  margin: 0 0 0.5em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--ink);
  padding: 0.75em 1em;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.9em 2em;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent-warm);
  color: var(--ink);
}
.btn--primary:hover { background: var(--olive-grove); color: var(--almond-cream); }

.btn--outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn--outline:hover { background: var(--accent); color: var(--ink); }

/* dentro de tarjetas claras (--surface), el dorado pierde contraste: usar tinta oscura */
.venue .btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}
.venue .btn--outline:hover { background: var(--ink); color: var(--surface); }

/* ---------- Header / Nav ---------- */

.site-header {
  position: fixed;
  top: 1em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 2.5em);
  max-width: var(--container);
  background: rgba(62, 61, 40, 0.9);
  backdrop-filter: blur(12px) saturate(0.85);
  -webkit-backdrop-filter: blur(12px) saturate(0.85);
  border: 1px solid rgba(240, 234, 216, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(20, 20, 10, 0.28);
}

.nav {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9em 1.25em;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.nav__brand .amp,
.site-footer__monogram .amp {
  font-style: italic;
  color: var(--accent-cool);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5em;
}
.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: block;
}

.nav__menu {
  display: flex;
  gap: clamp(0.7rem, 1.25vw, 1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  text-decoration: none;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.nav__menu a:hover { color: var(--accent); }

.nav__cta {
  border: 1px solid var(--accent);
  padding: 0.4em 1em;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--ink) !important;
  text-shadow: none !important;
}

@media (max-width: 1080px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: absolute;
    top: calc(100% + 0.5em);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(62, 61, 40, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 30px rgba(20, 20, 10, 0.28);
    padding: 1em 1.25em;
    gap: 1em;
    display: none;
  }
  .nav__menu.is-open { display: flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center 35%;
  transform: scale(1.15);
  transform-origin: center;
}

@media (max-width: 768px) {
  .hero__media img {
    object-position: 44% 35%;
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 43%, rgba(31, 31, 20, 0.12) 0%, rgba(31, 31, 20, 0.38) 58%, rgba(31, 31, 20, 0.58) 100%),
    linear-gradient(180deg, rgba(31, 31, 20, 0.25) 0%, rgba(31, 31, 20, 0.36) 52%, rgba(31, 31, 20, 0.78) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.2em 1.25em 5em;
  text-align: center;
  text-shadow: 0 2px 12px rgba(18, 18, 10, 0.85), 0 1px 2px rgba(18, 18, 10, 0.95);
}

.hero__content .btn--primary {
  margin-top: 1em;
  background: rgba(210, 191, 129, 0.96);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 8px 24px rgba(18, 18, 10, 0.3);
  font-weight: 500;
  text-shadow: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero__content .btn--primary:hover {
  background: rgba(111, 108, 67, 0.85);
}

.hero__names {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  color: #fff;
  font-weight: 600;
  text-shadow: 0 3px 18px rgba(18, 18, 10, 0.9), 0 1px 3px rgba(18, 18, 10, 1);
}
.hero__names .amp {
  font-style: italic;
  color: var(--accent-warm);
  text-shadow: 0 2px 14px rgba(20, 19, 8, 0.55);
}

.hero__date {
  margin-top: 0.6em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(18, 18, 10, 0.95), 0 1px 3px rgba(18, 18, 10, 1);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  margin: 2em 0;
  perspective: 600px;
}
.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5em;
}

.flip-card {
  position: relative;
  background: linear-gradient(180deg, rgba(240, 234, 216, 0.8) 0%, rgba(232, 224, 201, 0.8) 100%);
  border-radius: 0.3em;
  box-shadow: 0 10px 20px -8px rgba(10, 10, 5, 0.55), inset 0 1px 0 rgba(255,255,255,0.5);
  padding: 0.2em 0.3em 0.5em;
  min-width: 1.7em;
  transform-style: preserve-3d;
  transform-origin: center;
}
.flip-card__number {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  line-height: 1.15;
  color: var(--ink);
  text-align: center;
}
.flip-card__hinge {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(62, 61, 40, 0.18);
  transform: translateY(-1px);
  pointer-events: none;
}
.flip-card.is-flipping {
  animation: flipDown 0.6s ease-in-out;
}
@keyframes flipDown {
  0% { transform: rotateX(0deg); }
  49% { transform: rotateX(-90deg); }
  51% { transform: rotateX(90deg); }
  100% { transform: rotateX(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .flip-card.is-flipping { animation: none; }
}

.countdown__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #fff;
  font-weight: 500;
  opacity: 1;
  margin-top: 0.5em;
  text-shadow: 0 2px 8px rgba(18, 18, 10, 1);
}

.hero__scroll {
  position: absolute;
  bottom: 1.5em;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll span {
  display: block;
  width: 22px;
  height: 22px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.6; }
  50% { transform: rotate(45deg) translate(6px, 6px); opacity: 1; }
}

/* ---------- Sections shared ---------- */

section {
  padding: 2em 1.25em;
  max-width: var(--container);
  margin: 0 auto;
}

.hero { padding: 0; }

.section-head {
  text-align: center;
  margin-bottom: 3em;
}

.section-head h2 {
  font-size: clamp(2.2rem, 5vw, 3rem);
}

/* ---------- Story / scrollytelling ---------- */

.story {
  position: relative;
  background: var(--bg);
}

.story__intro {
  text-align: center;
  margin-bottom: 4em;
}

.story__hint {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.story__chapters {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}

.story__timeline {
  position: absolute;
  left: 50%;
  top: 14em;
  bottom: 4em;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent-soft) 10%, var(--accent-soft) 90%, transparent);
  transform: translateX(-50%);
  max-width: var(--container);
  margin: 0 auto;
}

@media (max-width: 640px) {
  .story__timeline { left: 1.4em; }
}

.chapter {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-surface);
  border-radius: var(--radius);
  padding: 1.75em 2em;
  margin: 0 0 3em;
  box-shadow: 0 10px 30px -20px rgba(20,20,10,0.5);
}

.chapter__dot {
  position: absolute;
  top: 2em;
  left: -2.9em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-warm);
  border: 2px solid var(--bg);
}

@media (max-width: 640px) {
  .story__chapters { padding-left: 2.4em; }
  .chapter { margin-left: 0; }
  .chapter__dot { left: -2.35em; }
}

.chapter__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

.chapter p { color: var(--ink); }
.chapter p:last-child { margin-bottom: 0; }

.chapter--highlight {
  background: var(--coastal-sage);
  border-color: var(--coastal-sage);
}

.chapter--final {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  text-align: center;
}

.chapter__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5em;
  align-items: center;
}
.chapter__grid img {
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.chapter__grid--reverse { direction: rtl; }
.chapter__grid--reverse > * { direction: ltr; }

@media (max-width: 640px) {
  .chapter__grid,
  .chapter__grid--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Details / Venues ---------- */

.details { background: var(--bg); }

.venues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2em;
}

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

.venue {
  background: var(--surface);
  border: 1px solid var(--border-surface);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}

.venue__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.venue__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue__kicker {
  margin-top: 2em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--accent-cool);
  margin-bottom: 0.5em;
}

.venue h3 { font-size: 1.8rem; margin-bottom: 0.3em; color: var(--ink); }

.venue__address {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.venue__time {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  font-size: 1.5rem;
}

.venue__kicker,
.venue h3,
.venue__address,
.venue__time {
  padding-left: 2em;
  padding-right: 2em;
}

.venue__map {
  margin: 1.25em 2em;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-surface);
}
.venue__map iframe {
  width: 100%;
  height: 280px;
  border: 0;
  display: block;
}

.venue > .btn {
  margin-top: 0.5em;
  margin-bottom: 2em;
}

[data-placeholder] {
  position: relative;
}
[data-placeholder]::after {
  content: "⚠ contenido de ejemplo";
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.65rem;
  color: var(--accent-cool);
  letter-spacing: 0.05em;
  margin-top: 0.25em;
}

/* ---------- Section hint (shared) ---------- */

.section-hint {
  color: var(--text-soft);
  font-size: 0.9rem;
  max-width: 46em;
  margin-inline: auto;
}

/* ---------- Alojamiento ---------- */

.stay { background: var(--bg); }

.stay__tabs {
  display: flex;
  justify-content: center;
  gap: 0.25em;
  width: fit-content;
  margin: 0 auto 3em;
  padding: 0.3em;
  border-radius: 999px;
  background: rgba(0,0,0,0.16);
}

.stay__tab {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.65em 1.7em;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.3s var(--ease-out);
}
.stay__tab:hover { color: var(--text); }
.stay__tab.is-active {
  background: var(--accent-warm);
  color: var(--ink);
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.4);
}

.stay__panel[hidden] { display: none; }

.hotels-slider {
  position: relative;
  padding: 0 3em;
}

.hotels-slider__nav {
  display: contents;
}

.hotels {
  display: flex;
  gap: 2em;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hotels::-webkit-scrollbar { display: none; }

.hotel {
  flex: 0 0 calc((100% - 2 * 2em) / 3);
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .hotel { flex-basis: calc((100% - 2em) / 2); }
}

.hotels-slider__arrow {
  position: absolute;
  top: 40%;
  left: 0;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75em;
  height: 2.75em;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(20,20,10,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hotels-slider__arrow:hover { background: var(--accent-warm); transform: translateY(-50%) scale(1.08); }
.hotels-slider__arrow--prev { left: 0; }
.hotels-slider__arrow--next { right: 0; left: auto; }

.hotel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 1px 2px rgba(20,20,10,0.06);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.hotel:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px -24px rgba(20,20,10,0.6);
}

.hotel__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--olive-grove);
}
.hotel__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.hotel:hover .hotel__photo img { transform: scale(1.07); }

.hotel__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(30,29,15,0.7));
  pointer-events: none;
}

.hotel__badge {
  position: absolute;
  left: 1em;
  bottom: 0.9em;
  z-index: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4em;
  background: rgba(240,234,216,0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(240,234,216,0.35);
  color: #fff;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  padding: 0.35em 0.8em;
  border-radius: 999px;
}
.hotel__badge em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.hotel__body { padding: 1.6em 1.6em 2em; }
.hotel__body h3 { font-size: 1.4rem; color: var(--ink); margin-bottom: 1.2em; }

@media (max-width: 640px) {
  .hotels-slider { padding: 0 2.6em; }
  .hotel { flex-basis: 100%; }
  .hotel__photo { aspect-ratio: 4 / 3; }
  .hotel__body { padding: 1.3em 1.3em 1.6em; }
  .hotel__body h3 { margin-bottom: 0.8em; }
  .hotels-slider__arrow { width: 2.2em; height: 2.2em; font-size: 1.1rem; }
  .hotels-slider__arrow--prev { left: 1em; }
  .hotels-slider__arrow--next { right: 1em; }
}

/* ---------- Gastronomía ---------- */

.food {
  background: var(--bg);
  padding-bottom: 2em;
}

.food__list {
  list-style: none;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.food-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5em;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.1em 1.5em;
  box-shadow: 0 1px 2px rgba(20,20,10,0.06);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.food-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -24px rgba(20,20,10,0.55);
}

.food-row__info { display: flex; align-items: baseline; gap: 0.6em; flex-wrap: wrap; }
.food-row__info h3 { font-size: 1.15rem; color: var(--ink); margin: 0; }
.food-row__info p { color: var(--ink-soft); font-size: 0.85rem; margin: 0; }

.food-row__price {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  margin: 0;
}

@media (max-width: 560px) {
  .food-row { flex-direction: column; align-items: flex-start; gap: 0.35em; }
  .food-row__price { font-size: 0.88rem; }
}

.food__plans {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.food__plans h3 { color: var(--accent); font-size: 1.4rem; margin-bottom: 0.75em; }
.food__plans ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  color: var(--text-soft);
  font-size: 0.92rem;
  text-align: left;
}
.food__plans li::before { content: "🫒 "; }
.food__plans strong { color: var(--text); }

/* ---------- Autobús ---------- */

.bus {
  background: var(--bg);
  padding-top: 2em;
}

.bus__card {
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 38px -24px rgba(20,20,10,0.35);
}

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

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

.bus__zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.bus__zoom:focus-visible {
  outline: 3px solid var(--golden-chamomile);
  outline-offset: -5px;
}

.bus__zoom-hint {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(62, 61, 40, 0.88);
  color: var(--almond-cream);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(20, 20, 10, 0.24);
  transition: transform 0.25s var(--ease-out), background 0.25s ease;
}

.bus__zoom:hover .bus__zoom-hint {
  transform: translateY(-3px);
  background: rgba(62, 61, 40, 0.96);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: 4.5rem 1rem 1.5rem;
  background: rgba(25, 25, 16, 0.9);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.image-lightbox[hidden] { display: none; }
.image-lightbox.is-open { opacity: 1; }

.image-lightbox img {
  display: block;
  width: auto;
  max-width: min(94vw, 1180px);
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  transform: scale(0.96);
  transition: transform 0.28s var(--ease-out);
}

.image-lightbox.is-open img { transform: scale(1); }

.image-lightbox__close {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(240, 234, 216, 0.32);
  border-radius: 50%;
  background: rgba(240, 234, 216, 0.12);
  color: var(--almond-cream);
  font-family: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  background: rgba(240, 234, 216, 0.22);
  transform: scale(1.06);
}

body.is-lightbox-open { overflow: hidden; }

@media (max-width: 560px) {
  .bus__zoom-hint {
    right: 0.65rem;
    bottom: 0.65rem;
    font-size: 0.7rem;
  }
  .image-lightbox { padding-inline: 0.5rem; }
  .image-lightbox img { max-width: 97vw; }
}

/* ---------- Galería ---------- */

.gallery { background: var(--bg); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  max-width: 960px;
  margin: 0 auto;
}

.gallery__item {
  margin: 0;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(20,20,10,0.06);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.gallery__item:hover img { transform: scale(1.06); }

.gallery__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

@media (max-width: 720px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 4 / 3; }
}

@media (max-width: 460px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; gap: 0.7em; }
}

/* ---------- Juego de los novios ---------- */

.game {
  background: radial-gradient(120% 140% at 50% 0%, var(--coastal-sage) 0%, var(--olive-grove) 55%);
  padding-bottom: 2em;
}

.game__stage {
  max-width: 620px;
  margin: 0 auto;
}

.game__progress {
  display: flex;
  justify-content: center;
  gap: 0.6em;
  margin-bottom: 2em;
}
.game__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(240,234,216,0.3);
  transition: all 0.35s var(--ease-out);
}
.game__dot.is-current {
  background: var(--accent-warm);
  transform: scale(1.5);
}
.game__dot.is-done { background: var(--accent-cool); }

.game__slides {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.game__slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.75em 2em;
  box-shadow: 0 30px 60px -30px rgba(10,10,5,0.5);
  opacity: 0;
  transform: translateX(36px) scale(0.97);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), visibility 0.5s;
}
.game__slide.is-current {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  visibility: visible;
}
.game__slide.is-prev {
  opacity: 0;
  transform: translateX(-36px) scale(0.97);
}

.game__step {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  color: var(--accent-cool);
  margin-bottom: 0.8em;
}

.game__q {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  max-width: 24em;
  margin: 0 0 1.3em;
}

.game__options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7em;
  width: 100%;
  max-width: 26em;
}
@media (max-width: 480px) {
  .game__options { grid-template-columns: 1fr; }
  .game__slides { min-height: 540px; }
  .game__slide { padding: 2em 1.4em; }
}

.game__option {
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.75em 1em;
  border-radius: 12px;
  border: 1px solid var(--border-surface);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.game__option:hover:not(:disabled) { border-color: var(--accent-warm); transform: translateY(-2px); }
.game__option:disabled { cursor: default; }
.game__option:disabled:not(.is-correct) { opacity: 0.35; }

.game__option.is-correct {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  color: var(--ink);
  animation: pop 0.45s ease;
}
.game__option.is-wrong {
  border-color: #c0685f;
  color: #c0685f;
  animation: shake 0.4s ease;
}

.game__feedback {
  margin: 1.2em 0 0;
  min-height: 1.3em;
  font-size: 0.9rem;
  color: var(--accent-cool);
}

.game__burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.game__burst span {
  position: absolute;
  bottom: 45%;
  font-size: 1.6rem;
  opacity: 0;
  animation: floatUp 1.2s ease forwards;
}

.game__slide--final {
  background: linear-gradient(160deg, var(--golden-chamomile), var(--accent-cool));
}
.game__final-emoji {
  font-size: 3rem;
  margin-bottom: 0.3em;
  animation: pop 0.6s var(--ease-out);
}
.game__slide--final h3 {
  font-size: 1.9rem;
  color: var(--ink);
  margin-bottom: 0.4em;
}
.game__slide--final p {
  color: var(--ink-soft);
  margin-bottom: 1.5em;
}
.game__slide--final .btn--outline {
  border-color: var(--ink);
  color: var(--ink);
}
.game__slide--final .btn--outline:hover { background: var(--ink); color: var(--surface); }

@keyframes pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}
@keyframes floatUp {
  0% { opacity: 0; transform: translateY(0) scale(0.5) rotate(0deg); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-140px) scale(1.2) rotate(var(--rot, 20deg)); }
}

/* ---------- Lista de bodas ---------- */

.gift {
  background: var(--bg);
  padding-top: 2em;
}

.gift__card {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5em 2em;
  box-shadow: 0 20px 38px -24px rgba(20,20,10,0.35);
}

.gift__icon { font-size: 2.2rem; margin-bottom: 0.4em; }

.gift__holder {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.6em;
}

.gift__iban {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: var(--bg);
  font-weight: 600;
  margin-bottom: 0.3em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3em;
  border-radius: var(--radius);
  transition: background 0.2s var(--ease-out);
}
.gift__iban:hover,
.gift__iban:focus-visible { background: rgba(111, 108, 67, 0.1); }

.gift__iban-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}

.gift__iban-icon { font-size: 1rem; }

.gift__iban-hint {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: normal;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 0.3em;
}
.gift__iban.is-copied .gift__iban-hint { color: var(--olive-grove); }

.gift__bank {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 1.2em;
}

.gift__thanks {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- RSVP ---------- */

.rsvp {
  background: var(--surface);
}

.rsvp .eyebrow { color: var(--ink-soft); }
.rsvp h2 { color: var(--ink); }

.rsvp__deadline {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.rsvp__form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4em;
}

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

.field label,
.field legend {
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.field--radio {
  border: none;
  padding: 0;
  margin: 0;
  flex-direction: row;
  gap: 1.5em;
  align-items: center;
}
.field--radio legend { width: 100%; }
.radio {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}

.field--conditional {
  display: none;
  flex-direction: column;
  gap: 1.4em;
  border-left: 2px solid var(--accent-soft);
  padding-left: 1.25em;
}
.field--conditional.is-visible { display: flex; }

input[type="text"],
input[type="number"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7em 0.9em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent-cool);
  outline-offset: 1px;
}

.field__hint {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.field__notice {
  margin: 0.25em 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.rsvp__status {
  min-height: 1.2em;
  font-size: 0.9rem;
  color: var(--ink);
}
.rsvp__status.is-error { color: #a44; }
.rsvp__status.is-success {
  color: var(--olive-grove);
  font-weight: 500;
  animation: rsvpStatusIn 0.55s var(--ease-out) both;
}

.rsvp-success-celebration {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(62, 61, 40, 0.22);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.rsvp-success-celebration.is-visible { opacity: 1; }

.rsvp-success-celebration__card {
  position: relative;
  z-index: 2;
  width: min(86vw, 300px);
  padding: 2rem 1.5rem 1.7rem;
  border: 1px solid rgba(111, 108, 67, 0.18);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 24px 70px rgba(36, 35, 22, 0.28);
  transform: translateY(18px) scale(0.76);
}

.rsvp-success-celebration.is-visible .rsvp-success-celebration__card {
  animation: rsvpSuccessCard 0.72s var(--ease-out) forwards;
}

.rsvp-success-celebration__card strong,
.rsvp-success-celebration__card > span:last-child {
  display: block;
}

.rsvp-success-celebration__card strong {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.1;
}

.rsvp-success-celebration__card > span:last-child {
  margin-top: 0.35rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.rsvp-success-celebration__icon {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--olive-grove);
  color: var(--almond-cream);
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(111, 108, 67, 0.28);
}

.rsvp-success-celebration.is-visible .rsvp-success-celebration__icon {
  animation: rsvpCheckPop 0.62s 0.16s var(--ease-out) both;
}

.rsvp-success-celebration__particle {
  --angle: 0deg;
  --distance: 90px;
  --delay: 0s;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 14px;
  border-radius: 999px;
  background: var(--golden-chamomile);
  opacity: 0;
  transform-origin: center;
}

.rsvp-success-celebration__particle:nth-of-type(3n) { background: var(--coastal-sage); }
.rsvp-success-celebration__particle:nth-of-type(3n + 1) { background: var(--meadow-mist); }

.rsvp-success-celebration.is-visible .rsvp-success-celebration__particle {
  animation: rsvpParticle 1s var(--delay) var(--ease-out) both;
}

@keyframes rsvpSuccessCard {
  0% { transform: translateY(18px) scale(0.76); opacity: 0; }
  65% { transform: translateY(-3px) scale(1.035); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes rsvpCheckPop {
  0% { transform: scale(0.25) rotate(-22deg); opacity: 0; }
  70% { transform: scale(1.12) rotate(3deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes rsvpParticle {
  0% {
    opacity: 0;
    transform: rotate(var(--angle)) translateY(-28px) scale(0.3);
  }
  26% { opacity: 1; }
  100% {
    opacity: 0;
    transform: rotate(var(--angle)) translateY(calc(var(--distance) * -1)) scale(1);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .rsvp-success-celebration__particle { display: none; }
  .rsvp-success-celebration__card,
  .rsvp-success-celebration__icon,
  .rsvp__status.is-success { animation: none !important; }
  .rsvp-success-celebration__card { transform: none; }
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 3em 1.25em 4em;
  color: var(--text-soft);
  font-size: 0.9rem;
  background: var(--ink);
  border-top: 1px solid var(--border);
}
.site-footer__monogram {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.2em;
}

.site-footer__contact-label {
  margin-top: 1.75em;
  margin-bottom: 1em;
  color: var(--text);
}

.site-footer__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25em 2.5em;
}

.footer-contact {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6em;
}

.footer-contact__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
}

.footer-contact__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.35em 0.8em;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-contact__link:hover {
  background: var(--accent-warm);
  color: var(--ink);
  border-color: var(--accent-warm);
}

.icon-whatsapp {
  flex-shrink: 0;
}

.site-footer__credits {
  margin-top: 2em;
  font-size: 0.7rem;
  opacity: 0.6;
}
.site-footer__credits a { color: inherit; }
