/* Propuesta 1 · Custom Obsidian Architectural System for Firby (Viñetas 02–07).
   Leaves Viñeta 01 (#inicio) & .TZTsQG_header 100% untouched from dev.firbyai.com. */

:root {
  --p1-bg: #030607;
  --p1-bg-alt: #06080a;
  --p1-surface: #0c0e11;
  --p1-surface-elevated: #111317;
  --p1-hairline: rgba(255, 255, 255, 0.075);
  --p1-hairline-strong: rgba(255, 255, 255, 0.16);
  --p1-ink: #f7f8f8;
  --p1-ink-soft: #d0d6e0;
  --p1-muted: #8a8f98;
  --p1-dim: #62666d;
  --p1-accent: #f5c400;
  --p1-font: "Firby Linear Reference", GeneralSans, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --p1-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html.js,
body.p1-page {
  max-width: 100%;
  overflow-x: clip;
}

body.p1-page {
  background: var(--p1-bg);
  color: var(--p1-ink);
  font-family: var(--p1-font);
}

main#contenido,
.hero.firby-linear-hero,
.p1-flow {
  max-width: 100%;
  overflow-x: clip;
}

.p1-flow {
  background: var(--p1-bg);
  color: var(--p1-ink);
  font-family: var(--p1-font);
}

.hero.firby-linear-hero .firby-hero-trial {
  background: #f2f3f5;
  color: #08090a;
  border-color: #f2f3f5;
  font-weight: 550;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.08);
}

.hero.firby-linear-hero .firby-hero-trial:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #08090a;
}

.hero.firby-linear-hero .firby-hero-trial:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.p1-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.p1-head-split > *,
.p1-motor-split > *,
.p1-motor-grid > *,
.p1-lib-depth > *,
.p1-ingred-row > *,
.p1-ingred-cols > *,
.p1-rules-grid > *,
.p1-timeline-grid > *,
.p1-plans-open > *,
.p1-footer-grid > * {
  min-width: 0;
}

.p1-sec {
  padding: 120px 0;
  position: relative;
  max-width: 100%;
  overflow-x: clip;
}

.p1-sec--tight {
  padding: 96px 0;
}

.p1-keyline {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.09) 18%, rgba(255, 255, 255, 0.09) 82%, transparent 100%);
}

/* Shared Split Section Header (Clean Typographic Pair, No Eyebrow Badges) */
.p1-head-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
}

.p1-h2 {
  font-family: var(--p1-font);
  font-size: clamp(34px, 4.1vw, 52px);
  font-weight: 480;
  line-height: 1.06;
  letter-spacing: -0.032em;
  color: var(--p1-ink);
  margin: 0;
}

.p1-lead {
  font-size: 16.5px;
  line-height: 1.56;
  color: var(--p1-muted);
  font-weight: 400;
  letter-spacing: -0.011em;
  margin: 0;
}

.p1-head-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.p1-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--p1-ink);
  text-decoration: none;
  transition: color 0.18s ease, gap 0.18s ease;
}

.p1-link:hover {
  color: #ffffff;
  gap: 11px;
}

/* =========================================================
   VIÑETA 02 · MANIFESTO STATEMENT + OPEN CO-NAVIGATION
   ========================================================= */
.p1-manifesto {
  max-width: 960px;
  margin: 0 0 60px;
  font-family: var(--p1-font);
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 480;
  line-height: 1.14;
  letter-spacing: -0.032em;
  color: var(--p1-ink);
}

.p1-manifesto-muted {
  color: #717680;
  font-weight: 400;
}

.p1-motor-split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: start;
}

.p1-motor-canvas {
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--p1-hairline-strong);
  background: linear-gradient(180deg, #0b0e12 0%, #050709 100%);
  padding: 22px 24px 36px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
}

.p1-motor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--p1-hairline);
  font-size: 12px;
  color: var(--p1-dim);
}

.p1-motor-bar .p1-motor-status {
  color: var(--p1-ink-soft);
  font-weight: 500;
}

.p1-motor-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.p1-dom-card {
  border: 1px solid var(--p1-hairline);
  border-radius: 10px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.22s ease, background-color 0.22s ease;
}

