/* Confitería Ponele — Pan Dulce
   Pasteles vivos: crema beige, rosa pastel, verde menta y turquesa,
   con acentos rosa intenso y texto cacao oscuro para que se lea bien. */
:root {
  --harina: #FFF7EC;       /* crema beige: fondo */
  --masa: #FFDCE5;         /* rosa pastel */
  --kraft: #F6E1C1;        /* beige */
  --menta: #B4F0D3;        /* verde menta */
  --menta-suave: #E2FAEE;
  --turquesa: #55D6C8;
  --rosa: #FFB3C7;
  --corteza: #33262B;      /* cacao oscuro: texto */
  --tostado: #12998D;      /* turquesa profundo: íconos */
  --oro: #B4F0D3;
  --arandano: #EE4F7E;     /* rosa intenso: acentos */
  --papel: #FFFDF9;
  --line: rgba(51, 38, 43, .14);
  --shadow: 0 24px 50px -26px rgba(190, 80, 120, .45);
  --pop: 5px 6px 0 var(--corteza);

  --f-display: "Young Serif", "Zen Maru Gothic", Georgia, serif;
  --f-body: "Zen Maru Gothic", system-ui, sans-serif;
  --f-hand: "Caveat", "Zen Maru Gothic", cursive;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --arch: 999px 999px 28px 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--harina);
  color: var(--corteza);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-x: clip;
}
/* textura de harina */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--arandano); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 18ch; }
h3 { font-size: 1.35rem; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { font-family: var(--f-body); font-weight: 900; line-height: 1.35; }
p { margin: 0 0 1em; max-width: 60ch; }
.sub { font-size: 1.15rem; margin-top: .8rem; }
.hand { font-family: var(--f-hand); font-weight: 700; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--papel); padding: 8px 14px; }

/* barra de progreso */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; }
.progress span { display: block; height: 100%; background: var(--arandano); transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  background: var(--turquesa); color: var(--corteza);
  font-weight: 700; text-decoration: none; letter-spacing: .01em;
  padding: 1em 1.8em; border-radius: 999px; border: 2px solid var(--corteza);
  box-shadow: 4px 5px 0 var(--corteza);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--corteza); background: var(--rosa); }
.btn:active { transform: translate(3px, 4px); box-shadow: 1px 1px 0 var(--corteza); }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; }
.btn-small { padding: .55em 1.15em; font-size: .9rem; box-shadow: 3px 3px 0 var(--corteza); }
.btn-ghost { background: var(--papel); }
.btn-ghost:hover { background: var(--menta); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--harina) 88%, transparent);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s;
}
.top.scrolled { box-shadow: 0 10px 30px -22px rgba(51,38,43,.5); }
.brand img { width: clamp(104px, 11vw, 140px); height: auto; transition: width .3s var(--ease); }
.top.scrolled .brand img { width: clamp(90px, 9vw, 112px); }
.top-links { display: flex; gap: 1.6rem; font-weight: 500; }
.top-links a { text-decoration: none; position: relative; }
.top-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 3px; background: var(--turquesa); transform: scaleX(0); transition: transform .25s var(--ease); }
.top-links a:hover::after { transform: scaleX(1); }
.top-actions { display: flex; gap: 12px; align-items: center; }
.lang { display: flex; border: 1.5px solid var(--corteza); border-radius: 999px; overflow: hidden; }
.lang button { font: 700 .82rem var(--f-body); color: var(--corteza); background: transparent; border: 0; padding: .45em .8em; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--corteza); color: var(--papel); }

