/* ===========================================================
   Cuadros Xpress · Estilos de la tienda (cliente)
   Creado por Carlos Avila · Paleta tomada del logo
   Índice: 1 Variables · 2 Base · 3 Efectos globales · 4 Navegación
           5 Hero (los 2 cuadros están en la sección .hx) · 6 Secciones · 7 Configurador (vista previa)
           8 Opciones · 9 Pedido/pago · 10 Footer · 11 Responsive
   =========================================================== */

/* 1 · VARIABLES — cambia aquí colores y tipografías de todo el sitio */
:root {
  --blue: #c5d7f1;        /* azul bebé del logo */
  --blue-soft: #e4edfa;
  --blue-deep: #7f9fd6;
  --blue-ink: #4a68a6;
  --blush: #f6dfe8;
  --gold: #d9b86c;
  --ink: #17171c;
  --muted: #6b6f7c;
  --paper: #fffdfb;
  --glass: rgba(255, 255, 255, .62);
  --line: rgba(120, 140, 190, .22);

  /* Letra "de firma" (títulos, pasos, frases). La cambia el Panel de control → Mi tienda → Letra de los títulos */
  --f-display: 'Dancing Script', cursive;
  --fw-display: 700;
  --f-script: var(--f-display);
  --f-hand: var(--f-display);
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-ui: 'Poppins', system-ui, sans-serif;

  --r: 26px;
  --sh-1: 0 2px 6px rgba(70, 90, 140, .08), 0 12px 28px rgba(70, 90, 140, .10);
  --sh-2: 0 4px 10px rgba(70, 90, 140, .10), 0 24px 60px rgba(70, 90, 140, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* 2 · BASE */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  overflow-x: clip; margin: 0; font-family: var(--f-ui); color: var(--ink); line-height: 1.55; overflow-x: hidden;
  background: linear-gradient(180deg, #f3eef4 0%, #eaf0fa 38%, #f8eef2 70%, #e8effa 100%) fixed;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; }
[hidden] { display: none !important; }
.script { font-family: var(--f-display); font-weight: var(--fw-display); letter-spacing: 0; }
.serif { font-family: var(--f-serif); }
.eyebrow { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--blue-ink); margin: 0 0 .6rem; font-weight: 500; }
::selection { background: var(--blue); }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; border-radius: 10px; }

/* 3 · EFECTOS GLOBALES */
.bokeh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bokeh span {
  position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55;
  background: radial-gradient(circle at 35% 30%, #fff, rgba(255, 255, 255, .25) 55%, rgba(197, 215, 241, .35));
  animation: drift 18s ease-in-out infinite alternate; transition: transform .6s var(--ease);
}
.bokeh span:nth-child(1) { width: 240px; height: 240px; left: -60px; top: 8%; }
.bokeh span:nth-child(2) { width: 140px; height: 140px; left: 22%; top: 62%; animation-duration: 22s; background: radial-gradient(circle at 35% 30%, #fff, rgba(246, 223, 232, .6)); }
.bokeh span:nth-child(3) { width: 320px; height: 320px; right: -80px; top: 12%; animation-duration: 26s; }
.bokeh span:nth-child(4) { width: 90px; height: 90px; right: 24%; top: 40%; animation-duration: 15s; }
.bokeh span:nth-child(5) { width: 200px; height: 200px; left: 48%; top: 78%; animation-duration: 20s; background: radial-gradient(circle at 35% 30%, #fff, rgba(246, 223, 232, .55)); }
.bokeh span:nth-child(6) { width: 60px; height: 60px; left: 10%; top: 38%; animation-duration: 12s; }
.bokeh span:nth-child(7) { width: 170px; height: 170px; right: 6%; top: 70%; animation-duration: 24s; }
.bokeh span:nth-child(8) { width: 110px; height: 110px; left: 60%; top: 6%; animation-duration: 17s; background: radial-gradient(circle at 35% 30%, #fff, rgba(217, 184, 108, .25)); }
.bokeh span:nth-child(9) { width: 280px; height: 280px; left: 30%; top: -90px; animation-duration: 28s; }
@keyframes drift { to { transform: translate3d(40px, -50px, 0) scale(1.12); } }

#sparkles { position: fixed; inset: 0; z-index: 90; pointer-events: none; width: 100%; height: 100%; }

.cursor { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; }
.cursor i { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); }
.cursor .dot { width: 7px; height: 7px; background: var(--blue-ink); }
.cursor .ring { width: 36px; height: 36px; border: 1.5px solid var(--blue-deep); background: transparent; /* sin backdrop-filter: antes desenfocaba el texto de abajo */ transition: width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s; }
.cursor.hot .ring { width: 58px; height: 58px; background: rgba(197, 215, 241, .16); border-color: var(--blue-ink); }
.cursor.down .ring { width: 26px; height: 26px; }
@media (hover: hover) and (pointer: fine) { .cursor { display: block; } }

.reveal { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* botones */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; overflow: hidden;
  border: 0; padding: .95rem 1.7rem; border-radius: 999px; font-weight: 500; font-size: .95rem; letter-spacing: .02em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s; will-change: transform;
}
.btn span { position: relative; z-index: 1; }
.btn.primary { background: linear-gradient(135deg, #1d1d24, #34364a); color: #fff; box-shadow: 0 10px 26px rgba(23, 23, 28, .28), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn.primary:hover { box-shadow: 0 16px 38px rgba(74, 104, 166, .45); }
.btn.primary:active { transform: scale(.97) !important; }
.btn.primary:disabled { opacity: .55; cursor: wait; }
.btn.ghost { background: rgba(255, 255, 255, .6); border: 1px solid var(--line); backdrop-filter: blur(8px); box-shadow: var(--sh-1); }
.btn.soft { background: var(--blue); color: var(--ink); box-shadow: var(--sh-1); }
.btn.big { width: 100%; padding: 1.1rem; font-size: 1.05rem; }
.shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); }
.btn:hover .shine { animation: shine .9s var(--ease); }
@keyframes shine { to { transform: translateX(120%); } }

/* 4 · NAVEGACIÓN */
.notice { background: var(--ink); color: #fff; text-align: center; font-size: .85rem; padding: .55rem 1rem; }
.nav {
  position: sticky; top: 12px; z-index: 50; margin: 12px auto 0; width: min(1120px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .45rem .6rem .45rem .5rem;
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 999px; box-shadow: var(--sh-1); transition: box-shadow .3s, transform .4s var(--ease);
}
.nav.scrolled { box-shadow: var(--sh-2); }
/* Logo: botón alargado con bordes redondeados (el fondo azul es el mismo del logo, así se funden) */
.brand { position: relative; display: inline-flex; align-items: center; flex: none; padding: .22rem 1.05rem .22rem .8rem; border-radius: 999px; background: #c5d7f1; overflow: hidden; box-shadow: 0 6px 16px rgba(74, 104, 166, .28), inset 0 0 0 1px rgba(255, 255, 255, .75); transition: transform .45s var(--ease), box-shadow .4s; }
.brand img { position: relative; z-index: 1; display: block; height: 50px; width: auto; max-width: 210px; object-fit: contain; }
.brand::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%); transform: translateX(-120%); }
.brand:hover { transform: translateY(-1px) scale(1.04) rotate(-1deg); box-shadow: 0 12px 26px rgba(74, 104, 166, .42), inset 0 0 0 1px #fff; }
.brand:hover::after { animation: shine .9s var(--ease); }
.nav-links { position: relative; display: flex; gap: .1rem; padding: .25rem; border-radius: 999px; background: rgba(255, 255, 255, .45); }
.nav-pill { position: absolute; top: .25rem; bottom: .25rem; left: 0; width: 0; border-radius: 999px; background: #fff; box-shadow: 0 6px 16px rgba(74, 104, 166, .25); opacity: 0; z-index: 0; pointer-events: none; transition: transform .5s var(--ease), width .5s var(--ease), opacity .3s; }
.nav-links a, .tabbar a { --ic: var(--blue-ink); }
.nav-links a[data-sec=productos], .tabbar a[data-sec=productos] { --ic: #d19a2b; }
.nav-links a[data-sec=como], .tabbar a[data-sec=como] { --ic: #d9648f; }
.nav-links a[data-sec=contacto], .tabbar a[data-sec=contacto] { --ic: #2fa763; }
.nav-links a { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.05rem; border-radius: 999px; font-size: .88rem; font-weight: 500; color: #3c4260; transition: color .25s; }
.nav-links a svg, .tabbar a svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: color .3s; }
.nav-links a:hover, .nav-links a.on { color: var(--ic); }
.nav-links a:hover svg { animation: iconWiggle .75s var(--ease); }
.nav-links a.on svg { animation: iconPop 2.8s ease-in-out infinite; }
@keyframes iconWiggle { 20% { transform: rotate(-16deg) scale(1.25); } 50% { transform: rotate(12deg) scale(1.25); } 80% { transform: rotate(-4deg) scale(1.1); } }
@keyframes iconPop { 50% { transform: translateY(-2px) scale(1.14); } }
.tabbar { display: none; }
.cart-btn { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; box-shadow: 0 8px 18px rgba(23, 23, 28, .25); }
.cart-btn b { position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 99px; background: var(--blue); color: var(--ink); font-size: .72rem; display: grid; place-items: center; border: 2px solid #fff; }
.cart-btn.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.3) rotate(-8deg); } 60% { transform: scale(.95); } }

/* 5 · HERO */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 2rem; width: min(1120px, calc(100% - 32px)); margin: 0 auto; min-height: min(82vh, 760px); padding: 3rem 0 4rem; }
.hero h1 { display: flex; flex-direction: column; line-height: .95; }
.hero h1 .script { display: inline-block; align-self: flex-start; font-size: clamp(4.6rem, 12vw, 8.6rem); line-height: 1.12; /* espacio extra: las letras manuscritas se salen de la caja y el degradado las recortaba */ padding: .06em .32em .2em .12em; margin: -.06em -.32em -.2em -.1em; background: linear-gradient(120deg, #1a1a20 20%, #4a68a6 60%, #1a1a20 90%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ink 7s ease-in-out infinite alternate; }
@keyframes ink { to { background-position: 100% 0; } }
.hero h1 .serif { font-size: clamp(1.7rem, 3.6vw, 2.7rem); letter-spacing: .02em; margin-top: -.1em; padding-left: .2em; }
.tagline { font-family: var(--f-display); font-weight: var(--fw-display); font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.2; margin: 1.2rem 0 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border-radius: 999px; font-size: .8rem; background: rgba(255, 255, 255, .6); border: 1px solid var(--line); backdrop-filter: blur(6px); transition: transform .3s var(--ease), background .25s; }
.chips li:hover { transform: translateY(-3px); background: #fff; }
.chips svg { width: 17px; height: 17px; fill: none; stroke: var(--blue-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hero-art { position: relative; height: 480px; perspective: 1100px; }
.orbit { position: absolute; border-radius: 50%; border: 1.5px dashed rgba(127, 159, 214, .5); left: 50%; top: 50%; translate: -50% -50%; animation: spin 40s linear infinite; }
.orbit.o1 { width: 400px; height: 400px; }
.orbit.o2 { width: 300px; height: 300px; animation-direction: reverse; animation-duration: 30s; border-color: rgba(217, 184, 108, .55); }
@keyframes spin { to { rotate: 360deg; } }
.float-heart { position: absolute; font-size: 2rem; color: var(--blue-deep); animation: floaty 5s ease-in-out infinite; z-index: 3; text-shadow: 0 6px 14px rgba(74, 104, 166, .35); }
.float-heart.h1 { left: 8%; top: 12%; } .float-heart.h2 { right: 6%; top: 8%; color: var(--gold); animation-delay: -2s; font-size: 1.6rem; } .float-heart.h3 { right: 14%; bottom: 8%; animation-delay: -3.5s; color: #e6a5c0; }
@keyframes floaty { 50% { transform: translateY(-16px) rotate(8deg); } }
.tilt-card { position: absolute; transform-style: preserve-3d; transition: transform .25s var(--ease); will-change: transform; }
/* Los 2 cuadros de portada (los dibuja js/hero.js; medidas, imágenes y movimiento se editan en el panel) */
.hx { position: absolute; inset: 0; }
.hx-pos { position: absolute; left: 50%; top: 50%; cursor: pointer; will-change: transform; transition: transform 1.05s cubic-bezier(.65, 0, .25, 1); }
.hx-bob { width: 100%; height: 100%; animation: bob 6s ease-in-out infinite; animation-delay: var(--bob-d, 0s); }
.hx[data-anim=none] .hx-bob, .hx[data-anim=orbit] .hx-bob { animation: none; }
.hx[data-anim=float] .hx-bob { animation-duration: 4.2s; }
.hx-card { position: relative; width: 100%; height: 100%; }
.hx-frame { --t: 10px; --mp: 0px; position: relative; width: 100%; height: 100%; box-sizing: border-box; border: var(--t) solid var(--fc, #1b1b1d); border-image: var(--fimg, none); background: #fbfaf6; box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 30px 50px -10px rgba(40, 55, 100, .5), inset 0 0 0 1px rgba(255, 255, 255, .25); transition: filter .8s; }
.hx-frame.no-frame { border-width: 0; box-shadow: 0 2px 4px rgba(0, 0, 0, .2), 0 30px 50px -10px rgba(40, 55, 100, .5); }
.hx-face { width: 100%; height: 100%; background: #fbfaf6; }
.hx-face img { display: block; width: 100%; height: 100%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.hx-pos.is-back .hx-frame { filter: brightness(.95) saturate(.95); }
@keyframes bob { 50% { translate: 0 -12px; } }
.glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .55), transparent 55%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .3s; }
.tilt-card:hover .glare, .tilt-active .glare { opacity: 1; }
.scroll-hint { position: absolute; left: 50%; bottom: 8px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--blue-ink); border-radius: 20px; opacity: .6; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--blue-ink); border-radius: 4px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

.marquee-wrap { overflow: hidden; padding: 1.2rem 0; }
.marquee { overflow: hidden; background: var(--ink); color: #fff; transform: rotate(-1.2deg); margin: 0 -2%; padding: .9rem 0; box-shadow: var(--sh-2); }
.marquee .track { display: flex; gap: 2rem; width: max-content; animation: marq 32s linear infinite; font-family: var(--f-serif); font-size: 1.6rem; white-space: nowrap; }
.marquee i { color: var(--blue); font-style: normal; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* 6 · SECCIONES */
.section { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 6rem 0 1rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-family: var(--f-serif); font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; }
.section-head h2 .script { font-size: 1.5em; color: var(--blue-ink); }
.section-head p:last-child { color: var(--muted); }
.card { background: var(--glass); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .85); border-radius: var(--r); box-shadow: var(--sh-1); padding: 1.6rem; }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1.1rem; }
.prod { position: relative; display: flex; flex-direction: column; align-items: center; padding: 1.6rem 1.2rem; text-align: center; transform-style: preserve-3d; transition: transform .25s var(--ease), box-shadow .3s; }
.prod:hover { box-shadow: var(--sh-2); }
.prod .pi { width: 88px; height: 88px; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(74, 104, 166, .3)); transition: transform .45s var(--ease); }
.prod:hover .pi { transform: translateY(-8px) scale(1.14) rotate(-6deg); }
.prod h3 { font-family: var(--f-serif); font-size: 1.45rem; margin: .5rem 0 .2rem; }
.prod p { margin: 0 0 1rem; font-size: .84rem; color: var(--muted); flex: 1; }
.prod a { font-size: .85rem; font-weight: 500; color: var(--blue-ink); border-bottom: 1.5px solid var(--blue); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.2rem; counter-reset: s; }
.steps li { position: relative; text-align: center; padding: 2rem 1.2rem 1.5rem; background: var(--glass); border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--sh-1); transition: transform .4s var(--ease), box-shadow .4s; }
.steps li:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--sh-2); }
.steps li span { position: absolute; top: -22px; left: 50%; translate: -50% 0; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); font-family: var(--f-script); font-size: 2rem; box-shadow: 0 8px 18px rgba(74, 104, 166, .35); }
.steps h3 { font-family: var(--f-serif); font-size: 1.5rem; margin: .5rem 0 .2rem; }
.steps p { margin: 0; color: var(--muted); font-size: .9rem; }

/* 7 · CONFIGURADOR — la vista previa */
.studio { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.6rem; align-items: start; }
.stage-wrap { position: sticky; top: 92px; }
/* Variables que store.js anima para que el bastidor cambie de tamaño con suavidad (y el grosor del marco con él) */
@property --u { syntax: '<length>'; inherits: true; initial-value: 3px; }
@property --fw { syntax: '<number>'; inherits: true; initial-value: 30; }
@property --fh { syntax: '<number>'; inherits: true; initial-value: 40; }
@property --ftop { syntax: '<number>'; inherits: true; initial-value: 40; }
.stage {
  --u: 3px; /* px por cm: lo calcula store.js */
  --ar: 4 / 3; /* proporción de la vista: en celular, "de cerca" es más alta */
  position: relative; aspect-ratio: var(--ar); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-2); perspective: 900px;
  background: #ecebf3;
  touch-action: none; /* los gestos (mover, pellizcar, estirar) los maneja store.js */
  user-select: none; -webkit-user-select: none;
}
.stage.vars-anim { transition: --u .7s var(--ease), --fw .7s var(--ease), --fh .7s var(--ease), --ftop .7s var(--ease); }
.stage.vars-anim .frame-holder, .stage.vars-anim .dim-tag { transition: none; }
.stage.live, .stage.live.vars-anim, .stage.live .frame-holder, .stage.live .dim-tag { transition: none; } /* mientras se arrastra no hay animación */
/* La "cámara": todo lo que se ve en la pared se mueve y se acerca junto, sin cambiar el tamaño del cuadro */
.cam { position: absolute; inset: 0; transform-origin: 0 0; --s: 1; }
.cam.anim { transition: transform .38s var(--ease); }
.stage.zoomed { cursor: grab; }
.stage.panning { cursor: grabbing; }
.cam-ctl { position: absolute; right: 8px; top: 8px; z-index: 6; display: flex; gap: 6px; }
.cam-ctl button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .82); backdrop-filter: blur(8px); color: var(--blue-ink); box-shadow: var(--sh-1); transition: transform .25s var(--ease), background .2s; }
.cam-ctl button:hover { background: #fff; transform: scale(1.08); }
.cam-ctl button:active { transform: scale(.94); }
.cam-ctl button[hidden] { display: none; }
.wall { position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 50% 15%, rgba(255, 255, 255, .85), transparent 60%),
  repeating-linear-gradient(90deg, rgba(120, 130, 170, .045) 0 2px, transparent 2px 6px),
  linear-gradient(#e7e5f3, #dcdcee);
}
.wall::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5%; background: linear-gradient(#cdb89c, #bfa585); box-shadow: 0 -3px 8px rgba(0, 0, 0, .12); }
.stage.close .decor, .stage.close .wall::after { opacity: 0; }
.decor, .wall::after { transition: opacity .5s; }
.decor { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame-holder { position: absolute; left: 50%; top: calc(var(--ftop, 40) * var(--u)); width: calc(var(--fw, 30) * var(--u)); height: calc(var(--fh, 40) * var(--u)); translate: -50% 0; transition: top .7s var(--ease), width .7s var(--ease), height .7s var(--ease); }
.frame {
  --t: calc(2.1 * var(--u)); /* grosor del marco */
  position: relative; width: 100%; height: 100%; display: flex; flex-direction: column;
  border: var(--t) solid var(--fc, #1b1b1d); border-image: var(--fimg, none);
  background: var(--paper); transform-style: preserve-3d; transition: transform .2s var(--ease), box-shadow .5s;
  box-shadow:
    0 calc(.4 * var(--u)) calc(.8 * var(--u)) rgba(0, 0, 0, .25),
    calc(var(--sx, 0) * 1px) calc(1.6 * var(--u) + var(--sy, 0) * 1px) calc(5 * var(--u)) rgba(40, 45, 80, .38),
    inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 0 calc(.8 * var(--u)) rgba(0, 0, 0, .35);
}
.frame.no-frame { border-width: 0; box-shadow: 0 calc(1.2 * var(--u)) calc(3.5 * var(--u)) rgba(40, 45, 80, .38); }
.frame.no-frame::before { content: ''; position: absolute; inset: 0; border: calc(.25 * var(--u)) solid rgba(255, 255, 255, .5); pointer-events: none; z-index: 2; }
.frame::after { /* brillo que sigue al mouse */ content: ''; position: absolute; inset: calc(-1 * var(--t)); pointer-events: none; z-index: 3; background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .5), transparent 55%); mix-blend-mode: soft-light; opacity: var(--glare, 0); transition: opacity .3s; }
.face, .matte { flex: 1; display: flex; flex-direction: column; padding: 0; background: #fbfaf6; min-height: 0; }
/* .matte.on = pedidos antiguos hechos con paspartú (opción retirada en la 1.6.0): el Panel de control los sigue dibujando bien */
.matte.on { padding: calc(3.5 * var(--u)); box-shadow: inset 0 0 calc(.9 * var(--u)) rgba(0, 0, 0, .12); }
.print { position: relative; flex: 1; overflow: hidden; min-height: 0; background: #fbfaf6; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.matte.on .print { box-shadow: inset 0 0 calc(.6 * var(--u)) rgba(0, 0, 0, .35); }
.print img { position: absolute; max-width: none; object-fit: fill; cursor: grab; user-select: none; -webkit-user-drag: none; touch-action: none; }
.print img.drag { cursor: grabbing; }
.stage.resizing, .stage.resizing * { cursor: inherit !important; }
.stage.resizing .frame { box-shadow: 0 0 0 2px rgba(122, 162, 255, .75), 0 calc(1.6 * var(--u)) calc(5 * var(--u)) rgba(40, 45, 80, .38); }
.sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .22) 48%, transparent 58%); background-size: 250% 100%; background-position: var(--sheen, 120%) 0; }
.caption { flex: none; height: 0; overflow: hidden; display: grid; place-items: center; background: #fbfaf6; font-family: var(--f-hand); color: #333; text-align: center; font-size: calc(3.6 * var(--u)); line-height: 1; transition: height .4s var(--ease); white-space: nowrap; }
.caption.has { height: calc(7 * var(--u)); }
.dim-tag { position: absolute; left: 50%; top: max(6px, calc(var(--ftop, 40) * var(--u) - 34px)); translate: -50% 0; transform-origin: 50% 100%; scale: calc(1 / var(--s, 1)); padding: .25rem .8rem; border-radius: 99px; background: rgba(23, 23, 28, .86); color: #fff; font-size: .74rem; letter-spacing: .08em; white-space: nowrap; transition: top .7s var(--ease), background .2s; pointer-events: none; }
.dim-tag.snap { background: rgba(60, 104, 84, .92); }
.dim-tag::after { content: ''; position: absolute; left: 50%; bottom: -5px; translate: -50% 0; border: 5px solid transparent; border-bottom: 0; border-top-color: rgba(23, 23, 28, .86); }
.dim-tag.snap::after { border-top-color: rgba(60, 104, 84, .92); }

.stage-tools { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .75); font-size: .82rem; transition: transform .25s var(--ease), background .2s; }
.pill:hover { background: #fff; transform: translateY(-2px); }
.pill.zoom { flex: 1; min-width: 190px; }
.pill.zoom input { flex: 1; }
.pill.zoom span { white-space: nowrap; }
input[type=range] { accent-color: var(--blue-ink); }
.hint { color: var(--muted); font-size: .8rem; margin: .7rem .3rem 0; }
.quality { display: flex; align-items: center; gap: .55rem; margin: .5rem .3rem 0; font-size: .8rem; }
/* Ajuste automático de la foto */
.fit-box { margin: .8rem 0 0; padding: .85rem 1rem; border-radius: 20px; background: var(--glass); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--sh-1); animation: pop .5s var(--ease); }
.fit-head { display: flex; justify-content: space-between; align-items: baseline; gap: .2rem .8rem; flex-wrap: wrap; font-size: .88rem; }
.fit-head span { color: var(--muted); font-size: .78rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin-top: .6rem; padding: .25rem; background: var(--blue-soft); border-radius: 999px; }
.seg button { display: flex; align-items: center; justify-content: center; gap: .4rem; border: 0; background: transparent; padding: .55rem .4rem; border-radius: 999px; font-size: .82rem; font-weight: 500; transition: background .25s, box-shadow .25s, color .25s, transform .25s var(--ease); }
.seg button:hover { transform: translateY(-1px); }
.seg button svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seg button.on { background: #fff; box-shadow: var(--sh-1); color: var(--blue-ink); }
.fit-suggest { display: flex; align-items: center; justify-content: space-between; gap: .5rem .8rem; flex-wrap: wrap; margin-top: .6rem; padding: .55rem .8rem; border-radius: 14px; background: #fff6dc; border: 1px solid #ecd18a; font-size: .8rem; }
.fit-suggest .pill { padding: .4rem .85rem; }
/* Aviso de borde liso en la foto */
.fit-trim { display: flex; align-items: center; justify-content: space-between; gap: .5rem .8rem; flex-wrap: wrap; margin-top: .6rem; padding: .55rem .8rem; border-radius: 14px; background: var(--blue-soft); border: 1px solid rgba(60, 110, 170, .25); font-size: .8rem; animation: pop .4s var(--ease); }
.fit-trim[hidden] { display: none; }
.fit-trim-btns { display: inline-flex; gap: .4rem; flex-wrap: wrap; }
.fit-trim .pill { padding: .4rem .85rem; }
.fit-trim .pill[hidden] { display: none; }
.pill.ghost { background: transparent; }
.quality i { width: 10px; height: 10px; border-radius: 50%; background: var(--q, #7bc08f); box-shadow: 0 0 0 4px color-mix(in srgb, var(--q, #7bc08f) 25%, transparent); }

/* 8 · OPCIONES */
.options { display: flex; flex-direction: column; gap: 1rem; }
.drop {
  display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; cursor: pointer; border-radius: var(--r);
  background: rgba(255, 255, 255, .55); border: 2px dashed var(--blue-deep); transition: transform .3s var(--ease), background .3s, box-shadow .3s;
}
.drop:hover, .drop.over { background: #fff; transform: translateY(-3px) scale(1.01); box-shadow: var(--sh-2); }
.drop-art { width: 62px; height: 62px; display: grid; place-items: center; flex: none; border-radius: 18px; background: var(--blue); color: var(--blue-ink); animation: pulse 2.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(127, 159, 214, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(127, 159, 214, 0); } }
.drop strong { display: block; font-family: var(--f-serif); font-size: 1.35rem; line-height: 1.1; }
.drop small { color: var(--muted); font-size: .78rem; }
.drop.has { border-style: solid; border-color: #7bc08f; }
.drop.has .drop-art { animation: none; background: #dff2e5; color: #3d8b59; }

.step { border: 0; padding: 1.2rem 1.3rem 1.3rem; margin: 0; background: var(--glass); backdrop-filter: blur(12px); border-radius: var(--r); border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--sh-1); }
.step legend { float: left; width: 100%; padding: 0; margin: 0 0 .8rem; font-family: var(--f-serif); font-size: 1.35rem; }
.step legend b { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: .5rem; border-radius: 50%; background: var(--ink); color: #fff; font: 600 .8rem var(--f-ui); }
.step > *:not(legend) { clear: both; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: .6rem; }
.opt { position: relative; display: grid; gap: .1rem; justify-items: center; padding: .7rem .4rem; text-align: center; border-radius: 16px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .7); transition: transform .3s var(--ease), border-color .2s, box-shadow .3s, background .2s; }
.opt:hover { transform: translateY(-4px); box-shadow: var(--sh-1); }
.opt.sel { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px var(--blue), var(--sh-1); }
.opt .shape { display: block; background: var(--blue); border: 2px solid var(--ink); border-radius: 2px; margin-bottom: .3rem; }
.opt b { font-size: .86rem; font-weight: 600; }
.opt small { color: var(--muted); font-size: .72rem; }
.opt .p { font-size: .8rem; color: var(--blue-ink); font-weight: 500; }
.frame-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: .6rem; margin-bottom: .9rem; }
.swatch { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 4px 10px rgba(0, 0, 0, .2); margin-bottom: .3rem; }
.swatch.none { background: repeating-linear-gradient(45deg, #fff 0 5px, #e8e8ee 5px 10px); }
.opt.frame b { font-size: .76rem; line-height: 1.15; }
.opt.frame small { line-height: 1.2; white-space: normal; }

.switch { display: flex; align-items: center; gap: .7rem; font-size: .88rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.slider { position: relative; flex: none; width: 46px; height: 26px; border-radius: 99px; background: #cfd5e4; transition: background .3s; }
.slider::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .35s var(--ease); }
.switch input:checked + .slider { background: var(--blue-ink); }
.switch input:checked + .slider::after { transform: translateX(20px); }
.switch input:focus-visible + .slider { outline: 3px solid var(--blue-deep); outline-offset: 2px; }

.field { display: grid; gap: .3rem; margin-bottom: .8rem; font-size: .82rem; color: var(--muted); }
.field small { opacity: .75; }
.field input, .field textarea, .field select {
  width: 100%; padding: .8rem 1rem; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .85);
  font: inherit; font-size: .95rem; color: var(--ink); transition: border-color .2s, box-shadow .3s, transform .3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--blue-ink); box-shadow: 0 0 0 4px rgba(127, 159, 214, .3); transform: translateY(-1px); }
.field input.bad, .field select.bad { border-color: #d96a82; box-shadow: 0 0 0 4px rgba(217, 106, 130, .18); animation: shake .4s; }
@keyframes shake { 25% { translate: -5px 0; } 75% { translate: 5px 0; } }
.extras { display: grid; gap: .5rem; margin-bottom: .9rem; }
.chk { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .65rem .9rem; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .7); font-size: .88rem; cursor: pointer; transition: all .25s var(--ease); }
.chk input { accent-color: var(--ink); width: 18px; height: 18px; margin-right: .6rem; }
.chk:has(input:checked) { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px var(--blue); }
.chk span { display: flex; align-items: center; }
.chk em { font-style: normal; color: var(--blue-ink); font-weight: 500; }

.buy-bar { position: sticky; bottom: 12px; display: grid; grid-template-columns: auto auto 1fr; gap: .9rem; align-items: center; padding: .9rem 1rem; border-radius: 22px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); box-shadow: var(--sh-2); border: 1px solid #fff; z-index: 5; }
.price small { display: block; color: var(--muted); font-size: .7rem; line-height: 1; }
.price strong { font-family: var(--f-serif); font-size: 2rem; line-height: 1.1; }
.qty { display: flex; align-items: center; background: var(--blue-soft); border-radius: 99px; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 1.2rem; border-radius: 50%; transition: background .2s; }
.qty button:hover { background: var(--blue); }
.qty output { min-width: 24px; text-align: center; font-weight: 600; }

/* 9 · PEDIDO / PAGO */
.co-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 1.4rem; align-items: start; }
.co-form h3 { font-family: var(--f-serif); font-size: 1.5rem; margin: 1.4rem 0 .8rem; }
.co-form h3:first-child { margin-top: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.row.r-3-1 { grid-template-columns: 3fr 1fr; } .row.r-1-1-1 { grid-template-columns: 1fr 1.3fr 1.3fr; }
.ship-grid { display: grid; gap: .6rem; }
.opt.wide { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; align-items: center; gap: .8rem; padding: .85rem 1rem; }
.opt.wide .ic svg { display: block; width: 28px; height: 28px; fill: none; stroke: var(--blue-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.address { overflow: hidden; max-height: 0; opacity: 0; transition: max-height .6s var(--ease), opacity .4s; }
.address.open { max-height: 700px; opacity: 1; }
.demo-note { background: #fff6dc; border: 1px solid #ecd18a; padding: .7rem 1rem; border-radius: 14px; font-size: .84rem; }
.form-error { background: #fde7ec; color: #a2304c; padding: .8rem 1rem; border-radius: 14px; font-size: .88rem; }
.summary { position: sticky; top: 92px; }
.summary h3 { font-family: var(--f-serif); font-size: 1.5rem; margin-bottom: 1rem; }
.cart-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .8rem; max-height: 340px; overflow: auto; }
.cart-list li { display: grid; grid-template-columns: 62px 1fr auto; gap: .8rem; align-items: center; padding: .5rem; border-radius: 16px; background: rgba(255, 255, 255, .6); animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }
.cart-list img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.cart-list b { display: block; font-size: .86rem; line-height: 1.2; }
.cart-list small { color: var(--muted); font-size: .72rem; display: block; }
.cart-list .ctl { display: flex; gap: .3rem; align-items: center; margin-top: .25rem; }
.cart-list .ctl button { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: #fff; line-height: 1; }
.cart-list .rm { border: 0 !important; background: transparent !important; color: #b74a63; width: auto !important; font-size: .72rem; margin-left: .3rem; }
.cart-list .amt { font-weight: 600; font-size: .9rem; }
.totals { margin: 0 0 1.2rem; display: grid; gap: .4rem; }
.totals div { display: flex; justify-content: space-between; font-size: .9rem; }
.totals dt { color: var(--muted); } .totals dd { margin: 0; }
.totals .grand { padding-top: .7rem; border-top: 1px dashed var(--line); font-size: 1.1rem; font-weight: 600; }
.totals .grand dt { color: var(--ink); } .totals .grand dd { font-family: var(--f-serif); font-size: 1.8rem; line-height: 1; }
.secure { font-size: .74rem; color: var(--muted); text-align: center; margin: .8rem 0 0; }
.empty { text-align: center; color: var(--muted); padding: 1rem; }

/* 9b · FORMAS DE PAGO (lista desplegable) y PUNTOS DE ENTREGA */
.pay-list { display: grid; gap: .65rem; }
.pay-row { position: relative; display: block; padding: .3rem; border-radius: 20px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .72); cursor: pointer; transition: border-color .25s, box-shadow .3s, background .25s, transform .3s var(--ease), opacity .3s; }
.pay-row:hover { transform: translateY(-2px); background: #fff; box-shadow: var(--sh-1); }
.pay-row.sel { border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px var(--blue), var(--sh-1); }
.pay-row:has(input:focus-visible) { outline: 3px solid var(--blue-deep); outline-offset: 3px; }
.pay-row.off { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.pay-head { display: flex; align-items: center; gap: .8rem; padding: .5rem .65rem; }
.pay-ic { width: 46px; height: 46px; flex: none; object-fit: contain; transition: transform .4s var(--ease); }
.pay-row:hover:not(.off) .pay-ic { transform: scale(1.1) rotate(-4deg); }
.pay-name { flex: 1; min-width: 0; font-weight: 600; font-size: .98rem; line-height: 1.25; }
.pay-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .3rem; }
.pay-chips i { font-style: normal; font-size: .64rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: .22rem .55rem; border-radius: 99px; background: var(--blue-soft); color: var(--blue-ink); white-space: nowrap; }
.pay-state { font-size: .72rem; font-weight: 500; color: #b74a63; white-space: nowrap; }
.pay-state:empty { display: none; }
.pay-plus { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 12px; background: var(--blue-deep); color: #fff; cursor: pointer; transition: background .25s, transform .4s var(--ease); }
.pay-plus svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pay-plus:hover { background: var(--blue-ink); }
.pay-plus svg { transition: transform .4s var(--ease); }
.pay-row.open .pay-plus { background: var(--ink); }
.pay-row.open .pay-plus svg { transform: rotate(45deg); }
.pay-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.pay-row.open .pay-body { grid-template-rows: 1fr; }
.pay-wrap { display: block; overflow: hidden; min-height: 0; }
.pay-text { display: block; padding: .1rem .95rem .85rem calc(46px + 1.45rem); font-size: .84rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 560px) { .pay-chips { display: none; } .pay-text { padding-left: .95rem; } .pay-head { gap: .6rem; } }

.ship-note { margin: .55rem 0 0; padding: .55rem .9rem; border-radius: 14px; background: var(--blue-soft); color: var(--blue-ink); font-size: .82rem; }
.points-box { margin-top: .9rem; padding: .3rem 1.1rem 1rem; border-radius: 22px; background: rgba(255, 255, 255, .7); border: 1.5px dashed var(--blue-deep); }
.points-box.bad { border-color: #d96a82; box-shadow: 0 0 0 4px rgba(217, 106, 130, .18); animation: shake .4s; }
.co-form .points-box h3 { margin: .9rem 0 .2rem; font-size: 1.35rem; }
.pt-day { margin: .7rem 0 .2rem; font-family: var(--f-display); font-weight: var(--fw-display); font-size: 1.8rem; line-height: 1.1; color: var(--blue-ink); }
.pt { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .85rem; margin-top: .3rem; border-radius: 14px; border: 1.5px solid transparent; border-bottom-color: var(--line); cursor: pointer; transition: background .2s, border-color .2s, box-shadow .25s, transform .25s var(--ease); }
.pt:hover { background: #fff; transform: translateX(3px); }
.pt.sel { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px var(--blue); }
.pt:has(input:focus-visible) { outline: 3px solid var(--blue-deep); outline-offset: 2px; }
.pt-name { font-family: var(--f-serif); font-size: 1.15rem; font-weight: 500; }
.pt-time { font-size: .86rem; font-weight: 600; white-space: nowrap; }

.deliver-card { position: relative; overflow: hidden; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem 3rem; max-width: 800px; margin: 0 auto; padding: 2.2rem clamp(1.2rem, 4vw, 2.8rem) 1.8rem; border-radius: var(--r); background: var(--glass); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--sh-1); }
.deliver-card::before, .deliver-card::after { content: ''; position: absolute; background: var(--blue); opacity: .55; clip-path: polygon(50% 0, 59% 41%, 100% 50%, 59% 59%, 50% 100%, 41% 59%, 0 50%, 41% 41%); animation: twinkle 4.5s ease-in-out infinite; pointer-events: none; }
.deliver-card::before { top: -26px; right: 12px; width: 120px; height: 120px; }
.deliver-card::after { top: 56px; right: 100px; width: 46px; height: 46px; animation-delay: -2s; opacity: .4; }
@keyframes twinkle { 50% { transform: scale(.78) rotate(18deg); opacity: .3; } }
.dl-day h3 { margin: 0 0 .5rem; font-family: var(--f-display); font-weight: var(--fw-display); font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.1; color: var(--blue-ink); }
.dl-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0; padding: .55rem .15rem; border-bottom: 2px solid var(--blue-soft); }
.dl-name { font-family: var(--f-serif); font-size: 1.3rem; }
.dl-time { font-size: .95rem; font-weight: 600; white-space: nowrap; }
.dl-note { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .7rem; margin: .6rem 0 0; text-align: center; font-family: var(--f-display); font-weight: var(--fw-display); font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.25; }
.dl-note svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--blue-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* 10 · CONTACTO Y FOOTER */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; max-width: 960px; margin: 0 auto; }
.contact-card { --c: #25d366; position: relative; display: grid; justify-items: center; gap: .25rem; text-align: center; padding: 2rem 1.2rem 1.5rem; border-radius: var(--r); background: var(--glass); border: 1px solid rgba(255, 255, 255, .85); box-shadow: var(--sh-1); overflow: hidden; transition: box-shadow .3s, transform .25s var(--ease); }
.contact-card.ig { --c: #e1306c; } .contact-card.fb { --c: #1877f2; }
.contact-card::before { content: ''; position: absolute; left: 50%; top: -38%; width: 120%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: .16; transition: opacity .4s, scale .6s var(--ease); }
.contact-card:hover { box-shadow: var(--sh-2); }
.contact-card:hover::before { opacity: .36; scale: 1.25; }
.contact-card img { position: relative; width: 78px; height: 78px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(40, 55, 100, .25)); transition: transform .5s var(--ease); }
.contact-card:hover img { transform: translateY(-7px) rotate(-8deg) scale(1.12); }
.contact-card h3 { position: relative; font-family: var(--f-serif); font-size: 1.6rem; margin-top: .4rem; }
.contact-card p { position: relative; margin: 0; color: var(--muted); font-size: .9rem; word-break: break-all; }
.contact-card .go { position: relative; margin-top: .9rem; padding: .55rem 1.2rem; border-radius: 99px; background: var(--ink); color: #fff; font-size: .85rem; font-weight: 500; transition: background .3s, transform .3s var(--ease); }
.contact-card:hover .go { background: var(--c); transform: translateY(-2px); }
.footer { margin-top: 5rem; padding: 3rem 1rem 1.5rem; background: linear-gradient(180deg, transparent, rgba(197, 215, 241, .75)); text-align: center; }
.foot-inner { display: grid; justify-items: center; gap: 1rem; width: min(700px, 100%); margin: 0 auto; }
.footer .brand img { height: 62px; max-width: 280px; }
.script.big { font-family: var(--f-display); font-weight: var(--fw-display); font-size: 2.1rem; line-height: 1.2; margin: 0; }
.soc { display: flex; gap: .8rem; justify-content: center; }
.soc a { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .35s var(--ease), box-shadow .3s; }
.soc a:hover { transform: translateY(-5px) rotate(-8deg) scale(1.1); box-shadow: var(--sh-2); }
.soc img { width: 30px; height: 30px; object-fit: contain; }
.credit { margin: 2.2rem 0 0; font-size: .8rem; color: var(--muted); }
.credit strong { color: var(--ink); }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; animation: waPulse 2.6s infinite; transition: scale .3s var(--ease); }
.wa-float:hover { scale: 1.1; }
.wa-float img { width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(37, 211, 102, .5)); }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .45); } 70%, 100% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); } }

/* Gracias / demo (páginas extra) */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.center-card { width: min(520px, 100%); text-align: center; padding: 2.4rem 1.8rem; }
.center-card h1 { font-family: var(--f-serif); font-size: 2.2rem; margin: .6rem 0; }
.center-card h1 .script { font-size: 1.4em; color: var(--blue-ink); }
.check { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 2.4rem; background: var(--blue); animation: pop .7s var(--ease), pulse 2.6s infinite; }

/* 11 · RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 1.5rem; }
  .hero-cta, .chips { justify-content: center; }
  .hero h1 { align-items: center; } .hero h1 .script { align-self: center; }
  .hero-art { height: 400px; }
  .studio, .co-grid { grid-template-columns: 1fr; }
  .stage-wrap, .summary { position: static; }
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  /* menú inferior (celular): mismos enlaces, con íconos */
  .tabbar { position: fixed; left: 50%; bottom: 12px; translate: -50% 0; z-index: 55; display: flex; justify-content: space-around; gap: .1rem; width: min(440px, calc(100% - 24px)); padding: .3rem; background: var(--glass); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid rgba(255, 255, 255, .85); border-radius: 999px; box-shadow: var(--sh-2); }
  .tabbar a { flex: 1; display: grid; justify-items: center; gap: .05rem; padding: .4rem .15rem; border-radius: 999px; font-size: .64rem; line-height: 1.15; color: #4a5070; text-align: center; transition: background .3s, color .3s, transform .3s var(--ease); }
  .tabbar a:active { transform: scale(.94); }
  .tabbar a.on { background: #fff; box-shadow: var(--sh-1); color: var(--ic); }
  .tabbar a.on svg { animation: iconPop 2.8s ease-in-out infinite; }
  body:not(.admin) { padding-bottom: 86px; }
  .wa-float { bottom: 90px; right: 14px; width: 52px; height: 52px; } .wa-float img { width: 52px; height: 52px; }
  .buy-bar { bottom: 82px; }
}
@media (max-width: 560px) {
  .row, .row.r-3-1, .row.r-1-1-1 { grid-template-columns: 1fr; }
  .buy-bar { grid-template-columns: 1fr auto; } .buy-bar .btn { grid-column: 1 / -1; }
  .section { padding-top: 4.5rem; }
  .orbit.o1 { width: 330px; height: 330px; } .orbit.o2 { width: 250px; height: 250px; }
  .brand img { height: 38px; } .brand { padding-right: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.credit .ver { opacity: .45; font-size: .78em; margin-left: .3rem; }

/* ===== Carrusel 3D de la portada (los dibuja js/hero.js → renderCarousel) ===== */
.hx-car { touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.hx-car:active { cursor: grabbing; }
.car-stage { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 40%; }
.car-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.car-floor { position: absolute; left: 50%; bottom: 5%; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 55, 100, .34), rgba(40, 55, 100, .13) 58%, transparent 78%); filter: blur(7px); pointer-events: none; }
.car-item, .car-bob, .car-spin { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.car-bob { animation: carBob 6s ease-in-out infinite; }
@keyframes carBob { 0%, 100% { transform: translateY(-9px) rotateZ(-1.3deg); } 50% { transform: translateY(9px) rotateZ(1.3deg); } }
.slab { --gi: 9px; position: absolute; left: 0; top: 0; width: var(--w); height: var(--h); margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2); transform-style: preserve-3d; }
.slab > .f { position: absolute; inset: 0; box-sizing: border-box; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.slab > .front { transform: translateZ(calc(var(--d) / 2)); }
.slab > .back { transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); }
.slab > .e { position: absolute; background: #222; }
.slab > .e.l { left: calc(var(--d) / -2); top: 0; width: var(--d); height: 100%; transform: rotateY(90deg); }
.slab > .e.r { left: calc(100% - var(--d) / 2); top: 0; width: var(--d); height: 100%; transform: rotateY(90deg); }
.slab > .e.t { left: 0; top: calc(var(--d) / -2); width: 100%; height: var(--d); transform: rotateX(90deg); }
.slab > .e.b { left: 0; top: calc(100% - var(--d) / 2); width: 100%; height: var(--d); transform: rotateX(90deg); }
.slab .im { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; }
.slab .sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .1)); }
/* cuadro: por delante el bastidor con la foto; por detrás el bastidor del color elegido y la tela cruda */
.k-cuadro > .front { border: var(--t, 8px) solid var(--fc, #1b1b1d); border-image: var(--fimg, none); background: #fbfaf6; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.k-cuadro > .front.no-frame { border-width: 0; box-shadow: none; }
.k-cuadro > .back { background: var(--fback, #f4f1ea); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .28), inset 0 0 14px rgba(0, 0, 0, .2); }
.cu-in { position: absolute; inset: var(--t2, 8px); background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .045) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0, 0, 0, .035) 0 1px, transparent 1px 3px), #e7dfcd; box-shadow: inset 0 0 14px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .28); }
.k-cuadro > .back.no-frame { background: #f4f1ea; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.k-cuadro > .back.no-frame .cu-in { inset: 0; box-shadow: none; background: #f4f1ea; }
.cu-hang { position: absolute; left: 50%; top: calc(var(--t2, 8px) + 5%); width: 16%; height: 6px; translate: -50% 0; border-radius: 2px; background: linear-gradient(#b4bac1, #6f757d); box-shadow: 0 1px 2px rgba(0, 0, 0, .45); }
/* imán de refri: foto plana con borde blanco; atrás, la tira magnética negra; por delante se ve pegado a la puerta de un refri */
.k-iman > .front { border: 2px solid #fff; border-radius: 7px; overflow: hidden; background: #fff; box-shadow: 0 6px 12px rgba(0, 0, 0, .35); }
.k-iman > .back { border-radius: 7px; background: linear-gradient(135deg, #1b1b1e, #09090a); box-shadow: inset 0 0 0 1px #2c2c31; }
.mg-strip { position: absolute; inset: 9%; border-radius: 4px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 7px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); }
.slab > .fridge { inset: -55% -62%; transform: translateZ(calc(var(--d) / -2 - 1px)); border-radius: 16px; background: linear-gradient(100deg, #d6dce2, #f8fafb 26%, #c8cfd7 50%, #eef1f4 76%, #bdc5ce); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75), inset 0 0 26px rgba(0, 0, 0, .13), 0 22px 36px -14px rgba(40, 55, 100, .5); }
.fridge::before { content: ''; position: absolute; left: 7%; top: 12%; bottom: 12%; width: 5%; border-radius: 99px; background: linear-gradient(90deg, #98a1ab, #f4f6f8 45%, #8d96a0); box-shadow: 0 5px 10px rgba(0, 0, 0, .28); }
/* lona: ojillos metálicos y dobladillo; atrás, el vinilo blanco con la imagen que se transparenta */
.k-lona { --gi: 11px; }
.k-lona > .front { overflow: hidden; border-radius: 2px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.k-lona > .back { overflow: hidden; border-radius: 2px; background: #eceff2; }
.slab .im.mirror { transform: scaleX(-1); opacity: .2; }
.hem { position: absolute; inset: 3.5%; border: 1px dashed rgba(255, 255, 255, .8); pointer-events: none; }
.back .hem { border-color: rgba(110, 118, 126, .55); }
.gm { position: absolute; width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #c2c8cf 40%, #6b727a 100%); box-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.gm::after { content: ''; position: absolute; inset: 29%; border-radius: 50%; background: #25292d; box-shadow: inset 0 1px 2px #000; }
/* llavero: acrílico con foto, orificio y argolla (ovalado o rectangular) */
.k-llavero > .front, .k-llavero > .back { border-radius: 16%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.k-llavero.oval > .front, .k-llavero.oval > .back { border-radius: 50%; }
.k-llavero > .e { display: none; } /* el acrílico es delgado: sin cantos (con la forma ovalada se verían cuadrados) */
.k-llavero > .front .im { inset: 7%; border-radius: 12%; }
.k-llavero.oval > .front .im { border-radius: 50%; inset: 8%; }
.epoxy { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 30% 16%, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0) 46%), linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .1)); box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .13); pointer-events: none; }
.k-llavero > .back .im.mirror { inset: 7%; border-radius: 12%; opacity: .16; }
.k-llavero.oval > .back .im.mirror { border-radius: 50%; inset: 8%; }
.hole { position: absolute; left: 50%; top: 3.5%; width: 9%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: #cfd6dd; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .65); }
.ring { position: absolute; left: 50%; top: -10%; width: 24%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; border: max(2px, calc(var(--w) * .02)) solid #aab2bb; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65), 0 1px 3px rgba(0, 0, 0, .35); }
/* esquela: tarjeta con borde negro, cruz, foto ovalada y renglones; atrás, papel liso */
.k-esquela > .front { background: #fbfaf6; border: calc(var(--w) * .035) solid #121212; box-shadow: inset 0 0 0 calc(var(--w) * .02) #fbfaf6, inset 0 0 0 calc(var(--w) * .027) #121212; }
.k-esquela > .back { background: #f7f5ef; border: calc(var(--w) * .035) solid #121212; }
.cross { position: absolute; left: 50%; top: 4%; translate: -50% 0; font-size: calc(var(--w) * .13); line-height: 1; color: #111; }
.k-esquela .im.oval { inset: 19% 20% 32% 20%; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #111; }
.bars { position: absolute; left: 14%; right: 14%; bottom: 8%; display: grid; gap: calc(var(--w) * .025); justify-items: center; }
.bars > * { height: calc(var(--w) * .022); background: #c9c6be; border-radius: 99px; }
.bars .b1 { width: 70%; } .bars .b2 { width: 48%; } .bars .b3 { width: 58%; }
/* carta: naipe con borde blanco; atrás, el dorso de la baraja */
.k-carta > .front, .k-carta > .back { border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.k-carta > .front .im { inset: 5%; border-radius: 5px; }
.cd-back { position: absolute; inset: 5%; border-radius: 5px; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .22) 0 2px, transparent 2px 10px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .22) 0 2px, transparent 2px 10px), #a1202f; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4); }
/* veladora: vaso de vidrio redondo (se arma con tiras en 3D) con la etiqueta impresa y su flama */
.vel { transform-style: preserve-3d; }
.vel-body { position: absolute; inset: 0; transform-style: preserve-3d; }
.vs { position: absolute; left: 50%; top: 0; height: 100%; background-color: #f8edd2; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: inset 0 -7px 9px rgba(0, 0, 0, .14), inset 0 7px 9px rgba(255, 255, 255, .22); }
.vel-cap { position: absolute; border-radius: 50%; transform: rotateX(90deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; background: radial-gradient(circle at 42% 36%, #f9f3e1, #d7c99e 62%, #b3a577); box-shadow: inset 0 0 0 2px rgba(120, 100, 60, .35); }
.vel-cap.bot { transform: rotateX(-90deg); background: #8b8676; }
.vel-flame { position: absolute; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: radial-gradient(ellipse at 50% 75%, #fffbe0 0 16%, #ffd25a 40%, #ff8d1f 72%, rgba(255, 120, 20, 0) 100%); transform-origin: 50% 100%; animation: flame .22s ease-in-out infinite alternate; }
.vel-flame.x { transform: rotateY(90deg); }
.vel-glow { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 205, 100, .55), rgba(255, 205, 100, 0) 65%); pointer-events: none; }
@keyframes flame { to { scale: .9 1.1; } }
@media (prefers-reduced-motion: reduce) { .car-bob, .vel-flame { animation: none; } }
