/* ═══════════════════════════════════════════════════════════════
   PRETO BY DALA&CO · DALA FUNDIÇÃO — "La Fundición"
   Sistema oscuro ceremonial · oro fundido sobre negro cálido
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:        #0A0908;
  --bg-2:      #100E0C;
  --bg-3:      #16130F;
  --ink:       #F3EFE7;
  --mute:      rgba(243, 239, 231, 0.56);
  --faint:     rgba(243, 239, 231, 0.34);

  --gold:      #C0971C;
  --gold-deep: #8F6E17;
  --gold-glow: #E6CB6E;
  --champagne: #EDE4CE;
  --gold-grad: linear-gradient(135deg, #E6CB6E 0%, #C0971C 44%, #8F6E17 72%, #E6CB6E 100%);

  --line:      rgba(230, 203, 110, 0.16);
  --line-soft: rgba(243, 239, 231, 0.08);
  --line-2:    rgba(230, 203, 110, 0.28);

  --serif:  'Cormorant Garamond', 'Times New Roman', serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --sans:   'Inter', 'Helvetica Neue', sans-serif;

  --pad-x: clamp(20px, 5vw, 88px);
  --ease:  cubic-bezier(.2, .7, .2, 1);

  /* Color de la colada — mezclado por JS según la composición */
  --melt: #C4901F;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
