:root {
  --cream: #f7f1e8;
  --paper: #fffaf3;
  --ink: #2e2219;
  --muted: #7a6656;
  --line: #e8ddce;
  --leather: #8a5a3b;
  --espresso: #3b2a20;
  --sage: #8a9a7b;
  --accent: #1F8A5B;
  --rose: #fbe7cc;
  --radius: 14px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(59, 42, 32, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo svg { color: var(--accent); }
.logo { color: var(--espresso); gap: 10px; }
.logo-mark { width: 36px; height: 36px; flex: none; }
.logo-amp { font-family: 'Pinyon Script', cursive; color: var(--accent); font-size: 1.6em; line-height: 0; margin: 0 .05em; }
.nav { display: flex; gap: 22px; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a:hover { color: #a0482a; }
/* Cesta: botón de color terracota, bien visible en todas las páginas */
.cart {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 16px 0 13px; border-radius: 999px; border: 0; text-decoration: none;
  background: linear-gradient(135deg, #1F8A5B, #1F8A5B); color: #fff8ee;
  box-shadow: 0 4px 14px rgba(31, 138, 91, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  font-weight: 600; font-size: .92rem;
}
.cart::after { content: 'Cesta'; }
.cart svg { color: #fff8ee; }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 11px; background: #1F8A5B; color: #3b2a20; font-size: .78rem; font-weight: 700; line-height: 22px; text-align: center;
  box-shadow: 0 0 0 2px var(--cream), 0 2px 6px rgba(59, 42, 32, .3);
}
@media (max-width: 720px) { .nav { display: none; } }

/* ---------- Vídeo de portada ---------- */
.hero { position: relative; height: min(86vh, 760px); min-height: 460px; overflow: hidden; background: var(--espresso); color: #fff8ee; }
.hero video, .hero .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .hero-fallback { display: none; background:
  radial-gradient(45% 65% at 68% 45%, #3b2a20, transparent 75%),
  linear-gradient(180deg, #1a120d, #0f0a07); }

/* ---------- Escenario con foco ---------- */
.hero-stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
/* Todo se coloca a partir del mismo tamaño (--a) para que libro, sombra, reflejo y luz encajen */
.hero-stage { --x: 68%; --top: 6%; --a: min(36vw, 420px); }
.hero-stage .lamp { position: absolute; top: -18px; left: var(--x); width: 120px; height: 36px; margin-left: -60px; border-radius: 0 0 60px 60px; background: radial-gradient(60% 90% at 50% 0, #fff6df, #e7c98f 40%, rgba(231, 201, 143, 0) 75%); filter: blur(1px); }
.hero-stage .beam { position: absolute; top: 0; left: var(--x); width: calc(var(--a) * 1.5); height: calc(var(--top) + var(--a) * .9); transform: translateX(-50%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 238, 205, .36), rgba(255, 228, 185, .12) 60%, rgba(255, 220, 170, .03));
  filter: blur(7px); mix-blend-mode: screen; animation: beamFlicker 7s ease-in-out infinite; }
.hero-stage .beam .core { position: absolute; inset: 0; clip-path: polygon(47% 0, 53% 0, 72% 100%, 28% 100%); background: linear-gradient(180deg, rgba(255, 245, 225, .35), rgba(255, 240, 215, .05)); }
.hero-stage .beam .haze { position: absolute; inset: -20%; opacity: .55; animation: hazeDrift 18s linear infinite;
  background: radial-gradient(30% 12% at 30% 30%, rgba(255, 240, 220, .25), transparent), radial-gradient(25% 10% at 70% 55%, rgba(255, 240, 220, .2), transparent), radial-gradient(35% 14% at 45% 80%, rgba(255, 240, 220, .18), transparent); }
.hero-stage .floor { position: absolute; left: 0; right: 0; bottom: 0; top: calc(var(--top) + var(--a) * .85);
  background: radial-gradient(40% 30% at var(--x) 0, rgba(120, 82, 52, .35), transparent 70%), linear-gradient(180deg, #24180f, #3b2a20 45%, #0a0604); }
.hero-stage .floor-light { position: absolute; left: var(--x); top: calc(var(--top) + var(--a) * .85 - 26px); width: calc(var(--a) * 1.3); height: 64px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 226, 180, .3), rgba(255, 226, 180, .07) 60%, transparent); }
/* Escaneo 3D real: ocupa la misma zona que el cuaderno dibujado, con algo más de aire alrededor */
/* Foto del cuaderno real bajo el foco: flota, se balancea un poco y la luz la recorre */
.hero-photo { position: absolute; left: var(--x); top: calc(var(--top) - var(--a) * .02); width: var(--a); aspect-ratio: 1; transform: translateX(-50%); display: none; perspective: 900px; }
.hero.hero-photo-ready .hero-photo { display: block; }
.hero.hero-photo-ready .hero-anchor { display: none !important; }
.photo-sway { position: absolute; inset: 0; transform-style: preserve-3d; animation: photoSway 9s ease-in-out infinite; }
.photo-sway img { width: 100%; height: 100%; object-fit: contain; display: block;
  filter: brightness(.93) contrast(1.06) saturate(1.04) drop-shadow(0 18px 22px rgba(0, 0, 0, .45)); animation: photoLight 9s ease-in-out infinite; }
.photo-shadow { position: absolute; left: 50%; bottom: 8%; width: 46%; height: 6%; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .75), rgba(0, 0, 0, .3) 60%, transparent); animation: photoShadow 9s ease-in-out infinite; }
@keyframes photoSway { 0%, 100% { transform: translateY(0) rotateY(-9deg) rotateZ(-.6deg); } 50% { transform: translateY(-10px) rotateY(9deg) rotateZ(.6deg); } }
@keyframes photoLight { 0%, 100% { filter: brightness(.9) contrast(1.06) saturate(1.04) drop-shadow(0 18px 22px rgba(0, 0, 0, .45)); } 50% { filter: brightness(1) contrast(1.06) saturate(1.04) drop-shadow(0 26px 26px rgba(0, 0, 0, .4)); } }
@keyframes photoShadow { 0%, 100% { transform: translateX(-50%) scale(1); opacity: .9; } 50% { transform: translateX(-50%) scale(.88); opacity: .7; } }
@keyframes scanIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } }
.hero-anchor { position: absolute; left: var(--x); top: var(--top); width: var(--a); aspect-ratio: 1; transform: translateX(-50%); display: none; }
.hero.no-video .hero-anchor { display: block; }
.hero-float { position: absolute; inset: 0; animation: heroFloat 6s ease-in-out infinite; }
.hero-reflect { position: absolute; left: 0; top: 70%; width: 100%; aspect-ratio: 1; transform: scaleY(-1); animation: heroFloatR 6s ease-in-out infinite; }
.hero-reflect .v-face { opacity: .5; }
.reflect-fade { position: absolute; inset: -2px; background: linear-gradient(to top, rgba(18, 12, 8, .45), #3b2a20 48%); }
.hero-viewer { position: absolute; inset: 0; }
.hero-viewer .v-front::after { border-radius: 16px; }
.contact-shadow { position: absolute; left: 50%; top: 82%; width: 58%; height: 7%; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .7), rgba(0, 0, 0, .25) 60%, transparent); }
.hero-stage .bokeh i { position: absolute; border-radius: 50%; filter: blur(14px); background: rgba(240, 190, 120, .16); animation: bokehPulse 9s ease-in-out infinite; }
.hero-stage .bokeh i:nth-child(1) { left: 6%; top: 18%; width: 90px; height: 90px; }
.hero-stage .bokeh i:nth-child(2) { left: 22%; top: 8%; width: 50px; height: 50px; animation-delay: -3s; }
.hero-stage .bokeh i:nth-child(3) { left: 40%; top: 24%; width: 70px; height: 70px; animation-delay: -6s; background: rgba(200, 140, 110, .12); }
.hero-stage .bokeh i:nth-child(4) { left: 88%; top: 12%; width: 60px; height: 60px; animation-delay: -1.5s; }
.hero-stage .bokeh i:nth-child(5) { left: 94%; top: 40%; width: 40px; height: 40px; animation-delay: -4.5s; }
.hero-stage .vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at var(--x) 40%, transparent 45%, rgba(0, 0, 0, .55)); }
.hero-stage .dust { position: absolute; left: var(--x); top: 0; width: calc(var(--a) * 1.5); height: calc(var(--top) + var(--a) * .9); transform: translateX(-50%); }
.hero-stage .dust i { position: absolute; border-radius: 50%; background: rgba(255, 240, 210, .85); box-shadow: 0 0 6px rgba(255, 230, 190, .8); animation: dustFloat linear infinite; }
@keyframes dustFloat { 0% { transform: translate(0, 20px); opacity: 0; } 20% { opacity: .9; } 80% { opacity: .6; } 100% { transform: translate(18px, -70px); opacity: 0; } }
@keyframes beamFlicker { 0%, 100% { opacity: 1; } 45% { opacity: .93; } 50% { opacity: .98; } 70% { opacity: .91; } }
@keyframes hazeDrift { from { transform: translateX(-8%); } 50% { transform: translateX(8%) translateY(-3%); } to { transform: translateX(-8%); } }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes heroFloatR { 0%, 100% { transform: scaleY(-1) translateY(0); } 50% { transform: scaleY(-1) translateY(-8px); } }
@keyframes bokehPulse { 0%, 100% { opacity: .6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }
@media (max-width: 760px) {
  .hero-stage { --x: 50%; --top: 4%; --a: 62vw; }
  .hero-anchor { opacity: .9; }
}
.hero-art { display: none; position: absolute; z-index: 1; right: 6%; top: 50%; width: min(42vw, 500px); transform: translateY(-54%) rotate(-6deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.hero.no-video .hero-art { display: block; }
@media (max-width: 760px) { .hero-art { right: -18%; width: 80vw; opacity: .35; } }
.hero.no-video .hero-fallback { display: block; }
.hero.no-video video { display: none; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(59, 42, 32, .15) 30%, rgba(59, 42, 32, .65)); }
.hero-content { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(32px, 7vh, 72px); }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); max-width: 14ch; }
.hero p { font-size: 1.12rem; max-width: 42ch; margin: 14px 0 26px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sound-toggle {
  position: absolute; z-index: 3; right: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 248, 238, .35);
  background: rgba(59, 42, 32, .45); color: #fff8ee; backdrop-filter: blur(6px); font-size: .9rem;
}
.sound-toggle:hover { background: rgba(59, 42, 32, .65); }
@media (max-width: 600px) { .sound-toggle { top: 16px; right: 16px; bottom: auto; } }
.sound-toggle .on { display: none; }
.sound-toggle[aria-pressed="true"] .on { display: inline; }
.sound-toggle[aria-pressed="true"] .off { display: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; text-decoration: none; transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #fff8ee; color: var(--espresso); }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: rgba(255, 248, 238, .5); color: #fff8ee; }
.btn-ghost:hover { background: rgba(255, 248, 238, .1); }
.btn-dark { background: var(--espresso); color: #fff8ee; }
.btn-dark:hover { background: #2a1d16; }

/* ---------- Muro estilo Instagram ---------- */
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { margin: 6px 0 0; color: var(--muted); }

.stories { display: flex; gap: 18px; overflow-x: auto; padding: 4px 2px 18px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: 0 0 auto; display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 0; font-size: .82rem; color: var(--muted); }
.story-ring { width: 68px; height: 68px; border-radius: 50%; padding: 3px; background: var(--line); }
.story[aria-pressed="true"] .story-ring { background: linear-gradient(135deg, var(--accent), #1F8A5B, var(--sage)); }
.story[aria-pressed="true"] { color: var(--ink); }
.story-ring > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #efe4d3; border: 3px solid var(--cream); overflow: hidden; }
.story-ring svg { width: 118%; height: 118%; max-width: none; }

.feed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 900px) { .feed { gap: 10px; } }
.post-card { display: grid; gap: 8px; align-content: start; }
.dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0 4px 10px; }
.dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--cream); box-shadow: 0 0 0 1px var(--line); padding: 0; transition: transform .15s ease; }
.dot:hover { transform: scale(1.2); }
.dot[aria-pressed="true"] { box-shadow: 0 0 0 1.5px var(--espresso); }
.dot-more { font-size: .72rem; font-weight: 600; color: var(--muted); text-decoration: none; line-height: 16px; padding: 0 2px; }
.dot-more:hover { color: var(--ink); }
@media (max-width: 600px) { .dots { gap: 4px; } .dot { width: 11px; height: 11px; border-width: 1.5px; } }
.post { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--paper); text-decoration: none; border-radius: 4px; }
.post svg, .post img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:nth-child(6n+1) .post { background: #efe4d3; }
.post-card:nth-child(6n+3) .post { background: #e9ebe1; }
.post-card:nth-child(6n+5) .post { background: #f3e5df; }
.post-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px;
  padding: 16px; text-align: center; color: #fff8ee;
  background: rgba(59, 42, 32, .58); opacity: 0; transition: opacity .2s ease;
}
.post-overlay { pointer-events: none; }
.post:focus-visible .post-overlay { opacity: 1; }
/* El efecto al pasar el ratón solo en ordenadores: en el móvil (iPhone) un efecto
   hover hace que el primer toque no abra el producto. */
@media (hover: hover) and (pointer: fine) {
  .post:hover .post-overlay { opacity: 1; }
  .post:hover svg, .post:hover img, .post:focus-visible svg, .post:focus-visible img { transform: scale(1.04); }
}
/* En pantallas táctiles: el precio se ve siempre en una franja abajo y un toque abre el producto */
@media (hover: none), (pointer: coarse) {
  .post-overlay { opacity: 1; inset: auto 0 0 0; padding: 18px 8px 7px; justify-content: flex-end; gap: 2px;
    background: linear-gradient(180deg, rgba(59, 42, 32, 0), rgba(59, 42, 32, .78)); font-size: .78rem; }
  .post-overlay .post-cta { display: none; }
  .post { -webkit-tap-highlight-color: rgba(31, 138, 91, .25); touch-action: manipulation; }
}
.post-badge.real { background: var(--espresso); color: #fff8ee; }
.post-stats { display: flex; gap: 16px; font-weight: 600; }
.post-stats span { display: inline-flex; align-items: center; gap: 6px; }
.post-title { font-family: var(--serif); font-size: 1.05rem; }
.post-cta { font-size: .85rem; border-bottom: 1px solid currentColor; }
.post-badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-size: .72rem; color: var(--espresso); }
@media (max-width: 600px) {
  .post-overlay { gap: 4px; padding: 8px; }
  .post-title, .post-cta { display: none; }
  .post-badge { font-size: .62rem; padding: 2px 7px; top: 6px; left: 6px; }
}

/* ---------- BookTok ---------- */
.books { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .books { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.book-meta { overflow-wrap: anywhere; hyphens: auto; position: relative; z-index: 1; padding-top: 16px; }
#booktok { overflow-x: clip; }
.book { text-decoration: none; display: grid; gap: 10px; }
.book-cover {
  aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; padding: 18px 14px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: inset 6px 0 0 rgba(0, 0, 0, .18), var(--shadow); transition: transform .2s ease;
}
.book:hover .book-cover { transform: translateY(-4px) rotate(-1deg); }
.book-cover strong { font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.15; }
.book-cover small { font-size: .78rem; opacity: .85; }
.book-cover { position: relative; overflow: visible; }
.book-badge { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--espresso); font-size: .7rem; font-weight: 500; }
.book-cover strong { margin-top: auto; }
.book-cover small { margin-bottom: 62%; }
/* la funda de cuero asoma delante del libro */
.book-sleeve { position: absolute; right: -10%; bottom: -6%; width: 52%; transform: rotate(7deg); transition: transform .25s ease; filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .9)) drop-shadow(0 10px 12px rgba(59, 42, 32, .45)); pointer-events: none; }
.book-sleeve svg { width: 100%; height: 100%; display: block; }
.book:hover .book-sleeve { transform: rotate(2deg) translate(-4px, -6px); }
.books { padding-right: 14px; }
.book-meta { font-size: .88rem; color: var(--muted); }
.book-meta b { display: block; color: var(--ink); font-weight: 500; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step svg { color: var(--accent); margin-bottom: 10px; }
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }


.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .footer-legal { width: 100%; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.credit a { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); }
.credit a:hover { color: var(--accent); }

/* ---------- Paso previo a la compra ---------- */
.checkout { width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 1px solid var(--line); border-radius: 20px; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(59, 42, 32, .25); }
.checkout::backdrop { background: rgba(59, 42, 32, .45); backdrop-filter: blur(2px); }
.checkout form { padding: 24px; display: grid; gap: 18px; }
.checkout h2 { font-size: 1.5rem; }
.checkout .lead { margin: 4px 0 0; color: var(--muted); }
.checkout fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.checkout legend { font-size: .9rem; margin-bottom: 10px; padding: 0; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; }
.sources label { position: relative; }
.sources input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sources span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); font-size: .9rem; }
.sources span small { color: var(--accent); margin-left: 4px; font-weight: 600; }
.sources input:checked + span { background: var(--espresso); border-color: var(--espresso); color: #fff8ee; }
.sources input:checked + span small { color: #f3d6cf; }
.sources input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.discount-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--rose); font-size: .9rem; }
.discount-note[hidden] { display: none; }
.stream-opt { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; padding: 14px; border: 1px dashed var(--accent); border-radius: 14px; background: var(--cream); cursor: pointer; }
.stream-opt input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--espresso); }
.stream-opt b { font-weight: 600; }
.stream-opt small { grid-column: 2; color: var(--muted); }
.stream-user[hidden] { display: none; }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.checkout-total s { color: var(--muted); margin-right: 8px; font-size: .95rem; }
.checkout-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
/* Fase 1: reserva gratis del diseño */
.reserve #reserve-ask, .reserve #reserve-done { display: grid; gap: 8px; }
.reserve #reserve-ask[hidden], .reserve #reserve-done[hidden] { display: none; }
.reserve .group-label { display: block; margin-top: 6px; font-size: .9rem; }
.reserve .text-field { width: 100%; }
.reserve-summary { list-style: none; margin: 8px 0 4px; padding: 10px 14px; border-radius: 12px; background: #f6ead2; border: 1px solid #e3cc9f; font-size: .88rem; line-height: 1.5; }
.reserve-summary .head { font-weight: 600; }
.reserve-summary .est { margin-top: 4px; color: #8a4a22; font-weight: 600; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 8px; font-size: .84rem; line-height: 1.4; color: var(--muted); }
.consent input { margin-top: 3px; flex: none; }
.btn-plain { background: none; border-color: var(--line); color: var(--ink); }
.btn-plain:hover { background: var(--cream); }

/* ---------- Personalizador ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding: 18px 0 8px; }
.crumbs a { text-decoration: none; }
.studio { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 80px; align-items: start; }
@media (max-width: 880px) { .studio { grid-template-columns: 1fr; gap: 20px; } }
.stage-col { position: sticky; top: 84px; display: grid; gap: 12px; }
@media (max-width: 880px) { .stage-col { position: relative; top: 0; } }
.gallery { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gallery[hidden] { display: none; }
.thumb { flex: 1 1 0; min-width: 72px; padding: 6px 4px 8px; border-radius: 12px; border: 2px solid transparent; background: #efe4d3; font-size: .74rem; color: var(--muted); box-shadow: 0 0 0 1px var(--line); display: grid; gap: 2px; justify-items: center; }
.thumb svg { width: 100%; height: auto; aspect-ratio: 1; }
.thumb[aria-pressed="true"] { border-color: var(--espresso); color: var(--ink); }
.stage {
  position: relative; border-radius: 20px; background:
  radial-gradient(70% 60% at 50% 45%, #fffaf3, #efe4d3);
  border: 1px solid var(--line); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden;
}
.stage svg { width: 92%; height: 92%; }
.stage svg.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.015); } }
.stage-note { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 4px 10px; border-radius: 999px; }
.stage-note::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6fa36a; }

.switcher { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.switcher a { text-decoration: none; font-size: .85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.switcher a[aria-current="page"] { background: var(--espresso); color: #fff8ee; border-color: var(--espresso); }
.panel h1 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.panel .intro { color: var(--muted); margin: 10px 0 18px; }
.price { font-family: var(--serif); font-size: 1.6rem; }

.group { border-top: 1px solid var(--line); padding: 16px 0; }
.group-label { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 10px; }
.group-label span { color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .9rem; }
.pill small { color: var(--muted); margin-left: 4px; }
.pill[aria-pressed="true"] { border-color: var(--espresso); background: var(--espresso); color: #fff8ee; }
.pill[aria-pressed="true"] small { color: #e6d6c2; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); padding: 0; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--espresso); }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; color: var(--leather); font-size: .72rem; }
.icon-btn[aria-pressed="true"] { border-color: var(--espresso); background: var(--espresso); color: #fff8ee; }
.text-field { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font: inherit; }
.text-field:focus { outline: none; border-color: var(--accent); }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 20px; }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; color: var(--muted); font-size: .9rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--espresso); color: #fff8ee; padding: 12px 18px; border-radius: 999px; transition: .25s ease; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Asistente ---------- */
.assistant {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; width: min(360px, calc(100vw - 32px));
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(59, 42, 32, .18);
  display: flex; flex-direction: column; max-height: min(560px, calc(100vh - 110px));
}
.assistant[data-open="false"] .assistant-body { display: none; }
.assistant-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 0; background: none; text-align: left; width: 100%; border-bottom: 1px solid var(--line); }
.assistant[data-open="false"] .assistant-head { border-bottom: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #efe4d3; display: grid; place-items: center; color: var(--accent); flex: none; }
.assistant-head b { display: block; font-weight: 600; font-size: .95rem; }
.assistant-head small { color: var(--muted); }
.assistant-head .chev { margin-left: auto; transition: transform .2s; }
.assistant[data-open="false"] .chev { transform: rotate(180deg); }
.assistant-body { display: flex; flex-direction: column; min-height: 0; }
@media (min-width: 1200px) {
  .wrap-wide { width: min(1440px, 100% - 48px); }
  .studio { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 340px; gap: 32px; }
  .assistant { position: sticky; top: 84px; right: auto; bottom: auto; width: auto; max-height: calc(100vh - 110px); box-shadow: var(--shadow); }
  .assistant-head { cursor: default; }
  .assistant .chev { display: none; }
}
.messages { overflow-y: auto; padding: 14px; display: grid; gap: 10px; align-content: start; min-height: 160px; }
.msg { max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.msg.bot { background: #f1e8db; border-bottom-left-radius: 4px; }
.msg.user { background: var(--espresso); color: #fff8ee; justify-self: end; border-bottom-right-radius: 4px; }
.msg.typing { color: var(--muted); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; }
.chip { font-size: .8rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); }
.chip:hover { border-color: var(--accent); }
.chip-prefs { background: var(--paper); }
.prefs-box { flex-basis: 100%; display: grid; gap: 6px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.prefs-box[hidden] { display: none; }
.prefs-box label { font-size: .8rem; color: var(--muted); }
.prefs-box textarea { width: 100%; font: inherit; font-size: .85rem; padding: 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--cream); resize: vertical; }
.prefs-acts { display: flex; gap: 6px; }
.composer { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.composer input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); font: inherit; font-size: .92rem; }
.composer button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--espresso); color: #fff8ee; display: grid; place-items: center; flex: none; }

/* ---------- Diseñador paso a paso ---------- */
.designer { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; padding: 24px 0 80px; }
.designer .stage-col { position: sticky; top: 84px; display: grid; gap: 12px; }
@media (max-width: 880px) {
  .designer { grid-template-columns: 1fr; gap: 16px; padding-top: 12px; }
  .designer .stage-col { top: 64px; z-index: 5; background: var(--cream); padding-bottom: 8px; }
  .designer .viewer { aspect-ratio: auto; height: 44vh; min-height: 260px; }
}
.viewer {
  position: relative; aspect-ratio: 1; border-radius: 22px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(70% 60% at 50% 42%, #fffaf3, #eadfcd);
  cursor: grab; touch-action: none; user-select: none; outline: none;
}
.viewer:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.viewer.grabbing { cursor: grabbing; }
.v-scene { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1400px; }
.v-obj { position: relative; transform-style: preserve-3d; will-change: transform; }
.v-face { position: absolute; top: 0; left: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.v-face svg { width: 100%; height: 100%; display: block; overflow: visible; }
.v-side { box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); }
/* Luz que cambia al girar (valores calculados en viewer.js) */
.v-front { filter: brightness(var(--lf, 1)); }
.v-back { filter: brightness(var(--lb, 1)); }
.v-spine { filter: brightness(var(--ls, .8)); }
.v-edge { filter: brightness(var(--le, .8)); }
.v-top { filter: brightness(1.08); }
.v-bottom { filter: brightness(.6); }
.v-front::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: 12px;
  background: linear-gradient(105deg, transparent calc(var(--sheen, 50%) - 22%), rgba(255, 255, 255, .13) var(--sheen, 50%), transparent calc(var(--sheen, 50%) + 22%)); }
.viewer.editing .v-front::after { display: none; }
.viewer::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 7%; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(59, 42, 32, .22), transparent); pointer-events: none; }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.angles { display: flex; gap: 6px; flex-wrap: wrap; }
.angles button { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .85rem; }
.angles button:hover { border-color: var(--espresso); }
.viewer-hint { font-size: .82rem; color: var(--muted); }

.wizard .crumbs { padding-top: 0; }
.wizard h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.wizard .intro { color: var(--muted); margin: 8px 0 18px; }
.stepper { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 6px; flex-wrap: wrap; counter-reset: s; }
.stepper button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: .86rem; color: var(--muted); }
.stepper .num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); font-size: .78rem; font-weight: 600; }
.stepper button.done { color: var(--ink); }
.stepper button.done .num { background: var(--sage); color: #fff; }
.stepper button[aria-current="step"] { background: var(--espresso); border-color: var(--espresso); color: #fff8ee; }
.stepper button[aria-current="step"] .num { background: #fff8ee; color: var(--espresso); }
.step-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px; animation: stepIn .35s ease; }
.step-panel h2 { font-size: 1.35rem; }
.step-hint { color: var(--muted); margin: 6px 0 4px; }
.step-panel .group:first-of-type { border-top: 0; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } }
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.step-nav .btn:disabled { opacity: .4; cursor: default; }
.summary-list { display: grid; gap: 0; margin: 12px 0 0; }
.summary-list div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; text-align: right; }
.ship-note { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }

