@font-face {
  font-family: "Manrope";
  src: url("./manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #08090b;
  --accent: #fff;
  --text: #f5f5f6;
  --muted: #a9aaaf;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--background); scroll-padding: 24px; }
body {
  min-height: 100svh;
  padding: max(26px, env(safe-area-inset-top)) 24px max(26px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  background: radial-gradient(ellipse at 50% 14%, #242529 0, transparent 58%), var(--background);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#ffffff18 .75px, transparent .75px);
  background-size: 15px 15px;
  mask-image: linear-gradient(transparent, #000 40%, transparent);
}
body::after {
  content: "";
  position: fixed;
  inset: 12px;
  border: 1px solid #ffffff0b;
  border-radius: 18px;
  pointer-events: none;
}
.wrap { position: relative; width: 100%; max-width: 440px; text-align: center; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 12px; color: #08090b; background: #fff; transform: translateY(-160%); }
.skip:focus { transform: none; }
.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.ambient span { position: absolute; left: -25%; top: 30%; width: 150%; height: 160px; background: linear-gradient(transparent, #ffffff04, transparent); transform: rotate(-28deg); animation: background-light 22s ease-in-out infinite alternate; }
.ambient span:nth-child(2) { top: 64%; animation-delay: -11s; opacity: .65; }
.page-top { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--muted); }
.brand-mark { position: relative; display: grid; place-items: center; height: 130px; margin: 12px 0 10px; }
.logo-panel { position: relative; width: 100%; max-width: 370px; animation: logo-float 7s ease-in-out infinite; }
.logo-panel img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 14px #ffffff15); }
.brand-trace { position: absolute; bottom: 4px; left: 24%; width: 52%; height: 1px; background: #ffffff16; overflow: hidden; }
.brand-trace::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #ffffffb0, transparent); animation: shine 8s ease-in-out infinite; }
.intro h1 { font-family: "Manrope", system-ui, sans-serif; font-size: clamp(23px, 6.2vw, 28px); font-weight: 700; line-height: 1.35; letter-spacing: -1px; }
.intro h1 span { font-weight: 500; color: #c9cacf; }
.intro p { margin: 8px 0 25px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.button { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 14px 18px; border: 1px solid #ffffff20; overflow: hidden; isolation: isolate; background: linear-gradient(125deg, #1e1f23, #111216); text-align: left; font: 700 15px/1.4 "Manrope", system-ui, sans-serif; cursor: pointer; text-decoration: none; color: inherit; border-radius: 13px; -webkit-tap-highlight-color: transparent; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button > span:not(.link-corner):not(.zelle-mark) { min-width: 0; padding-right: 20px; }
.button small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.button sup, dialog sup { font-size: .55em; margin-left: 2px; }
.button::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; border: 1px solid #ffffff48; opacity: 0; animation: edge-light 10s ease-in-out infinite; pointer-events: none; }
.button::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, #ffffff08 50%, transparent 65%); transform: translateX(-120%); animation: shine 10s ease-in-out infinite; pointer-events: none; }
.button-web::before, .button-web::after { animation-delay: -7s; }
.button-zelle::before, .button-zelle::after { animation-delay: -4s; }
.button-location::before, .button-location::after { animation-delay: -1s; }
.button-review::before, .button-review::after { animation-delay: -8s; }
.button:focus-visible, .social:focus-visible, footer a:focus-visible, .dialog-action:focus-visible, .close-dialog:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.button:active { transform: scale(.98); }
.button svg { width: 23px; height: 23px; flex: none; }
.button-whatsapp { background: linear-gradient(110deg, #fff, #dfdfe3); border-color: #fff; color: #101114; font-weight: 800; box-shadow: 0 8px 32px #ffffff09; }
.button-whatsapp small { color: #51535a; }
.button-whatsapp::after { background: linear-gradient(110deg, transparent 35%, #fff9 50%, transparent 65%); }
.button-whatsapp .link-corner { color: #292a30; }
.button-zelle { border-color: #ffffff38; background: linear-gradient(110deg, #2b2c31, #17181c); }
.zelle-mark { flex: none; width: 23px; font-size: 27px; line-height: 1; font-weight: 800; text-align: center; }
.link-corner { position: absolute; top: 50%; right: 18px; margin-top: -9px; font-size: 18px; line-height: 1; color: #babcc4; transition: transform .2s ease; }
.button-review { flex-direction: column; gap: 10px; align-items: stretch; min-height: 88px; }
.review-top { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; text-align: left; }
.review-top .google-logo { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #fff; }
.review-top .link-corner { position: static; margin-top: 0; margin-left: auto; }
.review-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.review-bottom small { color: var(--muted); font-size: 11px; margin: 0; }
.stars { display: flex; gap: 3px; }
.stars svg { width: 15px; height: 15px; fill: #e5e6eb; animation: star-light 7s ease-in-out infinite; }
.stars svg:nth-child(2) { animation-delay: .35s; }
.stars svg:nth-child(3) { animation-delay: .7s; }
.stars svg:nth-child(4) { animation-delay: 1.05s; }
.stars svg:nth-child(5) { animation-delay: 1.4s; }
.socials { display: flex; justify-content: center; gap: 35px; padding-top: 23px; }
.social { display: flex; align-items: center; gap: 10px; min-height: 46px; color: #c2c3c9; font-size: 13px; font-weight: 600; text-decoration: none; border-radius: 10px; }
.social-icon { display: grid; place-items: center; width: 40px; height: 40px; color: #e5e5e9; border: 1px solid #ffffff24; background: #15161a; border-radius: 12px; animation: social-light 9s ease-in-out infinite; transition: color .2s ease, transform .2s ease, border-color .2s ease; }
.social svg { width: 21px; height: 21px; }
footer { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 20px; color: #96979d; font-size: 11px; }
footer a { color: #c3c4ca; text-decoration: none; font-weight: 700; }
.footer-line { width: 14px; height: 1px; margin-right: 5px; background: #909197; }

dialog { color-scheme: light; width: min(460px, calc(100% - 28px)); max-height: 90svh; margin: auto; padding: 22px; border: 1px solid #d8d7dc; border-radius: 20px; color: #202024; background: #faf9fc; font-family: "Manrope", system-ui, sans-serif; box-shadow: 0 24px 100px #0008; }
dialog::backdrop { background: #050608d9; backdrop-filter: blur(6px); }
body:has(dialog[open]) { overflow: hidden; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-top p { color: #66636d; font-size: 11px; letter-spacing: 1.4px; font-weight: 700; }
.close-dialog { width: 44px; height: 44px; flex: none; border: 1px solid #dddbe3; border-radius: 50%; background: #fff; color: #34313b; font-size: 28px; line-height: 1; cursor: pointer; }
dialog h2 { margin-top: 8px; font-size: 25px; letter-spacing: -.7px; }
#qr-description { margin-top: 6px; font-size: 14px; line-height: 1.6; color: #686470; }
.recipient { margin-top: 20px; padding: 17px; border: 1px solid #e0dde6; border-radius: 12px; background: #fff; }
.recipient > span { color: #77717f; font-size: 10px; letter-spacing: 1.4px; font-weight: 700; }
.recipient h3 { margin-top: 7px; font-size: 17px; }
#recipient-email { margin-top: 5px; font-size: 15px; overflow-wrap: anywhere; user-select: all; }
.dialog-action { display: flex; align-items: center; justify-content: center; min-height: 45px; padding: 11px 13px; border: 1px solid #37343d; border-radius: 9px; background: #242229; color: #fff; text-align: center; text-decoration: none; font: 700 13px/1.4 "Manrope", system-ui, sans-serif; cursor: pointer; }
.copy-email { width: 100%; margin-top: 14px; }
.copy-status { color: #554962; font-size: 12px; line-height: 1.5; }
.copy-status:not(:empty) { margin-top: 10px; }
.qr-window { position: relative; width: 236px; max-width: 100%; aspect-ratio: 1; margin: 20px auto; overflow: hidden; background: #fff; border: 1px solid #e1dfe5; border-radius: 10px; }
/* El recurso contiene solo el QR y su margen blanco, también al arrastrar o guardar. */
.qr-window img { display: block; width: 100%; height: auto; }
.payment-actions { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; }
.dialog-action.secondary { background: #fff; color: #39343f; border-color: #d1cdd9; }
.qr-save-help { margin-top: 10px; color: #655f6d; font-size: 12px; line-height: 1.55; }
.payment-steps { padding-left: 21px; margin-top: 20px; color: #58525f; font-size: 13px; line-height: 1.65; }
.payment-steps li + li { margin-top: 5px; }
.phone-help { margin-top: 16px; padding-top: 13px; border-top: 1px solid #e1dfe6; font-size: 13px; line-height: 1.65; }
.phone-help summary { cursor: pointer; font-weight: 700; }
.phone-help p { margin-top: 9px; color: #655f6d; }
.payment-note { margin-top: 14px; color: #76717e; font-size: 12px; line-height: 1.5; }
dialog :focus-visible { outline-color: #6d2ba4; }
.copy-fallback { position: fixed; width: 1px; height: 1px; top: 0; left: 0; opacity: 0; }

@media (hover: hover) {
  .button:hover { transform: translateY(-2px); border-color: #ffffff70; box-shadow: 0 8px 25px #0003; }
  .button-whatsapp:hover { background: #fff; box-shadow: 0 9px 30px #ffffff15; }
  .button:hover .link-corner { transform: translate(2px, -2px); }
  .social:hover .social-icon { color: #fff; border-color: #ffffff70; transform: translateY(-2px); }
  footer a:hover { color: #fff; }
  .dialog-action:hover { background: #3b3544; }
  .dialog-action.secondary:hover { background: #f1eef5; }
}
@media (min-width: 700px) {
  body { align-items: center; padding-top: 44px; padding-bottom: 44px; }
  .brand-mark { margin-top: 16px; height: 144px; }
}
@media (max-width: 359px) {
  body { padding-right: 20px; padding-left: 20px; }
  .page-top { font-size: 10px; letter-spacing: 1.2px; }
  .brand-mark { height: 112px; }
  .intro h1 { letter-spacing: -1px; }
  .button { padding-left: 13px; padding-right: 13px; gap: 10px; font-size: 14px; }
  .button small { font-size: 11px; }
  .link-corner { right: 13px; }
  .review-top { font-size: 12px; gap: 8px; }
  .review-bottom { flex-wrap: wrap; }
  .socials { gap: 29px; }
}
@keyframes logo-float { 0%, 100% { transform: translateY(3px); } 50% { transform: translateY(-4px); } }
@keyframes background-light { from { transform: translateY(-55px) rotate(-28deg); } to { transform: translateY(55px) rotate(-28deg); } }
@keyframes edge-light { 0%, 55%, 100% { opacity: 0; } 75% { opacity: .8; } }
@keyframes shine { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
@keyframes star-light { 0%, 45%, 100% { opacity: .55; } 65%, 78% { opacity: 1; } }
@keyframes social-light { 0%, 100% { box-shadow: 0 0 0 #ffffff00; } 50% { box-shadow: 0 0 20px #ffffff0c; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .logo-panel { transform: none; }
  .button::after, .brand-trace::after { display: none; }
  .stars svg { opacity: 1; }
  .button:hover, .button:active, .button:hover .link-corner, .social:hover .social-icon { transform: none; }
}
