/* ============================================================
   VARIABLES — Editar aquí para personalizar el template
   ============================================================ */
:root {
  /* Paleta */
  --cream:        #F5EDE0;
  --cream-alt:    #EDE0CC;
  --navy:         #1C3A5C;
  --navy-dark:    #122438;
  --blue-dusty:   #7A9CB8;
  --sage:         #8A9E7E;
  --gold:         #C9A96E;
  --text:         #1C3A5C;
  --text-soft:    #5A6E7F;
  --border:       rgba(28, 58, 92, 0.15);
  --white:        #FFFFFF;

  /* Tipografía */
  --font-script:  'Great Vibes', cursive;
  --font-amatic:  'Amatic SC', cursive;
  --font-josefin: 'Josefin Sans', sans-serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Raleway', 'Helvetica Neue', sans-serif;

  /* Layout */
  --max-w:        900px;
  --sec-py:       90px;
  --sec-px:       24px;

  /* Transición */
  --ease:         0.3s ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { list-style: none; }

/* ============================================================
   UTILIDADES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sec-px);
}
.text-center { text-align: center; }

/* ============================================================
   TIPOGRAFÍA BASE
   ============================================================ */
.section__title {
  font-family: var(--font-amatic);
  font-size: clamp(2.8rem, 7vw, 4rem);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.section__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0.6rem auto 2rem;
  color: var(--blue-dusty);
  font-size: 0.8rem;
  opacity: 0.85;
}

.ceremonia .section__divider {
  justify-content: flex-start;
  margin-left: 0;
}

.ceremonia .section__title {
  font-size: clamp(3rem, 7vw, 4rem);
  text-align: left;
}

.ceremonia .event-card__row {
  font-size: 1.32rem;
}

/* Nosotros: composición centrada, texto arriba + dos polaroids */
.nosotros .section__content {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(2rem, 5vw, 3.25rem);
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--sec-py) var(--sec-px);
}
.nosotros__text {
  max-width: 540px;
}

.nosotros .section__title {
  font-family: var(--font-amatic);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
}

.nosotros .section__divider {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.nosotros .section__text {
  text-align: center;
  max-width: 100%;
  margin-bottom: 0;
  font-weight: 400;
  color: var(--navy);
}
.nosotros__heart {
  color: var(--blue-dusty);
  font-size: 1.5rem;
  line-height: 1;
  margin: 1.15rem 0;
  opacity: 0.8;
}
.section__divider::before,
.section__divider::after {
  content: '';
  display: block;
  width: 44px;
  height: 1px;
  background: var(--blue-dusty);
  opacity: 0.55;
}
.section__text {
  font-family: var(--font-josefin);
  font-weight: 400;
  font-size: 1.32rem;
  color: var(--text-soft);
  text-align: center;
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-block;
  padding: 13px 36px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), transform var(--ease), border-color var(--ease);
  text-align: center;
  white-space: nowrap;
}
.btn--primary {
  background: var(--navy);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--navy-dark);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn--outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn--lg  { padding: 16px 52px; font-size: 0.78rem; }
.btn--sm  { padding: 10px 24px; font-size: 0.68rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px var(--sec-px);
  transition: background var(--ease), padding var(--ease), box-shadow var(--ease);
}
.navbar.scrolled {
  background: rgba(245, 237, 224, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 24px rgba(28, 58, 92, 0.1);
  padding: 12px var(--sec-px);
}
.navbar__container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.navbar__logo {
  font-family: var(--font-amatic);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
  letter-spacing: 0.05em;
}
.navbar__menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.navbar__menu a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color var(--ease);
  position: relative;
}
.navbar__menu a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1px;
  background: var(--blue-dusty);
  transition: width var(--ease);
}
.navbar__menu a:hover { color: var(--blue-dusty); }
.navbar__menu a:hover::after { width: 100%; }
.navbar__menu a.nav-cta {
  border: 1.5px solid var(--navy);
  padding: 6px 16px;
}
.navbar__menu a.nav-cta:hover {
  background: var(--navy);
  color: var(--white);
}
.navbar__menu a.nav-cta::after { display: none; }
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--navy);
  transition: border-color var(--ease);
}
.lang-toggle:hover { border-color: var(--navy); }
.lang-toggle__option { opacity: 0.45; transition: opacity var(--ease); }
.lang-toggle__option.active { opacity: 1; font-weight: 600; }
.lang-toggle__sep { opacity: 0.25; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 210;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  transition: transform var(--ease), opacity var(--ease);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO — imagen de fondo Assets/hero-pre-boda-176.jpg
   ============================================================ */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  padding: 0;
}