/* HERO */
.hero {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 5vw, 64px) var(--gutter) clamp(56px, 7vw, 96px);
}
.tag {
  display: inline-block; font-size: 1.5rem; line-height: 1.2;
  background: var(--rosa); color: var(--corteza);
  padding: .25em .9em .25em 1.5em; margin: 0 0 1.2rem;
  border-radius: 4px 14px 14px 4px; position: relative; rotate: -3deg;
  border: 2px solid var(--corteza); box-shadow: 3px 4px 0 var(--corteza);
}
.tag::before { content: ""; position: absolute; left: .55em; top: 50%; width: .45em; height: .45em; border-radius: 50%; background: var(--harina); translate: 0 -50%; box-shadow: inset 0 0 0 2px var(--corteza); }
.hero-title { font-size: clamp(2.9rem, 7.2vw, 6rem); line-height: 1.02; margin-bottom: 1.4rem; }
:lang(ja) .hero-title { font-size: clamp(2.3rem, 5.4vw, 4.3rem); line-height: 1.25; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ln > span { display: inline-block; }
.hero-lead { font-size: 1.2rem; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.8rem; }
.countdown { margin: 0; font-weight: 500; font-size: .95rem; line-height: 1.3; }
.countdown b { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; color: var(--arandano); margin-right: .15em; vertical-align: -0.1em; }
.trust-mini { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; padding: 0; margin: 2rem 0 0; font-size: .92rem; font-weight: 700; }
.trust-mini li { display: flex; align-items: center; gap: .45em; }
.trust-mini svg { width: 20px; height: 20px; fill: var(--tostado); }

.hero-visual { position: relative; display: grid; place-items: center; padding-top: 40px; isolation: isolate; }
.hero-visual::before {
  content: ""; position: absolute; inset: 0 -8% -4%; z-index: -1;
  background:
    radial-gradient(circle at 28% 30%, var(--menta) 0 26%, transparent 26.5%),
    radial-gradient(circle at 76% 58%, var(--rosa) 0 30%, transparent 30.5%),
    radial-gradient(circle at 38% 84%, var(--turquesa) 0 14%, transparent 14.5%),
    radial-gradient(circle at 86% 18%, var(--kraft) 0 11%, transparent 11.5%);
}
.arch { border-radius: var(--arch); overflow: hidden; background: var(--masa); box-shadow: var(--shadow); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.hero-arch { width: min(84%, 420px); aspect-ratio: 3 / 4.1; border: 10px solid var(--papel); outline: 2.5px dashed var(--corteza); outline-offset: 8px; }
.steam { position: absolute; top: -18px; width: 120px; left: 50%; translate: -50% 0; z-index: 2; }
.steam path { fill: none; stroke: var(--tostado); stroke-width: 3; stroke-linecap: round; opacity: 0; stroke-dasharray: 60 200; animation: vapor 3.6s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: 1.2s; }
.steam path:nth-child(3) { animation-delay: 2.4s; }
@keyframes vapor {
  0% { stroke-dashoffset: 0; opacity: 0; translate: 0 10px; }
  30% { opacity: .5; }
  100% { stroke-dashoffset: -180; opacity: 0; translate: 0 -14px; }
}
.badge { position: absolute; right: 0; bottom: 8%; width: clamp(120px, 14vw, 160px); aspect-ratio: 1; display: grid; place-items: center; background: var(--turquesa); border: 2px solid var(--corteza); border-radius: 50%; box-shadow: var(--pop); }
.badge svg { position: absolute; inset: 0; rotate: var(--rot, 0deg); }
.badge text { fill: var(--corteza); font: 700 15.5px var(--f-body); letter-spacing: 2.4px; }
.badge img { width: 42%; }
.note { position: absolute; font-size: 1.7rem; color: var(--arandano); rotate: -8deg; line-height: 1; margin: 0; }
.hero-visual .note { left: 0; top: 22%; }
.hero-visual .note::after { content: ""; display: block; width: 60px; height: 30px; margin: 6px 0 0 60px; border-bottom: 2px solid currentColor; border-right: 2px solid currentColor; border-radius: 0 0 30px 0; rotate: 12deg; }

/* borde de molde de papel */
.scallop { height: 18px; background-repeat: repeat-x; background-size: 36px 18px; position: relative; z-index: 1; }
.scallop-masa { background-image: radial-gradient(circle at 18px 0, var(--harina) 17px, var(--turquesa) 18px); }
.scallop-corteza { background-image: radial-gradient(circle at 18px 0, var(--harina) 17px, var(--menta) 18px); }
.scallop-corteza-down { background-image: radial-gradient(circle at 18px 0, var(--menta) 17px, var(--harina) 18px); }
.scallop-foot { background-image: radial-gradient(circle at 18px 0, var(--harina) 17px, var(--corteza) 18px); }

/* MARQUEE */
.marquee { background: var(--turquesa); color: var(--corteza); overflow: hidden; padding: .9rem 0 1.1rem; margin-top: -1px; }
.marquee-track { display: flex; width: max-content; animation: correr 38s linear infinite; translate: var(--mq, 0) 0; }
.marquee span { font-family: var(--f-display); font-size: clamp(1.4rem, 3vw, 2.2rem); white-space: nowrap; padding-right: .6em; }
:lang(ja) .marquee span { font-family: var(--f-body); font-weight: 900; }
@keyframes correr { to { transform: translateX(-50%); } }

/* NUESTRO PAN */
.nuestro {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center;
  padding: clamp(70px, 10vw, 140px) var(--gutter);
}
.nuestro-photos { position: relative; min-height: clamp(440px, 50vw, 600px); }
.polaroid { position: absolute; margin: 0; background: var(--papel); padding: 12px 12px 8px; border: 2px solid var(--corteza); box-shadow: var(--pop); border-radius: 8px; }
.polaroid img { border-radius: 3px; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.polaroid figcaption { text-align: center; font-size: 1.5rem; line-height: 1.6; }
.p1 { width: 62%; left: 0; top: 0; rotate: -4deg; }
.p2 { width: 54%; right: 0; bottom: 0; rotate: 5deg; }
.p2 img { aspect-ratio: 4 / 5; }
.nuestro-copy h2 { margin-bottom: 1.4rem; }
.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem; }
.facts li { display: flex; gap: 1rem; align-items: flex-start; }
.facts img { flex: 0 0 auto; width: 34px; margin-top: .2rem; }
.facts strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; }
:lang(ja) .facts strong { font-family: var(--f-body); font-weight: 900; font-size: 1.05rem; }
.facts span { display: block; font-size: .98rem; }

/* ADENTRO */
.adentro { background: var(--masa); padding: clamp(70px, 9vw, 130px) var(--gutter); text-align: center; }
.adentro h2, .adentro .sub { margin-left: auto; margin-right: auto; }
.callout-wrap { position: relative; max-width: 640px; margin: 2.6rem auto 0; border-radius: 28px; overflow: visible; }
.callout-wrap img { border-radius: 28px; border: 2px solid var(--corteza); box-shadow: 8px 9px 0 var(--turquesa), 8px 9px 0 2px var(--corteza); width: 100%; }
.dot { position: absolute; left: var(--x); top: var(--y); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--papel); box-shadow: 0 0 0 4px rgba(255,253,248,.45); opacity: 0; scale: .2; transition: opacity .4s var(--ease), scale .5s cubic-bezier(.3,1.6,.5,1); transition-delay: calc(var(--d) * 160ms + 300ms); }
.dot::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--papel); animation: latido 2s ease-out infinite; }
.dot b { position: absolute; left: 24px; top: 50%; translate: 0 -50%; white-space: nowrap; background: var(--corteza); color: var(--papel); font-size: .88rem; padding: .25em .75em; border-radius: 999px; }
.callout-wrap.in .dot { opacity: 1; scale: 1; }
@keyframes latido { from { scale: 1; opacity: .9; } to { scale: 2.2; opacity: 0; } }