body { overflow-x: hidden; min-height: 100vh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

a { color: var(--gold-glow); transition: color .3s var(--ease); }
a:hover { color: var(--champagne); }

.script {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.9;
  color: var(--gold-glow);
}

/* ── Atmósfera ─────────────────────────────────────────────────── */
.fnd-atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.fnd-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(230,203,110,0.10), transparent 46%),
    radial-gradient(100% 80% at 50% 118%, rgba(192,151,28,0.10), transparent 52%),
    radial-gradient(140% 120% at 50% 50%, transparent 42%, rgba(0,0,0,0.62) 100%);
}
.fnd-ember {
  position: absolute; inset: 0;
  background: radial-gradient(60% 40% at 50% 108%, rgba(230,150,40,0.14), transparent 70%);
  mix-blend-mode: screen;
  animation: fnd-breathe 7s ease-in-out infinite;
}
@keyframes fnd-breathe { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.fnd-grain {
  position: absolute; inset: 0; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* Contenido por encima de la atmósfera */
.fnd-topbar, .fnd-intro, .fnd-taller, .fnd-recetas, .fnd-cierre, .fnd-foot { position: relative; z-index: 1; }

/* ── Utilidades tipográficas ───────────────────────────────────── */
.fnd-num {
  font-family: var(--sans); font-size: 11px; font-weight: 400;
  letter-spacing: 0.34em; color: var(--gold); opacity: 0.9;
}

/* ── TOPBAR ────────────────────────────────────────────────────── */
.fnd-topbar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; padding: 20px var(--pad-x);
  border-bottom: 1px solid var(--line-soft);
}
.fnd-back {
  display: inline-flex; align-items: center; gap: 9px; justify-self: start;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mute);
}
.fnd-back:hover { color: var(--champagne); }
.fnd-nav-left{display:inline-flex;align-items:center;gap:18px;justify-self:start}
.lang-switch{display:inline-flex;align-items:center;gap:7px}
.lang-opt{font-family:inherit;font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:#F4EFE6;opacity:.6;background:none;border:0;padding:4px 2px;cursor:pointer;transition:opacity .25s var(--ease),color .25s var(--ease);line-height:1}
.lang-opt:hover{opacity:1;color:#fff}
.lang-opt.is-active{opacity:1;color:#D4AF37;font-weight:600}
.lang-sep{opacity:.42;font-size:10px;user-select:none;color:#F4EFE6}
.fnd-back-arrow { transition: transform .35s var(--ease); }
.fnd-back:hover .fnd-back-arrow { transform: translateX(-4px); }
.fnd-mark { justify-self: center; }
.fnd-mark img { height: 30px; width: auto; opacity: 0.94; }
.fnd-seal { justify-self: end; text-align: right; display: grid; gap: 2px; }
.fnd-seal-k {
  font-family: var(--serif); font-size: 17px; letter-spacing: 0.02em; color: var(--ink);
}
.fnd-seal-amp { font-family: var(--script); color: var(--gold-glow); font-size: 21px; vertical-align: -3px; }
.fnd-seal-l {
  font-size: 9.5px; letter-spacing: 0.30em; text-transform: uppercase; color: var(--faint);
}

/* ── INTRO ─────────────────────────────────────────────────────── */
.fnd-intro {
  text-align: center; padding: clamp(56px, 9vw, 120px) var(--pad-x) clamp(30px, 5vw, 56px);
  max-width: 940px; margin: 0 auto;
}
.fnd-intro-eyebrow {
  font-size: 10.5px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 26px;
}
.fnd-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(58px, 12vw, 148px); line-height: 0.9; letter-spacing: -0.02em;
  color: var(--ink);
}
.fnd-title .script { font-size: 1.06em; display: inline-block; margin-left: 0.04em; }
.fnd-lede {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(18px, 2.3vw, 25px); line-height: 1.5; color: rgba(243,239,231,0.82);
  max-width: 660px; margin: 30px auto 0; text-wrap: pretty;
}
.fnd-master {
  margin-top: 22px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute);
}
.fnd-master em { font-family: var(--script); font-style: normal; text-transform: none;
  font-size: 19px; color: var(--gold-glow); letter-spacing: 0; vertical-align: -2px; }
.fnd-scroll {
  display: inline-flex; margin-top: 40px; width: 34px; height: 54px;
  border: 1px solid var(--line-2); border-radius: 20px;
  align-items: flex-start; justify-content: center; padding-top: 9px;
}
.fnd-scroll span { width: 3px; height: 9px; border-radius: 3px; background: var(--gold-glow);
  animation: fnd-scroll 1.8s var(--ease) infinite; }
@keyframes fnd-scroll { 0% { opacity: 0; transform: translateY(-2px); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ── TALLER (workspace grid) ───────────────────────────────────── */
.fnd-taller {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: clamp(20px, 3.4vw, 56px);
  align-items: start;
  padding: clamp(24px, 4vw, 40px) var(--pad-x) clamp(48px, 7vw, 90px);
  max-width: 1560px; margin: 0 auto;
}
.fnd-col-head { margin-bottom: 26px; }
.fnd-col-head.center { text-align: center; }
.fnd-col-head h2 {
  font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.01em; margin: 8px 0 0; color: var(--ink);
}
.fnd-col-head p { font-size: 13px; line-height: 1.55; color: var(--mute); margin-top: 8px; max-width: 34ch; }
.fnd-col-head.center p { margin-inline: auto; }

/* ── Tarros / vessels — frascos de taller con granalla real ─── */
.fnd-vessels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fnd-vessel {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line-soft); border-radius: 5px;
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(0,0,0,0.26));
  text-align: left; overflow: hidden;
  transition: border-color .3s var(--ease), transform .16s var(--ease), box-shadow .3s var(--ease);
  touch-action: none; -webkit-user-select: none; user-select: none;
}
.fnd-vessel:hover { border-color: var(--line-2); box-shadow: 0 18px 40px -26px rgba(230,203,110,0.4); }
.fnd-vessel:focus-visible { outline: 2px solid var(--gold-glow); outline-offset: 2px; }
.fnd-vessel.pouring { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-deep), 0 16px 44px -18px rgba(230,203,110,0.5); }
.fnd-vessel[aria-disabled="true"] { opacity: 0.42; pointer-events: none; }

.fnd-vessel-jar {
  position: relative; padding: 12px 8px 2px;
  background:
    radial-gradient(120% 82% at 50% 122%, rgba(230,150,40,0.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 42%);
}
.fnd-jar-svg { width: 100%; height: auto; display: block; overflow: visible; }
.jar-rot { transform-box: view-box; transform-origin: 64px 104px; transition: transform .34s var(--ease); }
.fnd-vessel.pouring .jar-rot { transform: rotate(-8deg); }
.jar-shadow { fill: rgba(0,0,0,0.5); filter: url(#jarBlur); }
.jar-glass { fill: rgba(228,236,244,0.05); stroke: rgba(230,203,110,0.26); stroke-width: 1.2; }
.jar-inside { fill: color-mix(in oklab, var(--m) 12%, #070503 88%); }
.jar-mouth-back { fill: #050403; }
.jar-heapsheen { fill: rgba(255,247,214,0.10); }
.jar-sheen { fill: none; stroke: rgba(255,255,255,0.16); stroke-width: 4.5; stroke-linecap: round; opacity: 0.7; }
.jar-lip { fill: none; stroke: url(#jarRim); stroke-width: 2.6; }
.jar-lip-in { fill: none; stroke: rgba(230,203,110,0.16); stroke-width: 1; }

/* granos transitorios al verter / pizca */
.fnd-jar-bit {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 4;
  background: radial-gradient(circle at 34% 30%, #fff 0 20%, var(--g) 52%, color-mix(in oklab, var(--g) 42%, black 58%) 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,0.5), 0 0 4px rgba(230,203,110,0.4);
}
.fnd-jar-bit.is-drop { animation: fnd-jardrop 640ms cubic-bezier(.4,.5,.5,1) forwards; }
@keyframes fnd-jardrop { 0% { opacity: 0; transform: translate(0,0) scale(.7); } 14% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(.92); } }
.fnd-jar-bit.is-slide { animation: fnd-jarslide 660ms ease-in forwards; }
@keyframes fnd-jarslide { 0% { opacity: 0; transform: translate(0,0); } 22% { opacity: 1; } 66% { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } 100% { opacity: 0; transform: translate(calc(var(--dx) - 8px), calc(var(--dy) + 16px)) rotate(var(--rot)); } }

.fnd-vessel-body { padding: 4px 13px 14px; display: grid; gap: 7px; justify-items: start; }
.fnd-vessel-name { font-family: var(--serif); font-size: 17px; line-height: 1.05; color: var(--ink); }
.fnd-vessel-plate {
  font-family: var(--sans); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-glow); border: 1px solid var(--line-2); border-radius: 2px; padding: 4px 8px;
  background: linear-gradient(180deg, rgba(0,0,0,0.34), rgba(230,203,110,0.045));
  box-shadow: inset 0 1px 0 rgba(255,240,190,0.10), inset 0 -1px 2px rgba(0,0,0,0.45);
  text-shadow: 0 1px 0 rgba(0,0,0,0.6); font-variant-numeric: tabular-nums;
}
/* sello de gramos vertidos — disco de latón estampado */
.fnd-vessel-seal {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  min-width: 32px; height: 32px; padding: 0 7px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 13px; font-variant-numeric: tabular-nums; color: #4A360C; letter-spacing: 0.01em;
  background:
    radial-gradient(52% 52% at 34% 28%, rgba(255,240,190,0.95), transparent 56%),
    radial-gradient(100% 100% at 50% 50%, #E6CB6E 0%, #C0971C 60%, #8F6E17 100%);
  box-shadow: 0 3px 8px rgba(0,0,0,0.45), inset 0 1px 2px rgba(255,240,190,0.8), inset 0 -2px 4px rgba(60,40,5,0.5);
  text-shadow: 0 1px 0 rgba(255,240,190,0.6);
  opacity: 0; transform: scale(0.6) rotate(-8deg); transition: opacity .3s var(--ease), transform .35s cubic-bezier(.3,1.4,.4,1);
}
.fnd-vessel.has-g .fnd-vessel-seal { opacity: 1; transform: scale(1) rotate(-6deg); }
/* sello "base" grabado */
.fnd-vessel-base {
  position: absolute; top: 13px; left: 13px; z-index: 5;
  font-family: var(--sans); font-size: 8px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-glow);
  border: 1px solid var(--line-2); border-radius: 2px; padding: 3px 7px; transform: rotate(-3deg);
  background: linear-gradient(180deg, rgba(0,0,0,0.4), rgba(230,203,110,0.05));
  box-shadow: inset 0 1px 0 rgba(255,240,190,0.1), 0 2px 6px rgba(0,0,0,0.4); text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}
@media (prefers-reduced-motion: reduce) { .jar-rot { transition: none; } }

/* ── Crisol + balanza ──────────────────────────────────────────── */
.fnd-crucible-wrap { display: flex; flex-direction: column; align-items: center; }
.fnd-crucible {
  position: relative; width: min(300px, 74vw); height: 240px;
  border-radius: 16px 16px 46% 46% / 16px 16px 30% 30%;
  background:
    linear-gradient(180deg, #201b16, #14100c 60%, #0d0a07);
  border: 1px solid rgba(230,203,110,0.22);
  box-shadow:
    inset 0 3px 10px rgba(0,0,0,0.7),
    inset 0 -20px 40px rgba(0,0,0,0.6),
    0 30px 60px -30px rgba(0,0,0,0.9);
  overflow: hidden;
}
.fnd-crucible-inner { position: absolute; inset: 8px 8px 6px; border-radius: 12px 12px 44% 44% / 12px 12px 30% 30%; overflow: hidden; }
.fnd-fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0%;
  background:
    radial-gradient(130% 46% at 50% 0%, rgba(255,243,206,0.5), transparent 40%),
    linear-gradient(180deg,
      color-mix(in oklab, var(--melt) 82%, #FFE9A8 18%) 0%,
      color-mix(in oklab, var(--melt) 94%, #8A5A0C 6%) 26%,
      color-mix(in oklab, var(--melt) 72%, #4A2A06 28%) 68%,
      color-mix(in oklab, var(--melt) 50%, #201202 50%) 100%);
  transition: height .5s var(--ease);
  box-shadow: inset 0 8px 20px -8px rgba(255,224,150,0.35), inset 0 -20px 32px -14px rgba(0,0,0,0.6);
}
/* superficie: menisco incandescente que respira */
.fnd-fill::before {
  content: ''; position: absolute; left: -2px; right: -2px; top: -4px; height: 11px; border-radius: 50%;
  background: radial-gradient(58% 100% at 50% 52%, #FFF5D2 0%, color-mix(in oklab, var(--melt) 74%, #FFCF7E 26%) 48%, color-mix(in oklab, var(--melt) 80%, #B96A10 20%) 76%, transparent 92%);
  filter: blur(0.4px);
  animation: fnd-meniscus 3.4s ease-in-out infinite;
}
@keyframes fnd-meniscus { 0%,100% { filter: blur(0.4px) brightness(1); } 50% { filter: blur(0.6px) brightness(1.3); } }
/* convección: vetas de calor que migran lentamente */
.fnd-fill::after {
  content: ''; position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0.4; pointer-events: none;
  background:
    radial-gradient(70% 30% at 28% 18%, rgba(255,226,150,0.30), transparent 70%),
    radial-gradient(56% 24% at 72% 44%, rgba(255,196,110,0.22), transparent 70%),
    radial-gradient(64% 26% at 40% 74%, rgba(255,214,130,0.16), transparent 70%);
  background-size: 200% 200%;
  animation: fnd-convect 9s ease-in-out infinite alternate;
}
@keyframes fnd-convect { 0% { background-position: 0% 0%; } 100% { background-position: 100% 60%; } }
.fnd-fill-surface { display: none; }
.fnd-crucible[data-molten="true"] .fnd-fill {
  animation: fnd-molten 2.4s ease-in-out infinite;
  box-shadow: inset 0 0 40px rgba(230,203,110,0.5), inset 0 10px 24px -10px rgba(0,0,0,0.35);
}
@keyframes fnd-molten { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.22); } }

.fnd-grains { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.fnd-grain-bit {
  position: absolute; top: 0; left: 50%;
  width: var(--sz, 6px); height: var(--sz, 6px);
  border-radius: var(--rad, 50%);
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,0.98) 0 18%, var(--g, var(--gold-glow)) 52%, color-mix(in oklab, var(--g, #C0971C) 48%, black 52%) 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.45), 0 0 5px rgba(230,203,110,0.4), inset 0 -1px 1px rgba(0,0,0,0.35);
  will-change: transform, opacity;
}
@keyframes fnd-grain-fall {
  0%   { transform: translate(0, -18px) rotate(0deg) scale(.55); opacity: 0; }
  10%  { opacity: 1; }
  70%  { transform: translate(calc(var(--dx,0px) * .92), var(--drop, 180px)) rotate(var(--rot, 200deg)) scale(1); opacity: 1; }
  82%  { transform: translate(var(--dx,0px), calc(var(--drop, 180px) - 7px)) rotate(var(--rot, 200deg)) scale(1); }
  92%  { transform: translate(var(--dx,0px), var(--drop, 180px)) rotate(var(--rot, 200deg)) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx,0px), var(--drop, 180px)) rotate(var(--rot, 200deg)) scale(.82); opacity: 0; }
}
/* ═══ FORJA · animación de fundición (crisol → chorro → lingote) ═══
   Se reproduce al pulsar "Fundir": el crisol se inclina y vierte oro
   fundido en la lingotera, el lingote se llena y se enfría, luego da
   paso al resultado. El color del oro sigue la aleación (--melt). */
.fnd-forge {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(120% 90% at 50% 62%, #1c1206 0%, #0c0803 55%, #050301 100%);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .5s ease, visibility .5s ease;
  --melt: #E6CB6E;
}
.fnd-forge[data-play="true"] { opacity: 1; visibility: visible; }
.fnd-forge-heat {
  position: absolute; left: 50%; bottom: 16%; transform: translateX(-50%);
  width: 460px; height: 300px; pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, color-mix(in oklab, var(--melt) 60%, #ff7a1a 40%) 0%, transparent 68%);
  opacity: 0; filter: blur(8px); mix-blend-mode: screen;
}
.fnd-forge[data-play="true"] .fnd-forge-heat { animation: fnd-forge-heat 2.8s ease-in-out forwards; }
@keyframes fnd-forge-heat { 0%{opacity:0;} 22%{opacity:.5;} 70%{opacity:.72;} 100%{opacity:.25;} }

.fnd-forge-scene { position: relative; width: 380px; height: 340px; }

/* Crisol */
.fnd-forge-crucible { position: absolute; left: 30px; top: 8px; width: 176px; height: 128px; transform-origin: 86% 84%; }
.fnd-forge[data-play="true"] .fnd-forge-crucible { animation: fnd-forge-tilt 2.8s cubic-bezier(.5,.05,.3,1) forwards; }
.fnd-forge-crucible-body {
  position: absolute; inset: 0; border-radius: 16px 16px 46% 46% / 16px 16px 62% 62%;
  background: linear-gradient(180deg, #4a4038 0%, #2b241d 46%, #17120c 100%);
  border: 1px solid rgba(230,203,110,0.22);
  box-shadow: inset 0 10px 22px -8px rgba(255,220,150,0.28), inset 0 -14px 26px -8px rgba(0,0,0,0.7), 0 18px 40px -18px rgba(0,0,0,0.8);
  overflow: hidden;
}
.fnd-forge-crucible-melt {
  position: absolute; left: 8%; right: 8%; top: 12px; height: 26px; border-radius: 50%;
  background: radial-gradient(ellipse at 42% 34%, #fff6df 0 12%, color-mix(in oklab, var(--melt) 80%, #ffcaa0 20%) 40%, color-mix(in oklab, var(--melt) 60%, #d06a12 40%) 78%);
  box-shadow: 0 0 26px 6px color-mix(in oklab, var(--melt) 60%, #ff8a2a 40%);
  filter: brightness(1.12);
}
.fnd-forge[data-play="true"] .fnd-forge-crucible-melt { animation: fnd-forge-melt-glow 1.6s ease-in-out infinite; }
@keyframes fnd-forge-melt-glow { 0%,100%{filter:brightness(1.05);} 50%{filter:brightness(1.3);} }
.fnd-forge-crucible-lip {
  position: absolute; right: -6px; top: 30px; width: 26px; height: 20px;
  background: linear-gradient(180deg, #4a4038, #2b241d); border-radius: 4px 10px 10px 4px;
  border: 1px solid rgba(230,203,110,0.2);
}
@keyframes fnd-forge-tilt {
  0%   { transform: rotate(0deg); }
  16%  { transform: rotate(0deg); }
  27%  { transform: rotate(-58deg); }
  70%  { transform: rotate(-58deg); }
  82%  { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/* Chorro de oro fundido */
.fnd-forge-stream {
  position: absolute; left: 176px; top: 84px; width: 7px; height: 150px;
  border-radius: 4px; transform-origin: top center; transform: scaleY(0);
  background: linear-gradient(180deg, #fff2d4 0%, color-mix(in oklab, var(--melt) 82%, #ffb968 18%) 40%, color-mix(in oklab, var(--melt) 66%, #e07d1a 34%) 100%);
  box-shadow: 0 0 16px 3px color-mix(in oklab, var(--melt) 55%, #ff9430 45%);
  opacity: 0;
}
.fnd-forge[data-play="true"] .fnd-forge-stream { animation: fnd-forge-stream 2.8s ease-in forwards; }
@keyframes fnd-forge-stream {
  0%,26% { opacity: 0; transform: scaleY(0); }
  30%    { opacity: 1; transform: scaleY(1); }
  70%    { opacity: 1; transform: scaleY(1); }
  76%    { opacity: 0; transform: scaleY(1); }
  100%   { opacity: 0; }
}
.fnd-forge-splash {
  position: absolute; left: 150px; top: 224px; width: 60px; height: 20px; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, #fff2d4 0 20%, color-mix(in oklab, var(--melt) 70%, #ff9c3e 30%) 55%, transparent 75%);
  opacity: 0; filter: blur(1px);
}
.fnd-forge[data-play="true"] .fnd-forge-splash { animation: fnd-forge-splash 2.8s ease-in-out forwards; }
@keyframes fnd-forge-splash { 0%,30%{opacity:0;transform:scale(.5);} 40%{opacity:.9;transform:scale(1);} 70%{opacity:.8;transform:scale(1.05);} 80%{opacity:0;} 100%{opacity:0;} }

/* Lingotera + lingote */
.fnd-forge-mold {
  position: absolute; left: 96px; bottom: 20px; width: 190px; height: 74px;
  background: linear-gradient(180deg, #3a322a 0%, #211b15 60%, #120d08 100%);
  border: 1px solid rgba(230,203,110,0.18); border-radius: 8px;
  box-shadow: inset 0 8px 18px -8px rgba(0,0,0,0.8), 0 20px 44px -20px rgba(0,0,0,0.85);
  padding: 12px 16px; overflow: hidden;
}
.fnd-forge-ingot {
  position: absolute; left: 16px; right: 16px; bottom: 12px; height: 0;
  border-radius: 4px 4px 5px 5px; overflow: hidden;
  background: linear-gradient(180deg,
    color-mix(in oklab, var(--melt) 84%, #ffd38f 16%) 0%,
    var(--melt) 46%,
    color-mix(in oklab, var(--melt) 62%, #7a5410 38%) 100%);
  box-shadow: 0 0 22px 3px color-mix(in oklab, var(--melt) 45%, #ff9430 55%);
}
.fnd-forge-ingot i {
  position: absolute; left: 14%; top: 16%; width: 40%; height: 30%; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), transparent);
  filter: blur(2px); opacity: .8;
}
.fnd-forge[data-play="true"] .fnd-forge-ingot { animation: fnd-forge-fill 2.8s cubic-bezier(.4,.1,.3,1) forwards; }
@keyframes fnd-forge-fill {
  0%,30%  { height: 0; filter: brightness(1.35); }
  70%     { height: 46px; filter: brightness(1.3); }
  86%     { height: 46px; filter: brightness(1.05); }
  100%    { height: 46px; filter: brightness(0.96); }
}
.fnd-forge-pool {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  width: 230px; height: 44px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse at 50% 50%, color-mix(in oklab, var(--melt) 55%, #ff8a2a 45%) 0%, transparent 70%);
  opacity: 0; filter: blur(6px); mix-blend-mode: screen;
}
.fnd-forge[data-play="true"] .fnd-forge-pool { animation: fnd-forge-pool 2.8s ease-in-out forwards; }
@keyframes fnd-forge-pool { 0%,30%{opacity:0;} 45%{opacity:.7;} 74%{opacity:.7;} 100%{opacity:.15;} }

/* Chispas */
.fnd-forge-embers { position: absolute; inset: 0; pointer-events: none; }
.fnd-ember {
  position: absolute; bottom: 30%; width: 4px; height: 4px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff, color-mix(in oklab, var(--melt) 60%, #ff9430 40%) 55%, transparent 76%);
  opacity: 0; filter: blur(.2px);
}
.fnd-forge[data-play="true"] .fnd-ember { animation: fnd-ember-rise var(--d, 2s) ease-in infinite; }
@keyframes fnd-ember-rise {
  0%   { transform: translate(0,0) scale(1); opacity: 0; }
  14%  { opacity: 1; }
  100% { transform: translate(var(--x,0), -230px) scale(.3); opacity: 0; }
}

/* Rótulo de estado */
.fnd-forge-cap {
  font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2.4vw, 23px);
  letter-spacing: 0.02em; color: color-mix(in oklab, var(--melt) 55%, #f3efe7 45%);
  text-align: center; min-height: 1.4em; text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}

@media (prefers-reduced-motion: reduce) { .fnd-forge { display: none !important; } }

.fnd-crucible-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; padding-bottom: 34px; gap: 10px;
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint);
  transition: opacity .4s var(--ease);
}
.fnd-empty-ic { width: 30px; height: 2px; background: var(--faint); }
.fnd-crucible[data-empty="false"] .fnd-crucible-empty { opacity: 0; }
.fnd-crucible-glow {
  position: absolute; inset: -2px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(230,203,110,0); transition: box-shadow .6s var(--ease); opacity: .9;
}
.fnd-crucible[data-molten="true"] .fnd-crucible-glow {
  box-shadow: 0 0 60px 6px rgba(230,203,110,0.4), inset 0 0 40px rgba(230,150,40,0.3);
}
.fnd-crucible-lip {
  width: min(340px, 82vw); height: 16px; margin-top: -6px;
  background: linear-gradient(180deg, #2a231b, #100c08);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 30px -18px rgba(0,0,0,0.9);
}

/* Balanza / lectura */
.fnd-scale { text-align: center; margin-top: 26px; }
.fnd-weight { display: flex; align-items: baseline; justify-content: center; gap: 4px; }
.fnd-weight-n {
  font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 8vw, 76px);
  line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.fnd-weight-u { font-family: var(--serif); font-size: 26px; color: var(--gold); }
.fnd-weight-max {
  display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
  font-variant-numeric: tabular-nums;
}
.fnd-weight-bar { width: min(240px, 60vw); height: 2px; background: var(--line-soft); position: relative; overflow: hidden; }
.fnd-weight-bar span { position: absolute; inset: 0 auto 0 0; width: 0%; background: var(--gold-grad); transition: width .5s var(--ease); }
.fnd-melt { margin-top: 18px; display: grid; gap: 3px; }
.fnd-melt-v { font-family: var(--serif); font-size: 24px; color: var(--gold-glow); font-variant-numeric: tabular-nums; }
.fnd-melt-l { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }

/* Acciones */
.fnd-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 30px; }
.fnd-smelt {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 46px; border-radius: 3px;
  font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 400;
  color: #1a1206; background: var(--gold-grad); background-size: 200% 200%;
  box-shadow: 0 16px 44px -18px rgba(230,203,110,0.6); overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .3s var(--ease), opacity .3s var(--ease), filter .3s var(--ease);
}
.fnd-smelt:hover:not(:disabled) { transform: translateY(-2px); animation: fnd-shine 2.4s linear infinite; box-shadow: 0 22px 54px -18px rgba(230,203,110,0.75); }
@keyframes fnd-shine { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.fnd-smelt:disabled { opacity: 0.32; filter: grayscale(0.5); box-shadow: none; cursor: not-allowed; }
.fnd-smelt-flame {
  width: 9px; height: 9px; border-radius: 50% 50% 50% 0; transform: rotate(45deg);
  background: radial-gradient(circle at 50% 60%, #fff6d8, #d98a1e);
  box-shadow: 0 0 8px rgba(230,150,40,0.9);
}
.fnd-clear { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); padding: 6px 10px; }
.fnd-clear:hover { color: var(--champagne); }

/* ── Registro de ensayo ────────────────────────────────────────── */
.fnd-assay {
  border: 1px solid var(--line-soft); border-radius: 5px; padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), rgba(0,0,0,0.24));
}
.fnd-comp { display: grid; gap: 14px; min-height: 40px; }
.fnd-comp-empty { font-size: 13px; color: var(--faint); font-style: italic; font-family: var(--serif); }
.fnd-comp-row { display: grid; gap: 7px; animation: fnd-in .4s var(--ease); }
@keyframes fnd-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.fnd-comp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fnd-comp-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); }
.fnd-comp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--m); box-shadow: 0 0 0 1px rgba(255,255,255,0.14); flex: none; }
.fnd-comp-g { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--mute); }
.fnd-comp-g b { color: var(--ink); font-weight: 500; }
.fnd-comp-bar { height: 3px; background: var(--line-soft); position: relative; overflow: hidden; border-radius: 3px; }
.fnd-comp-bar span { position: absolute; inset: 0 auto 0 0; width: 0%; background: linear-gradient(90deg, color-mix(in oklab, var(--m) 70%, black 20%), var(--m)); transition: width .5s var(--ease); }

.fnd-verdict {
  margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 5px;
  background: linear-gradient(135deg, rgba(230,203,110,0.10), rgba(230,203,110,0.02));
  display: grid; gap: 3px; animation: fnd-in .4s var(--ease);
}
.fnd-verdict-k { font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); }
.fnd-verdict-title { font-family: var(--serif); font-size: clamp(22px, 3vw, 28px); line-height: 1.05; color: var(--ink); }
.fnd-verdict-karat { font-size: 12px; letter-spacing: 0.12em; color: var(--gold-glow); font-variant-numeric: tabular-nums; }

.fnd-assay-lines { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); display: grid; gap: 12px; }
.fnd-assay-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fnd-assay-k { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); }
.fnd-assay-v { font-family: var(--serif); font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.fnd-assay-hallmarks { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.fnd-hallmark {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line-2); border-radius: 2px; padding: 4px 8px; color: var(--gold-glow);
  font-variant-numeric: tabular-nums;
}

.fnd-value { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.fnd-value-l { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.fnd-value-v { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 4vw, 40px); color: var(--gold-glow); font-variant-numeric: tabular-nums; line-height: 1; }
.fnd-value-note { font-size: 11px; line-height: 1.5; color: var(--faint); margin-top: 6px; }

/* ── Recetas de la casa ────────────────────────────────────────── */
.fnd-recetas { padding: clamp(30px, 5vw, 60px) var(--pad-x) clamp(48px, 7vw, 84px); max-width: 1560px; margin: 0 auto; }
.fnd-recetas-head { text-align: center; margin-bottom: 34px; }
.fnd-recetas-head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 4vw, 44px); margin: 12px 0 0; }
.fnd-recetas-head p { font-size: 13.5px; color: var(--mute); margin-top: 10px; }
.fnd-receta-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(216px, 1fr);
  gap: 14px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent;
}
.fnd-receta-rail::-webkit-scrollbar { height: 5px; }
.fnd-receta-rail::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 4px; }
.fnd-receta {
  scroll-snap-align: start; text-align: left; border: 1px solid var(--line-soft); border-radius: 5px;
  padding: 20px 20px 22px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.24));
  display: grid; gap: 12px; align-content: start; transition: border-color .3s var(--ease), transform .18s var(--ease);
}
.fnd-receta:hover { border-color: var(--line-2); transform: translateY(-3px); }
.fnd-receta-ref { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.fnd-receta-name { font-family: var(--serif); font-size: 22px; line-height: 1.06; color: var(--ink); }
.fnd-receta-swatch { display: flex; height: 5px; border-radius: 4px; overflow: hidden; }
.fnd-receta-swatch i { display: block; height: 100%; }
.fnd-receta-meta { font-size: 12px; color: var(--mute); font-variant-numeric: tabular-nums; }
.fnd-receta-load {
  margin-top: 2px; justify-self: start; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-glow); display: inline-flex; align-items: center; gap: 7px;
}
.fnd-receta-load .a { transition: transform .35s var(--ease); }
.fnd-receta:hover .fnd-receta-load .a { transform: translateX(4px); }

/* ── Resultado (reveal) ────────────────────────────────────────── */
.fnd-result { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; visibility: hidden; }
.fnd-result[aria-hidden="false"] { visibility: visible; }
.fnd-result-veil { position: absolute; inset: 0; background: rgba(4,3,2,0.86); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s var(--ease); }
.fnd-result[aria-hidden="false"] .fnd-result-veil { opacity: 1; }
.fnd-result-shell {
  position: relative; width: min(560px, 96vw); max-height: 92vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: 8px; padding: clamp(26px, 4vw, 44px);
  text-align: center; box-shadow: 0 50px 100px -40px rgba(0,0,0,0.9);
  transform: translateY(24px) scale(0.97); opacity: 0; transition: transform .55s var(--ease), opacity .5s var(--ease);
}
.fnd-result[aria-hidden="false"] .fnd-result-shell { transform: none; opacity: 1; }
.fnd-result-close { position: absolute; top: 16px; right: 18px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.fnd-result-close:hover { color: var(--champagne); }
.fnd-result-eyebrow { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.fnd-result-title { font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 6vw, 52px); margin-top: 10px; }

.fnd-ingot-stage { margin: 28px auto 8px; position: relative; width: 200px; height: 132px; }
.fnd-ingot {
  position: relative; width: 200px; height: 104px; margin: 0 auto;
  clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%);
  background: var(--ingot, var(--gold-grad));
  box-shadow: inset 0 3px 8px rgba(255,255,255,0.4), inset 0 -14px 26px rgba(0,0,0,0.32);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transform: translateY(16px) scale(0.86); opacity: 0;
}
.fnd-result[aria-hidden="false"] .fnd-ingot { animation: fnd-cast .8s var(--ease) .18s forwards; }
@keyframes fnd-cast { to { transform: none; opacity: 1; } }
.fnd-ingot-hall { font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: 0.14em; color: rgba(26,18,6,0.82); }
.fnd-ingot-w { font-family: var(--serif); font-size: 20px; color: rgba(26,18,6,0.7); font-variant-numeric: tabular-nums; }
.fnd-ingot-shadow { position: absolute; left: 50%; bottom: 6px; width: 180px; height: 20px; transform: translateX(-50%); background: radial-gradient(50% 100% at 50% 50%, rgba(230,203,110,0.34), transparent 70%); filter: blur(4px); }

.fnd-result-lines { margin-top: 20px; display: grid; gap: 1px; text-align: left; border: 1px solid var(--line-soft); border-radius: 5px; overflow: hidden; }
.fnd-result-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 14px 18px; background: rgba(255,255,255,0.012); }
.fnd-result-line .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.fnd-result-line .k em { font-style: normal; font-family: var(--script); text-transform: none; font-size: 15px; color: var(--gold); letter-spacing: 0; }
.fnd-result-line .v { font-family: var(--serif); font-size: 19px; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.fnd-result-line.total { background: rgba(230,203,110,0.06); border-top: 1px solid var(--line); }
.fnd-result-line.total .v { color: var(--gold-glow); font-size: 24px; }
.fnd-result-fine { font-size: 11.5px; line-height: 1.55; color: var(--faint); margin-top: 16px; max-width: 42ch; margin-inline: auto; }
.fnd-result-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 11px; align-items: center; }

/* ── Botones ───────────────────────────────────────────────────── */
.fnd-btn-gold, .fnd-btn-ghost { display: inline-flex; align-items: center; gap: 9px; justify-content: center; }
.fnd-btn-gold {
  padding: 15px 32px; border-radius: 3px; color: #1a1206; background: var(--gold-grad); background-size: 200% 200%;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  box-shadow: 0 14px 40px -18px rgba(230,203,110,0.6); transition: transform .18s var(--ease), box-shadow .3s var(--ease);
}
.fnd-btn-gold:hover { transform: translateY(-2px); color: #1a1206; animation: fnd-shine 2.4s linear infinite; box-shadow: 0 20px 50px -18px rgba(230,203,110,0.8); }
.fnd-btn-ghost {
  padding: 14px 30px; border: 1px solid var(--line-2); border-radius: 3px; color: var(--champagne);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.fnd-btn-ghost:hover { border-color: var(--gold); color: var(--gold-glow); background: rgba(230,203,110,0.05); }

/* ── Cierre ────────────────────────────────────────────────────── */
.fnd-cierre { padding: clamp(60px, 9vw, 128px) var(--pad-x); border-top: 1px solid var(--line-soft); text-align: center; }
.fnd-cierre-inner { max-width: 760px; margin: 0 auto; }
.fnd-cierre-eyebrow { font-size: 10.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.fnd-cierre-title { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 7vw, 82px); line-height: 0.98; margin-top: 18px; letter-spacing: -0.02em; }
.fnd-cierre-body { font-family: var(--serif); font-weight: 300; font-size: clamp(17px, 2.2vw, 23px); line-height: 1.55; color: rgba(243,239,231,0.8); margin: 24px auto 0; max-width: 620px; text-wrap: pretty; }
.fnd-cierre-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ────────────────────────────────────────────────────── */
.fnd-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 26px var(--pad-x) 40px; border-top: 1px solid var(--line-soft);
  font-size: 11px; letter-spacing: 0.12em; color: var(--faint);
}
.fnd-gold { color: var(--gold); }
.fnd-foot-note { text-transform: uppercase; letter-spacing: 0.16em; font-size: 9.5px; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .fnd-taller { grid-template-columns: 1fr; max-width: 640px; gap: 44px; }
  .fnd-col-head, .fnd-col-head.center { text-align: center; }
  .fnd-col-head p, .fnd-col-head.center p { margin-inline: auto; }
  .fnd-vessels { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  .fnd-topbar { grid-template-columns: auto 1fr; }
  .fnd-mark { display: none; }
  .fnd-seal { justify-self: end; }
  .fnd-vessels { grid-template-columns: repeat(2, 1fr); }
  .fnd-back span:last-child { display: none; }
}

/* ── Pista de mezcla + tarros especiales ───────────────────────── */
.fnd-mix-hint {
  margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--faint);
  border-top: 1px solid var(--line-soft); padding-top: 10px; max-width: 40ch;
}
.fnd-col-head.center .fnd-mix-hint, .fnd-col-head:not(.center) .fnd-mix-hint { max-width: 40ch; }
.fnd-mix-hint b { color: var(--gold-glow); font-weight: 500; }
.fnd-vessel.is-base { border-color: var(--line-2); box-shadow: inset 0 0 0 1px rgba(230,203,110,0.12); }
.fnd-vessel-role {
  grid-column: 1 / -1; margin: 8px 2px 2px; font-size: 9px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 10px;
}
.fnd-vessel-role::after { content: ''; flex: 1; height: 1px; background: var(--line-soft); }

/* ── Botones secundarios del resultado ─────────────────────────── */
.fnd-result-cta2 { margin-top: 14px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.fnd-linkbtn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-glow);
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color .3s var(--ease), color .3s var(--ease);
}
.fnd-linkbtn:hover { border-color: var(--gold); }
.fnd-linkbtn.muted { color: var(--mute); }
.fnd-linkbtn.muted:hover { color: var(--champagne); }
.fnd-linkbtn-ic { width: 13px; height: 13px; border: 1px solid currentColor; border-radius: 2px; position: relative; }
.fnd-linkbtn-ic::before { content: ''; position: absolute; inset: 3px 3px auto 3px; height: 1px; background: currentColor; box-shadow: 0 3px 0 currentColor, 0 6px 0 currentColor; }

/* ═══ CERTIFICADO DE FUNDICIÓN ═════════════════════════════════════ */
.fnd-cert {
  --cert-paper: #F5F0E6; --cert-paper-2: #EFE8D9; --cert-ink: #1A1714;
  --cert-gold: #9A7B2E; --cert-gold-2: #B99A46; --cert-line: rgba(26,23,20,0.18);
  position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  background: rgba(4,3,2,0.9); backdrop-filter: blur(6px); visibility: hidden; opacity: 0;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
.fnd-cert[aria-hidden="false"] { visibility: visible; opacity: 1; }
.fnd-cert-veil { position: absolute; inset: 0; }
.fnd-cert-scroll { position: relative; flex: 1; overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; padding: clamp(18px, 4vw, 48px) 16px 24px; }
.fnd-cert-card {
  position: relative; width: min(720px, 100%); background: var(--cert-paper); color: var(--cert-ink);
  box-shadow: 0 50px 110px -40px rgba(0,0,0,0.9); transform: translateY(20px) scale(0.98); opacity: 0;
  transition: transform .55s var(--ease), opacity .5s var(--ease);
  background-image: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.5), transparent 60%);
}
.fnd-cert[aria-hidden="false"] .fnd-cert-card { transform: none; opacity: 1; }
.fnd-cert-border {
  margin: 12px; border: 1px solid var(--cert-gold); outline: 3px double var(--cert-gold);
  outline-offset: 4px; padding: clamp(26px, 5vw, 52px) clamp(24px, 5vw, 56px);
}
.fnd-cert-head { text-align: center; display: grid; gap: 14px; justify-items: center; }
.fnd-cert-house { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fnd-cert-logo { width: 46px; height: 46px; object-fit: contain; opacity: 0.92; }
.fnd-cert-house-name { font-family: var(--serif); font-size: 21px; letter-spacing: 0.04em; color: var(--cert-ink); }
.fnd-cert-house-name .amp { font-family: var(--script); font-size: 22px; color: var(--cert-gold); vertical-align: -2px; }
.fnd-cert-eyebrow { font-family: var(--sans); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--cert-gold); }
.fnd-cert-titleblock { text-align: center; margin-top: 22px; display: grid; gap: 6px; justify-items: center; }
.fnd-cert-kicker { font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(26,23,20,0.5); }
.fnd-cert-title { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 6vw, 50px); line-height: 1; letter-spacing: -0.01em; color: var(--cert-ink); }
.fnd-cert-karat {
  margin-top: 8px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--cert-gold); border: 1px solid var(--cert-gold); border-radius: 2px; padding: 6px 14px;
}
.fnd-cert-rule { display: flex; align-items: center; gap: 12px; margin: 26px 0; }
.fnd-cert-rule span { flex: 1; height: 1px; background: var(--cert-line); }
.fnd-cert-rule i { width: 7px; height: 7px; transform: rotate(45deg); background: var(--cert-gold); }
.fnd-cert-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 40px); }
.fnd-cert-sub { font-family: var(--sans); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: rgba(26,23,20,0.5); margin-bottom: 12px; }
.fnd-cert-table { width: 100%; border-collapse: collapse; }
.fnd-cert-table tr { border-bottom: 1px solid var(--cert-line); }
.fnd-cert-table tr:last-child { border-bottom: 0; }
.fnd-cert-table td { padding: 9px 0; font-size: 14px; vertical-align: middle; }
.fnd-cert-table .cm-name { font-family: var(--serif); font-size: 16px; }
.fnd-cert-table .cm-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 0; box-shadow: 0 0 0 1px rgba(0,0,0,0.12); }
.fnd-cert-table .cm-g { text-align: right; font-variant-numeric: tabular-nums; color: rgba(26,23,20,0.68); white-space: nowrap; }
.fnd-cert-table .cm-g b { color: var(--cert-ink); }
.fnd-cert-dl { display: grid; gap: 11px; }
.fnd-cert-dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--cert-line); padding-bottom: 9px; }
.fnd-cert-dl > div:last-child { border-bottom: 0; }
.fnd-cert-dl dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(26,23,20,0.55); }
.fnd-cert-dl dd { font-family: var(--serif); font-size: 17px; color: var(--cert-ink); text-align: right; font-variant-numeric: tabular-nums; }
.fnd-cert-value { margin-top: 16px; }
.fnd-cert-value-l { display: block; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cert-gold); }
.fnd-cert-value-v { display: block; font-family: var(--serif); font-size: clamp(24px, 4vw, 32px); color: var(--cert-ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.fnd-cert-foot { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--cert-line); display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.fnd-cert-meta { display: grid; gap: 6px; font-size: 11px; letter-spacing: 0.06em; color: rgba(26,23,20,0.6); }
.fnd-cert-meta b { color: var(--cert-ink); font-weight: 600; letter-spacing: 0.1em; }
.fnd-cert-fine { margin-top: 22px; font-size: 10.5px; line-height: 1.6; color: rgba(26,23,20,0.5); text-align: center; text-wrap: pretty; }
.fnd-cert-bar {
  position: relative; z-index: 1; display: flex; gap: 12px; justify-content: center; align-items: center;
  padding: 16px; background: linear-gradient(180deg, transparent, rgba(4,3,2,0.6)); flex-wrap: wrap;
}

@media (max-width: 560px) {
  .fnd-cert-grid { grid-template-columns: 1fr; gap: 22px; }
  .fnd-cert-foot { justify-content: center; text-align: center; }
  .fnd-cert-meta { justify-items: center; }
}

/* ── Impresión: solo el certificado ────────────────────────────── */
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  html, body { background: #fff !important; }
  body > *:not(.fnd-cert) { display: none !important; }
  .fnd-atmos { display: none !important; }
  .fnd-cert { position: static !important; visibility: visible !important; opacity: 1 !important; display: block !important; background: none !important; backdrop-filter: none !important; }
  .fnd-cert-veil, .fnd-cert-bar { display: none !important; }
  .fnd-cert-scroll { position: static !important; overflow: visible !important; display: block !important; padding: 0 !important; }
  .fnd-cert-card { box-shadow: none !important; transform: none !important; opacity: 1 !important; width: 100% !important; max-width: 100% !important; }
  .fnd-cert-border { margin: 0 !important; }
}

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fnd-ingot { opacity: 1; transform: none; }
}

/* ═══ CONVERSIÓN · en qué convertir el oro ═════════════════════════ */
.fnd-conv-block { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.fnd-conv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fnd-conv-title { font-family: var(--serif); font-size: clamp(22px, 3vw, 27px); color: var(--ink); line-height: 1.05; }
.fnd-conv-title .script { font-size: 1.18em; }
.fnd-conv-hint { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.fnd-conv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.fnd-conv {
  position: relative; text-align: left; border: 1px solid var(--line-soft); border-radius: 5px;
  padding: 12px 12px 13px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.22));
  display: grid; gap: 3px; align-content: start;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .12s var(--ease);
}
.fnd-conv:hover { border-color: var(--line-2); transform: translateY(-2px); }
.fnd-conv:focus-visible { outline: 2px solid var(--gold-glow); outline-offset: 2px; }
.fnd-conv-name { font-family: var(--serif); font-size: 16px; color: var(--ink); line-height: 1.1; padding-right: 20px; }
.fnd-conv-note { font-size: 10.5px; line-height: 1.4; color: var(--mute); }
.fnd-conv-from { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-top: 2px; font-variant-numeric: tabular-nums; }
.fnd-conv.is-on .fnd-conv-from { color: var(--gold-glow); }
.fnd-conv.is-locked { opacity: 0.42; cursor: not-allowed; }
.fnd-conv.is-locked:hover { transform: none; border-color: var(--line-soft); }
.fnd-conv.is-locked .fnd-conv-check { display: block; border-color: var(--line-soft); background: none; }
.fnd-conv.is-locked .fnd-conv-check::after { content: ''; position: absolute; inset: 4px; border-top: 1px solid var(--faint); transform: rotate(-45deg); transform-origin: center; }
.fnd-conv-check { position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; border: 1px solid var(--line-2); border-radius: 50%; transition: background .2s, border-color .2s; }
.fnd-conv.is-on { border-color: var(--gold); background: linear-gradient(135deg, rgba(230,203,110,0.13), rgba(230,203,110,0.03)); }
.fnd-conv.is-on .fnd-conv-check { background: var(--gold-grad); border-color: var(--gold-glow); }
.fnd-conv.is-on .fnd-conv-check::after { content: '✓'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #1a1206; }
.fnd-conv-summary { margin-top: 15px; font-size: 12.5px; line-height: 1.5; color: var(--mute); font-family: var(--serif); font-style: italic; }
.fnd-conv-summary.is-on { color: var(--gold-glow); font-style: normal; font-family: var(--sans); letter-spacing: 0.01em; }
.fnd-conv-summary b { color: var(--gold-glow); font-weight: 500; }
@media (max-width: 480px) { .fnd-conv-grid { grid-template-columns: repeat(2, 1fr); } }

/* ═══ AHORRO EN ORO 24K ═══════════════════════════════════════ */
.fnd-ahorro { padding: clamp(46px, 7vw, 96px) var(--pad-x); border-top: 1px solid var(--line-soft); position: relative; z-index: 1; }
.fnd-ahorro-inner { max-width: 1120px; margin: 0 auto; }
.fnd-ahorro-head { text-align: center; max-width: 680px; margin: 0 auto; }
.fnd-ahorro-head .fnd-num { display: block; margin-bottom: 14px; }
.fnd-ahorro-head h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 6vw, 68px); line-height: 0.98; letter-spacing: -0.01em; color: var(--ink); }
.fnd-ahorro-head h2 .script { font-size: 1.06em; }
.fnd-ahorro-head p { font-family: var(--serif); font-weight: 300; font-size: clamp(16px, 2vw, 21px); line-height: 1.55; color: rgba(243,239,231,0.8); margin-top: 18px; text-wrap: pretty; }
.fnd-ahorro-panel { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 3vw, 52px); margin-top: clamp(32px, 4vw, 56px); align-items: stretch; }
.fnd-ahorro-control {
  border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(230,203,110,0.055), rgba(0,0,0,0.3)); display: flex; flex-direction: column;
}
.fnd-ahorro-readout { display: flex; align-items: center; gap: 16px; }
.fnd-ahorro-g { font-family: var(--serif); font-size: clamp(54px, 8vw, 88px); line-height: 0.88; color: var(--ink); font-variant-numeric: tabular-nums; }
.fnd-ahorro-g b { font-weight: 400; }
.fnd-ahorro-g i { font-style: normal; font-size: 0.36em; color: var(--gold); }
.fnd-ahorro-sub { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); line-height: 1.5; }
.fnd-ahorro-bar { height: 3px; background: var(--line-soft); border-radius: 3px; overflow: hidden; margin: 24px 0 6px; }
.fnd-ahorro-bar span { display: block; height: 100%; width: 0%; background: var(--gold-grad); transition: width .35s var(--ease); }
.fnd-ahorro-scale { display: flex; justify-content: space-between; font-size: 9.5px; letter-spacing: 0.16em; color: var(--faint); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.fnd-ahorro-range { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin-top: 8px; cursor: pointer; }
.fnd-ahorro-range::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--line-soft)); border-radius: 3px; }
.fnd-ahorro-range::-moz-range-track { height: 3px; background: var(--line-soft); border-radius: 3px; }
.fnd-ahorro-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-grad); margin-top: -8px; box-shadow: 0 4px 12px -4px rgba(230,203,110,0.8); }
.fnd-ahorro-range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #E6CB6E; box-shadow: 0 4px 12px -4px rgba(230,203,110,0.8); }
.fnd-ahorro-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.fnd-ahorro-presets button { border: 1px solid var(--line-2); border-radius: 20px; padding: 7px 14px; font-size: 11px; letter-spacing: 0.06em; color: var(--champagne); transition: border-color .25s, color .25s, background .25s; font-variant-numeric: tabular-nums; }
.fnd-ahorro-presets button:hover, .fnd-ahorro-presets button.is-on { border-color: var(--gold); color: var(--gold-glow); background: rgba(230,203,110,0.06); }
.fnd-ahorro-value { margin-top: auto; padding-top: 24px; }
.fnd-ahorro-value-l { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.fnd-ahorro-value-v { display: block; font-family: var(--serif); font-size: clamp(30px, 4.4vw, 44px); color: var(--gold-glow); font-variant-numeric: tabular-nums; margin-top: 5px; line-height: 1; }
.fnd-ahorro-value-note { display: block; font-size: 11px; line-height: 1.5; color: var(--faint); margin-top: 9px; max-width: 42ch; }
.fnd-ahorro-cta { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 24px; }
.fnd-ahorro-info { list-style: none; display: grid; gap: 0; align-content: center; }
.fnd-ahorro-info li { display: grid; gap: 5px; padding: 17px 0; border-bottom: 1px solid var(--line-soft); }
.fnd-ahorro-info li:first-child { padding-top: 0; }
.fnd-ahorro-info li:last-child { border-bottom: 0; padding-bottom: 0; }
.fnd-ahorro-info .k { font-family: var(--serif); font-size: 19px; color: var(--ink); display: flex; align-items: center; gap: 11px; }
.fnd-ahorro-info .k::before { content: ''; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); flex: none; }
.fnd-ahorro-info .d { font-size: 12.5px; line-height: 1.55; color: var(--mute); padding-left: 17px; text-wrap: pretty; }
@media (max-width: 880px) { .fnd-ahorro-panel { grid-template-columns: 1fr; } }

