/* Alphyx v8 — presentación del ejemplo Alfar (tienda de cerámica) en el bloque Tiendas en línea de la portada y en
 * tiendas-en-linea.html. Se añade a styles.css/motion.css sin modificarlos. Prefijo ta-. Las pantallas en miniatura
 * usan la paleta de Alfar (caolín #eeede9, tinta #1d1c1a, verde cobre #1f5a4c y las tejas de esmalte) dentro de una
 * ventana de navegador y un teléfono dibujados; lo que las rodea mantiene la identidad Alphyx. Las fotos (o sus
 * marcadores «Foto pendiente») comparten las clases al-media/al-fill/al-ph del ejemplo, con estilo propio aquí y
 * limitado a .ta-browser/.ta-phone. Movimiento en tiendas-alfar.js. */

.ta-link { color: var(--blue); }

/* ——— Fotos y marcadores dentro de las miniaturas ——— */
.ta-browser .al-media, .ta-phone .al-media { position: relative; overflow: hidden; background: #d9d5cc; }
.ta-browser .al-fill, .ta-browser .al-fill img, .ta-phone .al-fill, .ta-phone .al-fill img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ta-browser .al-fill img, .ta-phone .al-fill img { object-fit: cover; }
.ta-browser .al-ph, .ta-phone .al-ph { background: radial-gradient(120% 90% at 30% 18%, #ffffff94, transparent 60%), linear-gradient(160deg, #e6e3dc, #d1ccc2); }
.ta-browser .al-ph-shape { position: absolute; left: 50%; top: 46%; width: 50%; transform: translate(-50%, -50%); color: #8f897e; opacity: .6; }
.ta-browser .al-ph-note { position: absolute; left: 0.4em; bottom: 0.4em; padding: 0 0.4em; border-radius: 0.3em; background: #f7f6f3eb; color: #4a4640; font: 500 0.72em/1.5 ui-monospace, Consolas, monospace; }
.ta-browser .al-ico, .ta-phone .al-ico { width: 12px; height: 12px; }
.ta-s-tile { display: inline-block; flex: none; width: 0.8em; height: 1em; background: linear-gradient(180deg, var(--g) 0 52%, var(--g2) 80%, #cbbfa9 80% 100%); clip-path: polygon(0 0, 58% 0, 58% 50%, 100% 50%, 100% 100%, 0 100%); }

/* ——— Ventana de navegador dibujada ——— */
.ta-browser { position: relative; container-type: inline-size; width: 100%; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #0000001a, 0 30px 60px -28px #1d2a3a66; text-align: left; overflow: hidden; }
.ta-browser-bar { display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; background: #e9e8e4; border-bottom: 1px solid #d6d3cc; }
.ta-browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #c9c5bd; }
.ta-browser-bar span { margin: 0 auto; padding: 1px 12px; border-radius: 5px; background: #f7f6f3; color: #57534d; font: 500 9px/1.6 system-ui, sans-serif; }
.ta-browser-screen { position: relative; aspect-ratio: 16 / 10.4; background: #eeede9; }
.ta-s { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: #eeede9; color: #1d1c1a; font: 1em/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ta-s-head { display: flex; align-items: center; gap: 1em; padding: 0.7em 1.2em; border-bottom: 1px solid #d3d0c8; }
.ta-s-brand { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 650; font-size: 1.3em; letter-spacing: -.03em; }
.ta-s-seal { width: 1.5em; height: 1.5em; color: #1f5a4c; }
.ta-s-nav { display: flex; gap: 1em; margin-left: auto; font-size: 0.9em; }
.ta-s-nav i { font-style: normal; }
.ta-s-nav .on { box-shadow: 0 1.5px 0 #1f5a4c; }
.ta-s-bag { position: relative; display: inline-grid; place-items: center; width: 2.2em; height: 2.2em; border: 1px solid #bdb9b0; border-radius: 1.1em; background: #fff; }
.ta-s-bag b { position: absolute; top: -0.4em; right: -0.5em; min-width: 1.2em; height: 1.2em; padding: 0 0.3em; border-radius: 0.6em; background: #1f5a4c; color: #fff; font: 700 0.75em/1.2em ui-monospace, Consolas, monospace; text-align: center; }
.ta-s-body { flex: 1; min-height: 0; display: flex; gap: 1.2em; padding: 1em 1.2em; }
.ta-s-filters { display: grid; align-content: start; gap: 0.3em; width: 22%; flex: none; font-size: 0.85em; }
.ta-s-filters b { margin-top: 0.4em; font-size: 0.75em; letter-spacing: .06em; text-transform: uppercase; color: #57534d; }
.ta-s-filters span { display: block; padding: 0.2em 0.5em; border-radius: 0.4em; }
.ta-s-filters .on { background: #dde8e3; color: #16463b; font-weight: 600; }
.ta-s-glz { display: flex !important; gap: 0.4em; flex-wrap: wrap; }
.ta-s-main { flex: 1; min-width: 0; display: grid; align-content: start; gap: 0.7em; }
.ta-s-title { display: flex; align-items: baseline; justify-content: space-between; }
.ta-s-title b { font-size: 1.5em; font-weight: 560; letter-spacing: -.02em; }
.ta-s-title small { color: #57534d; font-size: 0.8em; }
.ta-s-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8em 0.7em; }
.ta-s-card { display: grid; gap: 1px; min-width: 0; }
.ta-s-card .ta-s-photo { aspect-ratio: 4 / 3.4; border-radius: 0.5em; margin-bottom: 0.2em; }
.ta-s-card b { font-weight: 580; font-size: 0.85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-s-card small { font: 600 0.8em ui-monospace, Consolas, monospace; }
.ta-s-tiles { display: flex; gap: 0.2em; }
.ta-s-body--piece { gap: 1.4em; }
.ta-s-gal { position: relative; width: 50%; flex: none; }
.ta-s-bigphoto { position: absolute !important; inset: 0; border-radius: 0.7em; }
.ta-s-note { position: absolute; left: 0.6em; bottom: 0.6em; display: inline-flex; align-items: center; gap: 0.5em; padding: 0.3em 0.7em 0.3em 0.5em; border-radius: 0.5em; background: #f7f6f3f2; font-size: 0.8em; font-weight: 600; }
.ta-s-tile--note { width: 1.1em; height: 1.4em; }
.ta-s-info { display: grid; align-content: start; gap: 0.4em; }
.ta-s-info small { color: #57534d; font-size: 0.8em; }
.ta-s-info b { font-size: 1.7em; font-weight: 560; letter-spacing: -.03em; }
.ta-s-info em { font: 600 1.1em ui-monospace, Consolas, monospace; font-style: normal; }
.ta-s-glazes { display: flex; gap: 0.4em; }
.ta-s-glazes span { display: grid; place-items: center; width: 2.4em; height: 2.4em; border: 1px solid #bdb9b0; border-radius: 0.5em; background: #f7f6f3; }
.ta-s-glazes .ta-s-tile { width: 1em; height: 1.3em; }
.ta-s-glazes .on { border-color: #1f5a4c; box-shadow: inset 0 0 0 1px #1f5a4c; background: #dde8e3; }
.ta-s-buy { display: flex; gap: 0.5em; margin-top: 0.4em; }
.ta-s-qty { padding: 0.5em 0.7em; border: 1px solid #bdb9b0; border-radius: 0.5em; background: #fff; font: 600 0.8em ui-monospace, Consolas, monospace; white-space: nowrap; }
.ta-s-add { display: block; padding: 0.6em 1em; border-radius: 0.5em; background: #1f5a4c; color: #fff; font-weight: 600; font-size: 0.85em; text-align: center; white-space: nowrap; }
.ta-s-specs { display: grid; margin-top: 0.8em; border-top: 1px solid #d3d0c8; }
.ta-s-specs span { display: flex; justify-content: space-between; gap: 1em; padding: 0.45em 0; border-bottom: 1px solid #d3d0c8; font-size: 0.8em; }
.ta-s-specs i { font-style: normal; color: #57534d; }
.ta-s-specs i + i { color: #1d1c1a; font-family: ui-monospace, Consolas, monospace; }
.ta-s--cart .ta-s-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; }
.ta-s-dim { position: absolute; inset: 0; background: #1d1c1a59; }
.ta-s-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; display: grid; align-content: start; gap: 0.7em; padding: 1em 1.2em; background: #eeede9; box-shadow: -1em 0 2.4em -1.4em #1d1c1a99; }
.ta-s-drawer > b { font-size: 1.3em; font-weight: 580; }
.ta-s-line { display: grid; grid-template-columns: 2.6em minmax(0, 1fr) auto; gap: 0.7em; align-items: center; padding: 0.5em 0; border-top: 1px solid #d3d0c8; }
.ta-s-thumb { width: 2.6em; aspect-ratio: 4 / 5; border-radius: 0.3em; }
.ta-s-line span { display: grid; min-width: 0; }
.ta-s-line b { font-size: 0.85em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ta-s-line small { display: inline-flex; align-items: center; gap: 0.3em; color: #57534d; font-size: 0.75em; }
.ta-s-line em { font: 600 0.8em ui-monospace, Consolas, monospace; font-style: normal; }
.ta-s-sub { display: flex; justify-content: space-between; padding-top: 0.5em; border-top: 1px solid #d3d0c8; font-weight: 600; }
.ta-s-sub b { font-family: ui-monospace, Consolas, monospace; }
.ta-s-body--co { flex-direction: column; gap: 1em; padding: 1.2em 18%; }
.ta-s-steps { position: relative; display: flex; justify-content: space-between; padding-bottom: 0.2em; font-size: 0.8em; color: #57534d; }
.ta-s-steps > span:not(.ta-s-steps-bar) { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.4em; background: #eeede9; padding-right: 0.4em; }
.ta-s-steps i { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border: 1.5px solid #bdb9b0; border-radius: 0.7em; font: 700 0.7em/1 ui-monospace, Consolas, monospace; font-style: normal; background: #eeede9; }
.ta-s-steps .done i { border-color: #1f5a4c; background: #1f5a4c; color: #fff; }
.ta-s-steps .on { color: #1d1c1a; font-weight: 700; }
.ta-s-steps .on i { width: 2.2em; border-color: #1f5a4c; color: #1f5a4c; background: #fff; }
.ta-s-steps-bar { position: absolute; left: 0.7em; right: 0.7em; top: 0.6em; height: 0.2em; background: #d3d0c8; }
.ta-s-steps-bar span { position: absolute; inset: 0; background: #1f5a4c; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.ta-s-co { display: grid; gap: 0.5em; padding: 1.2em; border-radius: 0.8em; background: #fff; border: 1px solid #d3d0c8; }
.ta-s-co > b { font-size: 1.4em; font-weight: 560; margin-bottom: 0.2em; }
.ta-s-row { display: flex; justify-content: space-between; gap: 0.8em; font-size: 0.85em; }
.ta-s-row em { font: 600 0.85em ui-monospace, Consolas, monospace; font-style: normal; }
.ta-s-row--t { padding-top: 0.5em; border-top: 1px solid #d3d0c8; font-weight: 700; font-size: 1em; }
.ta-s-row--t em { font-size: 1em; }
.ta-s-lock { display: inline-flex; align-items: center; gap: 0.4em; margin-top: 0.2em; padding: 0.5em 0.7em; border-radius: 0.5em; background: #dde8e3; color: #173f35; font-size: 0.8em; }
@container (max-width: 440px) {
  .ta-s-filters { display: none; }
  .ta-s-nav { display: none; }
  .ta-s-body--co { padding: 1em 1.2em; }
  .ta-s-title b { font-size: 1.3em; }
}

/* Las miniaturas se dibujan en em y su tamaño de letra sigue el ancho de la ventana que las contiene (cqi), así
 * escalan igual en la portada, en el hero y en el recorrido. */
.ta-browser .ta-s { font-size: clamp(6px, 1.78cqi, 15px); }
.ta-scene-screen .ta-s { font-size: clamp(6px, 1.78cqi, 15px); }

/* ——— Teléfono dibujado con la confirmación ——— */
.ta-phone { position: absolute; right: -2%; bottom: -8%; z-index: 2; width: 27%; min-width: 118px; max-width: 176px; aspect-ratio: 9 / 19; padding: 5px; border-radius: 26px; background: #1d1c1a; box-shadow: 0 0 0 1px #45413b, 0 28px 50px -20px #000a; text-align: left; }
.ta-phone-screen { position: relative; height: 100%; overflow: hidden; border-radius: 21px; background: #eeede9; color: #1d1c1a; font: 8px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ta-p-head { display: flex; align-items: center; gap: 3px; padding: 18px 9px 6px; border-bottom: 1px solid #d3d0c8; font-weight: 650; font-size: 11px; letter-spacing: -.03em; }
.ta-p-head .ta-s-bag { margin-left: auto; width: 18px; height: 18px; }
.ta-p-body { display: grid; justify-items: center; gap: 5px; padding: 9px 8px; text-align: center; }
.ta-p-body .ta-s-steps { width: 100%; font-size: 6px; }
.ta-p-body .ta-s-steps > span:not(.ta-s-steps-bar) { font-size: 0; gap: 0; padding: 0; }
.ta-p-body .ta-s-steps-bar { left: 6px; right: 6px; }
.ta-p-body .ta-s-steps i { width: 11px; height: 11px; font-size: 6px; }
.ta-p-body .ta-s-steps-bar { top: 4.5px; }
.ta-p-seal { width: 46px; height: 46px; margin-top: 4px; }
.ta-p-mark { width: 46px; height: 46px; color: #1f5a4c; transform: rotate(-8deg); }
.ta-p-body small { color: #57534d; font-size: 6.5px; letter-spacing: .06em; text-transform: uppercase; }
.ta-p-body b { font-size: 9.5px; font-weight: 600; line-height: 1.25; }
.ta-p-body > span:not(.ta-s-add) { font-size: 7px; color: #57534d; }
.ta-p-ticket { display: flex; justify-content: space-between; width: 100%; margin-top: 2px; padding: 6px 7px; background: #fff; border-radius: 3px; font: 600 7px ui-monospace, Consolas, monospace; box-shadow: 0 6px 10px -8px #0006; }
.ta-p-ticket em { font-style: normal; }
.ta-p-body .ta-s-add { width: 100%; padding: 5px; font-size: 7px; }

/* ——— Bloque Tiendas en línea de la portada ——— */
.ta-promo .ta-promo-art { padding: 8px 0 30px; }
.ta-duo { position: relative; width: min(88%, 560px); margin: 0 auto; }
.ta-duo .ta-browser--promo { transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transform-origin: 60% 50%; }
.ta-fly { position: absolute; z-index: 3; left: 0; top: 0; width: 16px; height: 20px; background: linear-gradient(180deg, #a9bdab 0 52%, #6b8a74 80%, #cbbfa9 80% 100%); clip-path: polygon(0 0, 58% 0, 58% 50%, 100% 50%, 100% 100%, 0 100%); opacity: 0; pointer-events: none; }
/* Créditos de las fotos: tiendas-en-linea.html no carga piloto.css (donde vive .pw-credits), así que el estilo
 * completo va aquí; los enlaces en línea van subrayados para distinguirse del texto (axe link-in-text-block). */
.ta-credits { font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; margin: 6px 20px 0; }
.ta-credits a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.ta-promo .ta-credits { color: var(--muted); }
.ta-promo .ta-credits a { color: var(--blue); }

/* ——— tiendas-en-linea.html: hero ——— */
.ta-hero .ta-hero-art { margin: 44px auto 0; }
.ta-duo--hero { width: min(92%, 860px); }
.ta-duo--hero .ta-phone { right: -4%; bottom: -10%; }
.ta-hero .ta-credits { color: var(--muted); }
.ta-hero .ta-credits a { color: var(--blue); }
.ta-hero .concept-label { margin-top: 48px; }

/* ——— tiendas-en-linea.html: recorrido «Del catálogo a la compra» ———
 * Sin JS o con movimiento reducido: cuatro ventanas en una rejilla de 2×2 con sus pasos. Con movimiento
 * (.ta-scene-live): la sección mide varias pantallas, el contenido queda fijo (sticky) y el scroll nativo recorre las
 * cuatro pantallas dentro de una sola ventana, de forma reversible. */
.ta-scene { background: #fff; padding: 110px 0 96px; }
.ta-scene-head { text-align: center; }
.ta-scene-head h2 { font-size: clamp(34px, 4.3vw, 58px); max-width: 860px; margin: 0 auto; }
.ta-scene-head p:not(.eyebrow) { font-size: 19px; color: var(--muted); max-width: 640px; margin: 20px auto 0; }
.ta-scene-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: min(1120px, calc(100% - 64px)); margin: 56px auto 0; }
.ta-scene:not(.ta-scene-live) .ta-browser--scene { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; overflow: visible; background: none; box-shadow: none; border-radius: 0; container-type: normal; }
.ta-scene:not(.ta-scene-live) .ta-browser--scene > .ta-browser-bar { display: none; }
.ta-scene:not(.ta-scene-live) .ta-scene-screens { display: contents; }
.ta-scene:not(.ta-scene-live) .ta-scene-screen { position: relative; container-type: inline-size; aspect-ratio: 16 / 10.4; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px #0000001a, 0 24px 44px -26px #1d2a3a66; }
.ta-scene-steps { grid-column: 1 / -1; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; margin: 8px 0 0; padding: 0; }
.ta-scene-steps li { font-size: 15px; line-height: 1.45; color: var(--muted); }
.ta-scene-steps b { color: var(--ink); font-weight: 600; }
.ta-scene-bar { display: block; height: 2px; margin-bottom: 14px; background: var(--line); overflow: hidden; }
.ta-scene-bar span { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
.ta-scene:not(.ta-scene-live) .ta-scene-bar span { transform: none; }
.ta-scene-foot { margin-top: 64px; text-align: center; }
.ta-scene-foot .actions { justify-content: center; }
.ta-scene-foot .concept-label { margin-top: 18px; }
.ta-scene-live { height: 380vh; min-height: 2600px; padding: 0; }
.ta-scene-live .ta-scene-pin { position: sticky; top: var(--ta-nav-h, 64px); height: calc(100svh - var(--ta-nav-h, 64px)); display: flex; flex-direction: column; justify-content: center; padding: 20px 0 16px; overflow: hidden; }
.ta-scene-live .ta-scene-head p:not(.eyebrow), .ta-scene-live .ta-scene-foot { display: none; }
.ta-scene-live .ta-scene-head h2 { font-size: clamp(28px, 3.4vw, 46px); }
.ta-scene-live .ta-scene-stage { flex: 1; min-height: 0; grid-template-columns: minmax(0, 760px) minmax(0, 300px); justify-content: center; align-items: center; gap: 32px 56px; margin-top: 24px; }
.ta-scene-live .ta-browser--scene { align-self: center; max-height: 100%; }
.ta-scene-live .ta-scene-screens { position: relative; aspect-ratio: 16 / 10.4; max-height: calc(100svh - var(--ta-nav-h, 64px) - 190px); }
.ta-scene-live .ta-scene-screen { position: absolute; inset: 0; visibility: hidden; container-type: inline-size; }
.ta-scene-live .ta-scene-screen.is-on { visibility: visible; }
.ta-scene-live .ta-scene-steps { grid-column: auto; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 0; }
.ta-scene-live .ta-scene-steps li { transition: color .25s ease; }
.ta-scene-live .ta-scene-steps li.is-active { color: var(--ink); }

/* ——— tiendas-en-linea.html: #detalles ——— */
.ta-notes { background: var(--soft); padding: 110px 0; }
.ta-notes-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; }
.ta-notes h2 { font-size: clamp(32px, 3.6vw, 50px); max-width: 520px; }
.ta-notes-list { margin: 0; border-top: 1px solid var(--line); }
.ta-notes-list div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ta-notes-list dt { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.ta-notes-list dd { margin: 0; font-size: 17px; color: var(--muted); }

/* Estados previos a la revelación: solo con JS, IntersectionObserver y movimiento permitido. */
.ta-motion .ta-pending .ta-browser, .ta-motion .ta-pending .ta-phone { opacity: 0; }

@media (max-width: 1100px) {
  .ta-scene-live .ta-scene-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 16px; width: calc(100% - 48px); }
  .ta-scene-live .ta-browser--scene { justify-self: center; width: min(100%, 720px); }
  .ta-scene-live .ta-scene-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .ta-scene-live .ta-scene-steps li { font-size: 13px; line-height: 1.3; }
  .ta-scene-live .ta-scene-steps li .ta-step-text { display: none; }
  .ta-notes-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ta-duo { width: 84%; margin-left: 4%; }
  .ta-phone { min-width: 96px; max-width: 120px; padding: 4px; border-radius: 20px; right: -12%; }
  .ta-phone-screen { border-radius: 16px; }
  .ta-p-head { padding-top: 12px; font-size: 9px; }
  .ta-p-body { gap: 3px; padding: 6px; }
  .ta-p-body > span:not(.ta-s-add), .ta-p-ticket { display: none; }
  .ta-p-seal, .ta-p-mark { width: 34px; height: 34px; }
  .ta-p-body b { font-size: 8px; }
  .ta-duo--hero { width: 86%; }
  .ta-scene { padding: 72px 0 64px; }
  .ta-scene-stage { width: calc(100% - 40px); gap: 16px; }
  .ta-scene:not(.ta-scene-live) .ta-browser--scene { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .ta-scene-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ta-scene-steps li { font-size: 14px; }
  .ta-scene-bar { margin-bottom: 8px; }
  .ta-scene-live .ta-scene-pin { padding: 12px 0 10px; }
  .ta-scene-live .ta-scene-head .eyebrow { display: none; }
  .ta-scene-live .ta-scene-head h2 { font-size: 24px; padding: 0 16px; }
  .ta-scene-live .ta-scene-stage { width: calc(100% - 32px); margin-top: 12px; }
  .ta-scene-live .ta-scene-steps li { font-size: 12px; }
  .ta-notes { padding: 72px 0; }
  .ta-notes-list div { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .ta-scene-steps li { transition: none !important; }
}