.p1-dom-card.is-focus {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.p1-dom-label {
  font-family: var(--p1-mono);
  font-size: 10.5px;
  color: var(--p1-dim);
}

.p1-dom-heading {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--p1-ink);
  line-height: 1.4;
}

.p1-dom-hl {
  border-radius: 3px;
  padding: 1px 3px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.p1-dom-card.is-cursor .p1-dom-hl {
  background: rgba(59, 130, 246, 0.34);
  color: #ffffff;
}

.p1-dom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  height: 32px;
  padding: 0 14px;
  border-radius: 9999px;
  border: 1px solid var(--p1-hairline-strong);
  font-size: 12px;
  font-weight: 500;
  color: var(--p1-ink);
  background: transparent;
  margin-top: auto;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.p1-dom-card.is-cursor .p1-dom-btn {
  background: #ffffff;
  color: #08090a;
  border-color: #ffffff;
}

.p1-dom-row {
  border: 1px solid var(--p1-hairline);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12.5px;
  color: var(--p1-muted);
  background: rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.p1-dom-row strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--p1-dim);
  margin-bottom: 3px;
}

.p1-dom-card.is-voice .p1-dom-row {
  border-color: rgba(245, 196, 0, 0.45);
  color: var(--p1-ink);
}

.p1-dom-pointer {
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  color: #ffffff;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85));
  pointer-events: none;
  transform: translate(var(--px, 260px), var(--py, 14px));
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.p1-motor-readout {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--p1-muted);
}

.p1-motor-steps {
  display: flex;
  flex-direction: column;
}

.p1-step-btn {
  appearance: none;
  border: 0;
  border-top: 1px solid var(--p1-hairline);
  background: transparent;
  text-align: left;
  width: 100%;
  padding: 20px 0 22px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: opacity 0.18s ease;
}

.p1-step-btn:last-child {
  border-bottom: 1px solid var(--p1-hairline);
}

.p1-step-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: transparent;
  transition: background-color 0.2s ease;
}

.p1-step-btn[aria-pressed="true"]::before {
  background: #ffffff;
}

.p1-step-btn strong {
  font-size: 16px;
  font-weight: 500;
  color: var(--p1-muted);
  font-family: var(--p1-font);
  transition: color 0.18s ease;
}

.p1-step-btn[aria-pressed="true"] strong,
.p1-step-btn:hover strong {
  color: var(--p1-ink);
}

.p1-step-btn span {
  font-size: 14px;
  line-height: 1.52;
  color: var(--p1-dim);
  font-family: var(--p1-font);
}

.p1-step-btn[aria-pressed="true"] span {
  color: var(--p1-muted);
}

/* =========================================================
   VIÑETA 03 · BIBLIOTECA LAYERED SPATIAL STAGE + + ROW
   ========================================================= */
.p1-lib-depth {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  margin-bottom: 40px;
}

.p1-lib-layer {
  grid-row: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--p1-hairline-strong);
  background: #07090c;
  cursor: pointer;
  transition:
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    opacity 0.36s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.24s ease;
}

.p1-lib-layer img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}

.p1-lib-layer.is-back {
  grid-column: 1 / 10;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 100%);
}

.p1-lib-layer.is-front {
  grid-column: 6 / 13;
  box-shadow: -20px -12px 54px rgba(0, 0, 0, 0.78);
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
}

.p1-lib-depth[data-focus="rule"] .p1-lib-layer.is-back {
  z-index: 1;
  opacity: 0.45;
  transform: translate3d(0, 8px, 0);
}

.p1-lib-depth[data-focus="rule"] .p1-lib-layer.is-front {
  z-index: 2;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.p1-lib-depth[data-focus="grid"] .p1-lib-layer.is-back {
  z-index: 2;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.p1-lib-depth[data-focus="grid"] .p1-lib-layer.is-front {
  z-index: 1;
  opacity: 0.48;
  transform: translate3d(0, 14px, 0);
}

/* Linear-style open Features footer row under Library */
.p1-ingred-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--p1-hairline);
  align-items: start;
}

.p1-ingred-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--p1-dim);
}

.p1-ingred-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.p1-ingred-item {
  border-left: 1px solid var(--p1-hairline);
  padding-left: 20px;
}

