/* Escena — interfaz sobre el lienzo 3D */
:root {
  --ink: #f7f1e8; --ink-2: rgba(247, 241, 232, .72); --ink-3: rgba(247, 241, 232, .5);
  --glass: rgba(14, 16, 20, .38); --glass-2: rgba(14, 16, 20, .62); --line: rgba(255, 255, 255, .14);
  --accent: #ff8a3d; --accent-ink: #1c1009;
  --paper: #f5efe6; --paper-2: #ebe2d4; --paper-ink: #1f1a15; --paper-ink-2: #6b5f52; --paper-line: rgba(31, 26, 21, .12);
  --serif: 'Fraunces', Georgia, serif; --sans: 'Manrope', system-ui, sans-serif;
  --r: 999px; --gut: clamp(16px, 3vw, 36px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0d10; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
#esc-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; outline: none; }
.esc-shade { position: fixed; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.32), transparent 22%, transparent 55%, rgba(0,0,0,.55)); }
.esc-grain { position: fixed; inset: -50%; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(3%, -2%); } 50% { transform: translate(-2%, 3%); } 75% { transform: translate(2%, 2%); } }

/* ---------------------------------------------------------------- Cabecera */
.esc-top { position: fixed; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: 18px var(--gut); z-index: 20; }
.esc-mark { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.esc-mark span { color: var(--accent); }
.esc-clock { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); font-size: 13px; margin-left: 8px; }
.esc-clock i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
.esc-clock b { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .02em; }
.esc-clock span { color: var(--ink-2); }
@keyframes pulse { 50% { opacity: .35; } }
.esc-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.esc-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); font-size: 13px; font-weight: 600; transition: background .25s, transform .25s var(--ease); white-space: nowrap; text-decoration: none; }
.esc-pill:hover { background: var(--glass-2); }
.esc-pill.solid { background: var(--ink); color: #15120f; border-color: transparent; }
.esc-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.esc-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 11px; }
.esc-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.esc-seg { display: inline-flex; padding: 3px; gap: 2px; height: 38px; border-radius: var(--r); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); }
.esc-seg button { width: 32px; height: 30px; border-radius: var(--r); display: grid; place-items: center; color: var(--ink-2); transition: background .25s, color .25s; }
.esc-seg button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.esc-seg button[aria-pressed="true"] { background: var(--ink); color: #15120f; }
.esc-seg button:hover:not([aria-pressed="true"]) { color: var(--ink); }
.esc-langs { display: inline-flex; gap: 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.esc-langs a { padding: 6px 7px; text-decoration: none; color: var(--ink-3); border-radius: 6px; }
.esc-langs a.on, .esc-langs a:hover { color: var(--ink); }
#esc-sound[aria-pressed="true"] .off, #esc-sound[aria-pressed="false"] .on { display: none; }
#esc-sound[aria-pressed="true"] { border-color: rgba(255, 138, 61, .55); }
.esc-short { display: none; }

/* ---------------------------------------------------------------- Texto de la parada */
.esc-copy { position: fixed; left: var(--gut); bottom: clamp(28px, 7vh, 72px); width: min(560px, calc(100vw - 2 * var(--gut))); z-index: 10; pointer-events: none; }
.esc-copy > * { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.esc-copy.on > * { opacity: 1; transform: none; }
.esc-copy.on > :nth-child(2) { transition-delay: .08s; } .esc-copy.on > :nth-child(3) { transition-delay: .18s; } .esc-copy.on > :nth-child(4) { transition-delay: .28s; }
.esc-eyebrow { display: flex; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.esc-eyebrow b { color: var(--accent); font-variant-numeric: tabular-nums; }
.esc-copy h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 78px); line-height: .98; letter-spacing: -.025em; margin: 14px 0 16px; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.esc-copy h1 em { font-style: italic; color: #ffd9b8; }
.esc-copy h1 .ln { display: block; overflow: hidden; padding: 0 0.06em 0.1em 0; margin-bottom: -0.1em; }
.esc-copy h1 .ln > * { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease) .15s; }
.esc-copy h1 .ln + .ln > * { transition-delay: .28s; }
.esc-copy.on h1 .ln > * { transform: none; }
.esc-copy p { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 0 0 20px; max-width: 46ch; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.esc-tools { display: flex; flex-wrap: wrap; gap: 8px; pointer-events: auto; }
.esc-chip { display: inline-flex; align-items: center; gap: 9px; padding: 5px 14px 5px 5px; border-radius: var(--r); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); font-size: 13px; transition: background .25s, transform .3s var(--ease); }
.esc-chip:hover { background: var(--glass-2); transform: translateY(-2px); }
.esc-chip img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--paper); }
.esc-chip b { color: var(--ink-3); font-weight: 600; }

/* ---------------------------------------------------------------- Capítulos */
.esc-rail { position: fixed; right: var(--gut); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 10; opacity: 0; transition: opacity .8s; }
.esc-started .esc-rail { opacity: 1; }
.esc-dot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 6px 0; font-size: 12px; color: var(--ink-3); }
.esc-dot span { opacity: 0; transform: translateX(6px); transition: .35s var(--ease); white-space: nowrap; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.esc-dot i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-2); transition: .35s var(--ease); }
.esc-dot:hover span, .esc-dot.on span { opacity: 1; transform: none; color: var(--ink); }
.esc-dot.on i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 12px var(--accent); transform: scale(1.3); }
.esc-bar { position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 21; pointer-events: none; }
.esc-bar::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), #ffd2a6); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 1.6s var(--ease); }

