/* Producto — page-specific styles */

/* Hero product capture */
.pr-frame { width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--elevation-xl); }
.pr-chrome { display: flex; gap: 6px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--alt); }
.pr-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mid); display: inline-block; }
.pr-shot { width: 100%; height: 420px; background: var(--faint); color: var(--mid); display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.pr-shot span, .fx-shot span { font-size: 11px; color: var(--txt); }
@media (max-width: 767.98px) { .pr-shot { height: 240px; } }

/* Funcionalidades: sticky panel driven by scroll (see producto.js) */
.fx-wrap { position: relative; background: var(--bg); height: calc(760px + 8 * 420px); }
.fx-stick { position: sticky; top: 64px; height: 760px; display: flex; align-items: center; padding: 0 24px; box-sizing: border-box; }
.fx-texts { position: relative; min-height: 150px; }
.fx-item { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease; }
.fx-item.is-before { transform: translateY(-12px); }
.fx-item.is-active { opacity: 1; pointer-events: auto; transform: none; }
.fx-name { margin: 0; font: 600 22px/30px var(--font-sans); letter-spacing: -0.3px; color: var(--foreground); }
.fx-media { position: relative; min-width: 0; aspect-ratio: 16 / 10; }
.fx-shot { position: absolute; inset: 0; background: var(--faint); border: 1px solid var(--border); border-radius: var(--radius-xl); color: var(--mid); display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; box-shadow: var(--elevation-lg); opacity: 0; transform: scale(0.97); transition: opacity .45s ease, transform .45s ease; }
.fx-shot.is-active { opacity: 1; transform: none; }
.fx-seg { flex: 1; padding: 0; border: 0; cursor: pointer; }
.fx-seg .progress-indicator { display: block; transform: translateX(-100%); }
.fx-seg.is-filled .progress-indicator { transform: none; }
.fx-count { font: 500 13px/16px var(--font-sans); color: var(--muted-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .fx-item, .fx-shot, .fx-seg .progress-indicator { transition: none; } }
/* Without JS: plain stacked list */
html:not(.js) .fx-wrap { height: auto; padding: 96px 0; }
html:not(.js) .fx-stick { position: static; height: auto; }
html:not(.js) .fx-item, html:not(.js) .fx-shot { position: static; opacity: 1; transform: none; }
html:not(.js) .fx-shot:not(:first-child), html:not(.js) .fx-controls { display: none; }
html:not(.js) .fx-texts { display: flex; flex-direction: column; gap: 28px; }

/* Cómo funciona */
.hw-step { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.hw-vis { height: 168px; padding: 20px; border-radius: var(--radius-xl); background: var(--muted); border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; overflow: hidden; box-sizing: border-box; }
.hw-card { padding: 10px 12px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--border); }
.hw-row { display: flex; align-items: center; gap: 10px; }
.hw-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.hw-bar { display: block; height: 8px; border-radius: 4px; background: var(--border-strong); }
.hw-co { display: flex; flex-direction: column; gap: 6px; }
.hw-co-name { font: 600 11px/14px var(--font-sans); color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .8px; }
.hw-kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/16px var(--font-sans); color: var(--muted-foreground); }
.hw-ttl { font: 600 20px/28px var(--font-sans); letter-spacing: -0.3px; color: var(--foreground); }
.hwB-arr { align-self: flex-start; margin-top: 70px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: var(--card); display: inline-flex; align-items: center; justify-content: center; color: var(--foreground); flex-shrink: 0; }

@keyframes hwBdraw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
.hwB-line { stroke-dasharray: 260; animation: hwBdraw 1.6s ease .4s both; }
@keyframes hwBnudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
.hwB-arr svg { animation: hwBnudge 1.6s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hwB-line, .hwB-arr svg { animation: none; } .hwB-line { stroke-dasharray: none; } }
@media (max-width: 767.98px) { .hwB-row { flex-direction: column; } .hwB-arr { transform: rotate(90deg); margin: 0; align-self: center; } }

/* FAQ */
.faq-h { margin: 0; }
.faq-trigger { padding: 18px 0; font-size: 16px; line-height: 24px; }
.faq-a { font-size: 15px; line-height: 24px; padding-bottom: 18px; max-width: 680px; }

/* Progress segments: 24px-tall hit area (WCAG 2.5.8) with the same 4px bar drawn inside */
.fx-seg.progress { height: 24px; background: transparent; overflow: visible; border-radius: var(--radius-sm); }
.fx-seg.progress::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: var(--radius-full); background: var(--muted); }
.fx-seg .progress-indicator { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: var(--radius-full); transform: scaleX(0); transform-origin: left center; }
.fx-seg.is-filled .progress-indicator { transform: scaleX(1); }

