/* Tinta · dirección B «Holográfico claro»
   Base perla (nunca blanco puro), mallas pastel que respiran, grano fino, foil holográfico en
   cuatro lugares (botón primario, estilo elegido, precio, portada del hero), stickers con borde
   blanco y micro-interacciones de presión. Solo transform/opacity se animan. */
:root {
  color-scheme: light;
  --perla: #f6f4f9;
  --perla-2: #fcfbff;
  --tinta: #221f3b;
  --bruma: #5d597b;
  --linea: #e3deee;
  --linea-2: #d3cce6;
  --lila: #d5c6f6;
  --menta: #c2eedc;
  --durazno: #ffd9c6;
  --hielo: #c9ddff;
  --rosa: #ffcfe0;
  --limon: #fff1c4;
  --violeta: #5b3fbf;
  --error: #a3362f;
  --foil: conic-gradient(from 200deg at 50% 50%, #ecdfff 0deg, #cfe2ff 55deg, #c8f1e3 120deg, #fff2cf 185deg, #ffd6e4 250deg, #e5d3ff 310deg, #ecdfff 360deg);
  --foil-brillo: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .85) 48%, transparent 62%);
  --sombra-s: 0 2px 6px -2px rgba(76, 58, 140, .18), 0 10px 24px -14px rgba(76, 58, 140, .28);
  --sombra-m: 0 6px 16px -8px rgba(76, 58, 140, .22), 0 26px 50px -24px rgba(76, 58, 140, .35);
  --sombra-l: 0 18px 40px -16px rgba(60, 42, 128, .35), 0 50px 90px -40px rgba(60, 42, 128, .4);
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 30px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --display: 'Unbounded', 'Trebuchet MS', Arial, sans-serif;
  --accent: 'Fraunces', Georgia, serif;
  --body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  /* La portada del PDF estampa el nombre con Cormorant en varios estilos: la vista previa lo imita. */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --hand: var(--accent);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { position: relative; margin: 0; color: var(--tinta); background: var(--perla); font: 16px/1.6 var(--body); overflow-x: clip; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--violeta); outline-offset: 4px; border-radius: 6px; }
