:root {
  --ancho-diseno: 402px;
  --alto-diseno: 4991px;
  --rosa-fondo: #fdf0ef;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--rosa-fondo);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--rosa-fondo);
}

.invitacion {
  position: relative;
  width: min(100%, var(--ancho-diseno));
  min-height: var(--alto-diseno);
  margin-inline: auto;
  background-color: var(--rosa-fondo);
  background-image: url("assets/fondo-15-anos.webp");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 100%;
}

.contenido {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: inherit;
}

.portada {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  width: var(--ancho-diseno);
  height: 4991px;
  text-align: center;
}

.titulo-quince {
  position: absolute;
  top: 253px;
  left: 50%;
  width: 100%;
  margin: 0;
  color: #9c6306;
  font-family: "Arizonia", cursive;
  font-size: 45px;
  font-weight: 400;
  line-height: 40px;
  text-align: center;
  transform: translateX(-50%);
}

.titulo-quince span {
  display: block;
}

.nombre-victoria {
  position: absolute;
  top: 390px;
  left: 50%;
  display: block;
  width: 298px;
  height: auto;
  transform: translateX(-50%);
}

.foto-victoria {
  position: absolute;
  top: 558px;
  left: 50%;
  display: block;
  width: 294px;
  height: auto;
  transform: translateX(-50%);
}

.mensaje-bienvenida {
  position: absolute;
  top: 1037px;
  left: 50%;
  width: 306px;
  margin: 0;
  color: #583f16;
  font-family: "Lancelot", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  transform: translateX(-50%);
}

.reproductor {
  position: absolute;
  top: 1340px;
  left: 50%;
  width: 281px;
  height: 142px;
  transform: translateX(-50%);
}

.reproductor::after {
  position: absolute;
  top: 68px;
  left: 0;
  z-index: 3;
  width: 281px;
  height: 21px;
  background: #fdf0ef;
  content: "";
}

.reproductor-imagen {
  position: relative;
  z-index: 2;
  display: block;
  width: 281px;
  height: 142px;
  transition: opacity 180ms ease;
}

.reproductor-play {
  top: 93px;
  left: 118px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #684407;
}

.reproductor-control {
  position: absolute;
  z-index: 4;
  padding: 0;
  border: 0;
  background-color: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.reproductor-control.reproductor-play {
  background-color: #684407;
}

.reproductor-control:disabled,
.reproductor-progreso:disabled {
  cursor: wait;
}

.reproductor-control:focus-visible,
.reproductor-progreso:focus-visible {
  outline: 3px solid #9c6306;
  outline-offset: 3px;
}

.reproductor-play::before {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fdf0ef;
  content: "";
  transform: translate(-50%, -50%);
}

.reproductor.reproduciendo .reproductor-play::before {
  width: 15px;
  height: 20px;
  border: 0;
  background: linear-gradient(
    to right,
    #fdf0ef 0 5px,
    transparent 5px 10px,
    #fdf0ef 10px 15px
  );
}

.reproductor-aleatorio {
  top: 104px;
  left: 4px;
  width: 46px;
  height: 36px;
}

.reproductor-anterior {
  top: 96px;
  left: 56px;
  width: 48px;
  height: 45px;
}

.reproductor-siguiente {
  top: 96px;
  left: 180px;
  width: 48px;
  height: 45px;
}

.reproductor-repetir {
  top: 104px;
  left: 235px;
  width: 44px;
  height: 36px;
}

.reproductor-control[aria-pressed="true"] {
  border-radius: 18px;
  background-color: rgb(156 99 6 / 18%);
  box-shadow: inset 0 0 0 2px rgb(156 99 6 / 45%);
}

.reproductor-progreso {
  position: absolute;
  z-index: 4;
  top: 70px;
  left: 0;
  width: 281px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #684407;
  cursor: pointer;
  appearance: none;
  background: transparent;
}

.reproductor-progreso::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(
    to right,
    #9c6306 0 var(--progreso, 0%),
    #684407 var(--progreso, 0%) 100%
  );
}