/* Imagen de fondo: ocupa todo el hero */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

/* Overlay: gradiente radial centrado — más amplio para cubrir nombres horizontales */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    ellipse 85% 110% at 32% 32%,
    rgba(245, 237, 224, 0.65) 0%,
    rgba(245, 237, 224, 0.35) 45%,
    rgba(245, 237, 224, 0) 80%
  );
  pointer-events: none;
}

/* Contenido: centrado en la zona izquierda de la imagen */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  /* título a ~1/4 desde arriba */
  padding: 25svh var(--sec-px) 70px;
  animation: heroIn 1.2s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Nombres: fila horizontal centrada */
.hero__names {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;        /* wrap en pantallas muy pequeñas */
  line-height: 1.1;
}
.hero__name {
  font-family: var(--font-amatic);
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--navy);
  line-height: 1.1;
  white-space: nowrap;
  font-weight: 700;
}
.hero__amp {
  font-family: var(--font-amatic);
  font-size: clamp(2rem, 5.5vw, 4rem);
  color: var(--blue-dusty);
  line-height: 1;
  font-weight: 700;
}
.hero__rule {
  width: 56px;
  height: 1px;
  background: var(--blue-dusty);
  opacity: 0.5;
}
.hero__date {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  letter-spacing: 0.22em;
  color: var(--navy);
}
.hero__location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--font-josefin);
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 400;
  color: var(--text-soft);
  letter-spacing: 0.04em;
}
.hero__loc-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  fill: var(--text-soft);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}
.hero__scroll svg {
  width: 28px;
  height: 28px;
  color: var(--navy);
  opacity: 0.4;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* Countdown */
.countdown {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.1rem 0;
}
.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
}
.countdown__num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
}
.countdown__lbl {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 4px;
}
.countdown__sep {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--blue-dusty);
  opacity: 0.45;
  line-height: 1;
  padding-top: 2px;
}

/* ============================================================
   SECTIONS BASE
   ============================================================ */
.section {
  padding: var(--sec-py) var(--sec-px);
}
.section--alt { background: var(--cream-alt); }

/* Secciones fullscreen con imagen de fondo */
.section--fullscreen {
  min-height: calc(100svh - 68px);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}
.section__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.section__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(245, 237, 224, 0.55) 0%, rgba(245, 237, 224, 0.4) 50%, rgba(245, 237, 224, 0.3) 100%);
  z-index: 1;
  pointer-events: none;
}
.section__content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: var(--sec-py) var(--sec-px);
}

/* Ceremonia: ilustración a un costado + fondo papel de acuarela (blanco con manchas) */
.ceremonia {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #fcfaf4;
  background-image:
    radial-gradient(ellipse 55% 45% at 10% 18%, rgba(122, 156, 184, 0.10), transparent 62%),
    radial-gradient(ellipse 50% 42% at 88% 12%, rgba(201, 169, 110, 0.09), transparent 60%),
    radial-gradient(ellipse 60% 55% at 82% 85%, rgba(122, 156, 184, 0.11), transparent 66%),
    radial-gradient(ellipse 48% 42% at 18% 90%, rgba(201, 169, 110, 0.08), transparent 62%),
    radial-gradient(ellipse 40% 35% at 45% 48%, rgba(28, 58, 92, 0.045), transparent 72%);
}
/* Textura de manchas / grano de papel */
.ceremonia::before {
  content: '';
  position: absolute;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='p' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.014' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23p)' opacity='0.55'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)' opacity='0.35'/%3E%3C/svg%3E");
  background-size: 620px 620px, 150px 150px;
  mix-blend-mode: multiply;
  opacity: 0.4;
}
.ceremonia__inner {
  position: relative;
  z-index: 1;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.ceremonia__media {
  flex: 1 1 52%;
  min-width: 0;
  display: flex;
  justify-content: center;
}
/* Marco polaroid para la ilustración de la capilla */
.polaroid--tilt {
  width: 100%;
  max-width: 440px;
  transform: rotate(-3deg);
}
.polaroid--tilt:hover { transform: rotate(-1deg) scale(1.02); }
.polaroid.polaroid--tilt img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  /* funde el papel de la acuarela con el blanco del marco */
  mix-blend-mode: multiply;
}
.ceremonia__content {
  flex: 1 1 44%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 1rem;
}