input:focus-visible, textarea:focus-visible { outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
img, video { display: block; max-width: 100%; }
figure, h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; }
h1, h2 { line-height: 1.04; letter-spacing: -.028em; text-wrap: balance; }
h1 { font-size: clamp(34px, 8.4vw, 68px); }
h2 { font-size: clamp(28px, 5vw, 46px); }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.015em; word-spacing: .08em; }
h1 em, h2 em { font: italic 400 1.08em/1 var(--accent); letter-spacing: -.01em; font-variation-settings: 'SOFT' 100, 'opsz' 96; }
.wrap { width: min(1120px, calc(100% - 36px)); margin-inline: auto; }
.section-space { padding-block: 64px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 40; padding: 12px 20px; border-radius: 999px; background: var(--tinta); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Fondo: mallas pastel que respiran (solo transform) + grano SVG muy fino. */
.aura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aura i { position: absolute; display: block; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .8; will-change: transform; }
.aura .a1 { top: -30vmax; left: -20vmax; background: radial-gradient(closest-side, var(--lila), transparent 72%); animation: respirar 28s var(--ease-io) infinite alternate; }
.aura .a2 { top: 10vmax; right: -30vmax; background: radial-gradient(closest-side, var(--hielo), transparent 70%); animation: respirar 34s var(--ease-io) -9s infinite alternate-reverse; }
.aura .a3 { bottom: -30vmax; left: 10vmax; background: radial-gradient(closest-side, var(--menta), transparent 70%); animation: respirar 31s var(--ease-io) -17s infinite alternate; }
.aura .a4 { bottom: -10vmax; right: 5vmax; width: 50vmax; height: 50vmax; background: radial-gradient(closest-side, var(--durazno), transparent 70%); animation: respirar 26s var(--ease-io) -5s infinite alternate-reverse; }
.aura::after { content: ''; position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .52 0 0 0 0 .65 0 0 0 .08 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E"); background-size: 160px 160px; }
@keyframes respirar { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }

/* Encabezado */
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 22px/1 var(--display); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.ink-mark { position: relative; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50% 50% 50% 8%; background: radial-gradient(circle at 34% 30%, #8d7fd6 0 18%, transparent 46%), var(--tinta); box-shadow: inset 0 0 0 2px #fff, var(--sombra-s); transform: rotate(-12deg); }
.site-header nav { display: flex; gap: 4px; flex-shrink: 0; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), var(--sombra-s); backdrop-filter: blur(10px); }
.site-header nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color 160ms ease, transform 140ms var(--ease-out); }
.site-header nav a:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .site-header nav a:hover { background: var(--perla-2); } }
@media (max-width: 639px) { .site-header nav .nav-opcional { display: none; } .site-header nav a { padding: 0 11px; font-size: 13px; } }

/* Botones */
.button { position: relative; isolation: isolate; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border: 2px solid var(--linea-2); border-radius: 999px; background: var(--perla-2); color: var(--tinta); text-decoration: none; font-size: 15px; line-height: 1.3; font-weight: 700; text-align: center; letter-spacing: -.005em; transition: transform 140ms var(--ease-out), background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.button:active { transform: scale(.97); }
.button.primary { border: 3px solid transparent; background: linear-gradient(var(--tinta), var(--tinta)) padding-box, var(--foil) border-box; color: #f4ecff; box-shadow: var(--sombra-m); overflow: hidden; }
/* Foil 1 de 4: el botón primario lleva un filo de lámina holográfica y un destello que lo cruza
   al pasar el mouse (solo transform). */
.button.primary::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 36%, rgba(207, 226, 255, .1) 42%, rgba(236, 223, 255, .34) 50%, rgba(255, 214, 228, .1) 58%, transparent 64%); transform: translateX(-75%); transition: transform 720ms var(--ease-out); }
.button.primary > * { position: relative; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { border-color: var(--violeta); background: #fff; }
  .button.primary:hover { border-color: transparent; background: linear-gradient(#2f2a55, #2f2a55) padding-box, var(--foil) border-box; }
  .button.primary:hover::before { transform: translateX(75%); }
}
@media (forced-colors: active) { .button.primary { border-color: ButtonText; } .button.primary::before { display: none; } }
.button:disabled, .button[aria-disabled="true"] { opacity: .55; cursor: default; box-shadow: none; }
.button:disabled:active { transform: none; }

/* Stickers: chip con borde blanco grueso y un giro ligero; «caen» al entrar en pantalla (fx.js). */
.sticker { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 3px solid #fff; background: var(--c, var(--lila)); color: var(--tinta); font: 700 13px/1.1 var(--body); letter-spacing: 0; box-shadow: 0 1px 2px rgba(60, 42, 128, .12), 0 8px 18px -10px rgba(60, 42, 128, .4); transform: rotate(var(--rot, -3deg)); white-space: nowrap; }
.sticker svg { width: 16px; height: 16px; flex-shrink: 0; }
.js [data-sticker]:not(.is-stuck) { opacity: 0; }
.js [data-sticker].is-stuck { animation: caer 520ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes caer {
  0% { opacity: 0; transform: translate3d(0, -28px, 0) rotate(calc(var(--rot, -3deg) - 9deg)) scale(1.12); }
  70% { opacity: 1; transform: translate3d(0, 3px, 0) rotate(calc(var(--rot, -3deg) + 1.5deg)) scale(.985); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotate(var(--rot, -3deg)) scale(1); }
}

/* Hero */
.hero { padding-top: 22px; padding-bottom: 56px; }
.hero-kicker { display: flex; flex-wrap: wrap; gap: 10px 8px; margin-bottom: 22px; }
.hero-kicker .sticker:nth-child(2) { --rot: 2deg; --c: var(--menta); }
.hero-intro { max-width: 460px; margin-block: 20px 26px; font-size: 17px; line-height: 1.55; color: var(--bruma); text-wrap: pretty; }
.hero-cta { display: grid; gap: 16px; justify-items: start; }
.hero .button { min-width: 230px; }
.hero-price { display: grid; justify-items: start; gap: 8px; color: var(--bruma); font-size: 14px; }
.hero-price [data-price] { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.hero-price .price-legend { flex-basis: 100%; max-width: 34ch; line-height: 1.45; }
.hero-price .price-legend::before { content: none; }
[data-price] { overflow-wrap: anywhere; }
[data-price] s { color: var(--bruma); font-weight: normal; text-decoration-thickness: 1.5px; }
.price-current { color: var(--tinta); white-space: nowrap; font-weight: 700; }
.price-legend { font-weight: 500; }
.price-legend::before { content: " · "; }
/* Foil 2 de 4: el precio del hero es un sticker holográfico con tinta encima. */
.hero-price .price-current { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 3px solid #fff; background: var(--foil); box-shadow: 0 1px 2px rgba(60, 42, 128, .12), 0 8px 18px -10px rgba(60, 42, 128, .4); font: 700 19px/1 var(--display); letter-spacing: -.02em; transform: rotate(-2deg); }
.hero-price s + .price-current { margin-left: 2px; }
.price-format { display: block; font-size: 13px; }
.paper-note { display: none; }
.hero-visual { margin-top: 40px; }
.video-figure { text-align: center; }
/* Tres tablets con portadas reales; la del centro lleva el foil que sigue al dedo o al mouse (fx.js). */
.hero-tablets { text-align: center; perspective: 1400px; }
.tablet-fan { container-type: inline-size; position: relative; width: min(100%, 520px); margin-inline: auto; aspect-ratio: 1 / .86; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 600ms var(--ease-out); will-change: transform; }
.tablet-fan.is-live { transition: none; }
.ipad { --w: 58cqw; position: absolute; bottom: 0; width: var(--w); padding: calc(var(--w) * .04); border-radius: calc(var(--w) * .08); background: linear-gradient(160deg, #fbfaff, #e7e1f4); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), inset 0 0 0 calc(var(--w) * .006) #cfc7e3, var(--sombra-l); }
.ipad::before { content: ''; position: absolute; top: calc(var(--w) * .016); left: 50%; width: calc(var(--w) * .012); height: calc(var(--w) * .012); border-radius: 50%; background: #2a2740; box-shadow: 0 0 0 calc(var(--w) * .003) #a9a1c4; transform: translateX(-50%); }
.ipad img { width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: calc(var(--w) * .035); background: #ece8f5; }
.ipad-centro { left: 50%; transform: translateX(-50%) translateZ(40px); z-index: 3; }
.ipad-izq { --w: 42cqw; left: 3cqw; bottom: 7cqw; transform: rotate(-8deg) translateZ(-30px); transform-origin: 70% 100%; z-index: 1; opacity: .96; }
.ipad-der { --w: 42cqw; right: 3cqw; bottom: 5cqw; transform: rotate(7deg) translateZ(-10px); transform-origin: 30% 100%; z-index: 2; }
.ipad-centro .ipad-screen { position: relative; overflow: hidden; border-radius: calc(var(--w) * .035); isolation: isolate; }
/* Foil 3 de 4: lámina holográfica sobre la portada; se mueve con transform, nunca repinta el gradiente. */
.foil-sheen { position: absolute; inset: -60%; z-index: 1; pointer-events: none; mix-blend-mode: soft-light; opacity: .9; background: conic-gradient(from 160deg at 50% 50%, rgba(236, 223, 255, .9), rgba(207, 226, 255, .9), rgba(200, 241, 227, .9), rgba(255, 242, 207, .9), rgba(255, 214, 228, .9), rgba(229, 211, 255, .9), rgba(236, 223, 255, .9)); transform: translate3d(var(--sx, 0%), var(--sy, 0%), 0) rotate(var(--sr, 0deg)); animation: foil-idle 14s var(--ease-io) infinite alternate; }
.foil-sheen::after { content: ''; position: absolute; inset: 0; background: var(--foil-brillo); background-size: 60% 100%; background-repeat: no-repeat; background-position: 20% 0; mix-blend-mode: screen; opacity: .9; }
.tablet-fan.is-live .foil-sheen { animation-play-state: paused; }
@keyframes foil-idle { from { translate: -12% -8%; rotate: -6deg; } to { translate: 12% 10%; rotate: 8deg; } }
.hero-tablets > figcaption { max-width: 340px; margin: 22px auto 0; font-size: 13px; line-height: 1.6; color: var(--bruma); }
.hero-tablets > figcaption a { display: inline-block; padding-block: 10px; font-weight: 700; color: var(--tinta); }
.hero-badge { position: absolute; right: -2cqw; top: 2cqw; z-index: 4; --rot: 6deg; --c: var(--limon); }

/* Teléfono del concepto de la app */
.phone { position: relative; width: 218px; margin-inline: auto; border: 6px solid #e8e2f5; border-radius: 32px; overflow: hidden; box-shadow: inset 0 0 0 1px #fff, var(--sombra-l); background: #fffdf8; }
.video-viewport { position: relative; aspect-ratio: 360 / 779; overflow: hidden; }
/* Los MP4 originales tienen un lienzo 720 × 1558; la app ocupa 360 × 779,
   en la esquina superior izquierda. El marco recorta ese margen sin duplicarlos. */
.video-viewport video, .video-viewport .motion-poster { position: absolute; top: 0; left: 0; width: 200%; height: 200%; max-width: none; object-fit: fill; }
.motion-poster { display: none; }
.video-figure.is-reduced .motion-poster { display: block; }
.video-figure.is-reduced video { visibility: hidden; }
.text-button { min-height: 44px; padding: 8px 12px; border: 0; background: none; color: var(--tinta); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.video-toggle { margin-top: 18px; }
.video-toggle:disabled { color: var(--bruma); text-decoration: none; }
.video-figure > figcaption { max-width: 290px; margin: 2px auto 0; font-size: 12px; line-height: 1.6; color: var(--bruma); }

/* Encabezados de sección */
.section-heading { display: grid; gap: 14px; margin-bottom: 26px; }
.section-heading > p { max-width: 520px; color: var(--bruma); text-wrap: pretty; }
.section-heading .sticker { justify-self: start; }

/* Galería: carrusel nativo (scroll-snap) con un tono por estilo. */
.gallery { position: relative; }
.gallery-nav { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 14px; }
.gallery-btn { width: 48px; height: 48px; display: inline-grid; place-items: center; padding: 0; border: 2px solid var(--linea-2); border-radius: 50%; background: var(--perla-2); color: var(--tinta); transition: transform 140ms var(--ease-out), border-color 160ms ease, background-color 160ms ease; }
.gallery-btn svg { width: 20px; height: 20px; }
.gallery-btn:active:not(:disabled) { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .gallery-btn:hover:not(:disabled) { border-color: var(--violeta); background: #fff; } }
.gallery-btn:disabled { opacity: .35; }
.gallery-track { display: flex; gap: 14px; margin: 0 -18px; padding: 8px 18px 26px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-card { --tono: var(--lila); flex: 0 0 min(84%, 330px); scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; padding: 14px 14px 16px; border-radius: var(--r-m); background: linear-gradient(180deg, var(--tono) 0 150px, var(--perla-2) 150px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), var(--sombra-s); }
.gallery-card[data-estilo="a"] { --tono: #d8dcf4; }
.gallery-card[data-estilo="b"] { --tono: var(--limon); }
.gallery-card[data-estilo="c"] { --tono: var(--menta); }
.gallery-card[data-estilo="d"] { --tono: var(--rosa); }
.gallery-card[data-estilo="e"] { --tono: #fff6cf; }
.gallery-card[data-estilo="f"] { --tono: var(--hielo); }
.gallery-card[data-estilo="g"] { --tono: var(--durazno); }
.gallery-card h3 { font-size: 22px; }
.gallery-desc { margin-block: 6px 12px; color: var(--bruma); font-size: 13px; line-height: 1.5; min-height: 3em; text-wrap: pretty; }
.gallery-cover { width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: var(--r-s); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), var(--sombra-m); background: #ece8f5; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0 16px; padding: 0; list-style: none; }
.gallery-thumbs figure { margin: 0; }
.gallery-thumbs img { width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: 8px; box-shadow: var(--sombra-s); background: #ece8f5; }
.gallery-thumbs figcaption { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--bruma); text-align: center; }
.gallery-pick { margin-top: auto; width: 100%; }
.gallery-note { margin-top: 4px; color: var(--bruma); font-size: 13px; }

/* Configurador: cinco pasos numerados, indicador de progreso pegado arriba, resumen y vista previa al lado. */
.styles-section { position: relative; }
.builder-progress { position: sticky; top: 8px; z-index: 5; display: flex; gap: 2px; margin: 0 0 28px; padding: 4px; list-style: none; counter-reset: paso; border-radius: 999px; background: rgba(250, 249, 253, .9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), var(--sombra-m); backdrop-filter: blur(14px) saturate(1.2); overflow: hidden; }
.builder-progress a { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; counter-increment: paso; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--bruma); text-decoration: none; white-space: nowrap; transition: color 200ms ease; }
.builder-progress a::before { content: counter(paso); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--perla); color: var(--tinta); font: 700 11px/1 var(--display); flex-shrink: 0; transition: background-color 200ms ease, color 200ms ease; }
.builder-progress a[aria-current="step"] { color: var(--tinta); }
.builder-progress a[aria-current="step"]::before { background: var(--tinta); color: #fff; }
.builder-progress a:focus-visible { outline-offset: -3px; }
.progress-thumb { position: absolute; top: 4px; left: 4px; bottom: 4px; width: 100px; border-radius: 999px; background: var(--perla-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 1), var(--sombra-s); transform-origin: left center; transform: translateX(var(--x, 0px)) scaleX(var(--w, 1)); transition: transform 320ms var(--ease-out); pointer-events: none; }
.builder-progress .step-label { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479px), (min-width: 900px) and (max-width: 1199px) { .builder-progress a:not([aria-current="step"]) .step-label { display: none; } .builder-progress a { flex: 0 0 48px; } .builder-progress a[aria-current="step"] { flex: 1 1 auto; } }
.builder-layout { display: grid; gap: 28px; align-items: start; }
.builder-controls { min-width: 0; padding: 0; margin: 0; border: 0; }
.builder-step { min-width: 0; margin-bottom: 36px; scroll-margin-top: 70px; }
.builder-group { min-width: 0; padding: 0; margin: 0; border: 0; }
.builder-group + .builder-group { margin-top: 20px; }
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.step-head h3, .builder-group > legend .step-title, .builder-name > label.step-title-label { font: 600 20px/1.2 var(--display); letter-spacing: -.015em; word-spacing: .08em; }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 3px solid #fff; background: var(--c, var(--lila)); color: var(--tinta); font: 700 16px/1 var(--display); box-shadow: 0 1px 2px rgba(60, 42, 128, .12), 0 8px 18px -10px rgba(60, 42, 128, .4); transform: rotate(var(--rot, -6deg)); vertical-align: middle; }
[data-step="2"] .step-num { --c: var(--hielo); --rot: 5deg; }
[data-step="3"] .step-num { --c: var(--menta); --rot: -4deg; }
[data-step="4"] .step-num { --c: var(--durazno); --rot: 6deg; }
[data-step="5"] .step-num { --c: var(--rosa); --rot: -5deg; }
.builder-group > legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 15px; }
.builder-group > legend.step-legend { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.builder-help { color: var(--bruma); font-size: 13px; line-height: 1.55; }
.builder-group > .builder-help, .step-head + .builder-help { margin: 0 0 14px; max-width: 520px; }
.builder-options, .builder-styles { display: grid; gap: 10px; }
/* Cada opción es una tarjeta; el input cubre toda la tarjeta para que el toque, el teclado y los lectores sigan siendo nativos. */
.builder-option { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; min-height: 56px; padding: 13px 14px; border-radius: 16px; cursor: pointer; background: var(--perla-2); box-shadow: inset 0 0 0 1.5px var(--linea-2), var(--sombra-s); transition: transform 140ms var(--ease-out), box-shadow 180ms ease, background-color 180ms ease, color 180ms ease; }
.builder-option:active { transform: scale(.98); }
@media (hover: hover) and (pointer: fine) { .builder-option:hover { box-shadow: inset 0 0 0 1.5px var(--violeta), var(--sombra-s); } }
.builder-option input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; appearance: none; }
.builder-option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--tinta), var(--sombra-s); }
.builder-option:has(input:focus-visible) { outline: 3px solid var(--violeta); outline-offset: 4px; }
.builder-option > span { min-width: 0; }
.builder-option strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.builder-option small { display: block; margin-top: 3px; color: var(--bruma); font-size: 12.5px; line-height: 1.45; text-wrap: pretty; }
/* Indicador: punto para radios, interruptor para módulos. */
[data-options="modulos"] .builder-option { grid-template-columns: 44px minmax(0, 1fr) auto; transition-duration: 200ms; transition-timing-function: var(--ease-out); }
[data-options="modulos"] .builder-option:has(input:checked) { background: color-mix(in srgb, var(--lila) 32%, var(--perla-2)); }
.modulo-mini { display: block; width: 44px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: var(--sombra-s); filter: grayscale(1); opacity: .5; transform: scale(.94); transition: filter 200ms var(--ease-out), opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.modulo-mini img { width: 100%; height: 100%; object-fit: cover; }
[data-options="modulos"] .builder-option:has(input:checked) .modulo-mini { filter: none; opacity: 1; transform: scale(1); }
/* El botón es hermano del label: tocar la hoja no cambia el interruptor. */
.modulo-opcion { position: relative; min-width: 0; }
.modulo-ampliar { position: absolute; z-index: 3; left: 14px; top: 50%; transform: translateY(-50%); width: 44px; height: 59px; min-height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; }
.modulo-ampliar::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border: 1px solid var(--linea); border-radius: 50%; background: var(--perla-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23221f3b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cpath d='m15 15 5 5M10 7v6M7 10h6'/%3E%3C/svg%3E") center / 14px no-repeat; }
.builder-option::after { content: ''; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--linea-2); background: #fff; transition: box-shadow 180ms ease, background-color 180ms ease; }
.builder-option:has(input:checked)::after { background: var(--tinta); box-shadow: inset 0 0 0 2px var(--tinta), inset 0 0 0 6px #fff; }
[data-options="modulos"] .builder-option::after { width: 44px; height: 26px; border-radius: 999px; background: var(--linea); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }
[data-options="modulos"] .builder-option::before { content: ''; position: absolute; right: 17px; top: 50%; z-index: 1; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(34, 31, 59, .3); transform: translateX(-18px); transition: transform 200ms var(--ease-out); }
[data-options="modulos"] .builder-option:has(input:checked)::after { background: var(--tinta); box-shadow: inset 0 0 0 2px var(--tinta); }
[data-options="modulos"] .builder-option:has(input:checked)::before { transform: translateX(0); }
/* Segmentos: dos opciones grandes lado a lado; la elegida se vuelve tinta. */
.segmented { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.segmented .builder-option { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; }
.segmented .builder-option::after { display: none; }
.segmented .builder-option:has(input:checked) { background: var(--tinta); color: #fff; box-shadow: inset 0 0 0 2px var(--tinta), var(--sombra-m); }
.segmented .builder-option:has(input:checked) small { color: #cfc8ea; }
/* Mi día: cuatro mosaicos en lugar de una lista de radios; el elegido se llena de tinta, igual que los segmentados. */
[data-options="miDia"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
[data-options="miDia"] .builder-option { grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 92px; padding: 14px 14px 16px; }
[data-options="miDia"] .builder-option::after { position: absolute; right: 12px; top: 12px; width: 20px; height: 20px; }
[data-options="miDia"] .builder-option strong { padding-right: 26px; }
[data-options="miDia"] .builder-option:has(input:checked) { background: var(--tinta); color: #fff; box-shadow: inset 0 0 0 2px var(--tinta), var(--sombra-m); }
[data-options="miDia"] .builder-option:has(input:checked) small { color: #cfc8ea; }
[data-options="miDia"] .builder-option:has(input:checked)::after { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23221f3b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; }
/* Estilos: tarjetas con la portada; la elegida se enmarca en foil (4 de 4). */
.builder-styles { display: flex; gap: 10px; margin: 0 -18px; padding: 6px 18px 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 18px; scrollbar-width: none; }
.builder-styles::-webkit-scrollbar { display: none; }
.builder-styles .builder-option { flex: 0 0 148px; scroll-snap-align: start; grid-template-columns: minmax(0, 1fr); align-content: start; padding: 10px 10px 12px; border-radius: 18px; }
.builder-styles .builder-option::after { position: absolute; right: 14px; top: 14px; width: 24px; height: 24px; background: #fff; box-shadow: 0 1px 4px rgba(34, 31, 59, .25); opacity: 0; transform: scale(.8); transition: opacity 180ms ease, transform 220ms var(--ease-out); }
.builder-styles .builder-option:has(input:checked)::after { opacity: 1; transform: scale(1); background: var(--tinta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 1px 4px rgba(34, 31, 59, .25); }
.builder-styles .builder-option::before { content: ''; position: absolute; inset: -3px; z-index: -1; border-radius: 21px; background: var(--foil); opacity: 0; transition: opacity 200ms ease; }
.builder-styles .builder-option:has(input:checked) { box-shadow: inset 0 0 0 2px #fff, var(--sombra-m); }
.builder-styles .builder-option:has(input:checked)::before { opacity: 1; }
.builder-styles .builder-option strong { font-size: 14px; }
.builder-styles .builder-option small { font-size: 11.5px; line-height: 1.4; }
.builder-swatch { display: block; width: 100%; aspect-ratio: 3 / 4; margin-bottom: 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(34, 31, 59, .08), var(--sombra-s); background-size: cover; background-position: top center; background-repeat: no-repeat; transition: transform 240ms var(--ease-out); }
.builder-option:has(input:checked) .builder-swatch { transform: scale(1.03); }
/* Cada muestra es la portada del estilo; el color queda de respaldo mientras carga. */
.swatch-a { background-color: #1a1e2d; background-image: url("media/galeria/a-portada.webp"); }
.swatch-b { background-color: #fed15d; background-image: url("media/galeria/b-portada.webp"); }
.swatch-c { background-color: #f2ebdb; background-image: url("media/galeria/c-portada.webp"); }
.swatch-d { background-color: #f9dae2; background-image: url("media/galeria/d-portada.webp"); }
.swatch-e { background-color: #fffefc; background-image: url("media/galeria/e-portada.webp"); }
.swatch-f { background-color: #faf9f6; background-image: url("media/galeria/f-portada.webp"); }
.swatch-g { background-color: #fffefc; background-image: url("media/galeria/g-portada.webp"); }
/* Nombre */
.builder-name { min-width: 0; }
.builder-name > label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 15px; }
.builder-name input, .gift-field input, .gift-field textarea, .email-row input { width: 100%; min-width: 0; min-height: 52px; padding: 12px 16px; border: 2px solid var(--linea-2); border-radius: 14px; color: var(--tinta); background: #fff; transition: border-color 160ms ease, box-shadow 160ms ease; }
.builder-name input:focus-visible, .gift-field input:focus-visible, .gift-field textarea:focus-visible, .email-row input:focus-visible { outline: none; border-color: var(--violeta); box-shadow: 0 0 0 4px rgba(91, 63, 191, .18); }
.builder-name input[aria-invalid="true"], .gift-field [aria-invalid="true"] { border-color: var(--error); }
.builder-name .builder-help { margin-top: 8px; }
.builder-name .config-status { margin-top: 8px; }
/* Resumen y compra */
.builder-side { min-width: 0; display: grid; gap: 18px; }
.builder-summary { position: relative; min-width: 0; padding: 22px 20px 20px; border-radius: var(--r-m); background: var(--perla-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 1), var(--sombra-m); }
.builder-summary .handwritten { font: italic 400 20px/1.2 var(--accent); color: var(--violeta); font-variation-settings: 'SOFT' 100; }
.builder-summary h3 { margin-block: 6px 10px; font-size: 24px; }
.total-delta { position: absolute; top: 22px; right: 20px; display: block; width: fit-content; max-width: 100%; min-height: 26px; padding: 4px 10px; margin: 0; border-radius: 999px; background: var(--lila); font-size: 12px; line-height: 1.5; font-weight: 700; opacity: 0; visibility: hidden; }
.total-delta.is-visible { visibility: visible; opacity: 1; animation: aviso-modulo 2s var(--ease-out) both; }
#agenda-total.is-modulo-cambio { border-radius: 6px; animation: pulso-modulo 650ms var(--ease-out); }
@keyframes aviso-modulo { 0%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pulso-modulo { from { background-color: var(--lila); } to { background-color: transparent; } }
@keyframes chip-modulo { 0%, 70% { background-color: var(--lila); } 100% { background-color: var(--perla); } }
#agenda-selection { color: var(--bruma); font-size: 14px; }
#agenda-includes { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin-block: 14px; list-style: none; font-size: 12.5px; }
#agenda-includes li { padding: 5px 10px; border-radius: 999px; background: var(--perla); box-shadow: inset 0 0 0 1px var(--linea); font-weight: 600; }
#agenda-includes li.is-nuevo { animation: chip-modulo 2s var(--ease-out); }
.builder-summary > p { font-size: 14px; }
.builder-summary .builder-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-block: 18px 6px; }
.builder-price .price-current { font: 700 30px/1 var(--display); letter-spacing: -.03em; }
.builder-price .price-legend { display: block; width: 100%; margin-top: 4px; font-size: 13px; color: var(--bruma); }
.builder-price .price-legend::before { content: none; }
.builder-summary .builder-help { font-size: 12.5px; }
.builder-summary .button { width: 100%; margin-top: 16px; }
.builder-preview { position: relative; min-width: 0; padding: 18px 18px 16px; border-radius: var(--r-m); background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
.builder-preview h3 { font-size: 17px; }
.builder-preview > .builder-help { margin-block: 6px 14px; max-width: 560px; }
/* Copia de las páginas anteriores que se desvanece al cambiar de estilo (fx.js). */
.preview-ghost { position: absolute; z-index: 2; margin: 0; pointer-events: none; transform-origin: 50% 40%; }
.preview-ghost .builder-page { transition: none; }
.builder-previews { display: flex; gap: 12px; margin: 0 -18px; padding: 4px 18px 8px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 18px; scrollbar-width: none; }
.builder-previews::-webkit-scrollbar { display: none; }
.builder-page { flex: 0 0 96px; min-width: 0; scroll-snap-align: start; }
.builder-page:first-child { flex-basis: 132px; }
.preview-ampliar { display: block; align-self: flex-start; width: 100%; min-width: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: inherit; text-align: inherit; }
/* Cambio de estilo: cada página entra con fundido y escala, escalonadas. */
.builder-page { transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out); transition-delay: calc(var(--n, 0) * 45ms); }
.builder-page:nth-child(2) { --n: 1; } .builder-page:nth-child(3) { --n: 2; } .builder-page:nth-child(4) { --n: 3; } .builder-page:nth-child(5) { --n: 4; } .builder-page:nth-child(6) { --n: 5; } .builder-page:nth-child(7) { --n: 6; } .builder-page:nth-child(8) { --n: 7; } .builder-page:nth-child(n+9) { --n: 8; }
@starting-style { .builder-page { opacity: 0; transform: translateY(8px) scale(.94); } }
.builder-sheet { display: block; container-type: inline-size; position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(34, 31, 59, .08), var(--sombra-s); }
/* Fondo y color de respaldo (si la imagen no carga) con los colores de cada portada. */
.preview-a { color: #f1ebe2; background: #1a1e2d; }
.preview-b { color: #1d1d1f; background: #fed15d; }
.preview-c { color: #26402f; background: #f2ebdb; }
.preview-d { color: #23304f; background: #f9dae2; }
.preview-e { color: #1b2347; background: #fffefc; }
.preview-f { color: #171d38; background: #faf9f6; }
.preview-g { color: #254766; background: #fffefc; }
.builder-sheet img { width: 100%; height: 100%; object-fit: contain; }
.preview-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 10px; font: 500 14px/1.2 var(--body); }
/* El nombre cae sobre la línea «Este año es de:» de la portada. Posición, color, alineación y --tam
   (tamaño como % del ancho de la hoja) vienen del bloque generado al final de este archivo;
   --ajuste lo calcula main.js cuando el nombre no cabe en el recuadro. */
.preview-name { position: absolute; left: 10%; top: 80%; width: 80%; display: block; white-space: nowrap; overflow: visible; font: 500 calc(var(--tam, 4) * 1cqw * var(--ajuste, 1))/1.15 var(--serif); }
.preview-a .preview-name { font-style: italic; }
.preview-b .preview-name, .preview-e .preview-name { font-family: 'Trebuchet MS', Arial, sans-serif; font-weight: 700; }
.preview-c .preview-name { font-weight: 700; }
.builder-page-caption { display: block; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--bruma); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Visor nativo: conserva el pellizco y bloquea el desplazamiento del fondo, también en iOS. */
html.visor-abierto { overflow: hidden; }
.visor-abierto body { position: fixed; top: var(--visor-scroll); left: 0; width: 100%; overflow: hidden; }
.agenda-visor { width: min(calc(100% - 24px), calc((100vh - 202px) * .75 + 26px)); width: min(calc(100% - 24px), calc((100dvh - 202px) * .75 + 26px)); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 12px; border: 1px solid var(--linea); border-radius: var(--r-m); background: var(--perla); color: var(--tinta); box-shadow: var(--sombra-m); overflow: auto; overscroll-behavior: contain; }
.agenda-visor::backdrop { background: rgba(34, 31, 59, .8); }
.visor-contenido { display: grid; gap: 8px; }
.visor-cerrar { justify-self: end; }
.agenda-visor .button { min-width: 44px; min-height: 44px; padding: 8px 16px; }
.visor-hoja { width: 100%; border-radius: 8px; }
.visor-pie { text-align: center; }
#visor-titulo { color: var(--tinta); font-size: 14px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.visor-navegacion { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 6px; }
#visor-contador { min-width: 64px; font-size: 13px; color: var(--bruma); }
@media (prefers-reduced-motion: no-preference) {
  .agenda-visor[open] { animation: visor-entrada 180ms var(--ease-out); }
  @keyframes visor-entrada { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
.config-status { color: var(--error); font-size: 14px; margin-top: 12px; }
.config-status:empty { display: none; }
/* Barra de compra pegada abajo (solo en pantallas angostas; refleja el resumen, no tiene precio propio). */
.buy-bar { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(252, 251, 255, .9); box-shadow: inset 0 0 0 1px #fff, var(--sombra-l); backdrop-filter: blur(14px); transform: translateY(0); transition: transform 320ms var(--ease-out), opacity 240ms ease; }
.buy-bar.is-off { transform: translateY(120%); opacity: 0; pointer-events: none; }
.buy-bar-info { flex: 1 1 auto; min-width: 0; display: grid; line-height: 1.2; }
.buy-bar-info span { font-size: 12px; color: var(--bruma); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buy-bar-info [data-bar-delta] { display: none; justify-self: start; width: fit-content; max-width: 100%; padding: 1px 8px; border-radius: 999px; color: var(--bruma); background: var(--perla); }
.buy-bar-info [data-bar-delta][data-signo="+"] { color: #246752; background: var(--menta); }
.buy-bar.has-delta [data-bar-total] { display: none; }
.buy-bar.has-delta [data-bar-delta] { display: block; animation: aviso-modulo 2s var(--ease-out) both; }
.buy-bar-info strong { font: 700 17px/1.2 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.buy-bar .button { min-height: 48px; padding-inline: 20px; flex-shrink: 0; }
@media (min-width: 900px) { .buy-bar { display: none; } }
body.has-buy-bar .styles-section { padding-bottom: 90px; }

/* Qué incluye: bento con íconos de línea */
.includes { position: relative; }
.includes-layout { display: grid; gap: 28px; }
.includes-intro > p { margin-top: 18px; max-width: 420px; color: var(--bruma); text-wrap: pretty; }
.includes-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.includes-list li { --c: var(--lila); position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px; border-radius: var(--r-m); background: var(--perla-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 1), var(--sombra-s); font-size: 13px; line-height: 1.5; color: var(--bruma); }
.includes-list li:nth-child(1), .includes-list li:nth-child(6) { grid-column: span 2; }
.includes-list li:nth-child(1) { --c: var(--hielo); background: linear-gradient(135deg, var(--perla-2) 40%, var(--hielo)); }
.includes-list li:nth-child(2) { --c: var(--menta); }
.includes-list li:nth-child(3) { --c: var(--limon); }
.includes-list li:nth-child(4) { --c: var(--durazno); }
.includes-list li:nth-child(5) { --c: var(--rosa); }
.includes-list li:nth-child(6) { --c: #fff; background: linear-gradient(135deg, var(--lila), var(--rosa) 70%, var(--durazno)); color: var(--tinta); }
.includes-list li:nth-child(6) strong { font-size: 18px; }
.includes-list svg { width: 36px; height: 36px; padding: 7px; border-radius: 12px; background: var(--c); color: var(--tinta); }
.includes-list strong { display: block; font: 600 16px/1.25 var(--display); letter-spacing: -.015em; color: var(--tinta); text-wrap: balance; }
.includes-list li > span { display: block; }
.compatibility { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); font-size: 13px; color: var(--bruma); }
.compatibility svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; color: var(--tinta); }

/* Regalo (Planner de cierre) */
.gift-section { display: grid; gap: 28px; align-items: center; }
.gift-preview { position: relative; width: min(100%, 300px); aspect-ratio: 3 / 4; margin-inline: auto; border-radius: var(--r-m); overflow: visible; background: linear-gradient(145deg, var(--perla-2), var(--lila)); box-shadow: var(--sombra-l); transform: rotate(-3deg); }
.gift-preview img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.gift-preview figcaption { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; text-align: center; font: 600 26px/1.15 var(--display); }
.gift-preview .sticker { position: absolute; left: -10px; top: -14px; --rot: -8deg; --c: var(--limon); }
.gift-copy h3 { margin-top: 18px; font-size: 22px; }
.gift-copy ul { padding: 0; margin-block: 18px 0; list-style: none; color: var(--bruma); }
.gift-copy li { position: relative; padding-left: 28px; }
.gift-copy li::before { content: ''; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50% 50% 50% 10%; background: var(--menta); box-shadow: inset 0 0 0 2px #fff; transform: rotate(-12deg); }
.gift-copy li:nth-child(2)::before { background: var(--durazno); } .gift-copy li:nth-child(3)::before { background: var(--rosa); }
.gift-copy li + li { margin-top: 12px; }

/* Cómo funciona */
.steps { display: grid; gap: 22px; list-style: none; margin: 30px 0 0; padding: 0; }
.steps li { position: relative; padding: 18px 18px 18px 72px; border-radius: var(--r-m); background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); }
.step-symbol { position: absolute; top: 16px; left: 16px; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; background: var(--lila); color: var(--tinta); font: 700 16px/1 var(--display); box-shadow: 0 1px 2px rgba(60, 42, 128, .12), 0 8px 18px -10px rgba(60, 42, 128, .4); transform: rotate(-6deg); }
.steps li:nth-child(2) .step-symbol { background: var(--menta); transform: rotate(5deg); }
.steps li:nth-child(3) .step-symbol { background: var(--durazno); transform: rotate(-4deg); }
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { font-size: 14px; color: var(--bruma); max-width: 320px; }

/* La futura app */
.app-section { position: relative; }
.app-layout { display: grid; gap: 36px; padding: 28px 22px; border-radius: var(--r-l); background: linear-gradient(160deg, var(--perla-2), #ece6f8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 1), var(--sombra-m); }
.app-copy > p { margin-top: 18px; color: var(--bruma); }
.app-copy .app-disclaimer { font-size: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 1); margin-bottom: 24px; }
.email-label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.email-row { display: grid; gap: 10px; }
.email-row input::placeholder { color: #6f6b8a; opacity: 1; }
.consent { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; margin-top: 14px; padding-block: 6px; cursor: pointer; }
.consent input { accent-color: var(--tinta); width: 22px; height: 22px; flex-shrink: 0; margin: 0; }
.form-note { font-size: 12px; color: var(--bruma); margin-top: 8px; }
.form-status { font-size: 14px; font-weight: 700; margin-top: 12px; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--error); }
.app-visual .phone { width: 200px; }

/* Preguntas frecuentes */
.faq-list { margin-top: 24px; display: grid; gap: 10px; }
.faq-list details { border-radius: 16px; background: var(--perla-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 1), var(--sombra-s); }
.faq-list summary { position: relative; cursor: pointer; min-height: 56px; padding: 16px 56px 16px 18px; font-size: 15.5px; font-weight: 700; line-height: 1.4; list-style: none; border-radius: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ''; position: absolute; right: 14px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--perla) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23221f3b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; transition: transform 220ms var(--ease-out); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > div { padding: 0 18px 18px; color: var(--bruma); font-size: 14px; max-width: 720px; }
.faq-list details > div p + p { margin-top: 10px; }

/* Pie */
.site-footer { padding-block: 34px 28px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; padding-top: 26px; border-top: 1px solid var(--linea); font-size: 12.5px; color: var(--bruma); }
.footer-row .brand { font-size: 20px; color: var(--tinta); }
.footer-row p { flex: 1 1 150px; }
.footer-row a { padding-block: 10px; }
.privacy-placeholder { padding-top: 20px; font-size: 12px; color: var(--bruma); }
.builder-summary .builder-legal { margin-top: 12px; font-size: 12px; color: var(--bruma); }
.builder-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal { max-width: 760px; padding-block: 40px 56px; }
.legal .legal-fecha { margin-top: 14px; font-size: 13px; color: var(--bruma); }
.legal h2 { margin-block: 38px 12px; font-size: clamp(22px, 3.4vw, 28px); }
.legal p, .legal li { max-width: 68ch; }
.legal p + p { margin-top: 10px; }
.legal ul { display: grid; gap: 8px; margin-top: 10px; padding-left: 20px; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.noscript-notice { max-width: 1100px; margin: 20px auto; padding: 20px; border-radius: 16px; background: var(--perla-2); }

@media (min-width: 640px) {
  .wrap { width: min(1120px, calc(100% - 64px)); }
  .site-header { min-height: 84px; }
  .hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 36px; padding-block: 40px 72px; }
  .hero-visual { margin: 0; }
  .hero h1 { font-size: clamp(40px, 5.2vw, 66px); }
  .hero-intro { font-size: 18px; }
  .section-heading { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 24px; }
  .section-heading .sticker { grid-column: 1 / -1; }
  .builder-styles { display: flex; flex-wrap: wrap; justify-content: flex-start; margin: 0; padding: 4px 0; overflow: visible; }
  .builder-styles .builder-option { flex: 0 0 calc((100% - 30px) / 4); }
  .builder-previews { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
  .builder-page { flex-basis: calc((100% - 60px) / 6); }
  .builder-page:first-child { flex-basis: calc((100% - 60px) / 6); }
  .includes-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .includes-list li:nth-child(1) { grid-column: span 4; }
  .includes-list li:nth-child(2) { grid-column: span 2; }
  .includes-list li:nth-child(3), .includes-list li:nth-child(4), .includes-list li:nth-child(5) { grid-column: span 2; }
  .includes-list li:nth-child(6) { grid-column: span 6; flex-direction: row; align-items: center; }
  .includes-list li:nth-child(6) svg { background: rgba(255, 255, 255, .7); }
  .gift-section { grid-template-columns: .8fr 1.2fr; gap: 44px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
  .steps li { padding: 70px 18px 20px; }
  .app-layout { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 44px; padding: 40px 36px; }
  .app-visual .phone { width: 215px; }
  .email-row { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 899px) {
  [data-options="modulos"] .builder-option { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .modulo-mini { width: 40px; }
  .modulo-ampliar { left: 12px; height: 54px; }
  /* En pantallas angostas los pasos y la vista previa se intercalan: estilo → vista previa → el resto. */
  .builder-controls { display: contents; }
  .builder-layout > .builder-side { display: contents; }
  .builder-step[data-step="1"] { order: 1; }
  .builder-preview { order: 2; margin-bottom: 36px; }
  .builder-step[data-step="2"] { order: 3; }
  .builder-step[data-step="3"] { order: 4; }
  .builder-step[data-step="4"] { order: 5; }
  .builder-step[data-step="5"] { order: 6; }
  .builder-summary { order: 7; }
  .builder-layout { gap: 0; }
}
@media (min-width: 900px) {
  .site-header { min-height: 96px; }
  .section-space { padding-block: 96px; }
  .hero { gap: 64px; padding-top: 48px; padding-bottom: 96px; }
  .hero-intro { max-width: 440px; }
  .hero-tablets { position: relative; }
  /* La nota se pega abajo a la izquierda, sobre la tablet Celestial, como una tarjeta suelta en el escritorio;
     el pie de foto se va a la derecha para que no se encimen. */
  .paper-note { display: block; position: absolute; z-index: 5; left: -4%; bottom: 0; width: 196px; padding: 12px 14px 12px; border: 3px solid #fff; border-radius: 18px; background: rgba(252, 251, 255, .86); box-shadow: var(--sombra-m); text-align: left; transform: rotate(-5deg); backdrop-filter: blur(8px); }
  .hero-tablets > figcaption { max-width: 186px; margin: 22px 0 0 auto; text-align: right; }
  .handwritten { font: italic 400 19px/1.3 var(--accent); font-variation-settings: 'SOFT' 100; }
  .paper-note p { color: var(--bruma); font-size: 12.5px; margin-top: 6px; }
  .theme-dots { display: flex; gap: 5px; margin-top: 10px; transform: rotate(-4deg); transform-origin: left center; }
  .theme-dots i { width: 12px; height: 16px; border-radius: 60% 40% 55% 35%; background: #1a1e2d; box-shadow: inset 0 0 0 1.5px #fff; }
  .theme-dots i:nth-child(2) { background: #fed15d; }
  .theme-dots i:nth-child(3) { background: #a8c4a0; }
  .theme-dots i:nth-child(4) { background: #f5b5c8; }
  .theme-dots i:nth-child(5) { background: #8c9cf8; }
  .hero-visual { padding-block: 12px; }
  .tablet-fan { width: min(100%, 600px); }
  .builder-progress { top: 12px; margin-bottom: 36px; }
  .builder-progress a { font-size: 13px; }
  .builder-layout { grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 48px; }
  /* El indicador vive sobre la columna de controles: así nunca tapa la vista previa fija de al lado. */
  .builder-progress { width: calc((100% - 48px) * 1.45 / 2.45); }
  /* El panel fijo nunca pasa de la pantalla: si no cabe, se encoge la vista previa y el resumen (precio y Comprar) queda completo a la vista. */
  .builder-side { position: sticky; top: 12px; max-height: calc(100vh - 24px); display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .builder-preview { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .builder-summary { flex: none; }
  .builder-styles .builder-option { flex: 0 0 calc((100% - 30px) / 4); }
  .builder-previews { gap: 10px; }
  .builder-page, .builder-page:first-child { flex-basis: calc((100% - 30px) / 4); }
  .builder-page:first-child { flex-basis: calc((100% - 30px) / 2); }
  .gallery-track { margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; gap: 20px; }
  .gallery-card { flex-basis: calc((100% - 40px) / 3); }
  .includes-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
  .includes-intro { position: sticky; top: 96px; }
  .app-layout { grid-template-columns: 1.2fr 1fr; gap: 80px; }
  .email-row .button { padding-inline: 20px; }
  .app-visual .phone { width: 231px; }
  .faq-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .faq-section h2 { max-width: 360px; }
  .faq-list { margin-top: 0; }
  .gift-preview .sticker { left: -22px; top: -16px; }
}
@media (min-width: 1200px) {
  .paper-note { width: 240px; padding: 14px 18px; }
  .paper-note .handwritten { font-size: 22px; }
  .hero-tablets > figcaption { max-width: 300px; }
  .builder-progress a { flex: 1 1 auto; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .video-viewport video { visibility: hidden; }
  .video-viewport .motion-poster { display: block; }
  .aura i, .foil-sheen, .js [data-sticker].is-stuck { animation: none; }
  .js [data-sticker]:not(.is-stuck) { opacity: 1; }
  .tablet-fan, .foil-sheen, .builder-page, .progress-thumb, .buy-bar, .builder-swatch, .builder-option, .modulo-mini, .builder-option::after, .button, .gallery-btn, .faq-list summary::after, [data-options="modulos"] .builder-option::before, .gift-toggle input, .gift-toggle input::before { transition: none; }
  #agenda-total.is-modulo-cambio, .total-delta.is-visible, #agenda-includes li.is-nuevo, .buy-bar.has-delta [data-bar-delta] { animation: none; }
  #agenda-includes li.is-nuevo { background: var(--lila); }
  .tablet-fan { transform: none; }
  .builder-option:active, .button:active, .gallery-btn:active:not(:disabled) { transform: none; }
}
/* Guía de inicio (guia.html). Solo lo que la landing no cubría. */
.guia-intro { padding-block: 40px 8px; }
.guia-lead { max-width: 560px; margin-top: 20px; font-size: 17px; color: var(--bruma); }
.guia-body { margin-top: 26px; max-width: 720px; color: var(--bruma); }
.guia-body p + p { margin-top: 14px; }
.guia-body strong { color: var(--tinta); }
.guia-note { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 1); font-size: 14px; }
.guia-pasos > * + * { margin-top: 12px; }
.guia-pasos > :first-child { margin-top: 0; }
.guia-pasos ol { margin-bottom: 0; padding-left: 22px; }
.guia-pasos li + li { margin-top: 8px; }
.guia-help .faq-section { padding: 32px 24px; border-radius: var(--r-l); background: linear-gradient(160deg, var(--perla-2), #ece6f8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 1), var(--sombra-m); }
.guia-help p { margin-top: 14px; max-width: 520px; color: var(--bruma); }
.guia-brand { padding-block: 6px; }
.guia-link { display: inline-block; padding-block: 12px; font-weight: 700; }
@media (min-width: 900px) {
  .guia-intro { padding-block: 64px 10px; }
  .guia-body { margin-top: 0; }
  .guia-help p { margin-top: 0; }
  .guia-help .faq-section { padding: 48px 40px; }
}
/* media-landing:inicio (generado por scripts/media-landing.mjs desde manifiesto.nombre; no editar a mano) */
.preview-a .preview-name { left: 8.333%; top: 39.697%; width: 50.781%; height: 3.906%; --tam: 4.167; color: #F2EDE3; text-align: left; }
.preview-b .preview-name { left: 6.25%; top: 90.82%; width: 41.667%; height: 3.711%; --tam: 3.646; color: #1D1D1F; text-align: left; }
.preview-c .preview-name { left: 6.25%; top: 90.82%; width: 40.365%; height: 3.711%; --tam: 3.646; color: #26402F; text-align: left; }
.preview-d .preview-name { left: 22.005%; top: 70.898%; width: 49.479%; height: 4.688%; --tam: 4.167; color: #23304F; text-align: center; }
.preview-e .preview-name { left: 15.885%; top: 60.928%; width: 40.104%; height: 4.102%; --tam: 4.167; color: #1B2347; text-align: left; }
.preview-f .preview-name { left: 6.25%; top: 90.82%; width: 41.667%; height: 3.711%; --tam: 3.646; color: #171D38; text-align: left; }
.preview-g .preview-name { left: 6.25%; top: 90.82%; width: 41.667%; height: 3.711%; --tam: 3.646; color: #254766; text-align: left; }
/* media-landing:fin */

/* W3: regalo opcional, recorte local y portada 3:4. */
.gift-builder { min-width: 0; margin-top: 22px; border-radius: 18px; padding: 6px 16px 14px; background: var(--perla-2); box-shadow: inset 0 0 0 1.5px var(--linea-2), var(--sombra-s); }
.gift-builder summary { position: relative; min-height: 52px; cursor: pointer; padding: 12px 44px 12px 0; font-weight: 700; list-style: none; border-radius: 12px; }
.gift-builder summary::-webkit-details-marker { display: none; }
.gift-builder summary::after { content: ''; position: absolute; right: 0; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--rosa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23221f3b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: inset 0 0 0 2px #fff; transition: transform 220ms var(--ease-out); }
.gift-builder[open] summary::after { transform: rotate(45deg); }
.gift-builder summary span { display: block; color: var(--bruma); font-size: 13px; font-weight: 500; }
.gift-builder fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.gift-toggle { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; font-weight: 600; }
/* El regalo se prende con el mismo switch que los módulos. */
.gift-toggle input { position: relative; flex-shrink: 0; width: 44px; height: 26px; margin: 0; border-radius: 999px; background: var(--linea); appearance: none; cursor: pointer; transition: background-color 180ms ease; }
.gift-toggle input::before { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(34, 31, 59, .3); transition: transform 200ms var(--ease-out); }
.gift-toggle input:checked { background: var(--tinta); }
.gift-toggle input:checked::before { transform: translateX(18px); }
.gift-toggle input:focus-visible { outline: 3px solid var(--violeta); outline-offset: 3px; }
@media (forced-colors: active) { .gift-toggle input { border: 2px solid ButtonText; } .gift-toggle input:checked::before { background: Highlight; } }
.gift-field { margin-top: 16px; }
.gift-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 14px; }
.gift-field textarea { display: block; resize: vertical; }
.gift-field input[type="file"] { padding: 12px; }
.gift-builder .gift-letters { margin-top: 22px; }
.gift-letters legend { margin-bottom: 10px; }
#regalo-letras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#regalo-letras .builder-option { grid-template-columns: minmax(0, 1fr); align-content: start; min-height: 44px; }
#regalo-letras .builder-option::after { position: absolute; right: 12px; top: 12px; width: 18px; height: 18px; }
#regalo-letras .builder-option:has(input:checked)::after { box-shadow: inset 0 0 0 2px var(--tinta), inset 0 0 0 5px #fff; }
#regalo-letras .builder-option strong { font-size: 12.5px; color: var(--bruma); padding-right: 24px; }
[data-letter-sample] { display: block; margin-top: 4px; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.gift-cover { position: relative; isolation: isolate; width: min(100%, 300px); aspect-ratio: 3 / 4; margin: 18px auto 8px; border-radius: 12px; background-color: #eeedf5; color: var(--tinta); box-shadow: var(--sombra-m); }
.gift-cover canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; border-radius: inherit; }
.gift-cover canvas:active { cursor: grabbing; }
.gift-cover .preview-fallback { font-size: 18px; }
.gift-cover-caption { position: absolute; inset: auto 0 0; padding: 10px 12px; border-radius: 0 0 12px 12px; background: rgba(252, 251, 255, .92); color: var(--tinta); text-align: center; pointer-events: none; }
.gift-cover-caption span { display: block; overflow-wrap: anywhere; }
.gift-cover-caption span:first-child { font: 26px/1.15 var(--serif); }
.gift-cover-caption span + span { margin-top: 4px; font-size: 13px; }
.gift-zoom { display: grid; min-height: 48px; margin-block: 12px; font-weight: 600; font-size: 14px; }
.gift-zoom input { display: block; width: 100%; min-width: 0; min-height: 44px; accent-color: var(--tinta); }
.gift-builder .builder-help { margin-top: 8px; overflow-wrap: anywhere; }
.photo-delivery { margin-top: 24px; min-width: 0; }
.photo-delivery p { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .gift-builder *, .photo-delivery * { scroll-behavior: auto; transition: none; animation: none; } }