.reproductor-progreso::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  margin-top: -6.5px;
  border: 0;
  border-radius: 50%;
  background: #684407;
  appearance: none;
}

.reproductor-progreso::-moz-range-track {
  height: 4px;
  background: #684407;
}

.reproductor-progreso::-moz-range-progress {
  height: 4px;
  background: #9c6306;
}

.reproductor-progreso::-moz-range-thumb {
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 50%;
  background: #684407;
}

.reproductor-estado {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

#reproductor-audio {
  position: absolute;
  width: 0;
  height: 0;
}

.seccion-familia {
  position: absolute;
  top: 1605px;
  left: 50%;
  width: 340px;
  color: #583f16;
  text-align: center;
  transform: translateX(-50%);
}

.texto-acompaname,
.texto-festejar,
.nombres-padres,
.quince-festejo {
  margin: 0;
  font-weight: 400;
  line-height: normal;
}

.texto-acompaname,
.texto-festejar {
  font-family: "Lancelot", serif;
  font-size: 27px;
}

.texto-acompaname {
  width: 320px;
  margin-inline: auto;
}

.nombres-padres {
  margin-top: 48px;
  font-family: "Arizonia", cursive;
  font-size: 40px;
}

.texto-festejar {
  margin-top: 62px;
}

.quince-festejo {
  margin-top: -3px;
  font-family: "Arizonia", cursive;
  font-size: 60px;
}

.seccion-fecha {
  position: absolute;
  top: 2010px;
  left: 50%;
  width: 360px;
  color: #583f16;
  text-align: center;
  transform: translateX(-50%);
}

.mes-evento {
  margin: 0;
  font-family: "Arizonia", cursive;
  font-size: 40px;
  font-weight: 400;
  line-height: normal;
}

.fecha-evento {
  display: block;
  width: 304px;
  height: auto;
  margin: -6px auto 0;
}

.cuenta-regresiva {
  margin-top: 56px;
}

.faltan {
  margin: 0 0 17px;
  font-family: "Lancelot", serif;
  font-size: 27px;
  font-weight: 400;
  line-height: normal;
}

.contador {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  width: 310px;
  margin-inline: auto;
  font-family: "Lancelot", serif;
  color: #583f16;
}

.contador div {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
}

.contador span,
.contador b {
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
}

.contador b {
  padding-inline: 1px;
}

.contador small {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
}

.seccion-recepcion {
  position: absolute;
  top: 2340px;
  left: 50%;
  width: 380px;
  color: #583f16;
  font-family: "Lancelot", serif;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  transform: translateX(-50%);
}

.seccion-recepcion h2,
.hora-recepcion,
.lugar-recepcion {
  margin: 0;
  font-family: inherit;
  font-weight: 400;
  line-height: normal;
}

.seccion-recepcion h2 {
  font-size: 27px;
}

.hora-recepcion {
  margin-top: 18px;
  color: #bf8f54;
  font-size: 60px;
}

.lugar-recepcion {
  margin-top: -6px;
  font-size: 27px;
}

.boton-ubicacion,
.boton-ideas,
.boton-confirmar {
  display: inline-block;
  margin-top: 48px;
  padding: 10px 20px 5px;
  border: 2pt solid #bf8f54;
  color: #bf8f54;
  font-family: "Lancelot", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  text-decoration: none;
  touch-action: manipulation;
}

.boton-ubicacion:focus-visible,
.boton-ideas:focus-visible,
.boton-confirmar:focus-visible {
  outline: 3px solid #583f16;
  outline-offset: 4px;
}

.seccion-vestimenta {
  position: absolute;
  top: 2740px;
  left: 50%;
  width: 380px;
  color: #583f16;
  text-align: center;
  transform: translateX(-50%);
}

.seccion-vestimenta h2,
.seccion-vestimenta p {
  margin: 0;
  font-weight: 400;
  line-height: normal;
}