/* ═══ BALANZA DE AGUJA · dial de taller ═══ */
.fnd-gauge { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fnd-gauge-svg { width: min(272px, 70vw); height: auto; filter: drop-shadow(0 16px 28px rgba(0,0,0,0.55)); }
.gz-face { fill: url(#gzFace); stroke: rgba(230,203,110,0.14); stroke-width: 1; }
.gz-bezel { fill: none; stroke: url(#gzBrass); stroke-width: 2.6; stroke-linecap: round; opacity: 0.9; }
.gz-ring { fill: none; stroke: rgba(230,203,110,0.12); stroke-width: 1; }
.gz-tick { stroke: rgba(230,203,110,0.4); stroke-width: 1; }
.gz-tick-M { stroke: var(--gold-glow); stroke-width: 1.7; }
.gz-warn { fill: none; stroke: var(--gold-deep); stroke-width: 3.4; opacity: 0.9; stroke-linecap: round; }
.gz-lab { font-family: var(--serif); font-size: 12px; fill: var(--champagne); opacity: 0.85; font-variant-numeric: tabular-nums; }
.gz-brand { font-family: var(--sans); font-size: 6.6px; letter-spacing: 0.34em; fill: var(--gold); opacity: 0.85; }
.gz-unit { font-family: var(--sans); font-size: 5.8px; letter-spacing: 0.3em; fill: rgba(243,239,231,0.4); }
.gz-needle { transform-box: view-box; transform-origin: 50% 85.333%; transition: transform .8s cubic-bezier(.3,1.5,.4,1); will-change: transform; }
.gz-needle-arm { fill: url(#gzBrass); stroke: rgba(255,240,190,0.55); stroke-width: 0.5; }
.gz-tail { fill: #8F6E17; stroke: rgba(255,240,190,0.4); stroke-width: 0.6; }
.gz-hub { fill: url(#gzBrass); stroke: rgba(0,0,0,0.55); stroke-width: 1; }
.gz-hubdot { fill: #0A0908; }
.fnd-gauge-read { display: flex; align-items: baseline; gap: 5px; margin-top: 6px; }
.fnd-gauge-read b { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5.6vw, 52px); line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.fnd-gauge-read span { font-family: var(--serif); font-size: 21px; color: var(--gold); }

/* ═══ HOGAR DE BRASAS · crece con el llenado (--heat 0..1) ═══ */
.fnd-crucible-wrap { position: relative; }
.fnd-hearth {
  position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%);
  width: 170%; max-width: 560px; height: 230px; pointer-events: none; mix-blend-mode: screen;
  opacity: calc(var(--heat, 0) * 0.9); transition: opacity .6s var(--ease);
  background:
    radial-gradient(46% 52% at 50% 74%, color-mix(in oklab, var(--melt) 50%, #FF7A1A 50%) 0%, rgba(255,122,26,0.28) 36%, transparent 72%),
    radial-gradient(70% 60% at 50% 86%, rgba(230,150,40,0.3), transparent 70%);
  filter: blur(10px);
  animation: fnd-hearth 3.4s ease-in-out infinite;
}
@keyframes fnd-hearth { 0%,100% { filter: blur(10px) brightness(1); } 45% { filter: blur(12px) brightness(1.25); } 70% { filter: blur(11px) brightness(1.08); } }
.fnd-crucible-glow { box-shadow: 0 0 calc(18px + var(--heat, 0) * 46px) calc(var(--heat, 0) * 7px) rgba(230,150,40, calc(var(--heat, 0) * 0.42)); }

.fnd-maestro-line em { font-style: normal; color: var(--gold-glow); }

/* ═══ CERTIFICADO · papel, marca de agua, sello de cera y firma ═══ */
.fnd-cert-card { overflow: hidden; }
.fnd-cert-tex {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; mix-blend-mode: multiply; opacity: 0.55;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.36 0 0 0 0 0.24 0 0 0 0.30 0'/></filter><rect width='100%25' height='100%25' filter='url(%23p)'/></svg>"),
    radial-gradient(115% 100% at 50% 46%, transparent 58%, rgba(120,96,44,0.18) 100%);
}
.fnd-cert-wm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 0; }
.fnd-cert-wm span { font-family: var(--serif); font-size: min(300px, 52vw); letter-spacing: -0.05em; color: rgba(154,123,46,0.08); line-height: 1; transform: translateY(-4%); }
.fnd-cert-border { position: relative; z-index: 1; }
.fnd-cert-stampbox { display: inline-block; justify-self: start; transform: rotate(-2.4deg); border: 1.5px solid rgba(122,46,29,0.72); color: #7A2E1D; background: rgba(122,46,29,0.045); padding: 6px 11px; border-radius: 2px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; position: relative; overflow: hidden; }
.fnd-cert-stampbox b { color: #7A2E1D; font-weight: 600; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.fnd-cert-stampbox::after {
  content: ''; position: absolute; inset: 0; mix-blend-mode: screen; opacity: 0.55; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.94 0 0 0 0 0.88 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23w)'/></svg>");
}

/* ═══ FICHA DEL CERTIFICADO en el resultado ═══ */
.fnd-certchip {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 22px; text-align: left;
  background: #F5F0E6; background-image: radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.55), transparent 60%);
  color: #1A1714; border: 1px solid #9A7B2E; border-radius: 2px; padding: 14px 16px;
  box-shadow: inset 0 0 0 3px #F5F0E6, inset 0 0 0 4px rgba(154,123,46,0.55), 0 18px 40px -18px rgba(0,0,0,0.75);
  transition: transform .2s var(--ease), box-shadow .3s var(--ease);
}
.fnd-certchip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 3px #F5F0E6, inset 0 0 0 4px rgba(154,123,46,0.75), 0 24px 48px -18px rgba(0,0,0,0.85); }
.fnd-certchip-seal {
  width: 38px; height: 38px; flex: none; border-radius: 46% 54% 52% 48% / 53% 47% 55% 45%;
  background:
    radial-gradient(52% 52% at 34% 28%, rgba(255,240,190,0.9), transparent 56%),
    radial-gradient(100% 100% at 50% 50%, #C29A2E 0%, #9A7B2E 62%, #7A5F1C 100%);
  box-shadow: 0 2px 6px rgba(26,23,20,0.35), inset 0 1px 2px rgba(255,240,190,0.7), inset 0 -2px 4px rgba(60,40,5,0.55);
  display: flex; align-items: center; justify-content: center;
}
.fnd-certchip-seal span { font-family: var(--serif); font-size: 12px; color: #5E4610; text-shadow: 0 1px 0 rgba(255,240,190,0.6); }
.fnd-certchip-tx { display: grid; gap: 2px; flex: 1; }
.fnd-certchip-tx b { font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.1; }
.fnd-certchip-tx i { font-style: normal; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(26,23,20,0.55); font-variant-numeric: tabular-nums; }
.fnd-certchip-a { color: #9A7B2E; font-size: 16px; }

/* ═══ BÓVEDA · libro de custodia ═══ */
.fnd-ahorro-control {
  position: relative; border-color: var(--line-2);
  background:
    radial-gradient(circle at 13px 13px, rgba(255,240,190,0.85) 1.4px, rgba(143,110,23,0.9) 2.4px, transparent 4px),
    radial-gradient(circle at calc(100% - 13px) 13px, rgba(255,240,190,0.85) 1.4px, rgba(143,110,23,0.9) 2.4px, transparent 4px),
    radial-gradient(circle at 13px calc(100% - 13px), rgba(255,240,190,0.85) 1.4px, rgba(143,110,23,0.9) 2.4px, transparent 4px),
    radial-gradient(circle at calc(100% - 13px) calc(100% - 13px), rgba(255,240,190,0.85) 1.4px, rgba(143,110,23,0.9) 2.4px, transparent 4px),
    linear-gradient(180deg, rgba(230,203,110,0.06), rgba(0,0,0,0.34));
}
.fnd-ahorro-control::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(230,203,110,0.16); border-radius: 4px; pointer-events: none; }
.fnd-vault-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.fnd-vault-k { font-family: var(--serif); font-size: 19px; color: var(--champagne); display: inline-flex; align-items: center; gap: 10px; }
.fnd-vault-k::before { content: ''; width: 10px; height: 10px; border: 1px solid var(--gold); border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--bg), inset 0 0 0 3.5px var(--gold-deep); }
.fnd-vault-partida { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 8px; }
.fnd-vault-partida b { font-weight: 500; letter-spacing: 0.12em; color: var(--gold-glow); border: 1px solid var(--line-2); background: rgba(230,203,110,0.05); border-radius: 2px; padding: 4px 9px; font-variant-numeric: tabular-nums; }
.fnd-ahorro-bar { height: 10px; border: 1px solid var(--line-soft); border-radius: 2px; background: rgba(0,0,0,0.4); position: relative; overflow: hidden; }
.fnd-ahorro-bar::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(230,203,110,0.3) 0 1px, transparent 1px calc(100% / 15)); }
.fnd-ahorro-bar span { box-shadow: 0 0 14px rgba(230,203,110,0.5); }
.fnd-ahorro-presets button { border-radius: 2px; background: linear-gradient(180deg, rgba(230,203,110,0.07), rgba(0,0,0,0.28)); box-shadow: inset 0 1px 0 rgba(255,240,190,0.08); }
.fnd-ahorro-info { counter-reset: vault; }
.fnd-ahorro-info li { counter-increment: vault; }
.fnd-ahorro-info .k::before { content: counter(vault, decimal-leading-zero); width: auto; height: auto; transform: none; background: none; font-family: var(--sans); font-size: 9.5px; letter-spacing: 0.22em; color: var(--gold); border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }

@media print { .fnd-cert-card, .fnd-cert-card * { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ═══════════════════════════════════════════════════════════════
   OPTIMIZACIÓN FLUIDA · computador, tablet, teléfono y demás
   ═══════════════════════════════════════════════════════════════ */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: clip; }
img, svg, video { max-width: 100%; height: auto; }

/* Áreas seguras (notch / barras del sistema) en barras a borde */
.fnd-topbar {
  padding-left: max(var(--pad-x), env(safe-area-inset-left));
  padding-right: max(var(--pad-x), env(safe-area-inset-right));
  padding-top: max(20px, env(safe-area-inset-top));
}
.fnd-foot {
  padding-left: max(var(--pad-x), env(safe-area-inset-left));
  padding-right: max(var(--pad-x), env(safe-area-inset-right));
  padding-bottom: max(40px, env(safe-area-inset-bottom));
}

/* Modales: alto REAL del viewport móvil + sin arrastrar el fondo */
.fnd-result-shell { max-height: 92dvh; overscroll-behavior: contain; }
.fnd-cert-scroll { overscroll-behavior: contain; }
.fnd-cert-bar { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.fnd-receta-rail { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }

/* Objetivos táctiles cómodos en dispositivos sin puntero fino */
@media (hover: none) {
  .fnd-ahorro-presets button { min-height: 42px; }
  .fnd-clear, .fnd-linkbtn, .fnd-back { min-height: 40px; }
}

/* Laptop pequeña / tablet horizontal */
@media (max-width: 1080px) { .fnd-taller { max-width: 720px; } }
@media (max-width: 900px)  { .fnd-taller { gap: 40px; } .fnd-vessels { grid-template-columns: repeat(3, 1fr); } }

/* Teléfono grande */
@media (max-width: 620px) {
  :root { --pad-x: clamp(16px, 5vw, 88px); }
  .fnd-result { padding: 14px; }
  .fnd-result-shell { padding: 24px 18px; }
  .fnd-result-cta2 { gap: 14px; }
  .fnd-cierre-cta, .fnd-ahorro-cta { flex-direction: column; align-items: stretch; }
  .fnd-cierre-cta .fnd-btn-gold, .fnd-cierre-cta .fnd-btn-ghost,
  .fnd-ahorro-cta .fnd-btn-gold, .fnd-ahorro-cta .fnd-btn-ghost { justify-content: center; }
}

/* Teléfono pequeño */
@media (max-width: 400px) {
  .fnd-vessels { grid-template-columns: repeat(2, 1fr); }
  .fnd-vessel-name { font-size: 15.5px; }
  .fnd-title { font-size: clamp(46px, 14vw, 148px); }
  .fnd-maestro { width: 120px; margin-left: 50px; bottom: 40px; }
  .fnd-gauge-svg { width: min(240px, 80vw); }
}

/* Pantallas muy anchas (monitores grandes / 4K) */
@media (min-width: 1800px) { .fnd-taller, .fnd-recetas { max-width: 1680px; } }

/* Alto reducido (teléfono en horizontal): compactar el modal */
@media (max-height: 560px) {
  .fnd-result-shell { max-height: 96dvh; }
  .fnd-ingot-stage { margin: 14px auto 4px; height: 96px; }
}

/* ── ESTABILIDAD iOS/Android · pantallas táctiles ──────────────────
   Las capas de atmósfera siempre activas (grano feTurbulence,
   respiración con mix-blend-mode, brasa con blur animado) son las que
   más memoria GPU consumen en WebKit. En táctil se apagan o congelan;
   el taller interactivo (crisol, forja) queda intacto. */
@media (hover: none) and (pointer: coarse) {
  .fnd-grain { display: none; }
  .fnd-ember { animation: none; opacity: .7; }
  .fnd-hearth { animation: none; }
  .fnd-result-veil, .fnd-cert {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .fnd-result-veil { background: rgba(4,3,2,0.93); }
  .fnd-cert { background: rgba(4,3,2,0.96); }
}