.p1-ingred-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--p1-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.p1-ingred-item h3 button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.p1-ingred-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--p1-muted);
}

/* =========================================================
   VIÑETA 04 · DUAL WORKSPACE (ELEVENLABS OVERLAP REFINED)
   ========================================================= */
.p1-bandeja .fb-dual-showcase,
.p1-bandeja .fb-dual-heads,
.p1-bandeja .fb-dual-stage,
.p1-bandeja .fb-dual-pane {
  min-width: 0;
  max-width: 100%;
}

.p1-bandeja .fb-dual-frame {
  max-width: 100%;
  border: 1px solid var(--p1-hairline);
  background: rgba(255, 255, 255, 0.015);
  box-shadow: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 88%, transparent 100%);
}

.p1-bandeja .fb-dual-trigger[aria-pressed="true"] {
  border-top-color: #ffffff;
}

.p1-bandeja .fb-dual-trigger[aria-pressed="true"] .fb-dual-trigger-host {
  color: var(--p1-ink-soft);
}

/* =========================================================
   VIÑETA 05 · RULES, STACK ICON CLUSTER & 1-LINE CODE
   ========================================================= */
.p1-rules-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: stretch;
}

.p1-rules-shot {
  min-width: 0;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--p1-hairline-strong);
  overflow: hidden;
  background: #06080b;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.p1-rules-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.p1-rules-side {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.p1-code-panel {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid var(--p1-hairline-strong);
  background: #080a0d;
  overflow: hidden;
}

.p1-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--p1-hairline);
  background: #050709;
  flex-wrap: wrap;
}

.p1-code-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.p1-code-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--p1-muted);
  font-family: var(--p1-font);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 7px;
  border-radius: 5px;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.p1-code-tab:hover {
  color: var(--p1-ink);
}

.p1-code-tab[aria-selected="true"] {
  color: var(--p1-ink);
  background: rgba(255, 255, 255, 0.08);
}

.p1-copy-btn {
  appearance: none;
  border: 1px solid var(--p1-hairline-strong);
  background: transparent;
  color: var(--p1-ink-soft);
  font-family: var(--p1-font);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.p1-copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.p1-code-pre {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--p1-mono);
  font-size: 12px;
  line-height: 1.62;
  color: #d0d6e0;
  background: #06080b;
}

.p1-rules-list {
  display: flex;
  flex-direction: column;
}

.p1-rule-row {
  padding: 16px 0;
  border-top: 1px solid var(--p1-hairline);
}

.p1-rule-row:last-child {
  border-bottom: 1px solid var(--p1-hairline);
}

.p1-rule-row h3 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 500;
  color: var(--p1-ink);
}

.p1-rule-row p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--p1-muted);
}

/* =========================================================
   VIÑETA 06 · HORIZONTAL EDITORIAL TIMELINE (LIKE LINEAR CHANGELOG)
   ========================================================= */
.p1-timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.p1-timeline-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-top: 32px;
}

.p1-timeline-track {
  position: absolute;
  top: 6px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.p1-timeline-col {
  position: relative;
}

.p1-timeline-node {
  position: absolute;
  top: -33px;
  left: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--p1-bg);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.p1-timeline-node::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.p1-timeline-col:first-child .p1-timeline-node {
  border-color: rgba(245, 196, 0, 0.65);
}

.p1-timeline-col:first-child .p1-timeline-node::after {
  background: var(--p1-accent);
}

.p1-timeline-kicker {
  display: block;
  font-size: 12px;
  color: var(--p1-dim);
  margin-bottom: 10px;
}

.p1-timeline-col h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--p1-ink);
}

.p1-timeline-col p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.58;
  color: var(--p1-muted);
}

.p1-timeline-meta {
  font-family: var(--p1-mono);
  font-size: 11.5px;
  color: var(--p1-dim);
}

/* =========================================================
   VIÑETA 07 · PLANS + DIRECT COMPARISON + PILL PREFOOTER + FOOTER
   ========================================================= */
.p1-plans-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.p1-plans-top .p1-h2 {
  max-width: 18ch;
}

.p1-plans-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  max-width: 440px;
  text-align: right;
}