.seccion-vestimenta h2 {
  font-family: "Arizonia", cursive;
  font-size: 40px;
}

.seccion-vestimenta p {
  margin-top: 12px;
  font-family: "Lancelot", serif;
  font-size: 27px;
}

.seccion-vestimenta img {
  display: block;
  width: 122px;
  height: 122px;
  margin: 12px auto 0;
  object-fit: contain;
}

.boton-ideas {
  margin-top: 25px;
}

.seccion-foto-dos {
  position: absolute;
  top: 3050px;
  left: 50%;
  width: 402px;
  height: 917px;
  transform: translateX(-50%);
}

.seccion-foto-dos img {
  display: block;
  width: 402px;
  height: 917px;
  object-fit: contain;
}

.seccion-regalos,
.seccion-confirmacion {
  position: absolute;
  left: 50%;
  width: 352px;
  color: #583f16;
  text-align: center;
  transform: translateX(-50%);
}

.seccion-regalos {
  top: 3880px;
}

.icono-regalo {
  display: block;
  width: 74px;
  height: 74px;
  margin-inline: auto;
  object-fit: contain;
}

.seccion-regalos h2,
.seccion-confirmacion h2,
.texto-regalos,
.fecha-confirmacion,
.mensaje-presencia,
.te-esperamos {
  margin: 0;
  font-weight: 400;
  line-height: normal;
}

.seccion-regalos h2,
.seccion-confirmacion h2 {
  margin-top: 8px;
  font-family: "Arizonia", cursive;
  font-size: 40px;
}

.contacto {
  width: min(100%, var(--ancho-diseno));
  margin-inline: auto;
  padding: 42px 30px 96px;
  background: #fff;
  color: #583f16;
  text-align: center;
}

.contacto h2 {
  margin: 0 0 22px;
  font-family: "Arizonia", cursive;
  font-size: 40px;
  font-weight: 400;
  line-height: normal;
}

.contacto address {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: "Lancelot", serif;
  font-size: 22px;
  font-style: normal;
  line-height: 1.25;
}

.contacto a {
  color: inherit;
  text-decoration: none;
}

.contacto a:hover,
.contacto a:focus-visible {
  color: #bf8f54;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contacto span {
  font-weight: 700;
}

.whatsapp-flotante {
  position: fixed;
  right: max(7px, calc((100vw - var(--ancho-diseno)) / 2 + 7px));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgb(32 96 50 / 30%);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
  touch-action: manipulation;
}

.whatsapp-flotante:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 22px rgb(32 96 50 / 38%);
}

.whatsapp-flotante:focus-visible {
  outline: 3px solid #583f16;
  outline-offset: 4px;
}

.whatsapp-flotante img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.texto-regalos,
.fecha-confirmacion,
.mensaje-presencia {
  font-family: "Lancelot", serif;
  font-size: 27px;
}

.texto-regalos {
  width: 330px;
  margin: 12px auto 0;
}

.datos-bancarios {
  display: block;
  margin-top: 17px;
}

.seccion-confirmacion {
  top: 4371px;
}

.seccion-confirmacion h2 {
  margin-top: 0;
}

.fecha-confirmacion {
  width: 330px;
  margin: 10px auto 0;
}

.boton-confirmar {
  margin-top: 21px;
  font-size: 26px;
}

.mensaje-presencia {
  width: 330px;
  margin: 120px auto 0;
}

.te-esperamos {
  margin-top: 9px;
  color: #bf8f54;
  font-family: "Arizonia", cursive;
  font-size: 40px;
}

@media (max-width: 401px) {
  .invitacion {
    min-height: calc(100vw * 4991 / 402);
  }

  .portada {
    transform: scale(calc(100vw / 402px));
    transform-origin: top left;
  }
}

@media (min-width: 403px) {
  body {
    background: #f5e6e3;
  }

  .invitacion {
    box-shadow: 0 0 40px rgb(97 67 60 / 12%);
  }
}