/* ============================================================
   RECEPCIÓN — ilustración a pantalla completa
   ============================================================ */
.recepcion .section__bg {
  object-position: center 65%;
}
/* Texto más marcado para que se lea sobre la ilustración */
.recepcion .event-card__desc {
  font-weight: 500;
  color: var(--navy);
}
.recepcion .event-card__row {
  font-weight: 600;
  color: var(--navy);
}
.recepcion .event-card__icon {
  color: var(--navy);
}
/* Velo crema para que el título y la tarjeta se lean sobre la acuarela */
.recepcion .section__overlay {
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%,
      rgba(245, 237, 224, 0.72) 0%,
      rgba(245, 237, 224, 0.45) 55%,
      rgba(245, 237, 224, 0.2) 100%),
    linear-gradient(to bottom,
      rgba(245, 237, 224, 0.35) 0%,
      rgba(245, 237, 224, 0.1) 35%,
      rgba(245, 237, 224, 0.45) 100%);
}

/* ============================================================
   NOSOTROS — foto estilo polaroid
   ============================================================ */
/* Fondo: ilustración de Playa Arenilla a pantalla completa */
.nosotros {
  background: var(--cream);
}
.nosotros .section__bg {
  object-position: center 60%;
}
/* Velo crema para que el texto y las polaroids se lean sobre la acuarela */
.nosotros .section__overlay {
  background:
    radial-gradient(ellipse 75% 65% at 50% 46%,
      rgba(245, 237, 224, 0.82) 0%,
      rgba(245, 237, 224, 0.6) 55%,
      rgba(245, 237, 224, 0.35) 100%),
    linear-gradient(to bottom,
      rgba(245, 237, 224, 0.45) 0%,
      rgba(245, 237, 224, 0.25) 40%,
      rgba(245, 237, 224, 0.45) 100%);
}
.nosotros__photos {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(0.75rem, 4vw, 2.25rem);
}
.polaroid {
  width: clamp(240px, 32vw, 360px);
  background: #fdfcf9;
  padding: 13px 13px 0;
  border-radius: 2px;
  box-shadow:
    0 20px 45px -14px rgba(28, 58, 92, 0.38),
    0 4px 12px rgba(28, 58, 92, 0.14);
  transition: transform var(--ease), box-shadow var(--ease);
}
.polaroid--left  { transform: rotate(-4deg); }
.polaroid--right { transform: rotate(4deg); margin-top: 2.25rem; }
.polaroid--left:hover  { transform: rotate(-1.5deg) scale(1.03); z-index: 2; }
.polaroid--right:hover { transform: rotate(1.5deg) scale(1.03); z-index: 2; }
.polaroid:hover {
  box-shadow:
    0 26px 55px -14px rgba(28, 58, 92, 0.42),
    0 6px 16px rgba(28, 58, 92, 0.16);
}
.polaroid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.polaroid--right img { object-position: center 22%; }
.polaroid__caption {
  font-family: var(--font-script);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--navy);
  text-align: center;
  padding: 11px 6px 16px;
}

/* ============================================================
   EVENT CARD (Ceremonia / Recepción)
   ============================================================ */
