/* "No es una plantilla" — chatbot genérico vs tu asistente. From the No Es Plantilla design.
   Reuses .reveal / .js-reveal from how-it-works.css and js/reveal.js. */

.compare {
  background: var(--surface);
  color: var(--on-surface);
  padding-block: 48px 44px;
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}

.compare__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.compare__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-lime);
}
.compare__eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
}

.compare__title {
  font-size: var(--text-display);
  font-weight: var(--fw-bold);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.compare__lead {
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--on-surface-muted);
}

/* Column labels above the pairs. Shown at every size; the small dot marks the WAAGS column. */
.compare__labels { display: none; }

/* PAIRS (mobile): each pair is one visually joined card, generic on top, ours below. */
.compare__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.compare__pair {
  display: flex;
  flex-direction: column;
}

.compare__cell {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.compare__num { display: none; }

.compare__cell--generic {
  padding: 16px 18px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-bottom: none;
  border-radius: 18px 18px 0 0;
  background: rgb(255 255 255 / 0.05);
}
.compare__cell--ours {
  padding: 18px;
  border: 1px solid rgb(157 196 213 / 0.32);
  border-left: 3px solid var(--color-lime);
  border-radius: 0 0 18px 18px;
  background: rgb(157 196 213 / 0.14);
}

.compare__label {
  flex: none;
  padding-top: 3px;
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.compare__cell--generic .compare__label { color: rgb(255 255 255 / 0.62); }
.compare__cell--ours .compare__label { color: var(--color-sky); }

.compare__text { line-height: 1.5; }
.compare__cell--generic .compare__text { font-size: 1rem; color: rgb(255 255 255 / 0.78); }
.compare__cell--ours .compare__text { font-size: 1.0625rem; font-weight: var(--fw-medium); color: var(--color-white); }

/* Stagger the reveal per pair (labels div is the 1st child, so pairs start
   at nth-child(2)) — both cells in a pair share the same index, so the page
   reveals row by row. Timing math lives in how-it-works.css's shared rule. */
.compare__pair:nth-child(3) .reveal { --reveal-i: 1; }
.compare__pair:nth-child(4) .reveal { --reveal-i: 2; }
.compare__pair:nth-child(5) .reveal { --reveal-i: 3; }

.compare__close {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  font-size: 1.3125rem;
  font-weight: var(--fw-light);
  line-height: 1.35;
}

/* DESKTOP: two-column table, the "ours" column raised as one continuous panel. */
@media (min-width: 900px) {
  .compare { padding-block: 88px; }

  .compare__intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: end;
  }
  .compare__title { line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
  .compare__lead { max-width: 52ch; margin-bottom: 6px; font-size: 1.1875rem; line-height: 1.6; }

  .compare__list {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    margin-top: 56px;
  }
  .compare__pair { display: contents; }

  .compare__labels {
    display: contents;
  }
  .compare__label-col {
    display: flex;
    align-items: flex-end;
    padding-bottom: 18px;
    font-size: var(--text-eyebrow);
    font-weight: var(--fw-semibold);
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  .compare__label-col--generic {
    padding-right: 48px;
    border-bottom: 1px solid rgb(255 255 255 / 0.18);
    color: rgb(255 255 255 / 0.72);
  }
  .compare__label-col--ours {
    padding-inline: 40px;
    color: var(--color-sky);
  }

  .compare__num {
    display: block;
    flex: none;
    width: 34px;
    font-size: 1.375rem;
    font-weight: var(--fw-extralight);
    line-height: 1.35;
  }

  /* The column headers (.compare__labels) already say "genérico" / "tu
     asistente" once above the table — repeating it inside every one of
     the 8 cells doubled up (Andrés's feedback, 2026-09-24). Only needed
     on mobile, where the column headers are hidden and each stacked pair
     has no other way to tell which side is which. */
  .compare__label { display: none; }

  .compare__cell {
    gap: var(--space-4);
    border-radius: 0;
  }
  .compare__cell--generic {
    padding: 26px 48px 26px 0;
    border: none;
    border-bottom: 1px solid rgb(255 255 255 / 0.1);
    background: none;
  }
  .compare__cell--generic .compare__num { color: #b9c2bb; }

  .compare__cell--ours {
    position: relative;
    padding: 26px 40px;
    border: none;
    border-left: 1px solid rgb(157 196 213 / 0.3);
    border-right: 1px solid rgb(157 196 213 / 0.3);
    border-bottom: 1px solid rgb(157 196 213 / 0.18);
  }
  .compare__cell--ours .compare__num { color: var(--color-lime); }
  .compare__cell--ours .compare__text { font-size: 1.1875rem; }
  .compare__cell--ours::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
  }
  .compare__cell--ours:first-of-type {
    border-top: 1px solid rgb(157 196 213 / 0.3);
    border-radius: 24px 24px 0 0;
  }
  .compare__cell--ours:last-of-type {
    border-bottom: 1px solid rgb(157 196 213 / 0.3);
    border-radius: 0 0 24px 24px;
  }
  /* Gradient accent stepping from sky to lime down the panel, row by row. */
  .compare__pair:nth-child(1) .compare__cell--ours::before { background: linear-gradient(180deg, #9dc4d5, #b9cf8f); }
  .compare__pair:nth-child(2) .compare__cell--ours::before { background: linear-gradient(180deg, #b9cf8f, #d4d954); }
  .compare__pair:nth-child(3) .compare__cell--ours::before { background: linear-gradient(180deg, #b9cf8f, #d4d954); }
  .compare__pair:nth-child(4) .compare__cell--ours::before { background: linear-gradient(180deg, #d4d954, var(--color-lime)); }

  .compare__close {
    margin-top: var(--space-16);
    padding-top: 32px;
    max-width: 40ch;
    font-size: 1.875rem;
  }
}
