/* Qin Saba · extras: sombras de hojas al viento + línea dorada que baja entrelazando la página */
.qs-leaves { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.qs-leaves svg { position: absolute; width: 46vw; max-width: 720px; fill: #2b2b2b; opacity: .09; filter: blur(7px); mix-blend-mode: multiply; transform-origin: 0 0; animation: qs-sway 11s ease-in-out infinite alternate; }
.qs-leaves .l1 { top: -6vh; left: -8vw; }
.qs-leaves .l2 { top: 30vh; right: -12vw; left: auto; width: 40vw; transform-origin: 100% 0; animation-duration: 14s; animation-delay: -4s; opacity: .07; filter: blur(10px); }
.qs-leaves .l3 { bottom: -10vh; left: 18vw; width: 34vw; animation-duration: 17s; animation-delay: -9s; opacity: .05; filter: blur(12px); }
@keyframes qs-sway { 0% { transform: rotate(-2.2deg) skewX(1deg) translate(0, 0); } 35% { transform: rotate(1.4deg) skewX(-1.5deg) translate(6px, 4px); } 70% { transform: rotate(-.6deg) skewX(.8deg) translate(-4px, 8px); } 100% { transform: rotate(2.4deg) skewX(-.6deg) translate(3px, -3px); } }
.qs-line { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 5; overflow: visible; }
.qs-line { will-change: transform; }
.qs-line .qs-line__path { fill: none; stroke: var(--qs-line-color, #6b6b6b); stroke-width: var(--qs-line-w, 1.2px); stroke-linecap: round; stroke-linejoin: round; }
.qs-line .qs-line__fade { stroke-width: calc(var(--qs-line-w, 1.2px) * .85); }

body > *:not(.qs-leaves):not(.qs-line):not(.qs-line-wrap):not(.qs-sakura):not(header) { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .qs-leaves svg { animation: none; } }
@media (max-width: 767px) { .qs-leaves svg { width: 90vw; } }
/* Variante pétalos: la línea queda invisible y solo guía la trayectoria de los cerezos */
.qs-petals .qs-line { will-change: transform; }
.qs-line .qs-line__path { fill: none; stroke: var(--qs-line-color, #6b6b6b); stroke-width: var(--qs-line-w, 1.2px); stroke-linecap: round; stroke-linejoin: round; }
.qs-line .qs-line__fade { stroke-width: calc(var(--qs-line-w, 1.2px) * .85); } .qs-petals .qs-line circle { display: none; }
.qs-sakura { position: absolute; left: 0; top: 0; width: 100%; pointer-events: none; z-index: 6; overflow: visible; }

/* Figura final que dibuja la línea (svg[data-line-end]): contorno que se traza y luego se rellena */
svg[data-line-end] path { stroke: none; fill: var(--qs-end, #c4342b); fill-opacity: 0; transition: fill-opacity 1.2s ease; }
svg[data-line-end].is-drawn path { fill-opacity: 1; }

/* Separadores ondulados: añade .qs-wave a una sección de color; --wave-bg es el color de la sección vecina */
.qs-wave { position: relative; }
.qs-wave::before, .qs-wave::after { content: ""; position: absolute; left: 0; right: 0; height: clamp(40px, 4.2vw, 84px); background: var(--wave-bg, #ffffff); z-index: 1; pointer-events: none;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* onda amplia y elegante como la del original; escala con el ancho (máscara SVG con preserveAspectRatio none) */
.qs-wave::before { top: -1px; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1904 80' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1904V8C1780 40 1600 56 1400 54C1000 50 820 18 600 18C380 18 180 34 0 50Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1904 80' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1904V8C1780 40 1600 56 1400 54C1000 50 820 18 600 18C380 18 180 34 0 50Z'/%3E%3C/svg%3E"); }
.qs-wave::after { bottom: -1px; -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1904 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80H1904V28C1780 58 1600 70 1400 66C1000 60 820 26 600 26C380 26 180 44 0 62Z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1904 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80H1904V28C1780 58 1600 70 1400 66C1000 60 820 26 600 26C380 26 180 44 0 62Z'/%3E%3C/svg%3E"); }

/* Teléfono con la app: mockup en HTML, notificaciones flotando y un anillo dorado que orbita */
.qs-phone-stage { position: relative; display: grid; place-items: center; min-height: 620px; perspective: 1400px; }
.qs-phone { position: relative; width: 300px; height: 610px; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #2b2b2b, #1a1a1a 60%, #3a3a3a); box-shadow: 0 40px 80px rgba(0,0,0,.45); transform: rotateY(-14deg) rotateX(4deg); animation: qs-float 7s ease-in-out infinite alternate; z-index: 2; }
.qs-phone__screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #ffffff; color: #111111; display: flex; flex-direction: column; }
.qs-phone__island { width: 96px; height: 26px; border-radius: 20px; background: #111; margin: 10px auto 4px; flex: none; }
.qs-phone__bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px; font: 600 11px/1 var(--f-ui, sans-serif); letter-spacing: .18em; }
.qs-phone__body { padding: 10px 18px; flex: 1; overflow: hidden; }
.qs-phone__body h4 { margin: 4px 0 0; font: 400 26px/1.05 var(--f-display, serif); }
.qs-phone__body .k { font: 600 9px var(--f-ui, sans-serif); letter-spacing: .2em; color: var(--brass, #6b6b6b); text-transform: uppercase; }
.qs-phone__body img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; margin: 10px 0; }
.qs-phone__row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 12px; }
.qs-phone__tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(0,0,0,.1); font: 600 8px var(--f-ui, sans-serif); letter-spacing: .1em; text-align: center; padding: 10px 4px 16px; }
.qs-phone__tabs span.on { color: var(--brass, #6b6b6b); }
.qs-notif { position: absolute; z-index: 3; width: 290px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); color: #ffffff; font-size: 13px; line-height: 1.4; opacity: 0; transform: translateY(14px); transition: .9s cubic-bezier(.22,1,.36,1); }
.qs-notif b { display: flex; justify-content: space-between; font-size: 11px; opacity: .75; font-weight: 500; margin-bottom: 3px; }
.qs-notif.is-in { opacity: 1; transform: none; }
.qs-orbit { position: absolute; left: 50%; top: 52%; width: 640px; height: 120px; margin: -60px 0 0 -320px; border: 1px solid #6b6b6b; border-radius: 50%; transform: rotate(-4deg); z-index: 1; }
.qs-orbit::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid #6b6b6b; clip-path: inset(0 0 50% 0); z-index: 3; }
@keyframes qs-float { from { transform: rotateY(-14deg) rotateX(4deg) translateY(0); } to { transform: rotateY(-9deg) rotateX(2deg) translateY(-14px); } }
@media (max-width: 767px) { .qs-phone { width: 240px; height: 490px; } .qs-notif { position: relative; width: auto; margin-top: 10px; } .qs-orbit { width: 360px; margin-left: -180px; } .qs-phone-stage { min-height: 0; } }
.qs-wave--top::after, .qs-wave--bottom::before { display: none; }

/* Pasos como el original: banda superior oscura (noche) con borde inferior ondulado; debajo, panel claro (marfil) con
   texto oscuro, salvo el paso .is-dark que va en noche; la foto ocupa su mitad de alto completo bajo la onda; número
   gigante y finísimo en tono apagado. Contraste: oscuro arriba, claro abajo. */
.q-journey .q-journey__stage { background: var(--ivory, #ffffff); }
.q-journey .q-journey__wave { background: var(--night, #111111); color: var(--ivory, #ffffff); height: 27svh; clip-path: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1904 300' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1904V214C1780 246 1600 262 1400 260C1000 256 820 224 600 224C380 224 180 240 0 256Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1904 300' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1904V214C1780 246 1600 262 1400 260C1000 256 820 224 600 224C380 224 180 240 0 256Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat; }
@supports not (clip-path: path('M0 0')) { .q-journey .q-journey__wave { clip-path: ellipse(160% 100% at 50% 0); } }
.q-journey .q-journey__text { background: var(--ivory, #ffffff); color: var(--night, #111111); padding-top: 30svh; }
.q-journey .q-journey__step.is-dark .q-journey__text, .q-journey .q-journey__step.is-dark { background: var(--night, #111111); color: var(--ivory, #ffffff); }
.q-journey .q-journey__step .q-journey__photo { margin-top: 0; height: 100svh; clip-path: none; }
.q-journey .q-journey__num { font: 300 clamp(90px, 9vw, 150px)/.9 var(--font-head, serif); color: rgba(110,110,110,.32); opacity: 1; letter-spacing: -.02em; }
.q-journey .q-journey__step.is-dark .q-journey__num { color: rgba(255,255,255,.22); }
.q-journey .q-journey__text h3 { color: inherit; font-weight: 400; }
.q-journey .q-journey__text p { opacity: .78; }
.q-journey .q-journey__final { background: var(--ivory, #ffffff); }
@media (max-width: 767px) { .q-journey .q-journey__step .q-journey__photo { height: 50svh; margin-top: 22svh; } .q-journey .q-journey__text { padding-top: 4svh; } }

/* Teléfono con la app: mockup en HTML, notificaciones flotando y un anillo dorado que orbita */
.qs-phone-stage { position: relative; display: grid; place-items: center; min-height: 620px; perspective: 1400px; }
.qs-phone { position: relative; width: 300px; height: 610px; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #2b2b2b, #1a1a1a 60%, #3a3a3a); box-shadow: 0 40px 80px rgba(0,0,0,.45); transform: rotateY(-14deg) rotateX(4deg); animation: qs-float 7s ease-in-out infinite alternate; z-index: 2; }
.qs-phone__screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #ffffff; color: #111111; display: flex; flex-direction: column; }
.qs-phone__island { width: 96px; height: 26px; border-radius: 20px; background: #111; margin: 10px auto 4px; flex: none; }
.qs-phone__bar { display: flex; justify-content: space-between; align-items: center; padding: 6px 18px; font: 600 11px/1 var(--f-ui, sans-serif); letter-spacing: .18em; }
.qs-phone__body { padding: 10px 18px; flex: 1; overflow: hidden; }
.qs-phone__body h4 { margin: 4px 0 0; font: 400 26px/1.05 var(--f-display, serif); }
.qs-phone__body .k { font: 600 9px var(--f-ui, sans-serif); letter-spacing: .2em; color: var(--brass, #6b6b6b); text-transform: uppercase; }
.qs-phone__body img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; margin: 10px 0; }
.qs-phone__row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,.08); font-size: 12px; }
.qs-phone__tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(0,0,0,.1); font: 600 8px var(--f-ui, sans-serif); letter-spacing: .1em; text-align: center; padding: 10px 4px 16px; }
.qs-phone__tabs span.on { color: var(--brass, #6b6b6b); }
.qs-notif { position: absolute; z-index: 3; width: 290px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); color: #ffffff; font-size: 13px; line-height: 1.4; opacity: 0; transform: translateY(14px); transition: .9s cubic-bezier(.22,1,.36,1); }
.qs-notif b { display: flex; justify-content: space-between; font-size: 11px; opacity: .75; font-weight: 500; margin-bottom: 3px; }
.qs-notif.is-in { opacity: 1; transform: none; }
.qs-orbit { position: absolute; left: 50%; top: 52%; width: 640px; height: 120px; margin: -60px 0 0 -320px; border: 1px solid #6b6b6b; border-radius: 50%; transform: rotate(-4deg); z-index: 1; }
.qs-orbit::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid #6b6b6b; clip-path: inset(0 0 50% 0); z-index: 3; }
@keyframes qs-float { from { transform: rotateY(-14deg) rotateX(4deg) translateY(0); } to { transform: rotateY(-9deg) rotateX(2deg) translateY(-14px); } }
@media (max-width: 767px) { .qs-phone { width: 240px; height: 490px; } .qs-notif { position: relative; width: auto; margin-top: 10px; } .qs-orbit { width: 360px; margin-left: -180px; } .qs-phone-stage { min-height: 0; } }
.qs-wave--top::after, .qs-wave--bottom::before { display: none; }

/* Atlas: constelación de curvas, anillo en el punto activo y tarjeta con foto */
.q-atlas__web { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.q-atlas__web path { fill: none; stroke: rgba(110,110,110,.45); stroke-width: 1; }
.q-atlas__pt.is-on::before { background: #ffffff; outline: 1px solid var(--brass, #6b6b6b); outline-offset: 7px; box-shadow: 0 0 0 14px rgba(110,110,110,.12); }
.q-atlas__pt.is-on { opacity: 1; color: #fff; }
.q-atlas__card { position: absolute; z-index: 4; width: 290px; background: var(--ivory, #ffffff); color: var(--night, #111111); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s, left .5s cubic-bezier(.22,1,.36,1), top .5s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.q-atlas__card.is-on { opacity: 1; transform: none; pointer-events: auto; }
.q-atlas__card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.q-atlas__card > div { padding: 18px 18px 20px; }
.q-atlas__card .k { font: 600 10px var(--font-ui, sans-serif); letter-spacing: .2em; text-transform: uppercase; color: var(--brass, #6b6b6b); }
.q-atlas__card h4 { margin: 6px 0; font: 400 26px/1.1 var(--font-head, serif); }
.q-atlas__card .t { display: block; font: 600 9px var(--font-ui, sans-serif); letter-spacing: .18em; text-transform: uppercase; }
.q-atlas__card p { margin: 8px 0 10px; font-size: 14px; line-height: 1.5; }
.q-atlas__card a { font: 600 10px var(--font-ui, sans-serif); letter-spacing: .18em; text-transform: uppercase; color: var(--wine, #c4342b); text-decoration: none; }
@media (max-width: 767px) { .q-atlas__card { width: 220px; } .q-atlas__card img { height: 140px; } }
.qs-line .qs-line__tip { fill: var(--qs-line-color, #6b6b6b); transition: opacity .3s; }
.qs-line path, .qs-line circle { transition: opacity 1.2s ease; } .qs-line.is-done path, .qs-line.is-done circle { opacity: 0 !important; }
/* Contorno de Japón (Natural Earth, dominio público) bajo la constelación del atlas */
.q-atlas__japan { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.q-atlas__japan path { fill: rgba(255,255,255,.035); stroke: rgba(110,110,110,.55); stroke-width: 1.1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.q-atlas__map .q-atlas__pt { font-size: 12px; }
.q-atlas__pt[data-label="l"] { flex-direction: row-reverse; transform: translate(calc(-100% + 5px), -50%); } /* etiqueta a la izquierda cuando dos ciudades quedan muy juntas */
.q-atlas__pt[data-label="t"], .q-atlas__pt[data-label="b"] { flex-direction: column; gap: 4px; transform: translate(calc(-50% + 4px), -9px); }
.q-atlas__pt[data-label="t"] { flex-direction: column-reverse; transform: translate(calc(-50% + 4px), calc(-100% + 9px)); }
body { position: relative; } .qs-line { height: 100% !important; } /* la capa de la línea nunca alarga la página */
.qs-line-wrap { position: absolute !important; inset: 0; overflow: hidden; pointer-events: none; z-index: 5 !important; } .qs-line-wrap .qs-line { height: auto !important; }
/* Credito SuikaLabs en la barra legal */
.q-credit { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: .04em; color: rgba(255,255,255,.6) !important; text-decoration: none; }
.q-credit img { height: 32px; width: auto; opacity: .85; transition: opacity .3s; }
.q-credit:hover, .q-credit:hover img { color: #fff !important; opacity: 1; }