.event-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.event-card__img {
  width: 100%;
  max-width: 360px;
}
.event-card__img.no-img {
  min-height: 200px;
  background: var(--border);
}
.event-card__img img { margin: 0 auto; }
.event-card__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.ceremonia .event-card,
.ceremonia .event-card__details {
  align-items: flex-start;
  text-align: left;
}
.event-card__desc {
  font-family: var(--font-josefin);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 420px;
  line-height: 1.8;
}
.event-card__note {
  font-family: var(--font-josefin);
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--navy);
  max-width: 440px;
  margin-top: 0.25rem;
}
.event-card__row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-josefin);
  font-size: 1.2rem;
  color: var(--text-soft);
  font-weight: 400;
}

.event-card__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--blue-dusty);
}

/* ============================================================
   TIMELINE — interactivo
   ============================================================ */
.timeline-section {
  position: relative;
  background: var(--cream);
}
/* Fondo full-bleed (Assets/FondoTimeline.png) — velo suave, la acuarela ya es muy clara */
.timeline-section .section__bg {
  object-position: center;
}
.timeline-section .section__overlay {
  background: radial-gradient(ellipse 80% 65% at 50% 46%,
    rgba(245, 237, 224, 0.55) 0%,
    rgba(245, 237, 224, 0.30) 55%,
    rgba(245, 237, 224, 0.12) 100%);
}
.timeline__hint {
  font-family: var(--font-josefin);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-top: -0.25rem;
  margin-bottom: 2rem;
}

.timeline {
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  padding: 1rem 0;
  width: 100%;
}
/* Línea central que se "dibuja" al entrar en pantalla */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--blue-dusty) 8%, var(--blue-dusty) 92%, transparent);
  opacity: 0.45;
  transform: translateX(-50%) scaleY(0);
  transform-origin: top center;
  transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.timeline.is-drawn::before { transform: translateX(-50%) scaleY(1); }

.timeline__item {
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 2.25rem;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.timeline__item:last-child { margin-bottom: 0; }

/* Impares: imagen izquierda, info derecha */
.timeline__item:nth-child(odd) .timeline__media { justify-self: end; }
.timeline__item:nth-child(odd) .timeline__info  { justify-self: start; }
/* Pares: imagen derecha, info izquierda */
.timeline__item:nth-child(even) .timeline__media { order: 3; justify-self: start; }
.timeline__item:nth-child(even) .timeline__dot   { order: 2; }
.timeline__item:nth-child(even) .timeline__info  { order: 1; justify-self: end; text-align: right; }

/* Icono en "sello" circular */
.timeline__media {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: #fffdf8;
  box-shadow: 0 8px 20px -8px rgba(28, 58, 92, 0.30), inset 0 0 0 1px rgba(28, 58, 92, 0.08);
  opacity: 0;
  transform: scale(0.4) rotate(-14deg);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.timeline__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.timeline__item.visible .timeline__media {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Flotación suave y continua */
@keyframes tlFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -5px; }
}
@keyframes tlWiggle {
  0%, 100% { rotate: 0deg; }
  30%      { rotate: -7deg; }
  65%      { rotate: 6deg; }
}
.timeline__item.visible .timeline__media img { animation: tlFloat 4.5s ease-in-out infinite; }
.timeline__item.visible:nth-child(2) .timeline__media img { animation-delay: -0.9s; }
.timeline__item.visible:nth-child(3) .timeline__media img { animation-delay: -1.8s; }
.timeline__item.visible:nth-child(4) .timeline__media img { animation-delay: -2.6s; }
.timeline__item.visible:nth-child(5) .timeline__media img { animation-delay: -3.4s; }
.timeline__item.visible:nth-child(6) .timeline__media img { animation-delay: -1.3s; }
.timeline__item.visible:nth-child(7) .timeline__media img { animation-delay: -2.1s; }

/* Estado activo: hover, foco de teclado o tap (.is-active) */
.timeline__item.visible:hover .timeline__media,
.timeline__item.visible:focus-visible .timeline__media,
.timeline__item.visible.is-active .timeline__media {
  transform: scale(1.16) rotate(-3deg);
  box-shadow: 0 14px 30px -8px rgba(28, 58, 92, 0.42), inset 0 0 0 1px rgba(122, 156, 184, 0.5);
}
.timeline__item.visible:hover .timeline__media img,
.timeline__item.visible.is-active .timeline__media img {
  animation: tlFloat 4.5s ease-in-out infinite, tlWiggle 0.6s ease;
}

.timeline__dot {
  width: 13px;
  height: 13px;
  background: var(--blue-dusty);
  border-radius: 50%;
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--blue-dusty);
  justify-self: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}
