.product-hero {
  padding-block: clamp(4rem, 10vw, 8rem);
}

.product-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.7fr);
  gap: clamp(3rem, 9vw, 8rem);
  align-items: center;
}

.product-hero h1 {
  max-width: 11ch;
}

.product-hero__aside {
  padding-top: var(--space-6);
  border-top: 1px solid var(--light-border);
}

.product-hero__aside dl {
  display: grid;
  gap: var(--space-5);
  margin: 0;
}

.product-hero__aside div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--space-4);
}

.product-hero__aside dt {
  color: var(--gold-ink);
  font-size: 0.72rem;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-hero__aside dd {
  margin: 0;
  color: var(--light-muted);
}

.product-hero__visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.device-phone {
  width: min(100%, 16.5rem);
  overflow: hidden;
  border-radius: 1.7rem;
  background: #0d0e0f;
  border: 1px solid rgba(13, 14, 15, 0.45);
  box-shadow: 0 1.5rem 3.5rem rgba(13, 14, 15, 0.18);
}

.device-phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top center;
  background: #f5f2eb;
}

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

.value-card {
  min-height: 21rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-right: 1px solid var(--dark-border);
}

.value-card:last-child {
  border-right: 0;
}

.value-card__label {
  margin-bottom: clamp(4rem, 10vw, 8rem);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 730;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.value-card h2,
.value-card h3 {
  margin-bottom: var(--space-4);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.value-card p:last-child {
  margin: 0;
  color: var(--dark-muted);
}

.state-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(3rem, 9vw, 8rem);
}

.state-layout__intro {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  align-self: start;
}

.state-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--light-border);
}

.state-list li {
  display: grid;
  grid-template-columns: 2.75rem 1fr auto;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--light-border);
}

.state-list__mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: var(--white);
  background: var(--success);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 720;
}

.state-list li[data-state="pending"] .state-list__mark {
  color: var(--zero);
  background: var(--light-raised);
  border: 1px solid var(--light-border);
}

.state-list h3 {
  margin-bottom: var(--space-2);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.state-list p {
  margin: 0;
  color: var(--light-muted);
  font-size: 0.9rem;
}

.state-list__status {
  color: var(--success);
  font-size: 0.74rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.state-list li[data-state="pending"] .state-list__status {
  color: var(--light-muted);
}

.demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.demo-head h2 {
  margin-bottom: 0;
}

.demo-head > p:not(.eyebrow) {
  flex: 1 1 100%;
  max-width: 56ch;
  margin: 0;
  color: var(--dark-muted);
}

.section--dark .demo-head > p:not(.eyebrow) {
  color: var(--dark-muted);
}

.demo-label {
  margin: 0;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 730;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-tabs {
  display: flex;
  overflow-x: auto;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  scrollbar-width: thin;
}

.demo-tab {
  min-width: max-content;
  min-height: 3.25rem;
  padding: 0.8rem 1.1rem;
  color: var(--dark-muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--dark-border);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 670;
}

.demo-tab:hover,
.demo-tab[aria-selected="true"] {
  color: var(--zero);
  background: var(--gold);
}

.demo-panel {
  min-height: 31rem;
  padding-block: clamp(2rem, 6vw, 4.5rem);
}

.demo-panel__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(22rem, 1.28fr);
  gap: clamp(3rem, 9vw, 8rem);
  align-items: center;
}

.demo-panel__copy p {
  max-width: 45ch;
  color: var(--dark-muted);
}

.product-hero__actions,
.pilot-note__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.pilot-note__actions {
  margin-block: var(--space-5);
}

.demo-frame {
  min-height: 22rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  color: var(--zero);
  background: var(--ivory);
  border-radius: var(--radius-md);
}

.demo-frame__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--light-border);
}

.demo-frame__bar strong {
  font-size: 0.88rem;
}