.p1-currency-switch {
  display: inline-flex;
  border: 1px solid var(--p1-hairline-strong);
  border-radius: 9999px;
  padding: 3px;
  background: #080a0d;
  gap: 2px;
}

.p1-currency-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--p1-muted);
  font-family: var(--p1-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 9999px;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.p1-currency-btn[aria-pressed="true"] {
  background: #ffffff;
  color: #08090a;
}

.p1-plans-open {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--p1-hairline);
  border-bottom: 1px solid var(--p1-hairline);
}

.p1-plan-col {
  padding: 36px 32px;
  border-right: 1px solid var(--p1-hairline);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.p1-plan-col:last-child {
  border-right: 0;
}

.p1-plan-col.is-pro {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.p1-plan-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.p1-plan-title {
  margin: 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--p1-ink);
}

.p1-plan-hint {
  font-size: 12px;
  color: var(--p1-accent);
}

.p1-plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}

.p1-plan-amount {
  font-size: 34px;
  font-weight: 480;
  letter-spacing: -0.032em;
  color: var(--p1-ink);
}

.p1-plan-period {
  font-size: 13px;
  color: var(--p1-muted);
}

.p1-plan-quota {
  font-size: 12.5px;
  color: var(--p1-ink-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--p1-hairline);
}

.p1-plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.p1-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.48;
  color: var(--p1-muted);
}

.p1-plan-features svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--p1-dim);
}

.p1-pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  margin-top: 10px;
  border: 1px solid var(--p1-hairline-strong);
  color: var(--p1-ink);
  background: transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.p1-pill-cta:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
}

.p1-plan-col.is-pro .p1-pill-cta {
  background: #ffffff;
  color: #08090a;
  border-color: #ffffff;
}

.p1-plan-col.is-pro .p1-pill-cta:hover {
  background: #e5e7eb;
}

/* Comparison Matrix */
.p1-compare-scroll {
  width: 100%;
  max-width: 100%;
  margin-top: 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.p1-compare {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 13.5px;
}

.p1-compare th,
.p1-compare td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--p1-hairline);
  text-align: left;
}

.p1-compare thead th {
  font-size: 12px;
  font-weight: 500;
  color: var(--p1-dim);
}

.p1-compare tbody th {
  font-weight: 450;
  color: var(--p1-ink-soft);
  width: 38%;
}

.p1-compare tbody td {
  color: var(--p1-muted);
  font-variant-numeric: tabular-nums;
}

/* Prefooter (Clean Centered Editorial + Dual Pill Actions) */
.p1-prefooter {
  padding: 136px 0;
  text-align: center;
  border-bottom: 1px solid var(--p1-hairline);
}

.p1-prefooter h2 {
  max-width: 16ch;
  margin: 0 auto 28px;
  font-family: var(--p1-font);
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 480;
  line-height: 1.04;
  letter-spacing: -0.034em;
  color: var(--p1-ink);
}

.p1-prefooter-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.p1-pill-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 9999px;
  background: #ffffff;
  color: #08090a;
  font-size: 14px;
  font-weight: 550;
  text-decoration: none;
  transition: background-color 0.16s ease;
}

.p1-pill-solid:hover {
  background: #e5e7eb;
}