/* ELEGIR */
.elegir { max-width: var(--max); margin: 0 auto; padding: clamp(70px, 9vw, 130px) var(--gutter); }
.elegir-head { text-align: center; }
.elegir-head h2, .elegir-head .sub { margin-left: auto; margin-right: auto; }
.picker {
  display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: center;
  margin-top: 3rem; background: var(--papel); border-radius: 36px; padding: clamp(24px, 4vw, 48px);
  border: 2px solid var(--corteza); box-shadow: 10px 11px 0 var(--rosa), 10px 11px 0 2px var(--corteza);
}
.size-switch { display: grid; gap: 16px; }
.size-switch button {
  position: relative; text-align: left; cursor: pointer;
  background: var(--harina); color: var(--corteza);
  border: 2px solid var(--line); border-radius: 22px; padding: 1.1rem 1.3rem;
  font-family: var(--f-body);
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.size-switch button:hover { transform: translateY(-2px); border-color: var(--corteza); background: var(--menta-suave); }
.size-switch button[aria-checked="true"] { background: var(--turquesa); color: var(--corteza); border-color: var(--corteza); box-shadow: 4px 5px 0 var(--corteza); }
.sz { display: block; font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 3.5rem); line-height: 1; }
.sz small { font-size: .42em; margin-left: .12em; }
.sz-note { display: block; margin-top: .35rem; font-size: .95rem; }
.ribbon { position: absolute; top: -14px; right: 14px; background: var(--rosa); color: var(--corteza); border: 2px solid var(--corteza); font-size: 1.2rem; line-height: 1; padding: .3em .7em .35em; border-radius: 6px; rotate: 4deg; }