.timeline__dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0;
  pointer-events: none;
}
@keyframes tlPulse {
  0%   { transform: scale(0.8); opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}
.timeline__item.visible:hover .timeline__dot,
.timeline__item.visible.is-active .timeline__dot {
  background: var(--gold);
  transform: scale(1.25);
}
.timeline__item.visible:hover .timeline__dot::after,
.timeline__item.visible:focus-visible .timeline__dot::after,
.timeline__item.visible.is-active .timeline__dot::after {
  animation: tlPulse 1.5s ease-out infinite;
}

.timeline__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.timeline__event {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.3s ease;
}
.timeline__item.visible:hover .timeline__event,
.timeline__item.visible.is-active .timeline__event {
  color: var(--gold);
}
.timeline__time {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  font-weight: 500;
}
/* Descripción que se despliega en el estado activo */
.timeline__desc {
  font-family: var(--font-josefin);
  font-size: 1rem;
  font-style: italic;
  color: var(--text);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease, margin-top 0.5s ease;
}
.timeline__item.visible:hover .timeline__desc,
.timeline__item.visible:focus-visible .timeline__desc,
.timeline__item.visible.is-active .timeline__desc {
  max-height: 5em;
  opacity: 1;
  margin-top: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .timeline::before { transition: none; transform: translateX(-50%) scaleY(1); }
  .timeline__media { transition: opacity 0.3s ease; transform: none; }
  .timeline__item.visible .timeline__media { transform: none; }
  .timeline__item.visible .timeline__media img,
  .timeline__item.visible:hover .timeline__media img { animation: none; }
  .timeline__item.visible:hover .timeline__media,
  .timeline__item.visible.is-active .timeline__media { transform: scale(1.08); }
  .timeline__dot::after { animation: none !important; }
}

/* ============================================================
   GALLERY
   ============================================================ */
/* Collage tipo mosaico irregular */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 12px;
  margin-top: 1.75rem;
  width: 100%;
  max-width: 1100px;
}
.gallery__item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  border-radius: 3px;
  background: var(--border);
  box-shadow: 0 6px 18px -10px rgba(28, 58, 92, 0.30);
}
/* fotos destacadas: rompen el ritmo (recortes aptos para retrato) */
.gallery__item:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; }
.gallery__item:nth-child(7n+4) { grid-row: span 2; aspect-ratio: 1 / 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, filter 0.4s ease;
}
.gallery__item:hover img {
  transform: scale(1.05);
  filter: brightness(1.04);
}
/* Lupa al pasar el cursor */
.gallery__item::after {
  content: '⤢';
  position: absolute;
  right: 8px;
  bottom: 6px;
  font-size: 0.9rem;
  color: #fff;
  opacity: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
}
.gallery__item:hover::after { opacity: 0.9; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  /* warm charcoal en vez de azul, para no chocar con la paleta */
  background: rgba(38, 32, 27, 0.95);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__img {
  width: auto;
  height: auto;
  max-width: 94vw;
  max-height: 92vh;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  padding: 12px;
  font-size: 1.8rem;
  line-height: 1;
  transition: color var(--ease), transform var(--ease);
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { color: #fff; }
.lightbox__close { top: 16px; right: 20px; font-size: 1.2rem; }
.lightbox__prev  { left: 12px; top: 50%; transform: translateY(-50%); font-size: 2.5rem; }
.lightbox__next  { right: 12px; top: 50%; transform: translateY(-50%); font-size: 2.5rem; }
.lightbox__prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__next:hover { transform: translateY(-50%) translateX(3px); }

/* ============================================================
   DRESS CODE
   ============================================================ */
.dresscode {
  /* fondo más oscuro para que la ilustración (papel casi blanco) resalte */
  background: var(--cream-alt);
}
.galeria { background: var(--cream); }
/* secciones normales: el padding lo pone .section, no .section__content */
.dresscode .section__content,
.alojamiento .section__content,
.galeria .section__content {
  padding-top: 0;
  padding-bottom: 0;
}
.dresscode__img {
  max-width: 620px;
  margin: 1.5rem auto;
  background: #fff;
  padding: 14px;
  border-radius: 4px;
  box-shadow: 0 18px 44px -18px rgba(28, 58, 92, 0.28);
}
.dresscode__img img {
  margin: 0 auto;
  border-radius: 2px;
}
.dresscode__label {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin-bottom: 0.4rem;
}
.dresscode__desc {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-soft);
  text-align: center;
}

/* ============================================================
   ALOJAMIENTO
   ============================================================ */
.alojamiento {
  background: var(--cream);
}
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2rem;
}
.hotel-card {
  border: 1px solid var(--border);
  overflow: hidden;
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
}
.hotel-card:hover {
  box-shadow: 0 8px 32px rgba(28,58,92,0.1);
  transform: translateY(-3px);
}
.hotel-card__img {
  height: 170px;
  background: var(--border);
  overflow: hidden;
}
.hotel-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hotel-card:hover .hotel-card__img img { transform: scale(1.05); }
.hotel-card__body {
  padding: 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.hotel-card__desc { flex: 1; }
.hotel-card__name {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.hotel-card__desc {
  font-size: 1rem;
  color: var(--text-soft);
  margin-bottom: 1.1rem;
  line-height: 1.65;
}

/* ============================================================
   MESA DE REGALOS
   ============================================================ */
.gifts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 600px;
  margin: 2rem auto 0;
}
.gift-card {
  border: 1px solid var(--border);
  padding: 2.25rem 2rem;
  text-align: center;
  background: var(--cream);
  transition: box-shadow var(--ease);
}
.gift-card:hover { box-shadow: 0 6px 24px rgba(28,58,92,0.08); }
.gift-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1.25rem;
  color: var(--blue-dusty);
}
.gift-card__icon svg { width: 100%; height: 100%; }
.gift-card__title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.gift-card__info {
  font-size: 0.88rem;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
  line-height: 1.6;
}
.gift-card .btn { margin-top: 1.25rem; }

/* ============================================================
   RSVP FORM
   ============================================================ */
.rsvp {
  text-align: center;
  background: var(--cream);
}
.rsvp .section__content { padding-top: 0; padding-bottom: 0; }

.rsvp-lead {
  max-width: 480px;
  margin: 0.5rem auto 1.75rem;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--navy);
}