.p1-pill-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 9999px;
  background: #141619;
  border: 1px solid var(--p1-hairline-strong);
  color: var(--p1-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.p1-pill-ghost:hover {
  background: #1d2024;
  border-color: rgba(255, 255, 255, 0.28);
}

/* Linear-proportioned Obsidian Footer */
.p1-footer {
  background: var(--p1-bg);
  padding: 64px 0 48px;
  color: var(--p1-muted);
}

.p1-footer-grid {
  display: grid;
  grid-template-columns: 160px repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.p1-footer-brand img {
  display: block;
  width: 66px;
  height: auto;
}

.p1-footer-col h3 {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--p1-ink);
}

.p1-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.p1-footer-col a {
  font-size: 13px;
  color: var(--p1-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.p1-footer-col a:hover {
  color: var(--p1-ink);
}

.p1-footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  padding-right: 76px;
  border-top: 1px solid var(--p1-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--p1-dim);
}

.p1-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.p1-footer-legal a,
.p1-footer-cookie-btn {
  color: var(--p1-muted);
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.p1-footer-legal a:hover,
.p1-footer-cookie-btn:hover {
  color: var(--p1-ink);
}

#motor,
#biblioteca,
#bandeja,
#integraciones,
#escenarios,
#planes,
#cierre {
  scroll-margin-top: 88px;
}

@media (max-width: 980px) {
  .p1-sec { padding: 84px 0; }
  .p1-head-split,
  .p1-motor-split,
  .p1-rules-grid,
  .p1-plans-open,
  .p1-ingred-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .p1-plan-col {
    border-right: 0;
    border-bottom: 1px solid var(--p1-hairline);
    padding: 28px 0;
  }
  .p1-plan-col.is-pro {
    padding: 28px 20px;
  }
  .p1-plan-col:last-child {
    border-bottom: 0;
  }
  .p1-plans-controls {
    align-items: flex-start;
    text-align: left;
  }
  .p1-timeline-grid {
    grid-template-columns: 1fr;
    padding-top: 0;
    gap: 28px;
  }
  .p1-timeline-track,
  .p1-timeline-node {
    display: none;
  }
  .p1-ingred-cols {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .p1-ingred-item {
    border-left: 0;
    padding-left: 0;
    padding-top: 14px;
    border-top: 1px solid var(--p1-hairline);
  }
  .p1-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p1-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .p1-wrap { padding: 0 20px; }
  .p1-sec { padding: 64px 0; }
  .p1-motor-canvas { padding: 16px 16px 26px; max-width: 100%; }
  .p1-motor-bar { flex-wrap: wrap; gap: 6px; font-size: 11.5px; }
  .p1-motor-grid { grid-template-columns: 1fr; }
  .p1-dom-pointer { display: none; }
  .p1-lib-depth { display: flex; flex-direction: column; gap: 14px; max-width: 100%; }
  .p1-lib-layer { grid-column: auto !important; transform: none !important; opacity: 1 !important; width: 100%; }
  .hero.firby-linear-hero .firby-hero-preview {
    overflow: hidden;
    overflow-x: clip;
  }
  .p1-code-pre { padding: 14px 16px; font-size: 11.5px; }
  .p1-rules-shot {
    width: calc(100% + 20px);
    max-width: none;
    margin-right: -20px;
    border-right: 0;
    border-radius: 12px 0 0 0;
    overflow: hidden;
    overflow-x: clip;
  }
  .p1-rules-shot img {
    width: 158%;
    max-width: none;
    height: auto;
  }
  .p1-prefooter { padding: 84px 0; }
}

@keyframes p1FailsafeReveal {
  to {
    opacity: 1;
  }
}

html.firby-i18n-resolving main#contenido,
html.firby-i18n-resolving .TZTsQG_navItems,
html.firby-i18n-resolving .TZTsQG_buttons {
  opacity: 0;
  animation: p1FailsafeReveal 0.01s 0.45s forwards;
}

@media (prefers-reduced-motion: no-preference) {
  html.js:not(.firby-hero-ready) #hero-title,
  html.js:not(.firby-hero-ready) .firby-linear-meta p,
  html.js:not(.firby-hero-ready) .firby-hero-trial {
    opacity: 0;
    animation: p1FailsafeReveal 0.01s 0.8s forwards;
  }
}

.firby-hclip {
  display: inline-block;
  vertical-align: top;
  padding: 0.14em 0.14em 0.30em;
  margin: -0.14em -0.14em -0.30em;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 0.2em), transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 calc(100% - 0.2em), transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.firby-hword {
  display: inline-block;
}

@keyframes firbyHeroFade {
  from {
    opacity: 0;
  }
}

@keyframes firbyHeroFocus {
  from {
    filter: blur(8px);
  }
}

@keyframes firbyHeroRise {
  from {
    transform: translateY(0.56em);
  }
}

@keyframes firbyHeroSubFocus {
  from {
    filter: blur(4px);
  }
}

@keyframes firbyHeroSubRise {
  from {
    transform: translateY(14px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.firby-hero-ready .firby-hword {
    animation:
      firbyHeroRise 1.08s cubic-bezier(0.23, 1, 0.32, 1) var(--d, 0.12s) backwards,
      firbyHeroFade 0.74s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--d, 0.12s) backwards,
      firbyHeroFocus 0.90s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--d, 0.12s) backwards;
  }

  html.firby-hero-ready .firby-linear-meta p {
    animation:
      firbyHeroSubRise 0.98s cubic-bezier(0.23, 1, 0.32, 1) var(--sub-d, 0.68s) backwards,
      firbyHeroFade 0.76s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--sub-d, 0.68s) backwards,
      firbyHeroSubFocus 0.84s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--sub-d, 0.68s) backwards;
  }

  html.firby-hero-ready .firby-hero-trial {
    animation:
      firbyHeroSubRise 0.88s cubic-bezier(0.23, 1, 0.32, 1) var(--cta-d, 0.86s) backwards,
      firbyHeroFade 0.68s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--cta-d, 0.86s) backwards;
  }

  html.firby-hero-quick .firby-hword {
    animation:
      firbyHeroRise 0.46s cubic-bezier(0.23, 1, 0.32, 1) var(--d, 0s) backwards,
      firbyHeroFade 0.34s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--d, 0s) backwards,
      firbyHeroFocus 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94) var(--d, 0s) backwards;
  }

  html.firby-hero-quick .firby-linear-meta p,
  html.firby-hero-quick .firby-hero-trial {
    animation:
      firbyHeroSubRise 0.42s cubic-bezier(0.23, 1, 0.32, 1) 0.12s backwards,
      firbyHeroFade 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.12s backwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  .firby-hclip {
    -webkit-mask-image: none;
    mask-image: none;
  }

  html.firby-hero-ready .firby-hword,
  html.firby-hero-ready .firby-linear-meta p,
  html.firby-hero-ready .firby-hero-trial {
    animation: firbyHeroFade 0.2s ease backwards;
  }
}