.stage { position: relative; display: grid; place-items: end center; height: clamp(320px, 36vw, 420px); }
.stage-sun { position: absolute; width: 88%; top: 0; left: 6%; rotate: var(--rot, 0deg); opacity: .9; }
.pd-stage { width: 66%; aspect-ratio: 3 / 3.7; transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.3,1.45,.5,1); border: 8px solid var(--papel); }
.pd-stage[data-size="500"] { transform: scale(.78); }
.kraft {
  position: absolute; bottom: 14px; right: 4%;
  background: var(--menta); font-family: var(--f-hand); font-weight: 700; font-size: 1.6rem; line-height: 1;
  padding: .3em .7em .35em 1.2em; border-radius: 4px 12px 12px 4px; rotate: -6deg;
  border: 2px solid var(--corteza); box-shadow: 3px 4px 0 var(--corteza);
}
.kraft::before { content: ""; position: absolute; left: .4em; top: 50%; width: .35em; height: .35em; border-radius: 50%; background: var(--papel); translate: 0 -50%; }
.order { align-self: center; }
.price { font-family: var(--f-display); font-size: clamp(3rem, 6vw, 4.2rem); line-height: 1; margin-bottom: 1rem; }
.price small { display: block; font-family: var(--f-body); font-size: .9rem; margin-top: .5rem; }
.price span { display: inline-block; }
.price span.bump { animation: bump .45s var(--ease); }
@keyframes bump { 0% { translate: 0 10px; opacity: 0; } 100% { translate: 0 0; opacity: 1; } }
.specs { margin: 0 0 1.5rem; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1.5px dashed var(--line); }
.specs dt { font-weight: 500; }
.specs dd { margin: 0; font-weight: 700; text-align: right; }
.btn-pay { width: 100%; font-size: 1.05rem; padding: 1.1em 1.4em; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 1rem 0; }
.pay-logos li { font-size: .78rem; font-weight: 700; border: 1.5px solid var(--line); border-radius: 6px; padding: .2em .6em; background: var(--menta-suave); }
.pay-logos li.paypay { color: #fff; background: #FF0033; border-color: #FF0033; }
.order-note { font-size: .88rem; line-height: 1.6; }

/* PASOS */
.pasos { background: var(--menta); color: var(--corteza); padding: clamp(60px, 8vw, 110px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
.pasos h2 { color: var(--corteza); }
.steps { list-style: none; counter-reset: paso; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 36px); position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 0; right: 0; height: 3px; border-radius: 3px; background: rgba(51,38,43,.15); }
.steps::after { content: ""; position: absolute; top: 28px; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--arandano); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.steps li { counter-increment: paso; position: relative; z-index: 1; }
.steps li::before {
  content: counter(paso); display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1.1rem;
  background: var(--rosa); border: 2px solid var(--corteza); color: var(--corteza); box-shadow: 3px 4px 0 var(--corteza);
  font-family: var(--f-display); font-size: 1.6rem;
}
.steps h3 { margin-bottom: .4rem; color: var(--corteza); }
.steps p { opacity: .85; font-size: .98rem; }

/* GALERÍA (se mueve con el scroll) */
.galeria { padding: clamp(60px, 8vw, 100px) 0 0; overflow: hidden; }
.galeria-track { display: flex; gap: 18px; width: max-content; translate: var(--gx, 0) 0; padding: 0 var(--gutter); will-change: translate; }
.galeria-track img { height: clamp(240px, 32vw, 400px); width: auto; border-radius: 22px; border: 2px solid var(--corteza); box-shadow: var(--pop); }
.galeria-track img:nth-child(odd) { rotate: -1.5deg; }
.galeria-track img:nth-child(even) { rotate: 1.5deg; margin-top: 28px; }

/* REGALO */
.regalo { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(80px, 10vw, 140px) var(--gutter); }
.regalo-photo { margin: 0; position: relative; }
.regalo-photo img { border-radius: var(--arch); border: 10px solid var(--papel); outline: 2px solid var(--corteza); box-shadow: 10px 11px 0 var(--menta), 10px 11px 0 2px var(--corteza); }
.regalo-photo .note { right: -10px; bottom: 6%; rotate: -10deg; background: var(--papel); padding: .2em .6em; border-radius: 8px; border: 2px solid var(--corteza); box-shadow: 3px 4px 0 var(--corteza); }
.regalo h2 { margin-bottom: 1.3rem; }

/* CONFIANZA */
.confianza { background: var(--menta-suave); padding: clamp(70px, 9vw, 120px) max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter))); }
.conf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 2.6rem; }
.conf-item { background: var(--papel); border-radius: 24px; padding: 1.6rem 1.4rem; border: 2px solid var(--corteza); box-shadow: var(--pop); }
.conf-item:nth-child(1) { background: var(--masa); }
.conf-item:nth-child(2) { background: var(--kraft); }
.conf-item:nth-child(3) { background: var(--papel); }
.conf-item > svg { width: 40px; height: 40px; fill: var(--corteza); margin-bottom: .7rem; }
.conf-item h3 { margin-bottom: .5rem; }
.conf-item p { font-size: .95rem; line-height: 1.65; }
.conf-ig { display: flex; flex-direction: column; gap: 1rem; background: var(--turquesa); }
.conf-ig img { width: 120px; border-radius: 12px; border: 6px solid var(--papel); outline: 2px solid var(--corteza); }
.conf-ig .link { color: var(--corteza); }
.link { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.link:hover { color: var(--arandano); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; padding: clamp(70px, 9vw, 120px) var(--gutter); }
.faq h2 { margin-bottom: 1.8rem; }
.faq details { border-bottom: 1.5px dashed var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.4rem 1.1rem 0; position: relative; font-weight: 700; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: .6rem; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--masa); font-size: 1.3rem; transition: rotate .25s var(--ease), background .2s; }
.faq details[open] summary::after { rotate: 45deg; background: var(--menta); }
.faq details p { padding-bottom: 1rem; }
.faq details[open] p { animation: abrir .35s var(--ease); }
@keyframes abrir { from { opacity: 0; translate: 0 -6px; } }