/* ---------- Asistente mínimo ---------- */
.helper { position: fixed; left: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.helper-toggle { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--espresso); color: #fff8ee; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(59, 42, 32, .25); transition: transform .15s ease; }
.helper-toggle:hover { transform: translateY(-2px); }
.helper[data-open="true"] .helper-toggle { background: var(--accent); }
.helper-panel { width: min(300px, calc(100vw - 40px)); max-height: min(420px, calc(100vh - 160px)); display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(59, 42, 32, .18); overflow: hidden; }
.helper-panel[hidden] { display: none; }
.helper .messages { min-height: 90px; padding: 12px; }
.helper .msg { font-size: .88rem; }
.helper .chips { padding: 0 12px 8px; }
.helper .composer { padding: 8px; }
.brewing { display: inline-flex; align-items: center; color: var(--espresso); padding: 6px 10px; }
.pour-liquid { transform: translateY(18px); animation: fillCup 1.5s ease-in-out forwards; }
.pour-stream { stroke-dasharray: 28; stroke-dashoffset: 28; animation: pour 1.5s ease-in-out forwards; }
@keyframes fillCup { 15% { transform: translateY(18px); } 100% { transform: translateY(3px); } }
@keyframes pour { 0% { stroke-dashoffset: 28; opacity: 1; } 25% { stroke-dashoffset: 0; } 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: -28; opacity: 0; } }