.p1-sw {
  display: inline-block;
  white-space: pre-wrap;
}

.p1-hero-line {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: entry 0% cover 40%) {
    @keyframes p1-word-light {
      from {
        opacity: 0.16;
        filter: blur(4px);
      }
      to {
        opacity: 1;
        filter: blur(0px);
      }
    }

    @keyframes p1-scroll-rise {
      from {
        opacity: 0.06;
        transform: translateY(22px) scale(0.988);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    [data-scroll-words="true"] .p1-sw {
      animation: p1-word-light linear both;
      animation-timeline: view();
      animation-range:
        entry calc(var(--i, 0) / var(--n, 24) * 20%)
        cover calc(var(--i, 0) / var(--n, 24) * 22% + 22%);
    }

    .p1-head-split,
    .p1-motor-canvas,
    .p1-motor-steps,
    .p1-lib-depth,
    .p1-ingred-row,
    .p1-bandeja .fb-dual-showcase,
    .p1-rules-shot,
    .p1-rules-side,
    .p1-timeline-col,
    .p1-plan-col,
    .p1-compare-scroll,
    .p1-prefooter-actions {
      animation: p1-scroll-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }

    .p1-timeline-col:nth-child(3) { animation-range: entry 4% cover 28%; }
    .p1-timeline-col:nth-child(4) { animation-range: entry 8% cover 32%; }
    .p1-plan-col:nth-child(2) { animation-range: entry 4% cover 28%; }
    .p1-plan-col:nth-child(3) { animation-range: entry 8% cover 32%; }
    .p1-rules-side { animation-range: entry 5% cover 28%; }
  }

  html.p1-io-anim [data-sr-io] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s cubic-bezier(0.23, 1, 0.32, 1), transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
  }
  html.p1-io-anim [data-sr-io].is-inview {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p1-link,
  .p1-dom-card,
  .p1-dom-hl,
  .p1-dom-btn,
  .p1-dom-pointer,
  .p1-step-btn,
  .p1-lib-layer,
  .p1-code-tab,
  .p1-copy-btn,
  .p1-currency-btn,
  .p1-pill-cta,
  .p1-pill-solid,
  .p1-pill-ghost {
    transition: none !important;
  }
}
