/* Landing Silvia & Juan Pablo — fiel al diseño de Canva (lienzo de 1024 px), mobile-first.
   Tipografías sustitutas (ver Memoria/Decisiones.md del workspace):
   Sloop Script Pro → Pinyon Script · Mak Light → Federo · NewIconSerif → Oranienbaum */

@font-face { font-family: "Pinyon Script"; src: url(../fonts/PinyonScript.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Federo"; src: url(../fonts/Federo.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Oranienbaum"; src: url(../fonts/Oranienbaum.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Forum"; src: url(../fonts/Forum.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Allura"; src: url(../fonts/Allura.woff2) format("woff2"); font-display: swap; }

:root {
  --verde: #3e513c;
  --verde-suave: #5e695c;
  --verde-texto: #444f43;
  --crema: #f0e8db;
  --papel: #f3ede3;
  --tinta: #111;
  --script: "Pinyon Script", cursive;
  --deco: "Federo", serif;
  --titulo: "Oranienbaum", serif;
  --texto: "Forum", serif;
  --manuscrita: "Allura", cursive;
  --ancho: 1024px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 1.0625rem/1.4 var(--texto);
  text-align: center;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }

/* Las secciones a ancho completo; el contenido, centrado en el lienzo del diseño */
section, .portada { position: relative; padding-inline: 1.25rem; }

.titulo-script {
  font: 400 clamp(2.6rem, 9vw, 3.25rem)/1.1 var(--manuscrita);
  margin-bottom: .6rem;
}

.boton {
  display: inline-block;
  background: transparent; cursor: pointer;
  padding: .7em 1.9em;
  border: 1.5px solid var(--tinta);
  color: var(--verde-suave);
  font: 400 1.125rem/1 var(--texto);
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: .01em;
  transition: background-color .2s, color .2s;
}
.boton:hover, .boton:focus-visible { background: var(--verde); border-color: var(--verde); color: var(--crema); }
:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }

/* Marcadores de datos que faltan: visibles a propósito para la revisión del cliente */
.pendiente { outline: 1.5px dashed #b07a4a; outline-offset: 4px; color: #b07a4a; }

/* ---------- Marco con palmeras ---------- */
.marco { position: relative; overflow: hidden; background: url(../img/fondo-papel.webp) center / cover; }

/* La palmera va en tres piezas para que el tronco se estire con el alto del contenido:
   el elemento es el tronco (mosaico vertical); ::before es la copa y ::after la base.
   Proporciones de las piezas: copa 1.241 × ancho, base 1.063 × ancho. */
.marco { --ancho-palmera: clamp(150px, 37.7vw, 386px); }
.palmera {
  --w: var(--ancho-palmera);
  position: absolute;
  top: calc(.5rem + var(--w) * 1.2);
  bottom: calc(var(--w) * 1.03);
  width: var(--w);
  z-index: 2;
  pointer-events: none;
  background: url(../img/palmera-tronco.webp) center top / 100% auto repeat-y;
}
.palmera::before, .palmera::after { content: ""; position: absolute; left: 0; right: 0; background: center / 100% 100% no-repeat; }
.palmera::before { bottom: calc(100% - 2px); height: calc(var(--w) * 1.241); background-image: url(../img/palmera-copa.webp); background-position: bottom; }
.palmera::after { top: calc(100% - 2px); height: calc(var(--w) * 1.063); background-image: url(../img/palmera-base.webp); }
/* En móvil se corren hacia afuera para que el tronco no pise el texto */
.palmera--izq { left: calc(var(--w) * -.3); }
.palmera--der { right: calc(var(--w) * -.38); }

/* ---------- Portada ---------- */
.portada {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  color: var(--verde);
  isolation: isolate;
}
.portada::before { /* azulejo lavado sobre crema, como en el diseño */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(250, 244, 236, .72), rgba(250, 244, 236, .72)), url(../img/fondo-azulejo.webp) center top / max(780px, 101%) auto;
}
.portada__monograma { width: clamp(64px, 9.4vw, 96px); margin: 0 auto; }
.portada__giralda { width: clamp(110px, 16.3vw, 167px); margin: clamp(1rem, 3.5vw, 2.4rem) auto 0; }
.portada__nombres {
  position: relative; z-index: 3;
  font: 400 clamp(2.5rem, 10.5vw, 3.5rem)/1.15 var(--script);
  margin-top: .5rem;
}
.amp { font-family: var(--manuscrita); font-size: 1.05em; }
.portada__fecha { font: 400 clamp(1rem, 4.4vw, 1.25rem)/1.4 var(--deco); letter-spacing: .02em; }
.portada__lugar { font: 400 clamp(2.2rem, 9vw, 3rem)/1.2 var(--script); }

.musica { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: .75rem; margin-top: 1rem; }
.musica__boton {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--verde-suave);
  color: var(--crema);
  cursor: pointer;
}
.musica__boton svg { width: 22px; fill: currentColor; }
.musica__boton .icono-pausa, .musica__boton[aria-pressed="true"] .icono-play { display: none; }
.musica__boton[aria-pressed="true"] .icono-pausa { display: block; }
.musica__onda { display: flex; align-items: center; gap: 2px; height: 28px; }
.musica__onda i { width: 2px; background: var(--verde-suave); border-radius: 1px; transform-origin: center; }
.sonando .musica__onda i { animation: onda 1s ease-in-out infinite alternate; }
@keyframes onda { to { transform: scaleY(.35); } }