/* CTA FINAL */
.final { position: relative; text-align: center; padding: clamp(60px, 8vw, 110px) var(--gutter) clamp(90px, 10vw, 140px); overflow: hidden; }
.final h2 { margin: 0 auto 1.8rem; position: relative; }
.final .btn { position: relative; }
.final-sun { position: absolute; left: 50%; top: 50%; width: clamp(260px, 40vw, 460px); translate: -50% -50%; opacity: .3; rotate: var(--rot, 0deg); }

/* FOOTER */
.foot { background: var(--corteza); color: var(--papel); text-align: center; padding: 50px var(--gutter) 110px; margin-top: -1px; }
.foot-logo { width: clamp(180px, 22vw, 240px); margin: 0 auto 1.2rem; }
.foot p { margin: .4rem auto; }
.small { font-size: .85rem; opacity: .7; }

/* ---------- Compra: cobertura, cantidad, carrito, entrega y datos ---------- */
.pd-stage { position: relative; }
.pd-stage .pd-cob { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease); }
.pd-stage[data-cob="1"] .pd-cob { opacity: 1; }

.cob { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 1rem; }
.cob button {
  text-align: left; cursor: pointer; font-family: var(--f-body); color: var(--corteza);
  background: var(--harina); border: 2px solid var(--line); border-radius: 16px; padding: .6rem .8rem; line-height: 1.3;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.cob button b { display: block; font-size: .95rem; }
.cob button span { font-size: .82rem; }
.cob button:hover { border-color: var(--corteza); }
.cob button[aria-checked="true"] { background: var(--rosa); border-color: var(--corteza); box-shadow: 3px 4px 0 var(--corteza); }

.qty-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; font-weight: 500; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--corteza); border-radius: 999px; background: var(--papel); overflow: hidden; }
.qty button { width: 40px; height: 38px; border: 0; background: transparent; font: 700 1.2rem var(--f-body); color: var(--corteza); cursor: pointer; }
.qty button:hover { background: var(--menta); }
.qty output { min-width: 2ch; text-align: center; font-weight: 700; }
.qty-sm button { width: 30px; height: 30px; font-size: 1rem; }