.demo-frame__status {
  color: var(--gold-ink);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.upload-zone {
  display: grid;
  min-height: 14rem;
  margin-top: var(--space-5);
  place-items: center;
  padding: var(--space-8);
  border: 1px dashed var(--light-muted);
  border-radius: var(--radius-sm);
  text-align: center;
}

.upload-zone img,
.process-line img,
.review-card img {
  width: 1.75rem;
  height: 1.75rem;
  margin-inline: auto;
}

.upload-zone p {
  max-width: 28ch;
  margin: var(--space-4) auto 0;
}

.process-stack {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.process-line {
  display: grid;
  min-height: 4rem;
  grid-template-columns: 2rem 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
}

.process-line img {
  margin: 0;
}

.process-line span:last-child {
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 720;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.review-card {
  min-height: 8rem;
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
}

.review-card img {
  margin: 0 0 var(--space-4);
}

.review-card p {
  margin: 0;
  font-size: 0.84rem;
}

.editor-list {
  margin-top: var(--space-5);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
}

.editor-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-4);
  align-items: center;
  min-height: 4.25rem;
  padding: var(--space-3) var(--space-4);
  background: var(--white);
  border-bottom: 1px solid var(--light-border);
}

.editor-row:last-child {
  border-bottom: 0;
}

.editor-row span:nth-child(2) {
  font-variant-numeric: tabular-nums;
}

.editor-row img {
  width: 1.25rem;
  height: 1.25rem;
}

.public-preview {
  width: min(100%, 19rem);
  margin: var(--space-5) auto 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--zero);
  border-radius: 1.75rem;
}

.public-preview__hero {
  min-height: 6.5rem;
  padding: var(--space-5);
  color: var(--white);
  background: var(--zero);
}

.public-preview__hero strong {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 1.15rem;
}

.public-preview__body {
  padding: var(--space-5);
}

.public-preview__body p {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--light-border);
  font-size: 0.78rem;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}

.scope-card {
  min-height: 28rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
}

.scope-card--muted {
  background: transparent;
}

.scope-card ul {
  margin: var(--space-12) 0 0;
  padding: 0;
  list-style: none;
}

.scope-card li {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--light-border);
}

.scope-card li::before {
  display: inline-block;
  width: 1.7rem;
  color: var(--gold-ink);
  content: "—";
  font-weight: 720;
}

.pilot-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.55fr);
  gap: clamp(2rem, 8vw, 7rem);
  align-items: end;
}

.pilot-note h2 {
  margin-bottom: 0;
}

.pilot-note__state {
  padding-top: var(--space-5);
  color: var(--dark-muted);
  border-top: 1px solid var(--dark-border);
}

.pilot-note__state p:last-child {
  margin-bottom: 0;
}

@media (max-width: 56rem) {
  .product-hero__grid,
  .state-layout,
  .demo-panel__grid {
    grid-template-columns: 1fr;
  }

  .state-layout__intro {
    position: static;
  }

  .demo-panel {
    min-height: 0;
  }
}

@media (max-width: 48rem) {
  .value-grid,
  .scope-grid,
  .pilot-note {
    grid-template-columns: 1fr;
  }

  .value-card {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--dark-border);
  }

  .value-card:last-child {
    border-bottom: 0;
  }

  .value-card__label {
    margin-bottom: var(--space-12);
  }

  .demo-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .scope-card {
    min-height: 0;
  }
}

@media (max-width: 36rem) {
  .state-list li {
    grid-template-columns: 2.75rem 1fr;
  }

  .state-list__status {
    grid-column: 2;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .editor-row {
    grid-template-columns: 1fr auto;
  }

  .editor-row img {
    display: none;
  }
}

.flow-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.5rem);
}

.example-grid--product {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.example-grid--product .example-card {
  display: flex;
  flex-direction: column;
}

.example-grid--product .example-card__frame--phone {
  margin-top: auto;
}

.example-block {
  margin-top: 0;
}

.example-block--secondary {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 1px solid var(--dark-border);
}

.example-block__label {
  margin: 0 0 clamp(0.85rem, 2vw, 1.15rem);
}

.example-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--dark-border);
  border-radius: 1.25rem;
  background: var(--dark-raised);
}