/* ---------- Detalles ---------- */
.detalles {
  position: relative; z-index: 3;
  color: var(--verde);
  padding: 2.5rem 1.25rem 3rem;
  /* en móvil el texto queda entre los troncos */
  padding-inline: max(1.25rem, calc(var(--ancho-palmera, 37.7vw) * .28));
}
.detalles__titulo { font: 400 clamp(2.6rem, 10vw, 3.7rem)/1 var(--titulo); text-transform: uppercase; margin-bottom: 1.6rem; }
.detalles__titulo.pendiente { display: inline-block; padding: .1em .3em; text-transform: none; }
.padres { display: grid; gap: 1rem; font-size: 1.1rem; line-height: 1.2; }
.detalles__invitan { margin-top: 1.6rem; font-size: 1.2rem; line-height: 1.3; text-transform: uppercase; }
.detalles__ciudad { font: 400 clamp(2.2rem, 9vw, 3rem)/1.3 var(--script); margin-top: .4rem; }

.lugares { position: relative; display: grid; gap: 2.5rem; margin-top: 2.5rem; padding-bottom: 2rem; }
.lugares__ilustracion {
  position: absolute; z-index: -1;
  left: 50%; bottom: 0;
  width: min(556px, 115%);
  transform: translateX(-50%);
  opacity: .8;
}
.lugar__nombre { font: 400 1.1rem/1.15 var(--deco); }
.lugar__hora { font: 400 1.1rem/1.4 var(--deco); margin-bottom: 1rem; }
.lugar .boton { background: rgba(243, 237, 227, .7); }

/* ---------- Historia ---------- */
.historia { background: url(../img/fondo-papel-claro.webp) center / cover; padding-block: 2rem 2.5rem; }
.historia__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .6rem; max-width: 560px; margin: 0 auto; align-items: end; }
.historia__lista img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1); }
.historia__lista span { display: block; margin-top: .5rem; font-size: 1.1rem; }

/* ---------- Confirmar ---------- */
.confirmar {
  overflow: hidden;
  padding-block: 3.5rem;
  color: var(--verde-texto);
  background: url(../img/fondo-acuarela.webp) center top / max(100%, 760px) auto no-repeat, #cfd7b8;
}
.confirmar__texto { position: relative; z-index: 1; font: 400 clamp(1.9rem, 7.6vw, 2.45rem)/1.2 var(--manuscrita); margin-bottom: 1.5rem; }
.confirmar .boton { position: relative; z-index: 1; color: var(--verde-suave); }
.confirmar__olivo { position: absolute; width: clamp(70px, 22.5vw, 231px); top: 50%; translate: 0 -50%; opacity: .9; }
.confirmar__olivo--izq { left: max(-8%, -45px); top: 85%; transform: scaleX(-1) rotate(-25deg); }
.confirmar__olivo--der { right: max(-6%, -40px); top: 15%; }
@media (min-width: 640px) { .confirmar__olivo--izq, .confirmar__olivo--der { top: 50%; } }

/* ---------- Dresscode ---------- */
.dresscode {
  display: flex; align-items: center; justify-content: center; gap: 1.5rem;
  padding-block: 1.5rem;
  background: url(../img/fondo-lino.webp) center / cover;
}
.dresscode__icono { width: clamp(64px, 18vw, 72px); }
.dresscode .titulo-script { margin-bottom: .3rem; }
.dresscode__tipo { font-size: 1.15rem; margin-bottom: .4rem; }