/* ===================== Real screenshots and component illustrations ===================== */
/* Hero: the browser frame is centred and runs past the bottom edge of the hero */
.pr-hero-shot { position: relative; max-width: 1040px; width: 100%; margin: 12px auto 0; height: clamp(240px, 36vw, 470px); overflow: hidden; }
.pr-hero-shot::before { content: ""; position: absolute; z-index: -1; inset: 10% -4% -20% -4%; pointer-events: none;
  background: radial-gradient(50% 60% at 50% 40%, color-mix(in srgb, var(--alpha-500) 38%, transparent), transparent 72%); filter: blur(24px); }
.pr-hero-shot { isolation: isolate; }
.bw-frame--static { position: relative; left: auto; top: auto; right: auto; width: 100%; border-radius: 22px 22px 0 0; padding: 0 10px; border-bottom: 0; border-right: 1px solid color-mix(in srgb, var(--foreground) 14%, transparent); }
.bw-frame--static .bw-bar { height: 42px; padding: 0 6px; }
.bw-frame--static .bw-dots i { width: 9px; height: 9px; }
.bw-frame--static .bw-url { width: 34%; height: 22px; font-size: 11px; transform: translateX(-21px); }
.bw-frame--static img { border-radius: 14px 14px 0 0; }
@media (max-width: 639.98px) { .bw-frame--static { padding: 0 6px; border-radius: 14px 14px 0 0; } .bw-frame--static img { border-radius: 8px 8px 0 0; } }

/* Funcionalidades: same rule as Capacidades (frame enters top-left, cut by right and bottom) */
.fx-shot--img { display: block; padding: 0 !important; overflow: hidden; }
.fx-shot--img::before, .fx-shot--img::after { display: none; }

/* Cómo funciona: shadcn-style compositions on the brand-gradient media area */
.hw-vis--ui { align-items: center; padding: 16px;
  background:
    radial-gradient(75% 85% at 0% 0%, color-mix(in srgb, var(--alpha-500) 30%, transparent), transparent 62%),
    linear-gradient(160deg, color-mix(in srgb, var(--alpha-600) 34%, var(--sec-base)), var(--sec-base)); }
.hw-vis--ui > * { width: 100%; max-width: 300px; }
.hw-list .ca-li { padding: 8px 12px; font-size: 11.5px; }
.hw-list .badge { height: 18px; font-size: 10px; }
.hw-ok { width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--alpha-500) 40%, transparent); color: var(--alpha-200, #b9e4d1); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hw-ok svg.lu { width: 10px; height: 10px; }

/* Hero screenshot: taller window into the dashboard, and a fade to the page background at the
   bottom so the hero hands over to the next section without a hard cut. */
.pr-hero-shot { height: clamp(300px, 46vw, 620px); }
.pr-hero-shot::after { content: ""; position: absolute; z-index: 2; left: -1px; right: -1px; bottom: 0; height: 42%; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, var(--bg) 100%); }
@media (max-width: 639.98px) { .pr-hero-shot { height: clamp(240px, 62vw, 340px); } .pr-hero-shot::after { height: 46%; } }

/* Round 5 · the hero shows the whole first screen (header, indicators and the Performance chart);
   a shorter fade at the bottom still blends it into the next section. */
.pr-hero-shot { height: auto; }
.pr-hero-shot::after { height: 24%; }
@media (max-width: 639.98px) { .pr-hero-shot { height: auto; } .pr-hero-shot::after { height: 26%; } }
.hw-kicker { gap: 0; }
