/* Composición y tipografías de la referencia suministrada.
   https://kusisainvitaciones.com/paulayalberto/paula--alberto */
@font-face { font-family: Authenia; src: url("assets/fonts/authenia.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: Angeletta; src: url("assets/fonts/angeletta.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: CMU; src: url("assets/fonts/cmu-serif.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Warm Snow"; src: url("assets/fonts/warm-snow.otf") format("opentype"); font-style: normal; font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --fondo: #e7dbca;
  --papel: #faf6ef;
  --tinta: #624b39;
  --acentos: #8c6b4e;
  --suave: #d0b99d;
  --linea: #b9a183;
  --manuscrita: Authenia, "Brush Script MT", cursive;
  --firma: Angeletta, "Brush Script MT", cursive;
  --nombre: "Warm Snow", CMU, Georgia, serif;
  font-family: CMU, Georgia, serif;
  color: var(--tinta);
  background: var(--fondo);
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { position: relative; isolation: isolate; margin: 0; font-size: 21px; line-height: 1.42; }
.fondo-costero { position: fixed; z-index: -1; inset: 0; pointer-events: none; background: #e7dbca url("assets/costero/mar-atardecer-poster.jpg") 38% center/cover; }
.fondo-costero video { width: 100%; height: 100%; object-fit: cover; object-position: 38% center; filter: saturate(.35) sepia(.2) brightness(1.15); }
.fondo-costero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(#f5ebda99, #eddfc9b8); }
body.intro-activa { overflow-x: clip; }
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h2, h3 { font-family: var(--manuscrita); color: var(--acentos); line-height: 1.15; }
h2 { font-size: clamp(48px, 9vw, 70px); }
h3 { font-size: clamp(43px, 9vw, 65px); }
a { color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #6a4930; outline-offset: 5px; }
main:focus { outline: none; }
section[id] { scroll-margin-top: 30px; }
.papel {
  background: linear-gradient(#faf6efec, #faf6efec), url("assets/costero/textura-beige.webp") center/cover;
  box-shadow: 0 5px 18px #7457350c;
}
.adorno { position: absolute; pointer-events: none; filter: sepia(.6) saturate(.45); animation: brisa-marina 6s ease-in-out infinite alternate; }
@keyframes brisa-marina { from { translate: 0 0; rotate: -.8deg; } to { translate: 0 -8px; rotate: .8deg; } }
.adorno:nth-of-type(even) { animation-delay: -3s; }
.ceja { font: 13px/1.5 CMU, Georgia, serif; letter-spacing: .13em; text-transform: uppercase; }
.boton {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 25px;
  border: 1px solid #b59b7d;
  border-radius: 99px;
  background: #d9c6af;
  color: #4e3929;
  font: 17px/1.2 CMU, Georgia, serif;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.boton:hover { background: #ccb292; transform: translateY(-2px); }
.boton:disabled { opacity: .5; cursor: default; }
.boton-pequeno { font-size: 15px; padding-inline: 18px; }
.icono { display: block; width: 54px; height: 54px; margin: 0 auto 13px; color: var(--acentos); }

.entrada {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 24px 15px;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse at 50% 42%, #fbf0dd55, #f3e6d422 75%);
}
.entrada h1 { margin-top: 8px; font: clamp(49px, 10vw, 73px)/1.2 var(--manuscrita); color: var(--acentos); }
.entrada-subtitulo { font-size: 18px; }
.entrada > .ceja, .entrada > h1, .entrada > .entrada-subtitulo { position: relative; z-index: 2; transition: opacity .6s, transform .6s; }
.entrada.abriendo > .ceja, .entrada.abriendo > h1, .entrada.abriendo > .entrada-subtitulo { opacity: 0; transform: translateY(-15px); }
.escenario { position: relative; z-index: 2; width: min(100%, 570px); height: clamp(300px, 72vw, 410px); }
.sobre {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 58%;
  width: min(77%, 415px);
  aspect-ratio: 1.5;
  transform: translate(-50%, -45%) rotate(-3deg);
  perspective: 1200px;
  filter: drop-shadow(0 18px 14px #6c4d2c42);
  transition: transform 1.4s ease;
}
.sobre-fondo, .sobre-bolsillo, .sobre-solapa, .sobre-interior { position: absolute; inset: 0; border-radius: 3px; }
.sobre-fondo {
  background: #bc9c74 url("assets/costero/textura-arena.webp") center/cover;
  background-blend-mode: multiply;
  box-shadow: inset 0 1px 2px #fff5db, 0 2px 1px #9b7759;
}
.sobre-interior {
  background: linear-gradient(#9b7856, #dfc6a3 80%);
  clip-path: polygon(0 0, 50% 59%, 100% 0);
}
.sobre-bolsillo {
  z-index: 4;
  clip-path: polygon(0 0, 50% 60%, 100% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(34deg, #e4cbaa 49.5%, #b69672 50%, #f6e2c6 50.3%, transparent 50.7%) left/50.2% 100% no-repeat,
    linear-gradient(-34deg, #d5b590 49.5%, #b4936e 50%, #efdbbd 50.3%, transparent 50.7%) right/50.2% 100% no-repeat,
    #d7bc97;
}
.sobre-bolsillo::before { content: ""; position: absolute; inset: 0; clip-path: polygon(0 100%, 50% 58%, 100% 100%); background: linear-gradient(#edd6b4, #d7b990); box-shadow: inset 0 -1px 1px #a88562; }
.sobre-bolsillo::after { content: ""; position: absolute; inset: 0; background: url("assets/costero/textura-arena.webp") center/cover; opacity: .27; mix-blend-mode: multiply; }
.sobre-solapa {
  z-index: 5;
  background: linear-gradient(160deg, #f0dfc4, #d1b18c 85%);
  clip-path: polygon(0 0, 100% 0, 53% 62%, 50% 63%, 47% 62%);
  transform-origin: 50% 0;
  transition: transform 1.2s cubic-bezier(.2,.65,.2,1), z-index 0s .6s;
  backface-visibility: visible;
}
.sobre-solapa::after { content: ""; position: absolute; inset: 0; background: url("assets/costero/textura-arena.webp") center/cover; mix-blend-mode: multiply; opacity: .35; box-shadow: inset 0 2px 2px #fff0d6; }
.lacre {
  position: absolute;
  width: 76px;
  height: 76px;
  z-index: 6;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: url("assets/costero/nacar.png") center 53%/123% auto;
  box-shadow: 0 3px 6px #71523840;
  transition: transform .65s, opacity .5s;
}
button.lacre { padding: 0; border: 0; cursor: pointer; touch-action: manipulation; }
button.lacre:hover:not(:disabled) { box-shadow: 0 5px 12px #71523860, 0 0 0 5px #fff6e450; }
button.lacre:focus-visible { outline-offset: 7px; }
.carta-interior {
  position: absolute;
  z-index: 2;
  inset: 7% 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--papel) url("assets/costero/papel.png") center/cover;
  border: 1px solid #e1cfb5;
  outline: 1px solid #cbb28e;
  outline-offset: -9px;
  box-shadow: 0 4px 12px #61432835;
  transition: transform 1.9s .7s cubic-bezier(.19,.74,.3,1);
}
.mensaje-apertura {
  position: absolute;
  z-index: 8;
  bottom: 12%;
  left: 50%;
  width: min(72%, 290px);
  padding: 10px 8px;
  border: 1px solid #cab08a;
  background: #fff8ebe8;
  box-shadow: 0 5px 15px #6c4b2930;
  opacity: 0;
  text-align: center;
  pointer-events: none;
}
.mensaje-apertura strong { display: block; font: clamp(20px, 4vw, 26px)/1.3 var(--nombre); }
.mensaje-apertura span { display: block; margin-top: 3px; font-size: 14px; }
.abriendo .mensaje-apertura { animation: mostrar-mensaje 1s 2s both; }
.abriendo .entrada-nombre { opacity: 0; }
.abriendo .entrada-fecha { opacity: 0; }
@keyframes mostrar-mensaje { from { opacity: 0; transform: translate(-50%, 15px); } to { opacity: 1; transform: translate(-50%, 0); } }
.foto-sorpresa {
  position: absolute;
  z-index: 3;
  top: 7%;
  left: 26%;
  width: 48%;
  padding: 7px 7px 9px;
  border: 1px solid #e2d4c2;
  background: var(--papel);
  box-shadow: 0 12px 21px #70523640, 0 1px 2px #6c4c3550;
  opacity: 0;
}
.foto-sorpresa img { width: 100%; }
.foto-sorpresa figcaption { padding-top: 6px; font: 19px/1.2 var(--firma); color: #77563c; white-space: nowrap; }
.abriendo .sobre { transform: translate(-50%, -40%) rotate(0); }
.abriendo .sobre-solapa { transform: rotateX(-178deg); z-index: 1; }
.abriendo .lacre { transform: translate(-35%, -85%) rotate(-16deg) scale(.92); opacity: 0; }
.abriendo .carta-interior { transform: translateY(-84%); }
.abriendo .sorpresa-uno { animation: salir-foto-uno 2.3s .9s both; }
.abriendo .sorpresa-dos { animation: salir-foto-dos 2.3s 1.1s both; }
@keyframes salir-foto-uno {
  0%, 12% { opacity: 0; transform: translate(0, 0) rotate(0); z-index: 3; }
  35% { opacity: 1; z-index: 3; }
  67% { transform: translate(-62%, -91%) rotate(-15deg); z-index: 6; }
  85% { transform: translate(-54%, -83%) rotate(-10deg); z-index: 6; }
  100% { opacity: 1; transform: translate(-57%, -85%) rotate(-12deg); z-index: 6; }
}
@keyframes salir-foto-dos {
  0%, 12% { opacity: 0; transform: translate(0, 0) rotate(0); z-index: 3; }
  35% { opacity: 1; z-index: 3; }
  67% { transform: translate(66%, -84%) rotate(16deg); z-index: 6; }
  85% { transform: translate(58%, -76%) rotate(10deg); z-index: 6; }
  100% { opacity: 1; transform: translate(61%, -79%) rotate(12deg); z-index: 6; }
}
.entrada-concha { z-index: 3; width: 20%; right: -1%; bottom: 9%; transform: rotate(-35deg); }
.entrada-estrellas { z-index: 3; width: 24%; right: 7%; bottom: 0; transform: rotate(18deg); }
.guirnalda-entrada { position: absolute; z-index: 3; width: 34%; left: 1%; bottom: 1%; opacity: .98; transform: rotate(-17deg); pointer-events: none; transition: opacity .5s; }
.abriendo .guirnalda-entrada { opacity: 0; }
.entrada-nombre { position: relative; z-index: 2; margin: 8px 0 16px; font: clamp(25px, 5vw, 38px)/1.25 var(--nombre); }
.entrada-fecha { position: relative; z-index: 2; margin-top: 14px; font-size: 14px; }
.entrada .boton { position: relative; z-index: 7; }
.celebracion { position: fixed; z-index: 30; inset: 0; overflow: hidden; pointer-events: none; }
.globos, #confeti { position: absolute; inset: 0; width: 100%; height: 100%; }
.entrada > .globos { position: fixed; z-index: 1; overflow: hidden; pointer-events: none; }
.globo { position: absolute; top: 100%; will-change: transform; }
.globo img { width: 100%; height: auto; transform-origin: 50% 25%; animation: balancear-globo 3s ease-in-out infinite alternate; }
@keyframes balancear-globo { from { transform: rotate(-5deg) translateX(-5px); } to { transform: rotate(5deg) translateX(5px); } }
.invitacion-visible { animation: aparecer-pagina .9s ease both; }
@keyframes aparecer-pagina { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.detalle-confirmacion { position: absolute; top: 23px; left: 26%; width: 48%; pointer-events: none; }

main { width: min(100%, 680px); margin: auto; text-align: center; }
.bienvenida { position: relative; display: grid; align-items: center; min-height: 100svh; padding: 48px 0 88px; isolation: isolate; }
.carta-bienvenida {
  position: relative;
  width: min(calc(100% - 36px), 560px);
  margin: auto;
  padding: 42px 18px 28px;
  text-align: center;
  background: linear-gradient(#fffaf0e8, #fffaf0e8), url("assets/costero/textura-perlada.webp") center/cover;
}
.lacre-carta { top: 0; width: 54px; height: 54px; }
.carta-bienvenida .ceja { font-size: 11px; letter-spacing: .06em; }
.carta-bienvenida h1 { margin: 14px auto 17px; font: clamp(32px, 8.8vw, 64px)/1.22 var(--nombre); color: var(--acentos); }
.carta-bienvenida h1 span { display: block; white-space: nowrap; }
.presentacion-pareja { position: relative; margin: 0 -6px; padding: 5px 5px 9px; border: 1px solid #d7c3a9; background: #fffaf2; box-shadow: 0 6px 15px #75503420; }
.presentacion-pareja img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 55%; }
.presentacion-pareja figcaption { padding-top: 7px; font: 24px/1.2 var(--firma); }
.datos-portada { margin-top: 18px; font-size: 19px; line-height: 1.45; }
.datos-portada strong { font-size: 24px; font-weight: 400; }
.datos-portada p { margin: 7px 0 0; font-size: 20px; }
.adornos-bienvenida { position: absolute; width: 16%; height: 110px; right: 2%; bottom: 88px; pointer-events: none; }
.concha-bienvenida { width: 90%; left: 10%; top: 0; transform: rotate(20deg); }
.adornos-bienvenida .estrellas-bienvenida { width: 90%; right: 25%; bottom: 0; transform: rotate(-10deg); }
.guia-scroll { position: fixed; z-index: 18; left: 50%; bottom: 20px; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 10px; transform: translateX(-50%); border: 1px solid #b89d76; border-radius: 15px; background: #fff6e8ef; box-shadow: 0 5px 18px #5a3e2626; color: #715238; font-size: 14px; text-decoration: none; white-space: nowrap; }
.guia-scroll svg { width: 33px; height: 43px; flex: none; overflow: visible; }
.gesto-mano { animation: gesto-deslizar 1.8s ease-in-out infinite; }
.gesto-flecha { animation: gesto-rastro 1.8s ease-in-out infinite; }
@keyframes gesto-deslizar { 0%, 15% { transform: translateY(5px); opacity: .4; } 55%, 80% { transform: translateY(-8px); opacity: 1; } 100% { transform: translateY(-8px); opacity: 0; } }
@keyframes gesto-rastro { 0%, 15%, 100% { opacity: .2; } 50%, 80% { opacity: 1; } }
.seccion { position: relative; padding: 95px 12px 0; }
.seccion > h2 { margin-bottom: 35px; }
.calendario { position: relative; width: 62%; min-width: 290px; margin: auto; padding: 34px 26px 30px; background: linear-gradient(#fff6e4be, #fff6e4be), url("assets/costero/textura-arena.webp") center/cover; }
.concha-calendario { width: 70px; top: -15px; right: -18px; transform: rotate(10deg); }
.mes { font: clamp(46px, 9vw, 67px)/1.1 var(--manuscrita); color: var(--acentos); }
.anio { margin: 4px 0 15px; font-size: 22px; letter-spacing: .15em; }
.dias-semana, .dias-mes { display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; }
.dias-semana { margin-bottom: 6px; font-size: 15px; }
.dias-mes { gap: 5px 0; font-size: 21px; line-height: 1.4; }
.primer-dia { grid-column: 7; }
.dia-elegido { position: relative; isolation: isolate; color: #fffaf3; }
.dia-elegido::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2px 0;
  background: var(--acentos);
  clip-path: polygon(50% 14%, 65% 2%, 83% 4%, 98% 23%, 97% 44%, 86% 62%, 50% 96%, 14% 62%, 3% 44%, 2% 23%, 17% 4%, 35% 2%);
}
.calendario .boton { margin-top: 26px; }
.fotos-pareja {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 56px;
  width: min(100%, 620px);
  margin: 38px auto 0;
  padding: 20px 30px 76px;
  isolation: isolate;
}
.polaroid { padding: 8px 8px 12px; background: var(--papel); box-shadow: 0 6px 15px #80614315; }
.polaroid figcaption, .polaroid > span { display: block; padding-top: 10px; font: 23px/1.25 var(--firma); }
.fotos-pareja > .polaroid { position: relative; inset: auto; width: auto; min-width: 0; }
.fotos-pareja > .polaroid img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; }
.pareja-uno { transform: rotate(-3deg); }
.pareja-dos { margin-top: 64px; transform: rotate(3deg); }
.fotos-pareja .polaroid { animation: recuerdo-al-viento 8s ease-in-out infinite alternate; transform-origin: 50% 10%; }
.fotos-pareja .pareja-dos { animation-delay: -4s; }
@keyframes recuerdo-al-viento { from { rotate: -.7deg; translate: 0 0; } to { rotate: .7deg; translate: 0 -4px; } }
.estrellas-fotos { bottom: 0; width: 90px; right: 10%; }
.cuenta { padding-top: 55px; }
.cuenta h2 { margin-bottom: 22px; }
.reloj-marco { position: relative; width: 82%; margin: auto; padding: 14px; }
.reloj-marco::after {
  content: "";
  position: absolute;
  pointer-events: none;
  width: 80px;
  height: 110px;
  right: -26px;
  bottom: -42px;
  background: url("assets/costero/perlas.png") center/contain no-repeat;
  filter: sepia(.4);
}
.reloj { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 16px 3px; background: linear-gradient(#e0d3bfc9, #e0d3bfc9), url("assets/costero/textura-perlada.webp") center/cover; }
.reloj div { display: flex; flex-direction: column-reverse; gap: 5px; }
.reloj dd { font-size: clamp(32px, 7vw, 52px); font-variant-numeric: tabular-nums; line-height: 1; }
.reloj dt { font-size: clamp(12px, 2.7vw, 15px); }
.reloj div + div { border-left: 1px solid #bca88c; }
.nota-reloj { margin-top: 20px; font-size: 16px; }
.lugares { padding-inline: 8%; }
.sede { position: relative; width: min(86%, 490px); margin-inline: auto; padding: 35px 22px; }
.concha-evento { width: 76px; height: 70px; object-fit: contain; margin: -15px auto 10px; filter: sepia(.4); }
.oleaje { position: relative; height: 65px; margin: 40px auto -30px; overflow: hidden; opacity: .65; pointer-events: none; }
.oleaje img { position: absolute; width: 160%; max-width: none; left: -30%; height: 65px; animation: oleaje-costero 12s ease-in-out infinite alternate; }
@keyframes oleaje-costero { from { translate: -3% 3px; } to { translate: 3% -3px; } }
.sede p { margin-top: 13px; }
.sede .detalle { margin-top: 10px; font-size: 23px; color: var(--acentos); }
.sede-recepcion { margin: 25px auto 0; padding-bottom: 42px; }
.hora { display: block; margin: 15px 0; font-size: 29px; }
.sede-foto { width: 100%; margin: 20px 0; }
.sede h4 { font-size: 22px; font-weight: 400; }
.sede address { margin: 15px 0 22px; font-size: 17px; font-style: normal; }
.mas-sede { margin-top: 22px; font-size: 15px; }
.mas-sede summary { cursor: pointer; min-height: 38px; }
.mas-sede p { font-size: 13px; }
.concha-sede { left: -42px; bottom: -40px; width: 130px; transform: rotate(-20deg); }
.regalos { padding-top: 130px; }
.regalos::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 50%;
  width: 180px;
  height: 200px;
  transform: translateX(-50%);
  background: url("assets/costero/concha-abanico.png") center/contain no-repeat;
  filter: sepia(.5) saturate(.4);
}
.papel-arco { position: relative; width: 62%; min-width: 275px; margin: auto; padding: 38px 28px 45px; }
.papel-arco .detalle { margin: 18px 0; font-size: 23px; }
.importe-sobres { display: grid; gap: 5px; }
.importe-sobres strong { font-size: 42px; font-weight: 400; line-height: 1.2; }
.importe-sobres span { font-size: 18px; }
.regalos .papel-arco { width: min(calc(100% - 24px), 540px); min-width: 0; padding: 30px clamp(16px, 5vw, 32px) 24px; }
.regalos .icono { width: 38px; height: 38px; margin-bottom: 10px; }
.regalos h2 { font-size: clamp(48px, 8vw, 62px); }
.regalos .detalle { margin: 12px 0; }
.texto-transferencia { margin: 22px 0 18px; font-size: 17px; line-height: 1.45; }
.datos-transferencia { display: grid; gap: 12px; padding: 22px 10px; border-block: 1px solid #b89e745e; }
.datos-transferencia p { margin: 0; }
.banco-transferencia { font: 600 21px/1.4 system-ui, sans-serif; letter-spacing: .08em; }
.numero-transferencia { font: 500 clamp(15px, 4.2vw, 23px)/1.4 "Courier New", monospace; letter-spacing: .025em; font-variant-numeric: tabular-nums; white-space: nowrap; user-select: all; -webkit-user-select: all; }
.titular-transferencia { display: grid; gap: 4px; font-size: 19px; line-height: 1.45; }
.titular-transferencia span { font-size: 15px; }
.titular-transferencia strong { font-weight: 400; }
.copiar-transferencia { margin-top: 22px; min-height: 48px; }
.copiar-transferencia svg { width: 20px; height: 20px; flex: none; }
.copiar-transferencia:disabled { opacity: .75; cursor: wait; }
.estado-transferencia { min-height: 22px; margin: 10px 0 0; font: 13px/1.6 system-ui, sans-serif; color: #72583f; overflow-wrap: anywhere; }
.estado-transferencia.error { color: #9a4439; }
.galeria { padding-inline: 0; padding-top: 105px; }
.galeria > h2 { margin-bottom: 12px; }
.texto-galeria { margin: 0 24px 10px; font-size: 19px; }
.carrusel {
  --foto-ancho: min(440px, 68vw);
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 25px calc((100% - var(--foto-ancho)) / 2) 20px;
}
.carrusel::-webkit-scrollbar { display: none; }
.foto { flex: 0 0 var(--foto-ancho); scroll-snap-align: center; text-decoration: none; }
.foto img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.foto:nth-child(even) { transform: rotate(2deg); }
.foto:nth-child(odd) { transform: rotate(-2deg); }
.carrusel-controles { display: flex; align-items: center; justify-content: center; gap: 24px; margin-top: 10px; font-size: 16px; }
.carrusel-controles button { width: 44px; height: 44px; border: 1px solid var(--linea); border-radius: 50%; font: 23px CMU, Georgia, serif; color: var(--tinta); background: transparent; }
.carrusel-controles button:disabled { opacity: .3; cursor: default; }
.carrusel-controles button:hover:not(:disabled) { background: #d4bea3; }
.ayuda-galeria { margin-top: 12px; font-size: 14px; }
.confirmacion { padding-inline: 8%; }
.confirmacion article { padding: 40px 25px 35px; }
.confirmacion h2 { font-size: clamp(40px, 9vw, 65px); }
.confirmacion p { margin-top: 24px; }
.confirmacion strong { font-weight: 400; color: #63462e; }
.confirmacion .boton { margin-top: 25px; }
.despedida { padding-bottom: 85px; }
.despedida .adorno { position: static; width: 110px; margin: 0 auto 30px; }
.despedida p { font: clamp(36px, 8vw, 55px)/1.2 var(--firma); }
.despedida > span { display: block; margin-top: 27px; font-size: 21px; }
.despedida > a { display: inline-block; margin-top: 30px; font-size: 14px; min-height: 38px; }

.colaboradores { padding: 30px 18px 35px; background: #d2bea4; color: #4f3b2b; text-align: center; }
.marcas { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 5px auto -5px; }
.marcas img { filter: grayscale(1); }
.marcas a img { width: 145px; }
.marcas .tendencias { width: 115px; }
.marcas > span { height: 35px; border-left: 1px solid #9d8161; }
.marca-texto { font-size: 15px; }
.contactos { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 20px; }
.contactos a { display: inline-flex; align-items: center; min-height: 40px; font-size: 16px; text-underline-offset: 4px; }
.contacto-telefono { display: inline-block; font-size: 14px; padding-top: 8px; min-height: 40px; }

.visor { width: min(calc(100% - 20px), 540px); max-height: calc(100dvh - 20px); padding: 12px; border: 1px solid var(--linea); background: var(--papel); color: var(--tinta); }
.visor::backdrop { background: #281a0fdf; }
.visor-cabecera, .visor-navegacion { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.visor-cabecera { margin-bottom: 9px; }
.visor-navegacion { margin-top: 9px; }
.visor button { min-height: 42px; padding: 7px 15px; border: 1px solid var(--linea); border-radius: 99px; background: transparent; color: inherit; font: inherit; }
.visor button:hover { background: #e2cfb6; }
.visor > img { width: auto; height: auto; max-height: calc(100dvh - 145px); object-fit: contain; margin: auto; }
[data-reveal].aparecer { animation: aparecer 1.05s cubic-bezier(.18,.75,.3,1) both; }
@keyframes aparecer {
  from { opacity: 0; transform: perspective(900px) translateY(55px) rotateX(7deg) scale(.93); }
  75% { opacity: 1; transform: perspective(900px) translateY(-4px) rotateX(0) scale(1.01); }
  to { opacity: 1; transform: perspective(900px) translateY(0) rotateX(0) scale(1); }
}
.control-musica {
  position: fixed;
  z-index: 40;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #b39774;
  border-radius: 50%;
  background: #fff5e5ed;
  color: #755335;
  box-shadow: 0 3px 12px #6c4b2926;
}
.control-musica svg { width: 18px; height: 18px; }
.control-musica:hover { background: #f1dfc3; }

@media (max-width: 500px) {
  body { font-size: 19px; }
  .entrada { padding-top: 20px; padding-bottom: 20px; }
  .entrada .ceja { font-size: 11px; }
  .escenario { height: clamp(300px, 82vw, 390px); }
  .entrada-nombre { margin-top: 2px; }
  .lacre { width: 60px; height: 60px; }
  .foto-sorpresa { padding: 5px 5px 8px; }
  .foto-sorpresa figcaption { font-size: 15px; }
  .bienvenida { padding: 38px 0 86px; }
  .carta-bienvenida { width: calc(100% - 24px); padding: 36px 12px 23px; }
  .carta-bienvenida .ceja { font-size: 10px; }
  .carta-bienvenida h1 { margin-top: 12px; }
  .datos-portada { font-size: 17px; }
  .datos-portada p { font-size: 18px; }
  .adornos-bienvenida { width: 18%; height: 80px; right: 0; bottom: 86px; }
  .seccion { padding-top: 75px; }
  .calendario { min-width: 0; width: 78%; padding: 28px 22px; }
  .dias-mes { font-size: 20px; gap: 6px 0; }
  .fotos-pareja { grid-template-columns: 1fr; gap: 32px; margin-top: 26px; padding: 24px 24px 76px; }
  .fotos-pareja > .polaroid { width: 78%; max-width: 280px; margin-top: 0; }
  .pareja-uno { justify-self: start; transform: rotate(-3deg); }
  .pareja-dos { justify-self: end; transform: rotate(3deg); }
  .estrellas-fotos { width: 78px; right: 15%; }
  .polaroid { padding: 5px 5px 10px; }
  .polaroid figcaption, .polaroid > span { font-size: 17px; }
  .cuenta { padding-top: 25px; }
  .reloj-marco { width: 89%; padding: 10px; }
  .reloj-marco::after { right: -7px; }
  .lugares { padding-inline: 5%; }
  .sede { width: 94%; padding: 28px 20px; }
  .sede-recepcion { margin-top: 25px; padding-bottom: 35px; }
  .sede .detalle { font-size: 21px; }
  .sede address { font-size: 16px; }
  .concha-sede { width: 95px; left: -28px; bottom: -30px; }
  .regalos { padding-top: 120px; }
  .regalos::before { top: 26px; }
  .papel-arco { width: 75%; min-width: 0; padding: 32px 24px; }
  .carrusel { gap: 18px; }
  .confirmacion { padding-inline: 8%; }
  .confirmacion article { padding: 32px 20px; }
  .confirmacion .boton { padding-inline: 17px; }
  .despedida { padding-bottom: 60px; }
}
@media (max-width: 350px) {
  .entrada h1 { font-size: 46px; }
  .entrada-nombre { font-size: 24px; }
  .carta-bienvenida { width: calc(100% - 20px); padding-inline: 10px; }
  .calendario { width: 85%; padding-inline: 18px; }
  .sede h3 { font-size: 41px; }
  .marcas { gap: 14px; }
  .marcas a img { width: 125px; }
  .marcas .tendencias { width: 95px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width:500px) and (max-height:700px) {
  .bienvenida { padding-top: 25px; padding-bottom: 68px; }
  .carta-bienvenida { padding-top: 28px; padding-bottom: 17px; }
  .carta-bienvenida h1 { margin: 9px auto 12px; }
  .datos-portada { margin-top: 11px; }
}