/* ---------- Hoteles ---------- */
.hoteles { padding-block: 2rem 1.5rem; background: url(../img/fondo-papel-hoteles.webp) center / cover; }
.hoteles__lista { display: grid; gap: 2rem; max-width: 980px; margin: 1rem auto 0; }
.tarjeta img { height: 120px; width: auto; max-width: 100%; margin: 0 auto .5rem; object-fit: cover; }
.tarjeta h3 { font: 400 1.25rem/1.15 var(--texto); margin-bottom: .2rem; }
.tarjeta p { font-size: .82rem; line-height: 1.2; max-width: 22ch; margin: 0 auto; }
.hoteles__nota { margin-top: 2rem; font-size: .85rem; }

/* ---------- Gastronomía ---------- */
.gastronomia { color: var(--crema); padding-block: 2.5rem 3.5rem; background: url(../img/fondo-pincelada.webp) center / cover, #8b9781; }
.gastronomia__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .9rem; max-width: 760px; margin: 1rem auto 0; }
.gastronomia h3 { font: 400 1.15rem/1.2 var(--texto); margin-bottom: .4rem; }
.gastronomia img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Obsequio ---------- */
.obsequio { padding-block: 2rem 3.5rem; background: linear-gradient(rgba(252, 251, 247, .8), rgba(252, 251, 247, .8)), url(../img/fondo-hojas.webp) center / cover, #fbfaf6; }
.obsequio p { max-width: 60ch; margin-inline: auto; }
.obsequio__lema { text-transform: uppercase; margin-bottom: .2rem; }

/* ================= Tablet ================= */
@media (min-width: 640px) {
  .historia__lista { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 600px; gap: .6rem; }
}

/* ================= Escritorio: composición del diseño ================= */
@media (min-width: 900px) {
  .palmera--izq { left: max(0px, calc(50% - var(--ancho) / 2)); }
  .palmera--der { right: max(0px, calc(50% - var(--ancho) / 2)); }
  .portada { padding-bottom: 2rem; }
  .detalles { padding: 1.5rem 0 0; max-width: var(--ancho); margin: 0 auto; }
  .padres { max-width: 560px; margin-inline: auto; gap: 4rem; }
  .detalles__invitan { font-size: 1.27rem; }
  .lugares { display: block; height: 440px; max-width: 580px; margin: 2.6rem auto 0; padding: 0; text-align: left; }
  .lugares__ilustracion { width: 556px; bottom: -40px; opacity: .85; }
  .lugar { position: absolute; }
  .lugar--ceremonia { left: 30px; top: 0; }
  .lugar--celebracion { left: 360px; top: 195px; }
  .lugar .boton { margin-left: 10px; padding: .7em 1.85em; }
  .historia { margin-top: 0; padding-block: 1.5rem 2rem; }
  .historia__lista { max-width: 560px; }
  .confirmar { padding-block: 4.5rem 4.5rem; }
  .dresscode { padding-block: 1.75rem; }
  .tarjeta img { height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sonando .musica__onda i { animation: none; }
}

/* =====================================================================
   Ajustes de la reunión del 16-nov (Workspace: Memoria/Decisiones.md)
   ===================================================================== */

/* Palmeras: en móvil solo enmarcan la portada; las del marco quedan para escritorio */
.palmera-movil { display: none; }
@media (max-width: 899px) {
  .marco > .palmera { display: none; }
  .palmera-movil {
    --w: var(--ancho-palmera);
    display: block;
    position: absolute; z-index: 2; pointer-events: none;
    top: calc(.5rem + var(--w) * 1.2); bottom: calc(var(--w) * .55);
    width: var(--w);
    background: url(../img/palmera-tronco.webp) center top / 100% auto repeat-y;
  }
  .palmera-movil::after {
    content: ""; position: absolute; left: 0; right: 0; top: calc(100% - 2px);
    height: calc(var(--w) * .55);
    background: url(../img/palmera-base.webp) center top / 100% auto no-repeat;
  }
  .palmera-movil::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 2px);
    height: calc(var(--w) * 1.241);
    background: url(../img/palmera-copa.webp) center bottom / 100% 100% no-repeat;
  }
  .palmera-movil--izq { left: calc(var(--w) * -.3); }
  .palmera-movil--der { right: calc(var(--w) * -.38); }
  .detalles { padding-inline: 1.1rem; }
}