/* ---------- Tapa que se abre y diseño arrastrable ---------- */
.v-cover { position: absolute; top: 0; left: 0; transform-style: preserve-3d; transform-origin: left center; transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.v-page { box-shadow: inset 6px 0 10px rgba(0, 0, 0, .12); }
.viewer.editing { cursor: default; }
.viewer.editing .drag-item { cursor: move; }
.viewer.editing .drag-box { stroke: rgba(255, 255, 255, .55); stroke-width: 1; stroke-dasharray: 4 3; }
.viewer.editing .drag-item:hover .drag-box, .viewer .drag-item.dragging .drag-box { stroke: #1F8A5B; stroke-width: 1.5; }
.edit-hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 2; font-size: .8rem; color: var(--ink); background: rgba(255, 255, 255, .92); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.edit-hint[hidden] { display: none; }
.angles button[aria-pressed="true"] { background: var(--espresso); color: #fff8ee; border-color: var(--espresso); }

/* Texto que crece y deslizadores */
textarea.text-field { resize: vertical; min-height: 48px; line-height: 1.45; overflow: hidden; font: inherit; }
.text-count { display: block; text-align: right; font-size: .78rem; color: var(--muted); margin-top: 4px; }
.range { width: 100%; accent-color: var(--espresso); }

/* Sube tu imagen */
.create-icon { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.create-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px dashed var(--accent); background: var(--rose); font-size: .88rem; cursor: pointer; }
#upload-file:focus-visible + .create-btn, .create-btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.up-thumb { width: 30px; height: 30px; object-fit: contain; border-radius: 6px; background: #fff; }
.icon-msg { font-size: .85rem; color: var(--muted); margin: 0; width: 100%; }
.icon-msg.bad { color: #a3473a; }
/* Aviso fijo: solo dibujos de líneas */
.icon-note { width: 100%; margin: 0; padding: 9px 12px; border-radius: 10px; background: #f6ead2; border: 1px solid #e3cc9f; color: var(--ink); font-size: .85rem; line-height: 1.4; }
.icon-note b { color: #8a4a22; }

/* Cartel del asistente */
.helper-sign { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; font-size: .85rem; box-shadow: 0 8px 20px rgba(59, 42, 32, .12); display: flex; align-items: center; gap: 8px; max-width: 230px; animation: signIn .4s ease .6s both; }
.helper-sign b { font-weight: 600; }
.helper-sign button { border: 0; background: none; color: var(--muted); padding: 0 2px; font-size: 1rem; line-height: 1; }
.helper[data-open="true"] .helper-sign, .helper-sign[hidden] { display: none; }
@keyframes signIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Código de descuento ---------- */
.code-box[hidden] { display: none; }
.code-row { display: flex; gap: 8px; }
.code-row .text-field { text-transform: uppercase; letter-spacing: .08em; }
.code-note { margin: 8px 0 0; font-size: .88rem; color: var(--muted); min-height: 1.2em; }
.code-note.ok { color: #4f7a46; }
.code-note.bad { color: #a3473a; }

/* ---------- Cesta: se mueve al pasar el ratón y salta al recibir un libro ---------- */
.cart svg { transition: transform .2s ease; }
.cart:hover svg, .cart:focus-visible svg { animation: cartWiggle .6s ease; }
.cart:hover { background: linear-gradient(135deg, #167A4E, #1F8A5B); box-shadow: 0 6px 18px rgba(31, 138, 91, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.cart[aria-current="page"] { box-shadow: 0 0 0 3px var(--rose), 0 4px 14px rgba(31, 138, 91, .35); }
.cart.bump { animation: cartBump .55s cubic-bezier(.3, 1.6, .5, 1); }
/* copia pequeña del producto que vuela a la cesta */
.fly-to-cart { position: fixed; z-index: 9999; pointer-events: none; will-change: transform; filter: drop-shadow(0 10px 14px rgba(59, 42, 32, .3)); }
.fly-to-cart svg { width: 100%; height: 100%; }
/* ya vendidos */
.sold-card .post-badge.real { background: #8a2b2b; }
/* cesta en fase 1: la compra se hace en Vinted (sin pasos, envío ni envoltorio) */
.vinted-mode .trail, .vinted-mode .gift, .vinted-mode .co-side { display: none; }
.vinted-mode .checkout-grid { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.vinted-box { display: grid; gap: 10px; margin-top: 18px; padding: 18px; border-radius: 16px; border: 1px solid #cfe0d6; background: #f1f8f4; }
.vinted-box h2 { font-size: 1.4rem; }
.vinted-box p { margin: 0; color: var(--muted); }
.vinted-list { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 8px; }
.vinted-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.btn-vinted { background: #09b1ba; }
.btn-vinted:hover { background: #078e95; }
/* teléfono con prefijo del país */
.phone-row { display: flex; gap: 6px; }
.phone-row select { flex: 0 0 auto; max-width: 46%; }
.phone-row input { flex: 1; min-width: 0; }
/* reparaciones */
.repair-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.repair-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.repair-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.repair-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.repair-note { margin: 14px 0; font-size: .9rem; color: var(--muted); }
.repair-form { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.repair-form[hidden] { display: none; }
.repair-form label { display: grid; gap: 4px; font-size: .88rem; }
.repair-form .consent { display: flex; }
.repair-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.repair-form .text-field { width: 100%; }
.repair-form .btn { justify-self: start; }
.repair-done { padding: 16px; border-radius: 14px; background: #eef4e8; border: 1px solid #cfe0c2; }
@media (max-width: 760px) { .repair-grid, .repair-row { grid-template-columns: 1fr; } }
/* opiniones: página para dejarla y sección en la portada */
.review-page { padding: 40px 0 80px; }
.review-card { max-width: 560px; margin: 0 auto; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); display: grid; gap: 10px; }
.review-card h1 { font-size: 1.9rem; }
.review-card .lead { color: var(--muted); margin: 0; }
#review-form { display: grid; gap: 8px; margin-top: 8px; }
#review-form[hidden], #review-done[hidden] { display: none; }
.review-card .text-field { width: 100%; }
.stars-input { border: 0; padding: 0; margin: 0; }
.stars-input legend { font-size: .9rem; margin-bottom: 4px; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2.2rem; line-height: 1; color: #e2d4bf; cursor: pointer; transition: color .15s, transform .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #E39A45; }
.stars label:hover { transform: scale(1.12); }
.stars input:focus-visible + label { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.big-thanks { font-family: var(--serif); font-size: 2rem; margin: 6px 0; }
.reviews-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.reviews-avg { font-size: 1.1rem; color: #E39A45; }
.reviews-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.review-item { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); display: grid; gap: 6px; }
.review-item .st { color: #E39A45; letter-spacing: 2px; }
.review-item p { margin: 0; }
.review-item small { color: var(--muted); }
/* cuenta atrás hasta abrir los pedidos personalizados */
.goal { display: grid; gap: 8px; margin: 4px 0 6px; padding: 12px 14px; border-radius: 14px; background: #fff7ea; border: 1px solid #ecd7b5; }
.goal-text { margin: 0; font-size: .92rem; color: var(--espresso); }
.goal-bar { height: 10px; border-radius: 999px; background: #efe1cb; overflow: hidden; }
.goal-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #2E9E6E, #146B45); transition: width 1.2s ease; }
.cart.bump .cart-count { animation: countPop .5s ease .1s; }
@keyframes cartWiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-14deg) translateY(-1px); } 45% { transform: rotate(10deg); } 70% { transform: rotate(-6deg); } 85% { transform: rotate(3deg); } }
@keyframes cartBump { 0% { transform: scale(1); } 35% { transform: scale(1.28) rotate(-6deg); } 65% { transform: scale(.94) rotate(3deg); } 100% { transform: scale(1); } }
@keyframes countPop { 50% { transform: scale(1.6); background: #1F8A5B; } }
.flying-book { position: fixed; left: 0; top: 0; width: 64px; height: 64px; z-index: 200; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(59, 42, 32, .3)); }
.flying-book svg { width: 100%; height: 100%; }

/* ---------- Libro feliz ---------- */
.happy-book .hb-eyes { transform-origin: 32px 28px; animation: blink 4s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

/* ---------- Bienvenida: todo se puede cambiar ---------- */
.welcome { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: rgba(59, 42, 32, .45); backdrop-filter: blur(3px); animation: fadeIn .3s ease; }
/* al cerrar: solo se aclara el fondo; la tarjeta vuela hasta el botón del asistente */
.welcome.leaving { animation: none; background: transparent; backdrop-filter: none; transition: background .4s ease, backdrop-filter .4s ease; pointer-events: none; }
.welcome-card { position: relative; width: min(400px, 100%); background: var(--paper); border-radius: 24px; padding: 26px 24px 22px; text-align: center; box-shadow: 0 30px 80px rgba(59, 42, 32, .3); animation: popIn .55s cubic-bezier(.3, 1.5, .5, 1); }
.welcome.leaving .welcome-card { animation: none; transform-origin: center; }
.welcome-x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.4rem; color: var(--muted); line-height: 1; }
.welcome-hero { position: relative; width: 96px; height: 96px; margin: -62px auto 6px; border-radius: 50%; background: var(--rose); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(31, 138, 91, .35); }
.welcome-hero .happy-book, .welcome-hero .happy-cup { width: 70px; height: 70px; animation: bookBounce 1.6s ease-in-out infinite; }
.happy-cup .hc-steam path { animation: steamRise 2.4s ease-in-out infinite; }
.happy-cup .hc-steam path:nth-child(2) { animation-delay: .4s; } .happy-cup .hc-steam path:nth-child(3) { animation-delay: .8s; }
.happy-cup .hc-eyes { transform-origin: 31px 34px; animation: blink 4.5s infinite; }
@keyframes steamRise { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-5px); } }
.flying-cup { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; filter: drop-shadow(0 8px 12px rgba(59, 42, 32, .3)); }
.flying-cup svg { width: 100%; height: 100%; }
/* el botón del asistente "atrapa" la taza */
.helper-toggle.catch, .helper-toggle.caught { animation: cupCatch .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes cupCatch { 0% { transform: scale(1); } 30% { transform: scale(1.3) rotate(-10deg); box-shadow: 0 0 0 10px rgba(31, 138, 91, .25); } 60% { transform: scale(.92) rotate(6deg); } 100% { transform: scale(1); } }
.spark { position: absolute; color: #1F8A5B; font-size: 14px; animation: twinkle 1.8s ease-in-out infinite; }
.spark.s1 { top: 4px; right: 2px; } .spark.s2 { bottom: 10px; left: -4px; animation-delay: .6s; font-size: 11px; } .spark.s3 { top: 18px; left: -10px; animation-delay: 1.1s; font-size: 9px; }
.welcome h2 { font-size: 1.5rem; margin-bottom: 6px; }
.welcome p { color: var(--muted); margin: 0 0 14px; }
.welcome-dots { display: flex; justify-content: center; gap: 7px; margin-bottom: 16px; }
.welcome-dots i { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--line); animation: dotWave 1.6s ease-in-out infinite; }
.welcome-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; text-align: left; }
.welcome-list li { display: flex; align-items: center; gap: 10px; font-size: .92rem; padding: 8px 10px; border-radius: 12px; background: var(--cream); animation: slideIn .45s ease both; }
.welcome-list li:nth-child(2) { animation-delay: .1s; } .welcome-list li:nth-child(3) { animation-delay: .2s; }
.welcome-list b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--espresso); color: #fff8ee; font-size: .8rem; flex: none; }
.welcome-go { width: 100%; animation: goWiggle 2.4s ease-in-out 1.2s infinite; }
@keyframes popIn { from { opacity: 0; transform: scale(.7) translateY(30px); } }
@keyframes popOut { to { opacity: 0; transform: scale(.9) translateY(12px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes bookBounce { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-7px) rotate(4deg); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes dotWave { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } }
@keyframes goWiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-2deg); } 94% { transform: rotate(2deg); } 97% { transform: rotate(-1deg); } }

/* ---------- Compra: migas de pan y pasos ---------- */
.checkout-page { padding: 28px 0 80px; }
.trail ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 26px; padding: 0; font-size: .92rem; }
.trail li { display: flex; align-items: center; color: var(--muted); }
.trail li + li::before { content: '›'; margin: 0 8px; color: var(--line); font-size: 1.2rem; }
.trail li > span, .trail li > button { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 0; background: none; font: inherit; color: inherit; }
.trail li > button { cursor: pointer; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.trail li > button:hover { background: var(--paper); }
.trail .n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; }
.trail li.past .n { background: var(--sage); border-color: var(--sage); color: #fff; }
.trail li.current > span { background: var(--espresso); color: #fff8ee; font-weight: 500; }
.trail li.current .n { background: #fff8ee; color: var(--espresso); border-color: #fff8ee; }
@media (max-width: 600px) { .trail li + li::before { margin: 0 2px; } .trail li > span, .trail li > button { padding-right: 6px; font-size: .82rem; } }

.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .checkout-grid { grid-template-columns: 1fr; } .co-summary { order: -1; } }
.co-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 24px; animation: stepIn .35s ease; }
.co-panel h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 18px; }
.co-summary { position: sticky; top: 84px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.co-summary h2 { font-size: 1.2rem; margin-bottom: 10px; }
.co-summary dl { margin: 0; }
.co-summary dl div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.co-summary dt { color: var(--muted); }
.co-summary dd { margin: 0; }
.co-summary .tot { border-bottom: 0; font-family: var(--serif); font-size: 1.25rem; }
.co-summary .tot dt { color: var(--ink); }
.ship-bar { height: 8px; border-radius: 999px; background: var(--cream); overflow: hidden; margin-top: 10px; }
.ship-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sage), #1F8A5B); }
.ship-ok { margin: 10px 0 0; color: #4f7a46; font-weight: 500; }

.co-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.co-items li { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: var(--cream); }
.co-items .thumb { width: 76px; height: 76px; border-radius: 10px; background: #efe4d3; overflow: hidden; }
.co-items .thumb svg { width: 100%; height: 100%; }
.co-items .info { display: grid; gap: 2px; }
.co-items small { color: var(--muted); }
.co-items .disc { color: #4f7a46; }
.co-items .price-col { display: grid; justify-items: end; gap: 4px; font-family: var(--serif); }
.link { border: 0; background: none; padding: 0; color: var(--accent); text-decoration: underline; font-size: .85rem; cursor: pointer; font-family: var(--sans); }
.co-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.addr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.addr label { display: grid; gap: 6px; font-size: .9rem; }
.addr .wide, .addr .co-nav { grid-column: 1 / -1; }
.addr input, .addr textarea { padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); font: inherit; color: var(--ink); }
.addr input:focus, .addr textarea:focus { outline: none; border-color: var(--accent); background: var(--paper); }
.addr [aria-invalid="true"] { border-color: #a3473a; }
.addr .err { color: #a3473a; font-size: .8rem; min-height: 1em; }
@media (max-width: 600px) { .addr { grid-template-columns: 1fr; } }
.ship-opts { display: grid; gap: 10px; }
.ship-opt { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream); cursor: pointer; }
.ship-opt:has(input:checked) { border-color: var(--espresso); background: var(--paper); box-shadow: 0 0 0 1px var(--espresso); }
.ship-opt input { width: 18px; height: 18px; accent-color: var(--espresso); }
.ship-opt span { display: grid; }
.ship-opt small { color: var(--muted); }
.ship-opt em { font-style: normal; font-family: var(--serif); }
.co-note { color: var(--muted); font-size: .9rem; margin: 14px 0 0; }
.review { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.review > div, .pay-box { padding: 14px 16px; border-radius: 14px; background: var(--cream); }
.review h3, .pay-box h3 { font-size: 1rem; margin-bottom: 6px; }
.review p, .pay-box p { margin: 0 0 6px; font-size: .92rem; }
.pay-box { margin-top: 14px; }
@media (max-width: 600px) { .review { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: .9rem; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--espresso); }
.co-error { color: #a3473a; min-height: 1.2em; margin: 8px 0 0; font-size: .9rem; }
.empty, .done { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 20px 0; }
.empty .happy-book, .done .happy-book { width: 96px; height: 96px; animation: bookBounce 1.6s ease-in-out infinite; }
.empty p, .done p { color: var(--muted); margin: 0; }

/* ---------- Compra (diseño completo) ---------- */
.checkout-page { padding: 30px 0 90px; }
.trail { position: relative; margin-bottom: 30px; }
.trail ol { justify-content: space-between; gap: 0; margin: 0; position: relative; z-index: 1; }
.trail li + li::before { content: none; }
.trail li { flex: 1; justify-content: center; }
.trail li > span, .trail li > button { flex-direction: column; gap: 6px; padding: 0; text-decoration: none; font-size: .85rem; border-radius: 0; background: none !important; }
.trail li > button:hover .n { transform: scale(1.08); border-color: var(--accent); }
.trail .n { width: 42px; height: 42px; background: var(--paper); border: 1.5px solid var(--line); transition: transform .2s ease, background .3s ease; }
.trail .n svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trail li.past .n { background: var(--sage); border-color: var(--sage); color: #fff; }
.trail li.current .n { background: var(--espresso); border-color: var(--espresso); color: #fff8ee; box-shadow: 0 0 0 5px rgba(59, 42, 32, .12); }
.trail li.current > span { color: var(--ink); font-weight: 600; }
.trail li.past .t, .trail li.current .t { color: var(--ink); }
.trail-bar { position: absolute; left: 10%; right: 10%; top: 20px; height: 3px; border-radius: 3px; background: var(--line); }
.trail-bar span { display: block; height: 100%; border-radius: inherit; background: var(--sage); transition: width .5s ease; }
@media (max-width: 600px) { .trail .t { font-size: .72rem; } .trail .n { width: 34px; height: 34px; } .trail-bar { top: 16px; } }

.checkout-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; }
.co-panel { padding: 28px; }
.co-panel fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.co-panel legend { font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; padding: 0; }
.co-panel .hint { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.co-panel em { color: var(--muted); font-style: normal; font-size: .85em; }
.addr label > span:first-child { font-size: .88rem; }
.addr select { padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); font: inherit; color: var(--ink); }
.addr input:disabled { color: var(--muted); }
.addr.bill, .addr.nif { margin: 12px 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; font-size: .92rem; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--espresso); flex: none; }
.check small { color: var(--muted); }

.co-items li { grid-template-columns: 84px 1fr auto; padding: 12px; }
.co-items .thumb { width: 84px; height: 84px; }
.co-items .price-col b { font-weight: 500; }
.qty { display: inline-flex; align-items: center; margin-top: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); width: max-content; }
.qty button { width: 30px; height: 30px; border: 0; background: none; font-size: 1.05rem; border-radius: 50%; }
.qty button:hover:not(:disabled) { background: var(--rose); }
.qty button:disabled { opacity: .35; cursor: default; }
.qty output { min-width: 22px; text-align: center; font-weight: 600; }
.gift { margin-top: 16px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--accent); background: var(--rose); }
.gift .check { margin: 0; }
.gift-note { display: grid; gap: 6px; margin-top: 10px; font-size: .88rem; }
.gift-note[hidden] { display: none; }
.gift-note textarea, .notes textarea { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font: inherit; resize: vertical; }
.notes { display: grid; gap: 6px; margin-top: 4px; font-size: .9rem; }

.ship-opt { grid-template-columns: auto 1fr auto; padding: 16px 18px; }
.ship-opt .so-main { display: grid; gap: 2px; }
.ship-opt .eta { color: #4f7a46; font-weight: 500; }
.ship-to { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--cream); font-size: .9rem; }
.ship-to > span { color: var(--muted); }
.ship-to p { margin: 0; }

.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--cream); cursor: pointer; transition: border-color .15s ease; }
.pay-opt:hover { border-color: var(--accent); }
.pay-opt:has(input:checked) { border-color: var(--espresso); background: var(--paper); box-shadow: 0 0 0 1px var(--espresso); }
.pay-opt input { width: 18px; height: 18px; accent-color: var(--espresso); }
.pay-opt svg { width: 26px; height: 26px; fill: none; stroke: var(--leather); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pay-opt span { display: grid; } .pay-opt small { color: var(--muted); font-size: .8rem; }
.pay-note { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #eef2e9; color: #3f5a38; font-size: .88rem; }
.pay-note svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; margin-top: 1px; }
@media (max-width: 600px) { .pay-opts { grid-template-columns: 1fr; } }
.review { grid-template-columns: 1fr 1fr; }
.review > div { position: relative; }
.review .link { position: absolute; top: 14px; right: 16px; }
.consent { margin-top: 18px; }

.co-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.co-side[hidden] { display: none; }
.co-summary { position: static; }
.co-summary h2 small { font-family: var(--sans); font-size: .85rem; color: var(--muted); font-weight: 400; }
.co-summary .tot dt small { display: block; font-family: var(--sans); font-size: .75rem; color: var(--muted); }
.mini { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.mini li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.mini .mt { position: relative; width: 52px; height: 52px; border-radius: 10px; background: #efe4d3; }
.mini .mt svg { width: 100%; height: 100%; }
.mini .mt b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--espresso); color: #fff8ee; font-size: .72rem; display: grid; place-items: center; }
.mini .mi small { display: block; color: var(--muted); font-size: .78rem; }
.mini .mp { display: grid; justify-items: end; gap: 2px; }
/* Eliminar piezas: en la cesta y en el resumen del pedido */
.remove-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); border-radius: 999px; padding: 4px 10px 4px 8px; font: 500 .8rem var(--sans); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.remove-btn:hover { color: #a3473a; border-color: #e3b5ab; background: #fbeeea; }
.remove-btn svg, .mini-remove svg, .undo-bar svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mini-remove { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.mini-remove:hover { color: #a3473a; background: #fbeeea; }
.undo-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 10px 14px; border-radius: 12px; background: var(--rose); color: var(--espresso); font-size: .9rem; }
.undo-bar span { flex: 1; }
.undo-bar .link { font-weight: 500; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .85rem; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.summary-toggle { display: none; }
@media (max-width: 860px) {
  .co-side { position: static; order: -1; }
  .summary-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); font-size: .92rem; color: var(--accent); }
  .summary-toggle b { color: var(--ink); font-family: var(--serif); font-size: 1.1rem; }
  .co-side .co-summary, .co-side .trust { display: none; }
  .co-side.open .co-summary { display: block; }
  .co-panel { padding: 20px; }
}

.done { padding-top: 6px; }
.done h1 { margin: 6px 0 0; }
.timeline { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; position: relative; padding-bottom: 18px; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 12px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline .dot { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); }
.timeline li.done .dot { background: var(--sage); border-color: var(--sage); box-shadow: inset 0 0 0 5px var(--paper); }
.timeline li.done::before { background: var(--sage) !important; }
.timeline li.now .dot { border-color: var(--accent); box-shadow: 0 0 0 5px var(--rose); animation: pulseDot 2s ease-in-out infinite; }
.timeline b { display: block; }
.timeline small { color: var(--muted); }
@keyframes pulseDot { 50% { box-shadow: 0 0 0 9px rgba(243, 225, 220, .5); } }
.done-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.done-grid > div { padding: 16px; border-radius: 14px; background: var(--cream); }
.done-grid h3 { font-size: 1rem; margin-bottom: 8px; }
.done-grid p { margin: 0 0 12px; font-size: .92rem; }
.done-grid dl div { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px solid var(--line); font-size: .92rem; }
.done-grid dt { color: var(--muted); } .done-grid dd { margin: 0; }
.done-grid .tot { font-family: var(--serif); font-size: 1.1rem; }
@media (max-width: 600px) { .done-grid { grid-template-columns: 1fr; } }
/* Orden de los dijes en cada ojal */
.pill .ord { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: #fff8ee; color: var(--espresso); font-size: .72rem; }

/* Paga ahora (confirmación): botones a PayPal y al enlace de tarjeta */
.pay-now { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--cream); border: 1px solid var(--line); }
.pay-now h2 { font-size: 1.15rem; margin-bottom: 12px; }
.pay-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .pay-btns { grid-template-columns: 1fr; } }
.pay-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.pay-btn:hover { transform: translateY(-2px); border-color: var(--espresso); }
.pay-btn.primary { background: var(--espresso); border-color: var(--espresso); color: #fff8ee; }
.pay-btn svg { width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pay-btn span { display: grid; font-weight: 500; }
.pay-btn small { font-weight: 400; opacity: .75; font-size: .8rem; }
.pay-now p { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }
@media print { .pay-now { display: none; } }

/* Cancelar pedido (en el resumen, en cualquier paso) */
.cancel-box { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.cancel-order { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px 0; color: #a3473a; font-size: .88rem; text-decoration: underline; text-underline-offset: 3px; }
.cancel-order svg { width: 16px; height: 16px; }
.cancel-order:hover { color: #7d2f25; }
.cancel-confirm { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #f6e6e1; border: 1px solid #ecc9c0; animation: stepIn .25s ease; }
.cancel-confirm[hidden] { display: none; }
.cancel-confirm p { margin: 0 0 10px; font-size: .9rem; }
.cancel-confirm div { display: flex; gap: 8px; flex-wrap: wrap; }
.cancel-confirm .btn { padding: 9px 14px; font-size: .88rem; }
.cancel-confirm .btn-dark { background: #a3473a; }
.cancel-confirm .btn-dark:hover { background: #7d2f25; }

/* Datos de transferencia */
dl.bank { display: grid; gap: 8px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--paper); border: 1px dashed var(--line); }
dl.bank div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
dl.bank dt { color: var(--muted); font-size: .85rem; }
dl.bank dd { margin: 0; word-break: break-word; }
.order-link { margin-top: 16px; display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: .9rem; }

/* Página de pedido: seguimiento y recibo */
.order-page { max-width: 760px; padding: 36px 0 80px; display: grid; gap: 22px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.order-head h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0; }
.order-head .msg-line { margin: 4px 0 0; color: var(--muted); }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--accent); }
.order-page .tag { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; background: #e6efe1; color: #4f7a46; }
.order-page .tag.wait { background: #efe4d3; color: #8a6a33; }
.order-page .tag.bad { background: #fbe7cc; color: #a3473a; }
.track, .receipt { padding: 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.track .timeline { margin: 0 0 6px; }
.timeline li.next .dot { border-color: var(--accent); }
.timeline li.done { text-align: left; justify-items: stretch; gap: 14px; padding: 0 0 18px; }
.cancel-note { padding: 14px 16px; border-radius: 14px; background: #f6e6e1; border: 1px solid #ecc9c0; margin: 0; }
.receipt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.receipt-head h2 { margin: 0; font-size: 1.3rem; }
.receipt-head p { margin: 2px 0 0; color: var(--muted); font-size: .85rem; }
.receipt table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.receipt th, .receipt td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.receipt th { color: var(--muted); font-weight: 500; font-size: .82rem; }
.receipt th:nth-child(n+2), .receipt td:nth-child(n+2) { text-align: right; white-space: nowrap; }
.receipt tfoot td { border-bottom: 0; color: var(--muted); padding-top: 6px; padding-bottom: 2px; }
.receipt tfoot .tot td { color: var(--ink); font-weight: 600; font-size: 1.05rem; padding-top: 10px; border-top: 2px solid var(--ink); }
.receipt small { color: var(--muted); }
.receipt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 18px; }
.receipt-grid h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 4px; font-family: inherit; }
.receipt-grid p { margin: 0; font-size: .92rem; }
.receipt-note { margin: 16px 0 0; font-size: .82rem; color: var(--muted); }

/* Política de envíos y devoluciones */
.policy { max-width: 760px; padding: 36px 0 80px; }
.policy h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: 10px; }
.policy .lead { font-size: 1.08rem; color: var(--muted); margin: 0 0 18px; }
.policy-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.policy-toc a { padding: 6px 12px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .88rem; }
.policy-toc a:hover { border-color: var(--espresso); }
.policy section { padding: 18px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.policy h2 { font-size: 1.3rem; margin-bottom: 8px; }
.policy li { margin-bottom: 6px; }

/* Plazo total: taller + envío */
.delivery-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #efe4d3; color: #6b5226; font-size: .88rem; line-height: 1.45; }
.delivery-note b { color: #4d3a17; }

/* Club EmeraldVellum */
.club { max-width: 720px; padding: 36px 0 80px; display: grid; gap: 20px; }
.club-hero h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 4px 0 8px; }
.club-hero .lead { color: var(--muted); font-size: 1.08rem; margin: 0; }
.club-how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; counter-reset: how; }
.club-how li { padding: 14px; border-radius: 14px; background: var(--cream); border: 1px solid var(--line); display: grid; gap: 4px; }
.club-how b { font-family: 'Fraunces', serif; font-weight: 500; font-size: 1.1rem; }
.club-how span { color: var(--muted); font-size: .88rem; }
.club-form, .club-card { padding: 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 12px; }
.club-form h2, .club-card h2 { font-size: 1.3rem; margin: 0; }
.club-form p, .club-card p { margin: 0; }
.club-form > label:not(.check) { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.club-form > label:not(.check) input { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--cream); font: inherit; color: var(--ink); }
.club-form .check { margin: 0; }
.club-login .code-row .text-field, .club .code-row input[type=email] { text-transform: none; letter-spacing: 0; }
.club .code-row { flex-wrap: wrap; }
.club .code-row .text-field { flex: 1 1 180px; width: auto; }
.form-msg { min-height: 1.2em; font-size: .9rem; color: var(--accent); }
.hint { color: var(--muted); font-size: .88rem; }
.points-card { text-align: center; justify-items: center; background: linear-gradient(160deg, var(--cream), var(--paper)); }
.points b { display: block; font-family: 'Fraunces', serif; font-size: 3.4rem; line-height: 1; font-weight: 500; }
.points span { color: var(--muted); }
.meter { width: 100%; max-width: 360px; height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--sage); border-radius: inherit; transition: width .6s ease; }
.points-card .btn[disabled] { opacity: .45; cursor: not-allowed; }
.reward-list, .ledger { list-style: none; padding: 0; margin: 0; display: grid; }
.reward-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.reward-list code { padding: 5px 10px; border-radius: 8px; background: var(--rose); letter-spacing: .05em; }
.reward-list li.used { opacity: .55; }
.reward-list li.used code { text-decoration: line-through; }
.reward-list span { color: var(--muted); font-size: .88rem; flex: 1; }
.reward-list .btn { padding: 6px 12px; font-size: .85rem; }
.ledger li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 0; }
.ledger span { display: grid; }
.ledger small { color: var(--muted); font-size: .8rem; }
.ledger b { color: #4f7a46; white-space: nowrap; }
.ledger b.neg { color: #a3473a; }
.twitch-link { font-size: .9rem; color: #6a47b8; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.club-promo { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--cream); border: 1px dashed var(--line); font-size: .9rem; }

@media print {
  .site-header, .site-footer, .trail, .co-nav, .helper, .receipt-head .btn, .track .btn { display: none !important; }
  .track, .receipt { border: 0; padding: 0; }
  .co-panel { border: 0; padding: 0; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Logo EmeraldVellum: nombre en mayúsculas espaciadas, EMERALD en esmeralda */
.logo { font-family: 'Cormorant Garamond', 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.3rem; letter-spacing: .2em; line-height: 1; gap: 0; color: var(--ink); }
.logo-amber { color: #1F8A5B; }
.logo-vellum { color: #3b2a20; }
@media (max-width: 420px) { .logo { font-size: 1.08rem; letter-spacing: .14em; } }

/* =====================================================================
   Lujo calido EmeraldVellum
   Fondo tostado y acentos marrones, con el ambar #1F8A5B como protagonista:
   logo, boton principal, cesta, rombos y lineas de detalle.
   Titulos en Cormorant Garamond para el toque de lujo.
   ===================================================================== */
:root {
  --cream: #f5ecdf;
  --paper: #fffaf3;
  --ink: #2e2219;
  --muted: #7a6656;
  --line: #e6d9c6;
  --leather: #8a5a3b;
  --espresso: #3b2a20;
  --sage: #8a9a7b;
  --accent: #1F8A5B;
  --rose: #fbe7cc;
  /* EmeraldVellum: el acento ahora es esmeralda (se mantienen los nombres de variable --amber*) */
  --amber: #1F8A5B;
  --amber-deep: #146B45;
  --amber-ink: #f4fbf7;   /* texto claro sobre el esmeralda */
  --emerald-soft: #2E9E6E;
  --serif: 'Cormorant Garamond', 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(59, 42, 32, .10);
}
body { background: var(--cream); color: var(--ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section-head h2::after { content: ''; display: block; width: 40px; height: 2px; margin-top: 14px; background: var(--amber); }

/* Cabecera: logo pegado a la izquierda, AMBER en ambar y VELLUM en marron */
.site-header { background: color-mix(in srgb, var(--cream) 90%, transparent); }
.site-header .wrap { width: 100%; max-width: none; padding-inline: clamp(16px, 2.2vw, 28px); }
.logo-amber { color: var(--amber); }
.logo-vellum { color: var(--espresso); }
.nav a { letter-spacing: .04em; }

/* Cesta en esmeralda suave (menos intenso que el esmeralda del logo) */
.cart { background: var(--emerald-soft); color: var(--amber-ink); border: 0;
  box-shadow: 0 3px 10px rgba(31, 138, 91, .22), inset 0 1px 0 rgba(255, 255, 255, .25); font-weight: 600; letter-spacing: .03em; }
.cart svg { color: var(--amber-ink); }
.cart:hover { background: #24865D; box-shadow: 0 5px 14px rgba(31, 138, 91, .3), inset 0 1px 0 rgba(255, 255, 255, .2); }
.cart[aria-current="page"] { box-shadow: 0 0 0 3px var(--rose), 0 3px 10px rgba(31, 138, 91, .22); }
.cart-count { background: var(--espresso); color: #fff8ee; box-shadow: 0 0 0 2px var(--cream), 0 2px 6px rgba(59, 42, 32, .3); }

/* Botones: el principal en ambar, el oscuro en marron */
.btn-dark { background: var(--espresso); }
.btn-dark:hover { background: #2a1d16; }
/* «Diseña tu cuaderno»: ambar miel, aun mas suave que la cesta */
.btn-amber, .hero.hero-light .btn-primary { background: #2F9E6E; color: var(--amber-ink); box-shadow: 0 3px 10px rgba(31, 138, 91, .18); }
.btn-amber:hover, .hero.hero-light .btn-primary:hover { background: #237E57; }

/* Ambar en los detalles que deben destacar */
/* burbuja «Listos para enviar»: aro esmeralda */
.story[aria-pressed="true"] .story-ring { background: var(--amber); }
.ship-bar span { background: linear-gradient(90deg, var(--amber), var(--leather)); }
.stepper button.done .num, .trail li.past .n { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.link { color: var(--leather); text-decoration-color: var(--amber); }
.credit a { border-bottom-color: var(--amber); }
.step { border-top: 2px solid var(--amber); }
.step-diamond { display: block; width: 10px; height: 10px; margin: 4px 0 18px 2px; background: var(--amber); transform: rotate(45deg); }

/* ---------- Portada clara en tostado, con brillo ambar detras del cuaderno ---------- */
.hero.hero-light { height: auto; min-height: 0; overflow: hidden; color: var(--ink); border-bottom: 1px solid var(--line);
  background: radial-gradient(55% 75% at 76% 48%, rgba(31, 138, 91, .18), transparent 70%), linear-gradient(180deg, #f8efe2, #f0e2cd); }
.hero.hero-light::after { content: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px); }
.hero-copy { display: grid; gap: 22px; align-content: center; min-width: 0; }
.hero.hero-light .hero-eyebrow, .hero.hero-light .hero-note { margin: 0; max-width: none; font-size: .72rem; opacity: 1; text-transform: uppercase; color: var(--leather); }
.hero.hero-light .hero-eyebrow { display: flex; align-items: center; gap: 12px; letter-spacing: .2em; }
.hero.hero-light .hero-eyebrow::before { content: ''; width: 9px; height: 9px; background: var(--amber); transform: rotate(45deg); flex: none; }
.hero.hero-light h1 { color: var(--espresso); font-size: clamp(2.7rem, 5.6vw, 4.8rem); font-weight: 500; line-height: 1.02; max-width: 13ch; text-wrap: balance; }
.hero.hero-light .hero-sub { margin: 0; max-width: 40ch; font-size: 1.08rem; color: var(--muted); opacity: 1; }
.hero.hero-light .hero-actions { gap: 12px; margin-top: 4px; }
.hero.hero-light .btn-ghost { border-color: var(--espresso); color: var(--espresso); }
.hero.hero-light .btn-ghost:hover { background: var(--espresso); color: #fff8ee; }
.hero.hero-light .hero-note { display: flex; gap: 22px; flex-wrap: wrap; letter-spacing: .14em; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-figure { position: relative; margin: 0; justify-self: center; width: min(100%, 480px); aspect-ratio: 1; }
.hero-figure::before { content: ''; position: absolute; inset: 9% 6% 6% 12%; border: 1.5px solid var(--amber); border-radius: 4px; }
.hero-figure::after { content: ''; position: absolute; left: 50%; bottom: 7%; width: 54%; height: 5%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 42, 32, .35), transparent); animation: warmShadow 8s ease-in-out infinite; }
.hero-figure img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(59, 42, 32, .25)); animation: warmSway 8s ease-in-out infinite; }
@keyframes warmSway { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes warmShadow { 0%, 100% { transform: translateX(-50%) scale(1); opacity: .9; } 50% { transform: translateX(-50%) scale(.88); opacity: .65; } }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 28px 44px; }
  .hero-figure { order: -1; width: min(78%, 340px); }
}

/* ---------- Portada con el cuaderno sobre un círculo blanco ----------
   El círculo es blanco puro; alrededor, un degradado radial lo funde con el crema de la página.
   El degradado vive en el propio círculo (::before), así siempre queda centrado en él. */
.hero.hero-orb { position: relative; background: var(--cream); border-bottom: 0; isolation: isolate; }
.hero-orb .hero-grid { position: relative; }
.orb { position: relative; margin: 0; justify-self: center; width: min(100%, 440px); aspect-ratio: 1; display: grid; place-items: center; }
/* círculo blanco sin borde: brillo blanco en el centro que se vuelve transparente poco a poco,
   así se funde con el color de la página (sin aro ni raya) */
.orb::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 50%; width: 230%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle closest-side, #fff 0%, #fff 46%, rgba(255, 255, 255, .92) 52%, rgba(255, 255, 255, .6) 60%,
    rgba(255, 255, 255, .28) 72%, rgba(255, 255, 255, .08) 86%, rgba(255, 255, 255, 0) 100%); }
/* el brillo acaba transparente antes del borde de la portada, así no se corta en ninguna pantalla */
.orb::before { width: 150%; }
/* el cuaderno: recorte ajustado a la foto, de pie, con su sombra en el suelo */
.orb-book { position: relative; width: 52%; aspect-ratio: 5 / 6; margin-top: 2%; }
/* el cuaderno flota arriba y abajo; su sombra en el suelo se encoge cuando sube */
.orb-book img { position: absolute; z-index: 1; width: 214.6%; max-width: none; height: auto; left: -58%; top: -64.2%;
  filter: drop-shadow(0 14px 16px rgba(59, 42, 32, .2)); animation: orbFloat 5s ease-in-out infinite; }
.orb-book::after { content: ''; position: absolute; left: 6%; right: 2%; bottom: -8%; height: 9%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 42, 32, .34), rgba(59, 42, 32, 0)); animation: orbShadow 5s ease-in-out infinite; }
@keyframes orbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes orbShadow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.78); opacity: .55; } }
/* foto de los tres cuadernos: apaisada y con fondo blanco; «multiply» hace que el blanco desaparezca sobre la página */
.orb-trio { width: 100%; aspect-ratio: 4 / 3; margin-top: 0; }
.orb-trio::after { display: none; }
/* cada copia enseña solo su cuaderno; flotan despacio (9 s) y por turnos de izquierda a derecha */
.orb-trio img { width: 100%; left: 0; top: 0; mix-blend-mode: multiply; filter: none; animation: trioFloat 9s ease-in-out infinite; }
.orb-trio .t1 { clip-path: polygon(0 0, 37.6% 0, 37.6% 100%, 0 100%); }
.orb-trio .t2 { clip-path: polygon(37.6% 0, 61.4% 0, 61.4% 100%, 37.6% 100%); animation-delay: 1.5s; }
.orb-trio .t3 { clip-path: polygon(61.4% 0, 100% 0, 100% 100%, 61.4% 100%); animation-delay: 3s; }
@keyframes trioFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
/* una sombra en el suelo por cuaderno, que se encoge cuando su cuaderno sube */
.trio-shadow { position: absolute; bottom: 9%; height: 7%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 42, 32, .3), rgba(59, 42, 32, 0)); animation: orbShadow 9s ease-in-out infinite; }
.trio-shadow.s1 { left: 6%; width: 32%; }
.trio-shadow.s2 { left: 36%; width: 26%; animation-delay: 1.5s; }
.trio-shadow.s3 { left: 61%; width: 34%; animation-delay: 3s; }
@media (prefers-reduced-motion: reduce) { .orb-trio img, .trio-shadow { animation: none; } }
@media (prefers-reduced-motion: reduce) { .orb-book img, .orb-book::after { animation: none; } }
@media (max-width: 760px) {
  .orb { order: -1; width: min(76%, 320px); }
}

/* ---------- Boton del asistente: el libro de la cesta vacia ---------- */
.helper-toggle { background: var(--paper); color: var(--espresso); border: 1px solid var(--leather); }
.helper-toggle svg { width: 30px; height: 30px; }
.helper[data-open="true"] .helper-toggle { background: var(--rose); }

/* ---------- Escena de portada: farola antigua con luz ambar sobre el cuaderno ---------- */
.hero-figure.hero-scene { width: min(100%, 540px); overflow: visible; }
.hero-scene::before, .hero-scene::after { content: none; }
.hero-scene > * { position: absolute; }
.scene-lamp { left: 0; top: -14%; height: 102%; width: auto; z-index: 3; filter: drop-shadow(2px 4px 6px rgba(59, 42, 32, .18)); }
.scene-glow { left: 2%; top: -12%; width: 32%; aspect-ratio: 1; border-radius: 50%; z-index: 1;
  background: radial-gradient(closest-side, rgba(255, 200, 110, .85), rgba(255, 160, 50, .35) 45%, transparent); filter: blur(4px);
  animation: lampFlicker 6s ease-in-out infinite; }
.scene-beam { inset: 0; z-index: 1; filter: blur(9px); }
.scene-beam::before { content: ''; position: absolute; inset: 0; clip-path: polygon(13% 5%, 21% 5%, 104% 80%, 36% 90%);
  background: linear-gradient(170deg, rgba(255, 196, 100, .62), rgba(255, 170, 70, .25) 55%, rgba(255, 160, 60, 0) 92%); }
.scene-dust { inset: 0; z-index: 2; clip-path: polygon(13% 5%, 21% 5%, 104% 80%, 36% 90%); }
.scene-dust i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 244, 220, .95); box-shadow: 0 0 6px rgba(255, 210, 140, .9);
  animation: beamDust 9s linear infinite; }
.scene-dust i:nth-child(1) { left: 30%; top: 30%; animation-delay: -1s; }
.scene-dust i:nth-child(2) { left: 42%; top: 46%; animation-delay: -3s; animation-duration: 11s; }
.scene-dust i:nth-child(3) { left: 55%; top: 38%; animation-delay: -5s; }
.scene-dust i:nth-child(4) { left: 64%; top: 60%; animation-delay: -2s; animation-duration: 12s; }
.scene-dust i:nth-child(5) { left: 36%; top: 64%; animation-delay: -7s; }
.scene-dust i:nth-child(6) { left: 74%; top: 52%; animation-delay: -4s; animation-duration: 10s; }
.scene-dust i:nth-child(7) { left: 48%; top: 22%; animation-delay: -6s; }
.scene-pool { left: 24%; top: 74%; width: 82%; height: 16%; border-radius: 50%; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 170, 60, .55), rgba(255, 170, 60, .18) 60%, transparent); }
.scene-shadow { left: 45%; top: 77%; width: 72%; height: 11%; z-index: 1; filter: blur(5px); }
.scene-shadow::before { content: ''; position: absolute; inset: 0; clip-path: polygon(0 10%, 54% 10%, 100% 100%, 14% 100%);
  background: linear-gradient(100deg, rgba(48, 30, 18, .7), rgba(48, 30, 18, .28) 55%, rgba(48, 30, 18, 0) 88%); }
.hero-scene img { left: 24%; top: 15%; width: 74%; height: 74%; z-index: 2; object-fit: contain;
  filter: drop-shadow(-6px 10px 12px rgba(59, 42, 32, .22)) sepia(.08) saturate(1.06); animation: sceneBreath 9s ease-in-out infinite; }
@keyframes lampFlicker { 0%, 100% { opacity: 1; } 42% { opacity: .9; } 46% { opacity: .97; } 70% { opacity: .88; } }
@keyframes beamDust { 0% { transform: translate(0, 12px); opacity: 0; } 20% { opacity: .9; } 80% { opacity: .6; } 100% { transform: translate(16px, -60px); opacity: 0; } }
@keyframes sceneBreath { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (max-width: 760px) { .hero-figure.hero-scene { width: min(86%, 380px); margin-top: 8%; } }

/* ---------- Luz realista: caida con la distancia, cara iluminada, sombras de contacto y penumbra ---------- */
/* Haz: casi invisible en el aire, mas intenso junto a la farola y bordes difuminados */
.scene-beam { filter: blur(16px); }
.scene-beam::before { clip-path: polygon(11% 4%, 23% 4%, 112% 84%, 26% 98%);
  background: radial-gradient(ellipse 75% 100% at 17% 3%, rgba(255, 222, 160, .62), rgba(255, 196, 120, .26) 30%, rgba(255, 176, 90, .09) 58%, rgba(255, 170, 80, 0) 82%); }
/* Farola: nucleo caliente casi blanco dentro de un halo amplio */
.scene-glow { left: -4%; top: -18%; width: 44%; background: radial-gradient(closest-side, rgba(255, 214, 150, .7), rgba(255, 176, 80, .28) 40%, rgba(255, 160, 60, .08) 70%, transparent); filter: blur(6px); }
.scene-glow::after { content: ''; position: absolute; left: 50%; top: 52%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 252, 240, 1), rgba(255, 230, 170, .7) 50%, transparent); filter: blur(3px); }
/* Charco de luz en el suelo: centrado bajo la farola y apagandose hacia el cuaderno */
.scene-pool { left: -6%; top: 74%; width: 110%; height: 22%;
  background: radial-gradient(ellipse 52% 50% at 34% 50%, rgba(255, 190, 100, .5), rgba(255, 184, 96, .2) 45%, rgba(255, 180, 90, .05) 75%, transparent); }
/* Sombra de contacto: oscura y fina justo donde el cuaderno toca el suelo */
.scene-contact { left: 44%; top: 79.5%; width: 44%; height: 4%; z-index: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(35, 20, 10, .6), rgba(35, 20, 10, .25) 60%, transparent); filter: blur(2px); }
/* Sombra proyectada: nitida cerca del cuaderno y cada vez mas difusa y clara lejos */
.scene-shadow { left: 47%; top: 78.5%; width: 74%; height: 10%; filter: blur(3px);
  -webkit-mask-image: linear-gradient(100deg, #000 20%, rgba(0, 0, 0, .55) 55%, transparent 95%); mask-image: linear-gradient(100deg, #000 20%, rgba(0, 0, 0, .55) 55%, transparent 95%); }
.scene-shadow::before { clip-path: polygon(0 4%, 52% 4%, 100% 100%, 12% 100%);
  background: linear-gradient(100deg, rgba(40, 24, 12, .62), rgba(40, 24, 12, .3) 50%, rgba(40, 24, 12, .08)); }
/* El cuaderno: su propia sombra cae lejos de la farola */
.hero-scene img { filter: drop-shadow(10px 12px 14px rgba(40, 24, 12, .28)) sepia(.06) saturate(1.05); }
/* Cara iluminada: la luz calida entra por arriba a la izquierda y el lado opuesto queda en penumbra */
.scene-lit { left: 24%; top: 15%; width: 74%; height: 74%; z-index: 2; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(118deg, rgba(255, 214, 150, .95) 0%, rgba(255, 190, 110, .55) 26%, rgba(255, 180, 100, 0) 50%, rgba(20, 10, 4, .55) 100%);
  -webkit-mask: url('../assets/fotos/diario-marron.png?v=3') center / contain no-repeat; mask: url('../assets/fotos/diario-marron.png?v=3') center / contain no-repeat;
  animation: sceneBreath 9s ease-in-out infinite; }

/* Ajuste: haz algo mas presente y cara del cuaderno mas calida */
.scene-beam { filter: blur(12px); }
.scene-beam::before { background: radial-gradient(ellipse 80% 105% at 17% 3%, rgba(255, 220, 155, .7), rgba(255, 196, 120, .36) 32%, rgba(255, 180, 95, .16) 60%, rgba(255, 170, 80, .04) 85%, transparent); }
.scene-lit { mix-blend-mode: overlay; background: linear-gradient(118deg, rgba(255, 210, 140, .9) 0%, rgba(255, 186, 100, .5) 30%, rgba(255, 180, 100, 0) 55%, rgba(20, 10, 4, .6) 100%); }

/* En pantallas estrechas la escena va arriba: el brillo de fondo se queda junto a la farola */
@media (max-width: 760px) {
  .hero.hero-light { background: radial-gradient(70% 38% at 40% 18%, rgba(31, 138, 91, .16), transparent 70%), linear-gradient(180deg, #f8efe2, #f0e2cd); }
}

/* =====================================================================
   Portada nocturna: calle de noche con farolas ambar y un escaparate
   calido al otro lado. Un degradado lento la funde con el tostado de la pagina.
   ===================================================================== */
.hero.hero-night { position: relative; height: auto; min-height: 0; padding: 0; overflow: hidden; background: #0d0908; color: #f7efe4; border: 0; }
.hero.hero-night::after { content: none; }
.night-scene { position: relative; height: clamp(560px, 88vh, 880px); }
.night-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.night-vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 60% 55%, transparent 45%, rgba(5, 3, 3, .55) 100%),
              linear-gradient(90deg, rgba(8, 5, 4, .72) 0%, rgba(8, 5, 4, .45) 28%, rgba(8, 5, 4, 0) 52%); }
.night-copy { position: absolute; z-index: 3; left: 0; top: 0; height: clamp(560px, 88vh, 880px); width: min(100%, 640px);
  display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-inline: clamp(16px, 5vw, 72px); }
.hero-night .hero-eyebrow { margin: 0; display: flex; align-items: center; gap: 12px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: #ffb45a; opacity: 1; max-width: none; }
.hero-night .hero-eyebrow::before { content: ''; width: 9px; height: 9px; background: #1F8A5B; transform: rotate(45deg); flex: none; box-shadow: 0 0 12px rgba(31, 138, 91, .8); }
.hero-night h1 { color: #f7efe4; font-family: var(--serif); font-weight: 500; font-size: clamp(2.7rem, 5.6vw, 5rem); line-height: 1.02; max-width: 12ch; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .55); }
.hero-night .hero-sub { margin: 0; max-width: 36ch; font-size: 1.08rem; color: rgba(247, 239, 228, .78); opacity: 1; }
.hero-night .hero-actions { gap: 12px; margin-top: 4px; }
.hero-night .btn-primary { background: #2F9E6E; color: #2a1a0c; box-shadow: 0 0 24px rgba(255, 160, 60, .22); }
.hero-night .btn-primary:hover { background: #237E57; }
.hero-night .btn-ghost { border-color: rgba(247, 239, 228, .55); color: #f7efe4; }
.hero-night .btn-ghost:hover { background: rgba(247, 239, 228, .1); }
.hero-night .hero-note { margin: 0; display: flex; gap: 22px; flex-wrap: wrap; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(247, 239, 228, .6); padding-top: 18px; border-top: 1px solid rgba(247, 239, 228, .14); max-width: 440px; opacity: 1; }
/* Foto real del cuaderno: tarjeta impresa, algo inclinada, iluminada por la farola.
   El recorte deja el cuaderno y los dijes y esconde el borde cortado de abajo de la foto. */
.night-photo { position: absolute; z-index: 2; right: clamp(24px, 9vw, 150px); bottom: 12%; width: clamp(190px, 19vw, 280px); margin: 0;
  padding: 10px 10px 0; background: #fbf7ef; border-radius: 4px; transform: rotate(4deg);
  box-shadow: 0 0 60px rgba(255, 170, 80, .28), 0 24px 50px rgba(0, 0, 0, .6); }
.np-crop { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #fff; }
.np-crop img { position: absolute; width: 191.6%; max-width: none; height: auto; left: -45.5%; top: -38.3%; }
.night-photo figcaption { padding: 8px 2px 10px; text-align: center; font-family: 'Pinyon Script', cursive; font-size: clamp(1rem, 1.3vw, 1.3rem); line-height: 1; white-space: nowrap; color: #3b2a20; }

/* el degradado lento de la noche al tostado */
.night-fade { height: clamp(180px, 26vh, 300px); background: linear-gradient(180deg, #120d0c 0%, #2c2019 22%, #6e5642 50%, #c4ac90 76%, var(--cream) 100%); }

/* Movimiento sutil: la luz parpadea, el vapor sube y la niebla se desplaza */
.n-flicker { animation: nFlicker 7s ease-in-out infinite; }
.n-steam path { animation: nSteam 3.6s ease-in-out infinite; }
.n-steam path:nth-child(2) { animation-delay: 1.2s; }
.n-fog { animation: nFog 28s ease-in-out infinite alternate; }
@keyframes nFlicker { 0%, 100% { opacity: .9; } 44% { opacity: .78; } 47% { opacity: .92; } 72% { opacity: .82; } }
@keyframes nSteam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes nFog { from { transform: translateX(-30px); } to { transform: translateX(40px); } }

@media (max-width: 760px) {
  .night-scene, .night-copy { height: clamp(600px, 92vh, 760px); }
  .night-copy { justify-content: flex-end; padding-bottom: 36px; width: 100%; }
  .night-vignette { background: radial-gradient(130% 80% at 55% 40%, transparent 40%, rgba(5, 3, 3, .5) 100%),
                                linear-gradient(0deg, rgba(8, 5, 4, .85) 0%, rgba(8, 5, 4, .55) 38%, rgba(8, 5, 4, 0) 62%); }
  .hero-night h1 { font-size: clamp(2.4rem, 10vw, 3rem); }
}

/* Movil: primero la escena (con el escaparate entero a la vista) y debajo el texto sobre la calle oscura */
@media (max-width: 760px) {
  .night-scene { height: clamp(380px, 58vh, 480px); }
  .night-photo { right: auto; left: 16px; bottom: 6%; width: clamp(108px, 30vw, 140px); padding: 6px 6px 0; transform: rotate(-4deg); }
  .night-photo figcaption { font-size: .85rem; padding: 5px 0 7px; white-space: normal; }
  .night-copy { position: relative; height: auto; width: 100%; justify-content: flex-start; gap: 16px; padding: 8px 16px 40px; background: #120d0c; }
  .night-vignette { background: radial-gradient(130% 80% at 55% 45%, transparent 45%, rgba(5, 3, 3, .45) 100%),
                                linear-gradient(0deg, #120d0c 0%, rgba(18, 13, 12, 0) 22%); }
  .hero-night h1 { font-size: clamp(2.2rem, 9.5vw, 2.8rem); }
}

/* =====================================================================
   Lanzamiento suave (fase 1): coleccion lista para enviar, burbujas
   "Proximamente", escaparate del disenador y Pack BookTok difuminado
   ===================================================================== */
.feed.premade-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .feed.premade-feed { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.premade-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; gap: 0; box-shadow: var(--shadow); }
.premade-card .post { border-radius: 0; }
/* la tarjeta se pulsa para ver el cuaderno en 3D */
.premade-card .post[data-view3d] { cursor: pointer; }
.premade-card .post[data-view3d]:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.view3d-chip { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 250, 243, .92); border: 1px solid var(--line);
  font-size: .74rem; color: var(--espresso); pointer-events: none; transition: background .2s, color .2s; }
.post[data-view3d]:hover .view3d-chip { background: var(--espresso); color: #fff8ee; border-color: var(--espresso); }
/* ventana con el visor 3D */
.view3d { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 80px rgba(59, 42, 32, .3); overflow: auto; }
.view3d[open] { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.view3d::backdrop { background: rgba(59, 42, 32, .5); backdrop-filter: blur(2px); }
.view3d-stage { border: 0; border-radius: 0; min-height: 420px; }
.view3d-info { display: grid; gap: 12px; align-content: center; padding: 28px 26px; }
.view3d-info h2 { font-size: 1.7rem; }
.view3d-info p { margin: 0; color: var(--muted); }
.view3d-x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper);
  font-size: 1.4rem; line-height: 1; color: var(--espresso); cursor: pointer; }
.view3d-x:hover { background: var(--espresso); color: #fff8ee; }
@media (max-width: 760px) {
  .view3d[open] { grid-template-columns: 1fr; }
  .view3d-stage { min-height: 0; aspect-ratio: 1; }
  .view3d-info { padding: 16px 18px 20px; }
}
/* foto real del cuaderno en vez del dibujo */
.post.post-photo { display: grid; place-items: center; }
.post.post-photo::after { content: ''; position: absolute; left: 22%; right: 22%; bottom: 5%; height: 5%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 42, 32, .28), rgba(59, 42, 32, 0)); }
.pm-photo { z-index: 1; }
.pm-photo { position: relative; height: 84%; overflow: hidden; }
/* multiply: el fondo blanco de la foto toma el color de la tarjeta, y el cuaderno queda igual */
.pm-photo img { position: absolute; max-width: none; height: auto; object-fit: initial; mix-blend-mode: multiply; }
/* al pasar el ratón, la foto crece igual que los dibujos de las otras tarjetas (se escala el marco, no la foto entera) */
.pm-photo { transition: transform .5s ease; }
.post .pm-photo img, .post:hover .pm-photo img, .post:focus-visible .pm-photo img { transform: none; }
@media (hover: hover) and (pointer: fine) { .post:hover .pm-photo { transform: scale(1.04); } }
.post:focus-visible .pm-photo { transform: scale(1.04); }
.premade-info { display: grid; gap: 6px; padding: 14px 16px 16px; }
.premade-info h3 { font-size: 1.35rem; }
.premade-info p { margin: 0; color: var(--muted); font-size: .92rem; }
.premade-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.premade-buy[hidden] { display: none; }   /* los ya vendidos no se compran */
/* las tarjetas llenan la fila y el precio con su botón va siempre abajo: los tres botones a la misma altura */
.premade-feed .premade-card { display: flex; flex-direction: column; height: 100%; }
.premade-feed .premade-info { flex: 1; display: flex; flex-direction: column; }
.premade-feed .premade-info .premade-buy { margin-top: auto; padding-top: 8px; }
.premade-price { font-family: var(--serif); font-size: 1.6rem; color: var(--espresso); }
.premade-buy .btn { padding: 11px 18px; }
/* existencias: pieza única / agotado */
.stock-note { margin: 4px 0 0; font-size: .82rem; font-weight: 600; color: var(--amber); }
.sold-out .stock-note { color: #8a3a2a; }
/* en producción: se ve normal, con etiqueta dorada y sin botón de compra */
.in-production .post-badge { background: #b07a2a; }
.in-production .stock-note { color: #8a5a1a; }
.sold-out .post { opacity: .6; }
.sold-out .post-badge { background: #8a3a2a; }
/* aviso de que los cuadernos listos se compran en Vinted (color de Vinted) */
.vinted-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .92rem; }
.vinted-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #09b1ba; }
.vinted-note { display: inline-block; margin-top: 8px; font-size: .85rem; font-weight: 600; color: #078e95; text-decoration: none; }
.vinted-note:hover { text-decoration: underline; }

.story-soon { cursor: default; color: var(--muted); font-style: italic; }
.story-soon .story-ring { background: var(--line); }
.story-soon .story-ring svg { filter: blur(3px) grayscale(.35); opacity: .75; }

.showcase { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 4vw, 56px);
  padding: clamp(18px, 3vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.showcase-art { display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 45%, #fffaf3, #efe4d3); border-radius: 16px; aspect-ratio: 1; }
.showcase-art svg { width: 86%; height: 86%; }
.showcase-copy { display: grid; gap: 14px; justify-items: start; min-width: 0; }
.showcase-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.showcase-copy p { margin: 0; color: var(--muted); max-width: 46ch; }
.showcase-copy .showcase-note { color: var(--espresso); font-weight: 500; padding-left: 12px; border-left: 2px solid var(--amber); }
.soon-tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--rose); color: var(--espresso);
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.soon-tag::before { content: ''; width: 7px; height: 7px; background: var(--amber); transform: rotate(45deg); }
@media (max-width: 760px) { .showcase { grid-template-columns: 1fr; } .showcase-art { max-width: 360px; width: 100%; justify-self: center; } }

.books-soon { position: relative; }
.books-soon .books { filter: blur(7px) saturate(.85); pointer-events: none; user-select: none; }
.soon-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 16px; }
.soon-pill { padding: 12px 26px; border-radius: 999px; background: var(--espresso); color: #fff8ee; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(59, 42, 32, .3); }
.soon-overlay p { margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(255, 250, 243, .9); color: var(--ink); font-size: .92rem; }

.soon-banner { margin: 0; padding: 10px 16px; text-align: center; font-size: .9rem; color: var(--espresso); background: var(--rose); border-bottom: 1px solid var(--line); }