.checkout {
  display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: clamp(16px, 2.4vw, 28px); margin-top: 2.6rem; align-items: start;
  transition: transform .4s var(--ease);
}
.checkout.pulse { animation: latidoCaja .9s var(--ease); }
@keyframes latidoCaja { 30% { transform: translateY(-6px); } }
.co-card { background: var(--papel); border: 2px solid var(--corteza); border-radius: 26px; padding: clamp(18px, 2.4vw, 26px); box-shadow: var(--pop); }
.co-cart { background: var(--masa); }
.co-entrega { background: var(--menta-suave); }
.co-card h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-size: 1.3rem; }
.co-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--turquesa); border: 2px solid var(--corteza); font-family: var(--f-display); font-size: 1rem; flex: 0 0 auto; }

.cart { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cart li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "info del" "qty imp"; gap: 6px 10px; align-items: center; background: var(--papel); border: 2px solid var(--corteza); border-radius: 16px; padding: .7rem .8rem; }
.cl-info { grid-area: info; line-height: 1.3; }
.cl-info b { display: block; font-size: .95rem; }
.cl-info small { font-size: .8rem; }
.cart .qty { grid-area: qty; justify-self: start; }
.cl-imp { grid-area: imp; font-weight: 700; }
.cl-del { grid-area: del; justify-self: end; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--corteza); background: var(--papel); cursor: pointer; font-size: 1rem; line-height: 1; color: var(--corteza); }
.cl-del:hover { background: var(--rosa); }
.cart-empty { margin: 0; font-size: .95rem; }

.entrega-opts { display: grid; gap: 8px; margin-bottom: 1rem; }
.opt { display: flex; gap: .6rem; align-items: flex-start; background: var(--papel); border: 2px solid var(--line); border-radius: 16px; padding: .6rem .8rem; cursor: pointer; line-height: 1.3; }
.opt:has(input:checked) { border-color: var(--corteza); box-shadow: 3px 4px 0 var(--corteza); background: var(--menta); }
.opt input { accent-color: var(--corteza); margin-top: .25rem; }
.opt b { display: block; font-size: .95rem; }
.opt small { font-size: .82rem; }
.envio-info { font-size: .88rem; line-height: 1.5; margin: .4rem 0 0; }