/* Botón de WhatsApp (confirmar / enviar) */
.rsvp-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-left: 34px;
  padding-right: 34px;
  letter-spacing: 0.1em;
  white-space: normal;
}
.rsvp-wa__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Bloque complementario: formulario opcional */
.rsvp-extra {
  max-width: 460px;
  margin: 3rem auto 0;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border);
}
.rsvp-extra__title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.rsvp-extra__sub {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-soft);
  margin-bottom: 1.75rem;
}
.rsvp-card {
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background: #fffdf8;
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 18px 44px -20px rgba(28, 58, 92, 0.25);
  text-align: left;
}
.rsvp-card .rsvp-wa {
  display: flex;
  width: 100%;
  margin-top: 0.5rem;
  padding-left: 20px;
  padding-right: 20px;
}
.rsvp-send {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding-left: 18px;
  padding-right: 18px;
  white-space: normal;
  letter-spacing: 0.06em;
}
.rsvp-form .form-feedback { margin-top: 1rem; }
.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-soft);
}
.rsvp-form {
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 13px 16px;
  background: transparent;
  border: 1px solid var(--border);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  outline: none;
  transition: border-color var(--ease);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.form-input:focus { border-color: var(--navy); }
.form-input::placeholder { color: var(--text-soft); opacity: 0.65; }
.form-textarea {
  resize: vertical;
  min-height: 90px;
}
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' fill='none'%3E%3Cpath stroke='%231C3A5C' stroke-width='1.5' d='m1 1 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.radio-group {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 300;
}
.radio-label input[type="radio"] { display: none; }
.radio-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color var(--ease);
}
.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--navy);
}
.radio-label input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--navy);
  border-radius: 50%;
}
/* Honeypot — visible para bots pero invisible para usuarios */
.hp-trap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}
/* Captcha */
.captcha-group .form-input { max-width: 160px; }
.captcha-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-soft);
  margin-top: 5px;
  letter-spacing: 0.03em;
}