/* Detalles: la composición del diseño a escala, también en móvil (como la referencia) */
.detalles__titulo { font-size: clamp(2.1rem, 9vw, 3.7rem); margin-bottom: 1.2rem; }
.padres {
  grid-template-columns: 1fr 1fr;
  gap: clamp(.75rem, 4vw, 4rem);
  font-size: clamp(.74rem, 3.3vw, 1.1rem);
  max-width: 560px; margin-inline: auto;
}
.detalles__invitan { font-size: clamp(.8rem, 3.6vw, 1.27rem); }
.detalles__ciudad { font-size: clamp(1.9rem, 8vw, 3rem); }

.lugares {
  display: block; position: relative;
  width: 100%; max-width: 580px; aspect-ratio: 580 / 400;
  margin: clamp(1.2rem, 5vw, 2.6rem) auto 0; padding: 0;
  text-align: left;
}
.lugares__ilustracion { width: 96%; bottom: -9%; opacity: .85; }
.lugar { position: absolute; }
.lugar--ceremonia { left: 2%; top: 0; }
.lugar--celebracion { left: 60%; top: 44%; }
.lugar__nombre, .lugar__hora { font-size: clamp(.78rem, 3.4vw, 1.1rem); }
.lugar__hora { margin-bottom: .5em; }
.lugar .boton { margin-left: 0; font-size: clamp(.7rem, 3vw, 1.125rem); padding: .55em 1.3em; }
@media (min-width: 900px) {
  .lugar--ceremonia { left: 30px; }
  .lugar--celebracion { left: 360px; top: 195px; }
  .lugar .boton { margin-left: 10px; padding: .7em 1.85em; }
}

/* Historia: cuadrícula de 4 con marco decorativo */
.historia__lista { gap: 1.6rem 1rem; }
.historia__lista li { --giro: -1.5deg; }
.historia__lista li:nth-child(even) { --giro: 1.5deg; }
.historia__lista img {
  padding: 6px;
  background: #fbf8f1;
  border: 1px solid #c8b48e;
  outline: 3px double #c8b48e; outline-offset: 3px;
  box-shadow: 0 6px 14px rgba(60, 50, 30, .18);
  rotate: var(--giro);
}

/* Dresscode: título centrado */
@media (max-width: 639px) {
  .dresscode { flex-direction: column; gap: .5rem; }
}

/* Carruseles: hoteles y gastronomía. Se deslizan con el dedo; flechas como apoyo */
.carrusel__pista {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: 78%;
  grid-template-columns: none;
  gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 11%;
  padding: .25rem 11% .75rem;
  margin-inline: -1.25rem;
  scrollbar-width: none;
}
.carrusel__pista::-webkit-scrollbar { display: none; }
.carrusel__pista > li { scroll-snap-align: center; grid-column: auto; }
.carrusel__pista img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0 0 .6rem; }
.gastronomia .carrusel__pista h3 { margin: 0; }
.carrusel__controles { display: flex; justify-content: center; gap: 1rem; margin-top: .75rem; }
.carrusel__flecha {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid currentColor; background: transparent; color: inherit;
  font: 400 1.6rem/1 var(--texto); cursor: pointer;
}
.carrusel__flecha:disabled { opacity: .3; cursor: default; }
@media (min-width: 640px) {
  .carrusel__pista { grid-auto-columns: calc((100% - 2rem) / 3); padding-inline: 0; margin-inline: auto; max-width: 980px; scroll-padding-inline: 0; }
  .carrusel__pista > li { scroll-snap-align: start; }
}

/* Obsequio: los datos bancarios van en un popup */
.obsequio .boton { margin-top: 1.5rem; }

/* Variante para que el cliente compare (?palmeras=1): en móvil, las palmeras del marco
   enmarcan portada y detalles, como en escritorio */
@media (max-width: 899px) {
  .con-palmeras .marco > .palmera { display: block; }
  .con-palmeras .palmera-movil { display: none; }
}

/* Carruseles: en equipos con puntero (escritorio), el texto del Canva va sobre la foto.
   En reposo se ve el nombre; al pasar el cursor (o con el foco) la foto se oscurece y aparece la
   descripción. En pantallas táctiles no hay hover: el texto sigue debajo de la foto, siempre visible. */
