﻿/* Animaciones propias de la página (Qolqa). Criterio Emil Kowalski: ease-out fuerte, nada aparece desde cero,
   los bucles tienen botón de pausa, se detienen fuera de pantalla y todo queda quieto con "reducir movimiento". */
:root {
  --q-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --q-ease-settle: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Logo: marca de caja isométrica + nombre, más grande */
.q-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--p-ink); }
.q-logo > img { width: 44px; height: 44px; flex: none; border-radius: 12px; box-shadow: 0 6px 16px -8px rgb(194 80 27 / .7); transition: transform 200ms var(--q-ease-out, ease-out); }
.q-logo:hover > img { transform: rotate(-6deg) scale(1.04); }
.q-logo__txt { display: grid; line-height: 1; gap: 4px; }
.q-logo__name { font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: .95; }
.q-logo__sub { font-family: var(--font-text); font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--p-muted); }
.q-logo--foot { color: var(--p-inv-ink); }
.q-logo--foot .q-logo__sub { color: var(--p-inv-muted); }
@media (max-width: 639px) { .q-logo > img { width: 38px; height: 38px; } .q-logo__name { font-size: 26px; } .q-logo__sub { font-size: 11px; } }

/* 1. Portada: video a pantalla completa con sombra para el texto */
.q-hero { position: relative; isolation: isolate; height: 100svh; min-height: 620px; padding: 0; overflow: hidden; background: #141416; color: #fff; display: flex; }
.q-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: q-settle 2200ms var(--q-ease-settle) both; }
.q-hero__shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(16 16 18 / .86) 0%, rgb(16 16 18 / .62) 38%, rgb(16 16 18 / .18) 72%, rgb(16 16 18 / .05) 100%),
              linear-gradient(0deg, rgb(16 16 18 / .7) 0%, rgb(16 16 18 / 0) 38%); }