/* ---------------------------------------------------------------- Pista para avanzar */
.esc-hint { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 10; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); opacity: 0; transition: opacity .6s; pointer-events: none; }
.esc-started .esc-hint { opacity: 1; }
.esc-at-final .esc-hint, .esc-drawer-on .esc-hint { opacity: 0; }
.esc-hint button { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--ink); font-size: 12px; letter-spacing: .04em; text-transform: none; font-weight: 600; }
.esc-hint button svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; animation: nudge 2s infinite var(--ease); }
@keyframes nudge { 50% { transform: translateY(3px); } }
.esc-look { position: fixed; right: var(--gut); bottom: 26px; z-index: 10; font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; transition: opacity .6s; opacity: 0; }
.esc-started .esc-look { opacity: 1; } .esc-look.out { opacity: 0 !important; }
.esc-look svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* ---------------------------------------------------------------- Puntos de producto */
.esc-spots { position: fixed; inset: 0; pointer-events: none; z-index: 8; }
.esc-spot { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 10px; margin: -17px 0 0 -17px; opacity: 0; transition: opacity .5s var(--d, 0s); }
.esc-spots.on .esc-spot { opacity: 1; }
.esc-spot.hid { opacity: 0 !important; pointer-events: none; }
.esc-tail { position: absolute; left: 17px; top: 17px; width: var(--tl, 0px); height: 1px; transform-origin: 0 50%; transform: rotate(var(--ta, 0rad)) translateX(14px); background: linear-gradient(90deg, rgba(255,255,255,.75), rgba(255,255,255,.25)); pointer-events: none; text-decoration: none; }
.esc-tail::after { content: ''; position: absolute; right: -3px; top: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.8); }
.esc-spot i { position: relative; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1.5px solid rgba(255, 255, 255, .85); flex: none; }
.esc-spot i::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.esc-spot i::after { content: ''; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid #fff; animation: ring 2.4s infinite var(--ease); animation-delay: var(--d, 0s); }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.1); opacity: 0; } }
.esc-spot span { display: flex; flex-direction: column; padding: 7px 13px; border-radius: 12px; background: rgba(250, 246, 240, .94); color: var(--paper-ink); font-size: 13px; line-height: 1.25; text-align: left; opacity: 0; transform: translateX(-6px) scale(.96); transform-origin: left center; transition: .3s var(--ease); pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); white-space: nowrap; }
.esc-spot span small { color: var(--paper-ink-2); font-size: 12px; }
.esc-spot:hover span, .esc-spot:focus-visible span { opacity: 1; transform: none; }
.esc-spot:hover, .esc-spot:focus-visible { z-index: 2; }
.esc-spots.peek .esc-spot span { animation: peek 1.9s var(--ease) calc(0.9s + var(--i, 0) * 1.15s) both; }
@keyframes peek { 0% { opacity: 0; transform: translateX(-6px) scale(.96); } 18%, 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-4px); } }
.esc-spot span em { display: none; font-style: normal; font-size: 11px; font-weight: 700; color: #2f7a4a; margin-top: 2px; }
.esc-spot.in span em { display: block; }
.esc-spot.in i { border-color: #8fe0a8; }
.esc-spot.in i::before { background: #8fe0a8; }
.esc-spot:hover i::before { transform: scale(1.35); background: var(--accent); }
.esc-drawer-on .esc-spots { opacity: 0; transition: opacity .3s; }

/* ---------------------------------------------------------------- Panel lateral */
.esc-scrim { position: fixed; inset: 0; z-index: 29; background: rgba(5, 6, 8, .25); opacity: 0; pointer-events: none; transition: opacity .4s; }
.esc-scrim.on { opacity: 1; pointer-events: auto; }
.esc-drawer { position: fixed; top: 10px; right: 10px; bottom: 10px; width: min(440px, calc(100vw - 20px)); z-index: 30; display: flex; flex-direction: column; background: var(--paper); color: var(--paper-ink); border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); transform: translateX(calc(100% + 30px)); transition: transform .6s var(--ease); outline: none; overflow: hidden; }
.esc-drawer.on { transform: none; }
.esc-dhead { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px 22px; border-bottom: 1px solid var(--paper-line); }
.esc-dhead h2 { flex: 1; margin: 0; display: flex; flex-direction: column; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: -.01em; }
.esc-dhead small { font-family: var(--sans); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-ink-2); font-weight: 700; margin-bottom: 4px; }
.esc-ibtn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-size: 16px; flex: none; transition: background .2s; }
.esc-ibtn:hover { background: #e0d5c4; }
.esc-dbody { flex: 1; overflow-y: auto; padding: 0 22px 22px; overscroll-behavior: contain; }
.esc-dfoot { display: flex; gap: 10px; align-items: center; padding: 14px 18px 18px; border-top: 1px solid var(--paper-line); flex-wrap: wrap; }
.esc-pimg { margin: 0 -22px 18px; aspect-ratio: 1; background: #efe9df; overflow: hidden; }
.esc-pimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
.esc-price { font-size: 22px; font-weight: 700; margin: 0 0 10px; letter-spacing: -.01em; }
.esc-desc { color: var(--paper-ink-2); line-height: 1.6; margin: 0 0 18px; font-size: 15px; }
.esc-opt > span { font-size: 13px; color: var(--paper-ink-2); }
.esc-opt b { color: var(--paper-ink); }
.esc-swatches { display: flex; gap: 10px; margin: 10px 0 18px; flex-wrap: wrap; }
.esc-sw { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); position: relative; transition: transform .2s var(--ease); }
.esc-sw:hover { transform: scale(1.08); }
.esc-sw[aria-pressed="true"]::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--paper-ink); }
.esc-specs { list-style: none; padding: 0; margin: 0 0 18px; border-top: 1px solid var(--paper-line); }
.esc-specs li { padding: 10px 0; border-bottom: 1px solid var(--paper-line); font-size: 14px; }
.esc-links { display: flex; gap: 16px; flex-wrap: wrap; margin: 0; }
.esc-link { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(31, 26, 21, .3); padding: 0; }
.esc-link:hover { text-decoration-color: currentColor; }
.esc-qty { display: inline-flex; align-items: center; height: 50px; border-radius: var(--r); background: var(--paper-2); }
.esc-qty button { width: 42px; height: 100%; font-size: 18px; }
.esc-qty input { width: 34px; border: 0; background: none; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; color: inherit; }
.esc-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.esc-qty.sm { height: 32px; margin-top: 8px; } .esc-qty.sm button { width: 32px; font-size: 15px; } .esc-qty.sm span { min-width: 20px; text-align: center; font-weight: 700; font-size: 13px; }
.esc-add { flex: 1; height: 50px; border-radius: var(--r); background: var(--paper-ink); color: var(--paper); font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background .25s, transform .2s; }
.esc-add:hover { background: #000; }
.esc-add:active { transform: scale(.98); }
.esc-add.busy { opacity: .6; }
.esc-cat { font-family: var(--serif); font-weight: 400; font-size: 20px; margin: 22px 0 12px; }
.esc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.esc-card { display: flex; flex-direction: column; text-align: left; gap: 4px; font-size: 13px; }
.esc-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: #e9e2d6; margin-bottom: 6px; transition: transform .4s var(--ease); }
.esc-card:hover img { transform: scale(1.03); }
.esc-card b { color: var(--paper-ink-2); font-weight: 600; }
.esc-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--paper-line); align-items: start; }
.esc-line img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #e9e2d6; }
.esc-line b { display: block; font-size: 14px; } .esc-line small { color: var(--paper-ink-2); font-size: 12px; }
.esc-line strong { font-size: 14px; }
.esc-sub { width: 100%; display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 4px; }
.esc-empty { color: var(--paper-ink-2); text-align: center; padding: 60px 0; }