@media (hover: hover) and (pointer: fine) and (min-width: 640px) {
  .carrusel__pista > li { position: relative; overflow: hidden; outline-offset: 3px; }
  .carrusel__pista > li img { display: block; margin: 0; transition: transform .6s ease; }
  .carrusel__info {
    position: absolute; inset: auto 0 0; padding: 2.5rem .9rem .8rem;
    color: var(--crema); text-align: center;
    background: linear-gradient(to top, rgba(30, 38, 29, .78), rgba(30, 38, 29, 0));
    transition: inset .45s ease, background-color .45s ease, padding .45s ease;
  }
  .carrusel__info h3 { color: inherit; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
  .carrusel__info p { color: inherit; font-size: .92rem; line-height: 1.3; max-width: 30ch; max-height: 0; opacity: 0; overflow: hidden; margin-top: 0;
    transition: opacity .35s ease .1s, max-height .45s ease; }
  .carrusel__pista > li:hover .carrusel__info,
  .carrusel__pista > li:focus-within .carrusel__info {
    inset: 0; display: flex; flex-direction: column; justify-content: center; padding-top: .8rem;
    background-color: rgba(30, 38, 29, .62);
  }
  .carrusel__pista > li:hover p,
  .carrusel__pista > li:focus-within p { max-height: 12em; opacity: 1; margin-top: .4rem; }
  .carrusel__pista > li:hover img,
  .carrusel__pista > li:focus-within img { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .carrusel__pista > li img, .carrusel__info, .carrusel__info p { transition: none; }
}

/* ---------- Popups (confirmar asistencia y datos bancarios) ---------- */
:root:has(.popup[open]) { overflow: hidden; }
.popup {
  width: min(27rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem);
  padding: 0 1.4rem 1.8rem;
  border: 1.5px solid var(--verde); color: var(--tinta);
  background: url(../img/fondo-papel-claro.webp) center / cover, var(--papel);
  overflow-y: auto; overscroll-behavior: contain;
}
.popup--ancho { width: min(60rem, calc(100vw - 2rem)); }
.popup::backdrop { background: rgba(30, 38, 29, .62); }
.popup__cerrar {
  display: block; position: sticky; z-index: 1; top: 0; margin: 0 -1.2rem 0 auto; width: 44px; height: 44px;
  border: 0; background: none; color: var(--verde); font: 400 2rem/1 var(--texto); cursor: pointer;
}
.popup__botones { display: grid; gap: .8rem; margin-top: 1.4rem; }
.boton-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .6rem 1rem;
  background: var(--verde); color: #fff; text-decoration: none; font-size: 1.15rem;
}
.boton-whatsapp:hover, .boton-whatsapp:focus-visible { background: #2e3d2c; }
.boton-whatsapp[aria-disabled="true"] { opacity: .55; cursor: not-allowed; color: #fff; }
.cuentas { display: grid; gap: 1rem; margin-top: .6rem; text-align: left; }
.popup .cuenta { display: flex; flex-direction: column; padding: 1rem; background: rgba(255, 255, 255, .72); border: 1px solid rgba(62, 81, 60, .28); }
.cuenta__cabeza { display: flex; align-items: center; gap: .7rem; padding-bottom: .7rem; border-bottom: 1px solid rgba(62, 81, 60, .28); }
.cuenta__cabeza img { height: 36px; width: auto; }
.cuenta__cabeza h3 { font: 400 1.3rem/1.15 var(--texto); }
.cuenta__cabeza small { display: block; font-size: .95rem; color: var(--verde-suave); }
.cuenta dl { margin: 0 0 1rem; }
.cuenta__fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 .6rem; padding-top: .7rem; }
.cuenta__fila dt { grid-column: 1 / -1; font-size: .95rem; color: var(--verde-suave); }
/* Sin la fuente del diseño: en Forum el 0 y la o, y el 1 y la l, se confunden */
.cuenta__fila dd { overflow-wrap: anywhere; font: 400 1rem/1.35 system-ui, sans-serif; user-select: all; }
.copiar {
  min-height: 44px; padding: .3rem .8rem; border: 1px solid var(--verde);
  background: transparent; color: var(--verde); font: 400 1rem/1 var(--texto); cursor: pointer;
}
.copiar:hover, .copiar:focus-visible { background: var(--verde); color: var(--crema); }
.copiar--todo { margin-top: auto; }
.popup__aviso { min-height: 1.4em; margin-top: .6rem; color: var(--verde); }
.popup__copia { position: fixed; opacity: 0; pointer-events: none; }
@media (min-width: 900px) { .cuentas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