.q-hero__inner { display: flex; flex-direction: column; justify-content: flex-end; width: min(100% - 2 * var(--gut, 80px), 1280px); padding-top: calc(var(--nav, 72px) + 48px); padding-bottom: 48px; }
.q-hero__copy { max-width: 720px; }
.q-hero h1 { color: #fff; font-size: clamp(42px, 6vw, 88px); line-height: .98; letter-spacing: -0.03em; max-width: 14ch; margin: 0; text-wrap: balance; hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; word-break: normal; }
.q-hero .hero__lead { color: rgb(255 255 255 / .86); font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; max-width: 46ch; margin: 28px 0 0; }
.q-hero .btn-row { margin-top: 36px; }
.q-hero .btn--secondary { color: #fff; }
.q-hero__facts { list-style: none; margin: 64px 0 0; padding: 24px 0 0; border-top: 1px solid rgb(255 255 255 / .22); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.q-hero__facts li { display: grid; gap: 4px; padding-left: 18px; position: relative; }
.q-hero__facts li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 2px; background: var(--p-accent); transform: rotate(45deg); }
.q-hero__facts b { font-weight: 500; font-size: 17px; color: #fff; }
.q-hero__facts span { font-size: 14px; color: rgb(255 255 255 / .7); }
.q-hero__pause { position: absolute; right: 24px; bottom: 24px; z-index: 2; }
/* entrada en cascada (60 ms entre piezas, ease-out fuerte) */
.q-rise { animation: q-rise 760ms var(--q-ease-out) both; }
.q-hero .q-rise:nth-child(1) { animation-delay: 120ms; }
.q-hero .q-rise:nth-child(2) { animation-delay: 200ms; }
.q-hero .q-rise:nth-child(3) { animation-delay: 280ms; }
.q-hero__facts.q-rise { animation-delay: 420ms; }
@keyframes q-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes q-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) {
  .q-hero { min-height: 100svh; height: auto; }
  .q-hero__inner { width: calc(100% - 48px); padding-top: calc(var(--nav, 56px) + 40px); padding-bottom: 32px; }
  .q-hero__shade { background: linear-gradient(0deg, rgb(16 16 18 / .92) 0%, rgb(16 16 18 / .7) 55%, rgb(16 16 18 / .35) 100%); }
  .q-hero__facts { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .q-hero__facts span { display: none; }
  .q-hero .btn-row { flex-direction: column; align-items: stretch; }
  .q-hero__pause { top: calc(var(--nav, 56px) + 12px); bottom: auto; right: 16px; }
}

/* Franja de video a mitad de página */
.q-band { position: relative; isolation: isolate; overflow: hidden; background: #141416; color: #fff; display: flex; align-items: center; }
.q-band__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.q-band__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(16 16 18 / .82) 0%, rgb(16 16 18 / .5) 50%, rgb(16 16 18 / .2) 100%); }
.q-band__inner { position: relative; display: block; }
.q-band__title { hyphens: none; }
#compras .rows > li { padding-block: 12px; }
#compras .rows > li:first-child { padding-top: 0; }
.q-band__title { color: #fff; font-size: clamp(40px, 5.4vw, 80px); line-height: 1; letter-spacing: -0.03em; max-width: 13ch; margin: 0; }
.q-band__title span { display: block; color: #f3b28a; }
.q-band__lead { color: rgb(255 255 255 / .82); font-size: clamp(17px, 1.4vw, 20px); max-width: 44ch; margin: 28px 0 32px; }
.q-band .btn--secondary { color: #fff; margin: 0; }
.q-band .btn-row { justify-content: flex-start; }
.q-band__pause { position: absolute; right: 24px; bottom: 24px; z-index: 2; }

/* Infografía del circuito: sin recorte, sobre su fondo crema */
[data-moment="pinned-chapters"] .q-flow-fig > img, [data-moment="pinned-chapters"] .mo-pc__visuals img { object-fit: contain !important; background: #f6f4ef; }
[data-moment="pinned-chapters"] .mo-pc__visuals { background: #f6f4ef; box-shadow: 0 30px 60px -40px rgb(28 29 31 / .45); }

/* 2. Servicios: fundido con un leve zoom entre fotos (system.js cambia el atributo hidden) */
[data-peek] .frame__img[data-peek-for] {
  transition: opacity 320ms var(--q-ease-out), transform 700ms var(--q-ease-settle);
}
[data-peek] .frame__img[data-peek-for][hidden] { display: block; opacity: 0; transform: scale(1.045); pointer-events: none; }

/* Tarifas: la modalidad toma el color de marca bajo el puntero */
#tarifas .rows__value { transition: color 160ms var(--q-ease-out); }
#tarifas .rows > li:hover .rows__value { color: var(--p-accent); }

/* 3. Control QR: las líneas del diagrama corren como una cinta transportadora */
.q-flow { position: relative; }
.q-flow .dg-line {
  stroke: var(--p-accent) !important; stroke-opacity: .85;
  stroke-dasharray: 5 9 !important; animation: q-belt 1100ms linear infinite;
}
@keyframes q-belt { to { stroke-dashoffset: -28; } }

/* 4. WhatsApp: cuatro avisos que entran uno tras otro sobre la foto (ciclo de 12 s) */
.q-toasts-wrap { position: relative; }
.q-toasts { position: absolute; left: var(--s-5, 24px); right: var(--s-5, 24px); bottom: var(--s-5, 24px); height: 76px; pointer-events: none; }
.q-toast {
  position: absolute; inset: auto 0 0 0; max-width: 340px;
  display: grid; grid-template-columns: 32px 1fr; gap: 2px 12px; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: #fff; color: #1c1d1f;
  box-shadow: 0 10px 30px -12px rgb(0 0 0 / .45), 0 2px 6px -2px rgb(0 0 0 / .2);
  opacity: 0; transform: translateY(16px) scale(0.96);
  animation: q-toast 12s var(--q-ease-out) infinite;
}
.q-toast img { grid-row: span 2; width: 32px; height: 32px; }
.q-toast b { font-weight: 500; font-size: 15px; line-height: 1.2; }
.q-toast span { font-size: 13px; color: #5c5e62; line-height: 1.25; }
.q-toast:nth-child(2) { animation-delay: 3s; }
.q-toast:nth-child(3) { animation-delay: 6s; }
.q-toast:nth-child(4) { animation-delay: 9s; }
@keyframes q-toast {
  0%   { opacity: 0; transform: translateY(16px) scale(0.96); }
  3%   { opacity: 1; transform: none; }
  22%  { opacity: 1; transform: none; }
  25%  { opacity: 0; transform: translateY(-10px) scale(0.98); }
  100% { opacity: 0; transform: translateY(-10px) scale(0.98); }
}

/* 5. Cierre: cinta de servicios en movimiento (momento marquee-row del kit), en grande sobre el fondo oscuro */
.q-belt { margin-block: 0 var(--s-5, 24px); flex: none; min-width: 0; max-width: 100%; contain: inline-size; }
.footer.closing > .wrap, .closing__cta { min-width: 0; }
.closing__cta .btn--xl { flex: none; }
.q-belt.mo-mq .mo-mq__track { font-size: clamp(22px, 2vw, 28px); font-weight: 400; line-height: 1.3; color: var(--p-inv-ink); padding-block: 4px; }
.q-belt.mo-mq .mo-mq__track li { display: flex; align-items: center; gap: 28px; }
.q-belt.mo-mq .mo-mq__track li::after { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--p-accent); transform: rotate(45deg); }

/* pausa: botón propio de cada bucle, y fuera de pantalla */
[data-q-loop] { position: relative; }
[data-q-loop].is-paused *, [data-q-loop].is-off * { animation-play-state: paused !important; }
.q-pause { position: absolute; z-index: 3; }

@media (max-width: 639px) {
  .q-toast { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media > img, .hero__media .ly-float { animation: none; }
  [data-peek] .frame__img[data-peek-for] { transition: none; }
  .q-flow .dg-line { animation: none; }
  .q-toast { animation: none; }
  .q-toast:first-child { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) { .q-rise, .q-hero__video { animation: none; } }


/* Pantallas bajas (Windows al 125 %, portátiles): cada sección crece con su contenido en vez de cortarlo */
main > section.section:not([data-moment]), footer.footer.closing { height: auto !important; min-height: calc(var(--h, 1) * 100svh); }
.q-hero { height: auto; min-height: 100svh; }
.q-hero h1 { font-size: clamp(40px, min(6vw, 10.5svh), 88px); }
.q-hero .hero__lead { margin-top: clamp(16px, 3svh, 28px); }
.q-hero .btn-row { margin-top: clamp(20px, 4svh, 36px); }
.q-hero__facts { margin-top: clamp(28px, 6svh, 64px); }
.q-band__title { font-size: clamp(36px, min(5.4vw, 9svh), 80px); }
main > section.section:not([data-moment]):not(.q-hero), footer.footer.closing { display: flex; flex-direction: column; }
main > section.section:not([data-moment]):not(.q-hero) > .wrap, footer.footer.closing > .wrap { flex: 1 0 auto; height: auto !important; min-height: 0; }
main > section.section:not([data-moment]):not(.q-hero) > .wrap > .fill { flex: 1 0 auto; min-height: auto; }

main > section.q-hero { height: auto !important; min-height: 100vh; min-height: 100svh; padding: 0 !important; }
@media (min-width: 1024px) { [data-peek] .frame--fill { min-height: 440px; } }

/* Control QR: etiqueta de lote con escaneo y avance */
.q-qr { overflow: hidden; }
.q-qr::before { content: ""; position: absolute; right: -10%; top: 10%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(194 80 27 / .28), rgb(194 80 27 / 0)); pointer-events: none; z-index: 0; }
.q-qr__grid { align-items: center; }
.q-qr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.q-qr__list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 16px 18px; border-radius: 16px;
  background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .08); transition: background-color 200ms var(--q-ease-out), border-color 200ms var(--q-ease-out), transform 200ms var(--q-ease-out); }
.q-qr__list li:hover { background: rgb(255 255 255 / .07); border-color: rgb(194 80 27 / .55); transform: translateX(4px); }
.q-qr__list b { display: block; font-weight: 500; font-size: 18px; color: var(--p-inv-ink); margin-bottom: 4px; }
.q-qr__list span:not(.q-qr__ic) { font-size: 15px; color: var(--p-inv-muted); line-height: 1.45; }
.q-qr__ic { width: 48px; height: 48px; border-radius: 12px; background: rgb(194 80 27 / .16); position: relative; }
.q-qr__ic::after { content: ""; position: absolute; inset: 12px; background: #f3b28a; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }

.q-label-wrap { position: relative; z-index: 1; padding: 18px 0; }
.q-label-wrap::before { content: ""; position: absolute; inset: 36px -18px 0 18px; border-radius: 24px; background: #2b2c2f; transform: rotate(0deg); }
.q-label { position: relative; background: #fbfaf7; color: #1c1d1f; border-radius: 24px; padding: 26px 28px 24px;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6), 0 2px 0 rgb(255 255 255 / .6) inset; }
.q-label::before, .q-label::after { content: ""; position: absolute; top: 74px; width: 22px; height: 22px; border-radius: 50%; background: var(--p-inv-bg); }
.q-label::before { left: -11px; } .q-label::after { right: -11px; }
.q-label__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 2px dashed #e1ddd4; }
.q-label__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 500; }
.q-label__brand img { border-radius: 7px; }
.q-label__id { font: 600 13px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; background: #1c1d1f; color: #fbfaf7; padding: 8px 12px; border-radius: 999px; }
.q-label__body { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 26px; align-items: center; }
.q-label__qr { position: relative; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #ebe7de; overflow: hidden; }
.q-label__qr > img { display: block; width: 100%; height: auto; }
.q-label__scan { position: absolute; left: 6px; right: 6px; top: 10px; height: 3px; border-radius: 3px; background: var(--p-accent);
  box-shadow: 0 0 14px 3px rgb(194 80 27 / .55); animation: q-scan 2.6s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
@keyframes q-scan { from { top: 10px; } to { top: calc(100% - 13px); } }
.q-label__data { margin: 0; display: grid; gap: 12px; }
.q-label__data div { display: grid; gap: 2px; }
.q-label__data dt { font-size: 12px; font-weight: 500; letter-spacing: .04em; color: #8a8b8e; }
.q-label__data dd { margin: 0; font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 10px; }
.q-label__data dd img { width: 64px; height: 40px; object-fit: cover; border-radius: 8px; }
.q-label__track { list-style: none; margin: 24px 0 0; padding: 18px 0 0; border-top: 2px dashed #e1ddd4; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.q-label__track::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 29px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--p-accent) 0 66.6%, #e1ddd4 66.6%); }
.q-label__track li { position: relative; display: grid; justify-items: center; gap: 10px; font-size: 13px; font-weight: 500; color: #8a8b8e; }
.q-label__track i { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid #e1ddd4; position: relative; z-index: 1; }
.q-label__track .is-done { color: #1c1d1f; } .q-label__track .is-done i { background: var(--p-accent); border-color: var(--p-accent); }
.q-label__track .is-done i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.q-label__track .is-now { color: var(--p-accent); } .q-label__track .is-now i { border-color: var(--p-accent); }
.q-label__track .is-now i::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid var(--p-accent); animation: q-ping 1.8s var(--q-ease-out) infinite; }
@keyframes q-ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.q-label__pause { position: absolute; right: -10px; top: 4px; z-index: 2; }
@media (max-width: 1023px) { .q-label-wrap { margin-top: 32px; } }
@media (max-width: 639px) {
  .q-label { padding: 20px 18px; }
  .q-label__body { grid-template-columns: 1fr; justify-items: center; }
  .q-label__qr { width: 190px; }
  .q-label__data { width: 100%; grid-template-columns: 1fr 1fr; }
  .q-label__track li { font-size: 11px; }
  .q-label-wrap::before { inset: 30px -8px 0 8px; }
}
@media (prefers-reduced-motion: reduce) { .q-label__scan, .q-label__track .is-now i::before { animation: none; } }

/* Ubicación: tarjeta de dirección, mapa y ventajas */
.q-ub__top { align-items: stretch; margin-top: 8px; }
.q-ub__card { position: relative; background: var(--p-inv-bg); color: var(--p-inv-ink); border-radius: 24px; padding: 32px 32px 28px; overflow: hidden; display: flex; flex-direction: column; }
.q-ub__card::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgb(194 80 27 / .45), rgb(194 80 27 / 0)); pointer-events: none; }
.q-ub__pin { width: 52px; height: 52px; border-radius: 14px; background: var(--p-accent); display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgb(194 80 27 / .9); }
.q-ub__pin svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.q-ub__label { margin: 22px 0 6px; font-size: 13px; font-weight: 500; letter-spacing: .04em; color: var(--p-inv-muted); }
.q-ub__addr { font-style: normal; font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.08; letter-spacing: -0.02em; color: #fff; }
.q-ub__addr span { display: block; font-size: .62em; color: #f3b28a; margin-top: 6px; }
.q-ub__card .btn-row { margin-top: 22px; }
.q-ub__zone { list-style: none; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid rgb(255 255 255 / .12); display: grid; gap: 16px; }
.q-ub__zone li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.q-ub__zone b { display: block; font-weight: 500; font-size: 16px; color: #fff; }
.q-ub__zone div span { font-size: 14px; color: var(--p-inv-muted); line-height: 1.4; }
.q-ub__ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgb(194 80 27 / .12); flex: none; }
.q-ub__ic svg { width: 22px; height: 22px; fill: none; stroke: var(--p-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.q-ub__ic--light { background: rgb(255 255 255 / .07); }
.q-ub__ic--light svg { stroke: #f3b28a; }
.q-ub__map { border-radius: 24px; overflow: hidden; min-height: 460px; background: var(--p-surface); box-shadow: 0 30px 60px -40px rgb(28 29 31 / .5); }
.q-ub__map iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; filter: saturate(.85) contrast(1.02); }
.q-ub__near { margin-top: 48px; }
.q-ub__near h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2vw, 30px); letter-spacing: -0.015em; margin: 0 0 20px; }
.q-ub__near ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.q-ub__near li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 1px solid #e4e1da; font-size: 15px; line-height: 1.4;
  transition: transform 200ms var(--q-ease-out), border-color 200ms var(--q-ease-out), box-shadow 200ms var(--q-ease-out); }
.q-ub__near li:hover { transform: translateY(-2px); border-color: rgb(194 80 27 / .45); box-shadow: 0 14px 28px -20px rgb(28 29 31 / .35); }
.footer__addr { font-style: normal; margin-top: 10px; font-size: 14px; }
.footer__addr a { color: var(--p-inv-ink); text-decoration: underline; text-decoration-color: rgb(255 255 255 / .3); text-underline-offset: 3px; }
@media (max-width: 1023px) {
  .q-ub__map { margin-top: 20px; min-height: 340px; } .q-ub__map iframe { min-height: 340px; }
  .q-ub__near ul { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 639px) {
  .q-ub__card { padding: 26px 22px; }
  .q-ub__near ul { grid-template-columns: 1fr; }
  .q-ub__map, .q-ub__map iframe { min-height: 300px; }
}

/* Botón flotante de WhatsApp */
.q-wa { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgb(37 211 102 / .7), 0 4px 10px rgb(0 0 0 / .18); transition: transform 180ms var(--q-ease-out), box-shadow 180ms var(--q-ease-out); }
.q-wa:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 16px 34px -8px rgb(37 211 102 / .8), 0 4px 10px rgb(0 0 0 / .2); }
.q-wa:active { transform: scale(.96); }
.q-wa svg { width: 32px; height: 32px; fill: #fff; }
.q-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: q-wa-ring 2.4s var(--q-ease-out) 1.5s 3; opacity: 0; }
@keyframes q-wa-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.q-wa__tip { position: absolute; right: 72px; top: 50%; translate: 0 -50%; white-space: nowrap; background: #1c1d1f; color: #fff; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 10px;
  opacity: 0; transform: translateX(6px); transition: opacity 160ms var(--q-ease-out), transform 160ms var(--q-ease-out); pointer-events: none; }
.q-wa:hover .q-wa__tip, .q-wa:focus-visible .q-wa__tip { opacity: 1; transform: none; }
.q-wa[href=""], .q-wa:not([href]) { display: none; }
@media (max-width: 639px) { .q-wa { bottom: calc(84px + env(safe-area-inset-bottom)); right: 16px; width: 56px; height: 56px; } .q-wa__tip { display: none; } }
@media (prefers-reduced-motion: reduce) { .q-wa::before { animation: none; } }

/* Circuito: animación continua + pasos sincronizados */
.q-circ__grid { align-items: center; }
.q-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.q-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid transparent;
  transition: background-color 360ms var(--q-ease-out), border-color 360ms var(--q-ease-out), opacity 360ms var(--q-ease-out); opacity: .55; }
.q-steps h3 { margin: 0; font-family: var(--font-text); font-weight: 500; font-size: 19px; line-height: 1.3; color: var(--p-ink); }
.q-steps p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--p-muted); max-width: 44ch; }
.q-steps__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 16px;
  background: #ece9e2; color: #8a8b8e; transition: background-color 360ms var(--q-ease-out), color 360ms var(--q-ease-out), box-shadow 360ms var(--q-ease-out); }
.q-steps li.is-done { opacity: .85; }
.q-steps li.is-done .q-steps__n { background: rgb(194 80 27 / .14); color: var(--p-accent); }
.q-steps li.is-on { opacity: 1; background: #fff; border-color: rgb(194 80 27 / .35); box-shadow: 0 18px 36px -28px rgb(28 29 31 / .45); }
.q-steps li.is-on .q-steps__n { background: var(--p-accent); color: #fff; box-shadow: 0 0 0 6px rgb(194 80 27 / .15); }
.q-flow-card { position: relative; border-radius: 24px; overflow: hidden; background: #f6f4ef; box-shadow: 0 30px 60px -40px rgb(28 29 31 / .5); border: 1px solid #e6e2da; }
.q-flow-svg { display: block; width: 100%; height: auto; }
.q-flow-card__pause { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
@media (max-width: 1023px) { .q-flow-card { margin-top: 24px; } }
@media (max-width: 639px) { .q-steps li { grid-template-columns: 36px 1fr; padding: 12px 14px; } .q-steps__n { width: 36px; height: 36px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .q-steps li { opacity: 1; } }

/* Logo nuevo (imagen): la caja mantiene el movimiento */
.q-logo { gap: 10px; }
.q-logo > img.q-logo__word { width: auto; height: 40px; border-radius: 0; box-shadow: none; }
.q-logo > img.q-logo__mark { width: 44px; height: auto; border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 12px rgb(194 80 27 / .35));
  transform-origin: 50% 60%; animation: q-logo-in 700ms var(--q-ease-out) 100ms both; transition: transform 260ms var(--q-ease-out); }
.q-logo > img.q-logo__word { animation: q-logo-word 700ms var(--q-ease-out) 180ms both; }
.q-logo:hover > img.q-logo__mark { transform: rotate(-8deg) scale(1.06); }
.q-logo:active > img.q-logo__mark { transform: rotate(-4deg) scale(.96); }
@keyframes q-logo-in { from { opacity: 0; transform: scale(.7) rotate(-14deg); } 60% { opacity: 1; transform: scale(1.06) rotate(3deg); } to { transform: none; } }
@keyframes q-logo-word { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.q-logo--foot > img.q-logo__mark { animation: none; }
.q-logo--foot > img.q-logo__word { animation: none; }
@media (max-width: 639px) { .q-logo > img.q-logo__mark { width: 38px; } .q-logo > img.q-logo__word { height: 34px; } }
@media (prefers-reduced-motion: reduce) { .q-logo > img.q-logo__mark, .q-logo > img.q-logo__word { animation: none; } }

/* Almacén con la marca: imagen ancha con puntos clave encima */
.q-alm__fig { position: relative; margin: 8px 0 0; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 80px -50px rgb(28 29 31 / .6); }
.q-alm__fig > img { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; transform: scale(1.001); transition: transform 1200ms var(--q-ease-settle); }
.q-alm__fig:hover > img { transform: scale(1.03); }
.q-alm__fig::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(16 16 18 / .55) 0%, rgb(16 16 18 / 0) 38%); pointer-events: none; }
.q-alm__chips { position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.q-alm__chips li { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: rgb(255 255 255 / .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 10px 30px -14px rgb(0 0 0 / .45); font-size: 13.5px; line-height: 1.35; color: #5c5e62; }
.q-alm__chips b { display: block; font-size: 15.5px; font-weight: 500; color: #1c1d1f; }
.q-alm__ic { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--p-accent); }
.q-alm__ic svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1023px) {
  .q-alm__fig::after { display: none; }
  .q-alm__chips { position: static; grid-template-columns: 1fr; padding: 16px; background: var(--p-surface); }
  .q-alm__chips li { background: #fff; backdrop-filter: none; box-shadow: none; }
}