.form-submit { text-align: center; margin-top: 2.5rem; }
.form-feedback {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  min-height: 1.5rem;
  transition: color var(--ease);
}
.form-feedback.success { color: var(--sage); }
.form-feedback.error   { color: #b94040; }
.form-input.invalid    { border-color: #b94040; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq {
  background: var(--cream);
}
.faq .section__content { padding-top: 0; padding-bottom: 0; }
.accordion {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  text-align: left;
}
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
}
.accordion__btn::after {
  content: '+';
  font-size: 1.5rem;
  font-family: var(--font-sans);
  color: var(--blue-dusty);
  flex-shrink: 0;
  transition: transform var(--ease);
}
.accordion__btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding-bottom 0.35s ease;
}
.accordion__panel.open {
  max-height: 400px;
  padding-bottom: 1.25rem;
}
.accordion__panel p {
  font-size: 1.08rem;
  color: var(--text-soft);
  line-height: 1.75;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--cream);
  text-align: center;
  padding: clamp(80px, 16vw, 150px) var(--sec-px);
  position: relative;
  overflow: hidden;
}
.footer__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  z-index: 0;
  filter: blur(1px);
  pointer-events: none;
  user-select: none;
}
.footer__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%,
      rgba(245, 237, 224, 0.82) 0%,
      rgba(245, 237, 224, 0.62) 55%,
      rgba(245, 237, 224, 0.5) 100%),
    linear-gradient(to bottom,
      rgba(245, 237, 224, 0.55) 0%,
      rgba(245, 237, 224, 0.35) 45%,
      rgba(245, 237, 224, 0.6) 100%);
}
.footer__content {
  position: relative;
  z-index: 2;
}
.footer__monogram {
  max-width: 90px;
  margin: 0 auto 1.5rem;
}
.footer__closing {
  font-family: var(--font-amatic);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: 0.02em;
  max-width: 18ch;
  margin: 0 auto 1.1rem;
}
.footer__hashtag {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.footer__date {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
  opacity: 0.8;
}

/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--ease), box-shadow var(--ease);
  z-index: 100;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}