.example-card h3 {
  margin: 0.35rem 0 0.75rem;
}

.example-card > p {
  color: var(--dark-muted);
}

.example-card__frame {
  margin-top: 1rem;
  overflow: hidden;
  background: #f5f2eb;
  border: 1px solid rgba(182, 154, 97, 0.35);
}

.example-card__frame--phone {
  width: min(100%, 14.5rem);
  margin-inline: auto;
  border-radius: 1.55rem;
}

.example-card__frame--desktop,
.example-card__frame--desktop-wide,
.example-card__frame--detail {
  border-radius: 0.85rem;
}

.example-card__frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

.example-card__frame--phone img {
  height: auto;
  aspect-ratio: 390 / 844;
  object-position: top center;
}

.example-card__frame--desktop img {
  aspect-ratio: 760 / 680;
  max-height: 28rem;
  object-fit: cover;
  object-position: left top;
}

.example-card__frame--desktop-wide img {
  aspect-ratio: 1200 / 800;
  max-height: 22rem;
  object-fit: cover;
  object-position: top center;
}

.example-card__frame--detail img {
  aspect-ratio: 800 / 550;
  max-height: 20rem;
  object-fit: cover;
  object-position: top left;
}

/* Capturas reales recortadas: cada una conserva su proporción. */
.example-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.example-card__frame--shot {
  width: min(100%, 14.5rem);
  margin-inline: auto;
  border-radius: 1.1rem;
}

.example-card__frame--shot img {
  height: auto;
  aspect-ratio: auto;
}

@media (max-width: 64rem) {
  .example-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36rem) {
  .example-grid--four {
    grid-template-columns: 1fr;
  }
}

.soon-list {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

@media (max-width: 64rem) {
  .example-grid--product {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 56rem) {
  .example-grid--product {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .example-grid,
  .example-grid--product {
    grid-template-columns: 1fr;
  }
}


.example-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin: 1.35rem 0 0;
}

.example-live__hint {
  color: var(--dark-muted);
  font-size: 0.95rem;
}

/* Nota bajo las acciones del hero: el camino «te la montamos» para quien
   no quiere usar la app. Texto, no botón, para no competir con el CTA. */
.product-hero__note {
  max-width: 52ch;
  margin: var(--space-5) 0 0;
  color: var(--light-muted);
  font-size: 0.95rem;
}

.product-hero__note a,
.faq a,
.faq__more a {
  color: inherit;
  font-weight: 650;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.2em;
}

/* Comparativa papel / PDF / FAENA, sobre fondo claro. En móvil la tabla se
   desplaza en horizontal dentro de su caja en lugar de comprimir columnas. */
.compare-table {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
}

.compare-table:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
}

.compare-table table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.98rem;
  line-height: 1.45;
}

.compare-table th,
.compare-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--light-border);
  text-align: left;
  vertical-align: top;
}

.compare-table tbody tr:last-child > * {
  border-bottom: 0;
}

.compare-table thead th {
  color: var(--gold-ink);
  font-size: 0.72rem;
  font-weight: 730;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare-table tbody th {
  font-weight: 650;
}

.compare-table td {
  color: var(--light-muted);
}

.compare-table td:last-child {
  color: var(--white);
  background: var(--zero);
  font-weight: 600;
}

.compare-table thead th:last-child {
  color: var(--gold);
  background: var(--zero);
}
/* Preguntas frecuentes: details nativo, funciona sin JavaScript. */
.faq {
  max-width: var(--measure);
  border-top: 1px solid var(--light-border);
}

.faq details {
  border-bottom: 1px solid var(--light-border);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-5);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.35;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--gold-ink);
  font-weight: 500;
  transition: rotate var(--motion-micro) var(--ease-out);
}

.faq details[open] summary::after {
  rotate: 45deg;
}