.field { display: grid; gap: .25rem; margin-bottom: .75rem; font-size: .9rem; font-weight: 500; }
.field input, .field select, .field textarea {
  font: 400 1rem var(--f-body); color: var(--corteza); background: var(--papel);
  border: 2px solid var(--corteza); border-radius: 12px; padding: .6rem .75rem; width: 100%; min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: 0 0 0 3px var(--turquesa); }
.field.invalido input, .field.invalido select { border-color: var(--arandano); box-shadow: 0 0 0 3px var(--rosa); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error { color: var(--arandano); font-weight: 700; font-size: .92rem; min-height: 1.2em; margin: .2rem 0 .6rem; }
.btn[disabled] { opacity: .6; cursor: wait; }

.totales { margin: 1.2rem 0 0; border-top: 2px dashed var(--line); padding-top: .6rem; }
.totales div { display: flex; justify-content: space-between; padding: .25rem 0; }
.totales dt { font-weight: 500; }
.totales dd { margin: 0; font-weight: 700; }
.totales .t-total { font-size: 1.25rem; border-top: 2px solid var(--corteza); margin-top: .4rem; padding-top: .5rem; }
.totales .t-total dd { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; }

@media (max-width: 1000px) {
  .checkout { grid-template-columns: 1fr 1fr; }
  .co-datos { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .checkout { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Páginas de pedido, seguimiento y admin ---------- */
.pagina .top { position: sticky; }
.panel-wrap { max-width: 720px; margin: 0 auto; padding: clamp(24px, 5vw, 56px) 16px 90px; }
.panel { background: var(--papel); border: 2px solid var(--corteza); border-radius: 30px; padding: clamp(22px, 4vw, 40px); box-shadow: 10px 11px 0 var(--menta), 10px 11px 0 2px var(--corteza); }
.panel h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: .8rem; }
.panel-sol { width: 60px; margin-bottom: .6rem; }
.codigo-box { display: grid; gap: .2rem; background: var(--masa); border: 2px solid var(--corteza); border-radius: 18px; padding: .9rem 1.1rem; margin: 1.2rem 0; }
.codigo-box span { font-size: .85rem; font-weight: 700; }
.codigo-box strong { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; letter-spacing: .04em; }
.codigo-box small { font-size: .85rem; }
.codigo-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.timeline { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 1.1rem 2.2rem; opacity: .45; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .15rem; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--corteza); background: var(--papel); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 1.45rem; bottom: .1rem; width: 2px; background: var(--line); translate: -1px 0; }
.timeline li:last-child::after { display: none; }
.timeline li.hecho { opacity: 1; }
.timeline li.hecho::before { background: var(--turquesa); }
.timeline li.actual::before { background: var(--arandano); box-shadow: 0 0 0 5px var(--rosa); }
.timeline b { display: block; }
.timeline small { font-size: .82rem; }
.res-items { list-style: none; padding: 0; margin: 1rem 0 0; }
.res-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1.5px dashed var(--line); font-size: .95rem; }
.yamato { display: grid; gap: .15rem; text-decoration: none; background: var(--turquesa); border: 2px solid var(--corteza); border-radius: 18px; padding: 1rem 1.1rem; box-shadow: var(--pop); margin: 1rem 0; }
.yamato span { font-size: .85rem; font-weight: 700; }
.yamato strong { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; }
.yamato small { font-size: .88rem; }
.yamato b { margin-top: .3rem; }
.panel-acciones { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin-top: 1.6rem; }
.seg-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin-top: 1rem; }
.seg-form .btn { margin-bottom: .75rem; }
@media (max-width: 640px) { .seg-form { grid-template-columns: 1fr; } }

/* botón flotante (celular) */
.sticky-cta { display: none; }