.whatsapp-btn svg { width: 28px; height: 28px; color: #fff; }

/* ============================================================
   ANIMACIONES DE ENTRADA (Intersection Observer)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Delays escalonados para grupos */
.timeline__item.fade-in:nth-child(1) { transition-delay: 0s; }
.timeline__item.fade-in:nth-child(2) { transition-delay: 0.08s; }
.timeline__item.fade-in:nth-child(3) { transition-delay: 0.16s; }
.timeline__item.fade-in:nth-child(4) { transition-delay: 0.24s; }
.timeline__item.fade-in:nth-child(5) { transition-delay: 0.32s; }
.timeline__item.fade-in:nth-child(6) { transition-delay: 0.40s; }
.timeline__item.fade-in:nth-child(7) { transition-delay: 0.48s; }
.gallery__item.fade-in:nth-child(2)  { transition-delay: 0.07s; }
.gallery__item.fade-in:nth-child(3)  { transition-delay: 0.14s; }
.gallery__item.fade-in:nth-child(4)  { transition-delay: 0.21s; }
.gallery__item.fade-in:nth-child(5)  { transition-delay: 0.28s; }
.gallery__item.fade-in:nth-child(6)  { transition-delay: 0.35s; }
.hotel-card.fade-in:nth-child(2)     { transition-delay: 0.1s; }
.hotel-card.fade-in:nth-child(3)     { transition-delay: 0.2s; }
.gift-card.fade-in:nth-child(2)      { transition-delay: 0.1s; }

/* ============================================================
   RESPONSIVE — TABLET (768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --sec-py: 64px; }

  /* Navbar mobile */
  .navbar__menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 205;
  }
  .navbar__menu.open { display: flex; }
  .navbar__menu a {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }
  .navbar__menu a.nav-cta {
    padding: 10px 28px;
  }
  .hamburger { display: flex; }

  /* Hero — tablet/mobile */
  .hero__overlay {
    background: radial-gradient(
      ellipse 120% 100% at 30% 50%,
      rgba(245, 237, 224, 0.75) 0%,
      rgba(245, 237, 224, 0.45) 50%,
      rgba(245, 237, 224, 0.1) 100%
    );
  }
  .hero__bg { object-position: 55% center; }
  .countdown { gap: 0.45rem; }
  .countdown__sep { font-size: 1.5rem; }
  .countdown__item { min-width: 46px; }

  /* Timeline — todo alineado a la izquierda */
  .timeline { max-width: 420px; }
  .timeline::before {
    left: 41px;
    transform: translateX(0) scaleY(0);
  }
  .timeline.is-drawn::before { transform: translateX(0) scaleY(1); }
  .timeline__item {
    grid-template-columns: 82px 18px 1fr;
    gap: 14px;
  }
  .timeline__media { width: 82px; height: 82px; }
  .timeline__info { justify-self: start; text-align: left; }
  .timeline__item:nth-child(even) .timeline__media { order: 1; justify-self: start; }
  .timeline__item:nth-child(even) .timeline__dot   { order: 2; }
  .timeline__item:nth-child(even) .timeline__info  { order: 3; justify-self: start; text-align: left; }

  /* Ceremonia — ilustración arriba, info debajo */
  .ceremonia__inner {
    flex-direction: column;
    gap: 2rem;
  }
  .ceremonia__media { flex: none; width: 100%; max-width: 460px; margin: 0 auto; }
  .ceremonia__content { align-items: center; text-align: center; }
  .ceremonia .section__title { text-align: center; }
  .ceremonia .section__divider { justify-content: center; margin-left: auto; }
  .ceremonia .event-card,
  .ceremonia .event-card__details { align-items: center; text-align: center; }
  .ceremonia .event-card__row { justify-content: center; }

  /* Nosotros — polaroids apiladas */
  .nosotros__text { max-width: 440px; }
  .nosotros__photos {
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
  }
  .polaroid { width: clamp(250px, 78vw, 340px); }
  .polaroid--right { margin-top: 0; }

  /* Gallery */
  .gallery { grid-template-columns: repeat(3, 1fr); }

  /* Hotel grid */
  .hotel-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }

  /* Gifts */
  .gifts-grid { grid-template-columns: 1fr; max-width: 360px; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE (480px)
   ============================================================ */
@media (max-width: 480px) {
  :root { --sec-py: 52px; --sec-px: 16px; }

  .hero__content { padding-top: 22svh; padding-bottom: 48px; }
  /* corre la imagen a la derecha para centrar a la pareja en vertical */
  .hero__bg { object-position: 46% center; }
  .hero__corner { width: 100px; height: 100px; }
  .countdown { gap: 0.4rem; }
  .countdown__num { font-size: 1.7rem; }
  .countdown__item { min-width: 40px; }
  .countdown__sep { display: none; }

  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery__item:nth-child(7n+1) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
  .gallery__item:nth-child(7n+4) { grid-column: auto; grid-row: auto; aspect-ratio: 1; }

  .timeline { max-width: 360px; }
  .timeline::before { left: 38px; }
  .timeline__item { grid-template-columns: 76px 16px 1fr; gap: 12px; }
  .timeline__dot { width: 11px; height: 11px; }
  .timeline__media { width: 76px; height: 76px; }
  .timeline__event { font-size: 1.2rem; }
  .timeline__time { font-size: 0.9rem; }
  .timeline__desc { font-size: 0.95rem; }
  .timeline__hint { font-size: 0.9rem; }

  .polaroid--tilt { transform: rotate(-2deg); max-width: 92vw; }
  .rsvp-extra { padding-left: 0; padding-right: 0; }
}

/* ============================================================
   PRINT — ocultar nav y botones flotantes
   ============================================================ */
@media print {
  .navbar, .whatsapp-btn, .lightbox { display: none !important; }
  .hero { min-height: auto; }
  .fade-in { opacity: 1 !important; transform: none !important; }
}