.faq summary:focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 2px;
}

.faq details p {
  margin: 0 0 var(--space-5);
  color: var(--light-muted);
  line-height: 1.65;
}

.faq__more {
  max-width: var(--measure);
  margin: var(--space-8) 0 0;
  color: var(--light-muted);
}

.section--dark .faq__more {
  color: var(--dark-muted);
}

/* CTA fijo en móvil. Solo aparece cuando el hero ya no se ve y se esconde al
   llegar al cierre o al pie, para no tapar lo que ya ofrece lo mismo. */
.sticky-cta {
  position: fixed;
  z-index: 90;
  inset: auto 0 0;
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  color: var(--white);
  background: color-mix(in srgb, var(--zero) 94%, transparent);
  border-top: 1px solid var(--dark-border);
  translate: 0 100%;
  visibility: hidden;
  transition:
    translate var(--motion-short) var(--ease-out),
    visibility 0s linear var(--motion-short);
}

.sticky-cta[hidden] {
  display: none;
}

/* visibility evita que el teclado entre en los enlaces mientras está oculta. */
.sticky-cta[data-visible="true"] {
  translate: 0 0;
  visibility: visible;
  transition: translate var(--motion-short) var(--ease-out), visibility 0s;
}

.sticky-cta .button {
  flex: 1;
  min-height: 2.6rem;
  font-size: 0.95rem;
}

.sticky-cta .button:not(.button--light) {
  border-color: var(--dark-border);
}

@media (min-width: 48.01rem) {
  .sticky-cta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta,
  .faq summary::after {
    transition: none;
  }
}

/* Botón secundario. Se usaba en el HTML sin estar definido, así que en fondo
   oscuro el borde negro desaparecía. */
.button--quiet {
  background: transparent;
  border-color: var(--light-border);
}

.button--quiet:hover {
  border-color: var(--gold-ink);
}

.section--dark .button--quiet {
  color: var(--white);
  border-color: var(--dark-border);
}

.section--dark .button--quiet:hover {
  border-color: var(--gold);
}

/* Hero de FAENA en oscuro, con un halo dorado detrás del móvil. */
.product-hero.section--dark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.product-hero.section--dark::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% -10% auto 45%;
  height: 80%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 26%, transparent), transparent);
  pointer-events: none;
}

.section--dark .product-hero__note {
  color: var(--dark-muted);
}

.section--dark .device-phone {
  border-color: var(--dark-border);
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.55), 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent);
}

.section--dark .feature-pills li {
  color: var(--white);
  background: var(--dark-raised);
  border-color: var(--dark-border);
}

/* Lo que trae FAENA, de un vistazo, bajo las acciones del hero. */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
}

.feature-pills li {
  padding: 0.35rem 0.75rem;
  color: var(--zero);
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 620;
}

.feature-pills li::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-right: 0.45rem;
  vertical-align: 0.12em;
  background: var(--gold);
  border-radius: 50%;
}

/* Vídeo de presentación. preload="none" y póster: no pesa hasta que se pulsa. */
.video-block {
  max-width: 60rem;
}

.video-frame {
  overflow: hidden;
  background: var(--zero);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  box-shadow: 0 1.5rem 3.5rem rgba(13, 14, 15, 0.16);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--zero);
}

.video-block .faq {
  margin-top: var(--space-6);
}

.video-block .faq ul {
  margin: 0 0 var(--space-5);
  padding-left: var(--space-5);
  color: var(--light-muted);
}

.video-block .faq li + li {
  margin-top: var(--space-2);
}

/* Funciones: rejilla de tarjetas claras sobre fondo blanco. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--ivory);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
}

.feature-card__label {
  margin-bottom: var(--space-8);
  color: var(--gold-ink);
  font-size: 0.72rem;
  font-weight: 730;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin-bottom: var(--space-3);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.feature-card p:last-child {
  margin: 0;
  color: var(--light-muted);
}

@media (max-width: 56rem) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 36rem) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}