/* ---------- Animaciones de scroll ---------- */
.js [data-anim] { opacity: 0; transition: opacity .8s var(--ease), translate .8s var(--ease), scale .8s var(--ease), clip-path 1.1s var(--ease); transition-delay: var(--delay, 0ms); }
.js [data-anim="up"] { translate: 0 34px; }
.js [data-anim="pop"] { scale: .6; translate: 0 10px; transition-timing-function: cubic-bezier(.3,1.6,.5,1); }
.js [data-anim="photo"] { clip-path: inset(14% 10% 14% 10% round 28px); scale: .96; }
.js [data-anim="photo"] img { scale: 1.18; transition: scale 1.4s var(--ease); }
.js [data-anim="lines"] { opacity: 1; }
.js [data-anim="lines"] .ln > span { translate: 0 105%; transition: translate 1s var(--ease); transition-delay: calc(var(--i) * 110ms + 150ms); }
.js [data-anim].in { opacity: 1; translate: 0 0; scale: 1; clip-path: inset(0 0 0 0 round 0); }
.js [data-anim="photo"].in img { scale: 1; }
.js [data-anim="lines"].in .ln > span { translate: 0 0; }
.js .polaroid[data-anim="photo"].in { clip-path: none; }
.js .hero-arch { animation: subir 1.2s .3s var(--ease) both; }
.js .badge { animation: aparecer 1s .9s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes subir { from { opacity: 0; translate: 0 50px; } }
@keyframes aparecer { from { opacity: 0; scale: .4; } }

/* Si el sistema pide menos movimiento: solo fundidos suaves, sin desplazamientos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-anim], .js [data-anim="up"], .js [data-anim="pop"], .js [data-anim="photo"] { translate: none; scale: none; clip-path: none; transition: opacity 1s ease; transition-delay: var(--delay, 0ms); }
  .js [data-anim="photo"] img { scale: none; transition: none; }
  .js [data-anim="lines"] .ln > span { translate: none; opacity: 0; transition: opacity 1s ease; transition-delay: calc(var(--i) * 200ms + 150ms); }
  .js [data-anim="lines"].in .ln > span { opacity: 1; }
  .js .hero-arch, .js .badge { animation-name: fundido; }
  .dot { scale: 1; transition: opacity .6s ease; transition-delay: calc(var(--d) * 200ms + 300ms); }
  .dot::before { animation: none; }
  .marquee-track { animation-duration: 70s; }
  .pd-stage { transition: transform .3s ease; }
}
@keyframes fundido { from { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .top-links { display: none; }
  .conf-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before, .steps::after { display: none; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 18px; }
  .hero-visual { order: -1; max-width: 400px; margin: 0 auto; width: 100%; }
  .hero-arch { width: 70%; }
  .badge { width: 104px; right: 2%; }
  .badge text { font-size: 15px; }
  .hero-visual .note { font-size: 1.35rem; left: -4px; top: 14%; }
  .hero-visual .note::after { width: 40px; margin-left: 40px; }
  .nuestro, .regalo { grid-template-columns: 1fr; }
  .nuestro-photos { min-height: 112vw; max-height: 560px; }
  .picker { grid-template-columns: 1fr; border-radius: 28px; }
  .size-switch { grid-template-columns: 1fr 1fr; }
  .stage { height: 290px; }
  .pd-stage { width: 52%; }
  .regalo-photo { max-width: 420px; }
  .sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--turquesa); color: var(--corteza); text-decoration: none; font-weight: 700;
    padding: .9em 1.3em; border-radius: 999px; border: 2px solid var(--corteza); box-shadow: 4px 5px 0 var(--corteza);
    translate: 0 140%; transition: translate .4s var(--ease);
  }
  .sticky-cta b { color: var(--corteza); background: var(--papel); padding: .1em .6em; border-radius: 999px; }
  .sticky-cta.show { translate: 0 0; }
}
@media (max-width: 560px) {
  .conf-grid, .steps { grid-template-columns: 1fr; }
  .top-actions .btn-small { display: none; }
  .galeria-track img { height: 230px; }
  .dot b { font-size: .75rem; left: 18px; }
}