/* ---------------------------------------------------------------- Toast y animación a la cesta */
.esc-toast { position: fixed; left: 50%; top: 76px; transform: translate(-50%, -16px); z-index: 40; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: var(--r); background: var(--paper); color: var(--paper-ink); font-size: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: .45s var(--ease); }
.esc-toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.esc-toast.err { background: #ffe1d6; }
.esc-toast button { height: 32px; padding: 0 14px; border-radius: var(--r); background: var(--paper-ink); color: var(--paper); font-size: 13px; font-weight: 700; }
.esc-fly { position: fixed; z-index: 50; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent); pointer-events: none; }

/* ---------------------------------------------------------------- Carga, apertura y final */
.esc-loader { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: #0b0d10; transition: opacity 1s, visibility 1s; }
.esc-loader.out { opacity: 0; visibility: hidden; }
.esc-loader p { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.esc-loader .esc-mark { display: block; text-align: center; font-size: 40px; animation: breathe 2.4s infinite; }
@keyframes breathe { 50% { opacity: .45; } }
.esc-opening, .esc-finale { position: fixed; inset: 0; z-index: 25; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--gut); background: radial-gradient(ellipse at center, rgba(8, 9, 12, .55), rgba(8, 9, 12, .15) 70%); opacity: 0; visibility: hidden; transition: opacity 1.2s, visibility 1.2s; }
.esc-opening.on, .esc-finale.on { opacity: 1; visibility: visible; }
.esc-opening.out { opacity: 0; visibility: hidden; transition-duration: .9s; }
.esc-o1, .esc-o2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6.4vw, 96px); line-height: 1; letter-spacing: -.03em; margin: 0; opacity: 0; transform: translateY(20px); filter: blur(8px); transition: 1.4s var(--ease); }
.esc-o2 { font-style: italic; color: #ffd9b8; margin-top: 8px; }
.esc-on-1 .esc-o1, .esc-on-2 .esc-o2 { opacity: 1; transform: none; filter: none; }
.esc-opening.on .esc-o1 { opacity: 1; transform: none; filter: none; transition-delay: .3s; }
.esc-opening.on .esc-o2 { opacity: 1; transform: none; filter: none; transition-delay: 1.5s; }
.esc-o3 { margin: 26px 0 34px; max-width: 46ch; color: var(--ink-2); line-height: 1.6; opacity: 0; transition: opacity 1.2s 2.6s; }
.esc-opening.on .esc-o3 { opacity: 1; }
.esc-enter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; opacity: 0; transform: translateY(10px); transition: 1s var(--ease) 3s; }
.esc-opening.on .esc-enter { opacity: 1; transform: none; }
.esc-big { height: 52px; padding: 0 26px; font-size: 15px; }
.esc-big.solid { background: var(--accent); color: var(--accent-ink); }
.esc-big.solid:hover { background: #ff9f5c; }
.esc-credit { position: fixed; left: var(--gut); bottom: 18px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); z-index: 26; }
.esc-credit b { color: var(--ink-2); }
.esc-started .esc-credit { display: none; }
.esc-finale h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 92px); line-height: 1; letter-spacing: -.03em; margin: 14px 0 34px; }
.esc-finale h2 em { color: #ffd9b8; }
.esc-finale p { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.esc-finale .esc-enter { opacity: 1; transform: none; transition: none; }
.esc-seo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- Móvil */
@media (max-width: 820px) {
  .esc-top { padding: 12px 14px; gap: 8px; flex-wrap: wrap; }
  .esc-mark { font-size: 24px; }
  .esc-clock { order: 3; margin: 0; width: auto; }
  .esc-actions { gap: 6px; }
  .esc-langs, .esc-weather-wide, .esc-long { display: none; }
  .esc-short { display: inline; }
  .esc-pill { height: 36px; padding: 0 12px; }
  #esc-sound span, #esc-tilt span { display: none; }
  .esc-seg { height: 36px; } .esc-seg button { width: 30px; height: 28px; }
  .esc-rail { right: 10px; } .esc-dot span { display: none; }
  .esc-copy { bottom: 78px; left: 16px; width: calc(100vw - 48px); }
  .esc-hint { bottom: 16px; } .esc-hint > span { display: none; }
  .esc-copy h1 { font-size: 38px; margin: 10px 0 10px; }
  .esc-copy p { font-size: 14.5px; margin-bottom: 14px; }
  .esc-chip { font-size: 12px; } .esc-chip b { display: none; }
  .esc-look { display: none; }
  .esc-drawer { top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: 86vh; border-radius: 22px 22px 0 0; transform: translateY(105%); }
  .esc-pimg { aspect-ratio: 4 / 3; }
  .esc-credit { right: 16px; text-align: center; }
}
@media (max-width: 420px) { .esc-clock span { display: none; } }
@media (prefers-reduced-motion: reduce) { .esc-grain, .esc-spot i::after, .esc-clock i { animation: none; } }

/* Estudio de fotos de producto */
.esc-studio { background: #efe9df; overflow: auto; }
.esc-studio #esc-canvas { position: static; }
.esc-studio > :not(#esc-canvas), .esc-clean > :not(#esc-canvas):not(.esc-shade) { display: none !important; }

/* ---------------------------------------------------------------- Checkout en el panel */
.esc-drawer.wide { width: min(520px, calc(100vw - 20px)); }
.esc-co-loading { display: flex; gap: 6px; justify-content: center; padding: 80px 0; }
.esc-co-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-ink-2); animation: dots 1s infinite var(--ease); }
.esc-co-loading i:nth-child(2) { animation-delay: .15s; } .esc-co-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { transform: translateY(-6px); opacity: .4; } }
.esc-co { padding-top: 16px; }
.esc-co-sum { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--paper-2); }
.esc-co-thumbs { display: flex; }
.esc-co-thumbs img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; background: #e9e2d6; border: 2px solid var(--paper-2); margin-left: -10px; }
.esc-co-thumbs img:first-child { margin-left: 0; }
.esc-co-sum div:nth-child(2) { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.esc-co-sum small { color: var(--paper-ink-2); }
.esc-co section { padding: 22px 0 6px; border-bottom: 1px solid var(--paper-line); }
.esc-co h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: 21px; }
.esc-co h3 span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper-ink); color: var(--paper); font: 700 12px var(--sans); }
.esc-co h4 { margin: 18px 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-ink-2); }
.esc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.esc-f { position: relative; display: block; margin-bottom: 10px; }
.esc-f[hidden] { display: none; }
.esc-f input, .esc-f select { width: 100%; height: 54px; padding: 22px 14px 6px; border-radius: 12px; border: 1px solid rgba(31, 26, 21, .16); background: #fffdf9; font: 500 15px var(--sans); color: var(--paper-ink); outline: none; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.esc-f select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 25px, calc(100% - 13px) 25px; background-size: 5px 5px; background-repeat: no-repeat; }
.esc-f input:focus, .esc-f select:focus { border-color: var(--paper-ink); box-shadow: 0 0 0 3px rgba(255, 138, 61, .22); }
.esc-f input[readonly] { background: var(--paper-2); }
.esc-f > span { position: absolute; left: 15px; top: 17px; font-size: 15px; color: var(--paper-ink-2); pointer-events: none; transition: .2s var(--ease); transform-origin: left top; }
.esc-f input:focus + span, .esc-f input:not(:placeholder-shown) + span, .esc-f.esc-sel > span { transform: translateY(-9px) scale(.74); }
.esc-f em { display: block; font-style: normal; font-size: 12px; color: #b3412b; margin: 4px 2px 0; }
.esc-f em:empty { display: none; }
.esc-f.bad input, .esc-f.bad select { border-color: #c4543a; background: #fff6f2; }
.esc-carriers { transition: opacity .3s; }
.esc-carriers.busy { opacity: .45; pointer-events: none; }
.esc-carriers.in .esc-opt-card { animation: rise .45s var(--ease) both; }
.esc-carriers.in .esc-opt-card:nth-of-type(2) { animation-delay: .06s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.esc-opt-card { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 8px; border-radius: 14px; border: 1px solid rgba(31, 26, 21, .16); background: #fffdf9; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.esc-opt-card input { position: absolute; opacity: 0; pointer-events: none; }
.esc-opt-card > i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(31, 26, 21, .35); position: relative; }
.esc-opt-card input:checked ~ i { border-color: var(--paper-ink); }
.esc-opt-card input:checked ~ i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--paper-ink); }
.esc-opt-card:has(input:checked) { border-color: var(--paper-ink); background: #fff; box-shadow: 0 6px 18px rgba(31, 26, 21, .07); }
.esc-opt-card input:focus-visible ~ i { box-shadow: 0 0 0 3px rgba(255, 138, 61, .35); }
.esc-opt-card span { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.esc-opt-card small { color: var(--paper-ink-2); font-size: 12.5px; margin-top: 2px; line-height: 1.4; }
.esc-opt-card strong { font-size: 14px; }
.esc-totals { padding: 18px 0 6px; font-size: 14px; }
.esc-totals div { display: flex; justify-content: space-between; padding: 4px 0; color: var(--paper-ink-2); }
.esc-totals .grand { color: var(--paper-ink); font-size: 18px; padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--paper-line); }
.esc-totals .grand span { display: flex; flex-direction: column; }
.esc-totals .grand small { font-size: 11px; color: var(--paper-ink-2); }
.flash { display: inline-block; animation: flash .7s var(--ease); }
@keyframes flash { 30% { color: var(--accent); transform: scale(1.06); } }
.esc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; padding: 8px 0; cursor: pointer; flex-wrap: wrap; position: relative; }
.esc-check input { position: absolute; opacity: 0; }
.esc-check > i { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(31, 26, 21, .35); display: grid; place-items: center; transition: .2s; }
.esc-check input:checked ~ i { background: var(--paper-ink); border-color: var(--paper-ink); }
.esc-check input:checked ~ i::after { content: ""; width: 9px; height: 5px; border: 2px solid var(--paper); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.esc-check span { flex: 1; }
.esc-check a { color: inherit; text-underline-offset: 3px; }
.esc-check em { width: 100%; font-style: normal; font-size: 12px; color: #b3412b; padding-left: 30px; }
.esc-check em:empty { display: none; }
.esc-check.bad > i { border-color: #c4543a; }
.esc-co-err { color: #b3412b; font-size: 13px; margin: 6px 0 0; }
.esc-co-err:empty { display: none; }
.esc-pay { justify-content: space-between; padding: 0 22px; gap: 12px; }
.esc-pay b { font-weight: 700; }
.esc-pay.busy { opacity: .7; }
.esc-secure { width: 100%; margin: 2px 0 0; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--paper-ink-2); }
.esc-secure svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.esc-done { text-align: center; padding: 34px 6px 10px; }
.esc-done-mark svg { width: 64px; height: 64px; fill: none; stroke: #2f7a4a; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.esc-done-mark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .8s var(--ease) forwards; }
.esc-done-mark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s var(--ease) .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.esc-done h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 14px 0 10px; }
.esc-done h3 em { color: #c4683b; }
.esc-done > p { color: var(--paper-ink-2); line-height: 1.6; font-size: 14.5px; margin: 0 auto 18px; max-width: 38ch; }
.esc-bank { text-align: left; margin: 0 0 18px; padding: 6px 16px; border-radius: 16px; background: var(--paper-2); }
.esc-bank div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--paper-line); font-size: 14px; }
.esc-bank div:last-child { border-bottom: 0; }
.esc-bank dt { color: var(--paper-ink-2); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.esc-bank dd { margin: 0; display: flex; justify-content: space-between; gap: 8px; font-weight: 600; word-break: break-word; }
.esc-bank button { flex: none; width: 26px; height: 26px; border-radius: 8px; background: #fff; font-size: 13px; }
.esc-done-mail { font-size: 13px; }
@media (max-width: 820px) { .esc-drawer.wide { width: 100%; } .esc-row { grid-template-columns: 1fr; gap: 0; } }
