/* components: hero, bands, grids, tables, notices */

/* ---------- hero (giant watermark, text panel over the photo edge) ---------- */
.hero {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 46%, var(--color-accent-soft) 100%);
  overflow: hidden;
  padding-bottom: var(--space-xl);
  padding-top: var(--space-md);
}

.hero-wrap {
  --hero-photo-h: clamp(240px, 33vh, 380px);
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  grid-template-rows: auto auto;
  position: relative;
}

/* giant word sits on the lower edge of the photo, the panel covers part of it */
.hero-mark {
  color: #FFFFFF5C;
  font-family: var(--font-display);
  font-size: min(11rem, 15vw - 20px); /* word is ~6.3em wide: must stay inside the photo */
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 0.8;
  margin: 0;
  pointer-events: none;
  position: absolute;
  right: 28px;
  top: calc(var(--hero-photo-h) - 0.84em);
  user-select: none;
  z-index: 2;
}

.hero-photo {
  background-color: var(--color-accent);
  background-image: url("../img/mesa-cuentas.webp");
  background-position: center 62%;
  background-size: cover;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-big);
  grid-column: 1 / -1;
  grid-row: 1;
  height: var(--hero-photo-h);
  position: relative;
  z-index: 1;
}

.hero-panel {
  background: var(--color-surface);
  border: 2px solid var(--color-text);
  border-radius: var(--radius-big);
  box-shadow: var(--shadow-step) var(--shadow-step) 0 var(--color-text);
  grid-column: 1;
  grid-row: 2;
  margin-left: clamp(0px, 3vw, 40px);
  margin-top: clamp(-120px, -10vh, -60px);
  padding: clamp(24px, 3vw, 40px);
  position: relative;
  z-index: 3;
}

.hero-panel h1 {
  font-size: clamp(2.2rem, min(1rem + 2.9vw, 7vh), 4.5rem); /* vh cap keeps the CTA above the fold on wide but short screens */
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin-bottom: 20px;
}

.hero-lead {
  color: var(--color-muted);
  font-size: 1.12rem;
  max-width: 54ch;
}

.hero-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: var(--space-md);
}

.hero-facts {
  align-self: start;
  display: grid;
  gap: 0;
  grid-column: 2;
  grid-row: 2;
  list-style: none;
  margin: 28px 0 0 var(--space-lg);
  padding: 0;
  position: relative;
  z-index: 3;
}

.hero-facts li {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-top-width: 0;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.98rem;
  gap: 4px 12px;
  justify-content: space-between;
  padding: 14px 18px;
}

.hero-facts li:first-child {
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  border-top-width: 1px;
}

.hero-facts li:last-child {
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}

.hero-facts b {
  font-family: var(--font-display);
  font-weight: 600;
}

.hero-facts span {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .hero-wrap {
    --hero-photo-h: clamp(200px, 26vh, 280px);
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    margin-left: 0;
    margin-right: var(--space-xs);
    margin-top: -44px;
  }

  .hero-facts {
    grid-column: 1;
    grid-row: 3;
    margin: calc(var(--shadow-step) + 28px) 0 0;
  }

  .hero-mark {
    font-size: min(6rem, 13vw);
    right: 18px;
    top: 20px;
  }
}

@media (max-width: 520px) {
  .hero-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* short desktop screens (1280x800 and alike): keep h1 + CTA above the fold */
@media (min-width: 901px) and (max-height: 840px) {
  .hero-wrap {
    --hero-photo-h: clamp(220px, 30vh, 280px);
  }

  .hero-panel h1 {
    font-size: clamp(2.2rem, 1rem + 2.6vw, 3.6rem);
  }
}


/* ---------- section bands and rhythm ---------- */
.band {
  position: relative;
}

.band-soft {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-accent-soft) 22%, var(--color-accent-soft) 78%, var(--color-bg) 100%);
}

.band-up {
  background: linear-gradient(180deg, var(--color-accent-soft) 0%, var(--color-bg) 40%);
}

/* dark band: short ramp through the accent tint, grain on top */
.band-night {
  background-color: var(--color-night);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--color-bg) 0, var(--color-accent-soft) 28px, #45446C 76px, var(--color-night) 124px, var(--color-night) calc(100% - 124px), #45446C calc(100% - 76px), var(--color-accent-soft) calc(100% - 28px), var(--color-bg) 100%);
  color: #E9EAF0;
}

.band-night h2,
.band-night h3 {
  color: #FFFFFF;
}

.band-night .label {
  color: var(--color-accent-light);
}

.band-night p {
  color: #C9CBD6;
}

.band-night a:not(.btn) {
  color: var(--color-accent-light);
}

.band-night a:not(.btn):hover,
.band-night a:not(.btn):focus-visible {
  color: #FFFFFF;
}

.pad-a { padding-bottom: 40px; padding-top: 64px; }
.pad-b { padding-bottom: 72px; padding-top: 120px; }
.pad-c { padding-bottom: 104px; padding-top: 52px; }
.pad-d { padding-bottom: 176px; padding-top: 176px; }
.pad-e { padding-bottom: 76px; padding-top: 44px; }
.pad-f { padding-bottom: 60px; padding-top: 96px; }
.pad-g { padding-bottom: 112px; padding-top: 68px; }

@media (max-width: 760px) {
  .pad-a { padding-bottom: 32px; padding-top: 44px; }
  .pad-b { padding-bottom: 48px; padding-top: 72px; }
  .pad-c { padding-bottom: 68px; padding-top: 40px; }
  .pad-d { padding-bottom: 150px; padding-top: 150px; }
  .pad-e { padding-bottom: 52px; padding-top: 36px; }
  .pad-f { padding-bottom: 44px; padding-top: 64px; }
  .pad-g { padding-bottom: 72px; padding-top: 48px; }
}

.section-head {
  margin-bottom: var(--space-lg);
  max-width: 760px;
}

.section-head p {
  color: var(--color-muted);
  font-size: 1.08rem;
}

.band-night .section-head p {
  color: #C9CBD6;
}

.more-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-top: calc(var(--shadow-step) + 24px);
}

.more-link a {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-height: 44px;
}


/* ---------- situations: brutal cells ---------- */
.cells {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-big);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.cell {
  border-right: 1px solid var(--color-line);
  padding: 32px 28px 36px;
}

.cell:last-child {
  border-right: 0;
}

.cell .tag {
  color: var(--color-accent);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.cell p {
  color: var(--color-muted);
  margin: 0;
}

.cell:hover {
  background: var(--color-text);
  color: var(--color-surface);
}

.cell:hover p,
.cell:hover .tag {
  color: var(--color-accent-light);
}

@media (max-width: 860px) {
  .cells {
    grid-template-columns: minmax(0, 1fr);
  }

  .cell {
    border-bottom: 1px solid var(--color-line);
    border-right: 0;
  }

  .cell:last-child {
    border-bottom: 0;
  }
}


/* ---------- stepped grid: the four weeks ---------- */
.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
}

.step:nth-child(2) { margin-top: 44px; }
.step:nth-child(3) { margin-top: 88px; }
.step:nth-child(4) { margin-top: 132px; }

.step-num {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 18px;
}

.step p {
  color: var(--color-muted);
  font-size: 1rem;
}

.step-meta {
  border-top: 1px solid var(--color-line);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin: auto 0 0;
  padding-top: 12px;
}

.step:hover {
  border-color: var(--color-text);
  box-shadow: var(--shadow-step) var(--shadow-step) 0 var(--color-accent);
  translate: -3px -3px;
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step:nth-child(2) { margin-left: 14px; margin-top: 0; }
  .step:nth-child(3) { margin-left: 28px; margin-top: 0; }
  .step:nth-child(4) { margin-left: 42px; margin-top: 0; }
}


/* ---------- how the course runs: photo + format list ---------- */
.how-grid {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}

.photo-card {
  align-self: start;
  margin: 0;
}

.photo-card img {
  aspect-ratio: 5 / 4;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-big);
  object-fit: cover;
  width: 100%;
}

.photo-card figcaption {
  align-items: center;
  color: var(--color-muted);
  display: flex;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  gap: 12px;
  margin-top: 14px;
}

.photo-card figcaption::before {
  background: var(--color-text);
  content: "";
  flex: none;
  height: 2px;
  width: 40px;
}

.format-list {
  border-top: 2px solid var(--color-text);
  margin: 0;
}

.format-row {
  border-bottom: 1px solid var(--color-line);
  display: grid;
  gap: 6px 24px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 20px 0;
}

.format-row dt {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  padding-top: 4px;
  text-transform: uppercase;
}

.format-row dd {
  margin: 0;
}

@media (max-width: 860px) {
  .how-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .format-row {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ---------- price tiles on the dark band ---------- */
.price-pair {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.price-tile {
  border: 1px solid #4A4C63;
  border-radius: var(--radius-big);
  color: #E9EAF0;
  padding: 32px clamp(22px, 3vw, 40px);
}

.price-tile.lead-tile {
  background: var(--color-surface);
  border-color: var(--color-surface);
  box-shadow: var(--shadow-step) var(--shadow-step) 0 var(--color-accent-light);
  color: var(--color-text);
}

.band-night .price-tile.lead-tile h3 {
  color: var(--color-text);
}

.band-night .price-tile.lead-tile p,
.band-night .price-tile.lead-tile li {
  color: var(--color-muted);
}

.band-night .price-tile.lead-tile .label {
  color: var(--color-accent);
}

.price-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3vw, 4.4rem);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 14px;
}

.price-tile ul {
  border-top: 1px solid #4A4C63;
  list-style: none;
  margin: 18px 0 0;
  padding: 14px 0 0;
}

.price-tile.lead-tile ul {
  border-top-color: var(--color-line);
}

.price-tile li {
  color: #C9CBD6;
  padding: 4px 0 4px 22px;
  position: relative;
}

.price-tile li::before {
  content: "+";
  font-family: var(--font-mono);
  left: 0;
  position: absolute;
}

@media (max-width: 760px) {
  .price-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ---------- testimonials (initials only) ---------- */
.voices {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.85fr);
}

.voice {
  border: 1px solid var(--color-line);
  border-right-width: 0;
  margin: 0;
  padding: 30px 28px;
}

.voice:first-child {
  border-radius: var(--radius-big) 0 0 var(--radius-big);
}

.voice:last-child {
  border-radius: 0 var(--radius-big) var(--radius-big) 0;
  border-right-width: 1px;
}

.voice:nth-child(2) {
  background: var(--color-surface);
}

.voice blockquote {
  font-size: 1.05rem;
  margin: 0 0 18px;
}

.voice blockquote::before {
  color: var(--color-accent);
  content: "\201C";
  display: block;
  font-family: var(--font-display);
  font-size: 3.4rem;
  height: 0.6em;
  line-height: 1;
}

.voice figcaption {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

@media (max-width: 860px) {
  .voices {
    grid-template-columns: minmax(0, 1fr);
  }

  .voice,
  .voice:first-child,
  .voice:last-child {
    border-radius: 0;
    border-right-width: 1px;
    border-top-width: 0;
  }

  .voice:first-child {
    border-radius: var(--radius-big) var(--radius-big) 0 0;
    border-top-width: 1px;
  }

  .voice:last-child {
    border-radius: 0 0 var(--radius-big) var(--radius-big);
  }
}


/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  gap: clamp(24px, 5vw, 80px);
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
}

.faq-list {
  border-top: 2px solid var(--color-text);
}

.faq-item {
  border-bottom: 1px solid var(--color-line);
}

.faq-item summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  gap: 16px;
  justify-content: space-between;
  list-style: none;
  min-height: 64px;
  padding: 14px 6px;
}

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

.faq-item summary::after {
  border: 1px solid var(--color-text);
  border-radius: 10px;
  content: "+";
  display: grid;
  flex: none;
  font-family: var(--font-mono);
  height: 34px;
  place-items: center;
  width: 34px;
}

.faq-item[open] summary::after {
  background: var(--color-text);
  color: var(--color-surface);
  content: "\2212";
}

.faq-item summary:hover {
  background: var(--color-accent-soft);
}

.faq-item p {
  color: var(--color-muted);
  max-width: 62ch;
  padding: 0 6px 18px;
}

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ---------- closing call ---------- */
.call-box {
  align-items: center;
  background: var(--color-surface);
  border: 2px solid var(--color-text);
  border-radius: var(--radius-big);
  display: grid;
  gap: var(--space-md) var(--space-lg);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  padding: clamp(26px, 4vw, 52px);
}

.call-box p {
  color: var(--color-muted);
  margin: 0;
}

.call-actions {
  display: grid;
  gap: 12px;
}

@media (max-width: 860px) {
  .call-box {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ---------- inner page head ---------- */
.page-head {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-accent-soft) 100%);
  border-bottom: 1px solid var(--color-line);
}

.page-head-grid {
  align-content: center;
  align-items: center;
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  padding-bottom: 48px;
  padding-top: 48px;
}

.page-head h1 {
  font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.6rem);
  letter-spacing: -0.01em;
}

.page-head p {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin: 0;
  max-width: 58ch;
}

.ficha {
  background: var(--color-surface);
  border: 1px solid var(--color-text);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-step) var(--shadow-step) 0 var(--color-text);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  margin: 0;
}

.ficha div {
  border-bottom: 1px solid var(--color-line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 18px;
}

.ficha div:last-child {
  border-bottom: 0;
}

.ficha dt {
  color: var(--color-muted);
}

.ficha dd {
  margin: 0;
  text-align: right;
}

@media (min-width: 1024px) {
  .page-head-grid {
    min-height: 340px;
  }
}

@media (max-width: 860px) {
  .page-head-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ficha {
    margin-bottom: var(--shadow-step);
    margin-right: var(--shadow-step);
  }
}


/* ---------- programme weeks (especialidades) ---------- */
.weeks {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.week {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.week-top {
  border-bottom: 1px solid var(--color-line);
  display: grid;
  gap: 4px 16px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 20px 24px;
}

.week-top .week-no {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 2.2rem;
  grid-row: span 2;
  line-height: 1;
}

.week-top h3 {
  margin: 0;
}

.week-top p {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin: 0;
}

.lessons {
  list-style: none;
  margin: 0;
  padding: 6px 24px 14px;
}

.lessons li {
  border-bottom: 1px dashed var(--color-line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 9px 0;
}

.lessons li:last-child {
  border-bottom: 0;
}

.lessons span {
  color: var(--color-muted);
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.week:nth-child(odd) .week-top {
  background: var(--color-accent-soft);
}

@media (max-width: 860px) {
  .weeks {
    grid-template-columns: minmax(0, 1fr);
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
}

.chips li {
  background: var(--color-surface);
  border: 1px solid var(--color-text);
  border-radius: 999px;
  font-size: 0.95rem;
  padding: 8px 16px;
}


/* ---------- compare table ---------- */
.table-wrap {
  border: 2px solid var(--color-text);
  border-radius: var(--radius-big);
  box-shadow: var(--shadow-step) var(--shadow-step) 0 var(--color-accent);
  min-width: 0;
  overflow-x: auto;
  scrollbar-color: var(--color-accent) transparent;
  scrollbar-width: thin;
}

.compare {
  background: var(--color-surface);
  border-collapse: collapse;
  min-width: 520px;
  width: 100%;
}

.compare caption {
  caption-side: top;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  padding: 16px 20px;
  text-align: left;
  text-transform: uppercase;
}

.compare th,
.compare td {
  border-top: 1px solid var(--color-line);
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
}

.compare thead th {
  background: var(--color-text);
  color: var(--color-surface);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
}

.compare thead th span {
  color: var(--color-accent-light);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.compare th[scope="row"] {
  color: var(--color-muted);
  font-weight: 500;
  width: 34%;
}

.compare td + td,
.compare thead th + th + th {
  background: var(--color-accent-soft);
}

.compare thead th + th + th {
  background: var(--color-accent);
}

.compare .no {
  color: var(--color-muted);
  font-family: var(--font-mono);
}


/* ---------- condition cards and people ---------- */
.terms {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.term {
  border: 1px solid var(--color-line);
  border-right-width: 0;
  padding: 26px 24px;
}

.term:first-child {
  border-radius: var(--radius-card) 0 0 var(--radius-card);
}

.term:last-child {
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  border-right-width: 1px;
}

.term:nth-child(2) {
  background: var(--color-surface);
}

.term p {
  color: var(--color-muted);
  margin: 0;
}

@media (max-width: 860px) {
  .terms {
    grid-template-columns: minmax(0, 1fr);
  }

  .term,
  .term:first-child,
  .term:last-child {
    border-radius: 0;
    border-right-width: 1px;
    border-top-width: 0;
  }

  .term:first-child {
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    border-top-width: 1px;
  }

  .term:last-child {
    border-radius: 0 0 var(--radius-card) var(--radius-card);
  }
}

.people {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.person {
  border: 1px solid #4A4C63;
  border-radius: var(--radius-big);
  display: grid;
  gap: 20px;
  grid-template-columns: 84px minmax(0, 1fr);
  padding: 28px;
}

.monogram {
  align-items: center;
  background: var(--color-accent-soft);
  border-radius: 20px;
  color: var(--color-night);
  display: flex;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  height: 84px;
  justify-content: center;
  width: 84px;
}

.person h3 {
  margin-bottom: 4px;
}

.person .role {
  color: var(--color-accent-light);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .people {
    grid-template-columns: minmax(0, 1fr);
  }

  .person {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ---------- contact page ---------- */
.contact-grid {
  align-items: start;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.form-card h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem);
}

.form-intro {
  color: var(--color-muted);
  margin-bottom: var(--space-md);
}

.next-steps {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  counter-reset: nx;
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
}

.next-steps li {
  border-bottom: 1px solid var(--color-line);
  counter-increment: nx;
  display: grid;
  gap: 14px;
  grid-template-columns: 40px minmax(0, 1fr);
  padding: 16px 20px;
}

.next-steps li:last-child {
  border-bottom: 0;
}

.next-steps li::before {
  color: var(--color-accent);
  content: "0" counter(nx);
  font-family: var(--font-mono);
  font-size: 1.3rem;
}

.hours-card {
  background: var(--color-night);
  border-radius: var(--radius-card);
  color: #E9EAF0;
  padding: 24px;
}

.hours-card h2 {
  color: #FFFFFF;
  font-size: 1.3rem;
}

.hours-card p {
  color: #C9CBD6;
  margin-bottom: 10px;
}

.hours-card a {
  align-items: center;
  color: #FFFFFF;
  display: inline-flex;
  font-family: var(--font-mono);
  min-height: 44px;
}

.hours-card a:hover,
.hours-card a:focus-visible {
  color: var(--color-accent-light);
}

.data-table {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-collapse: separate;
  border-radius: var(--radius-card);
  border-spacing: 0;
  overflow: hidden;
  width: 100%;
}

.data-table caption {
  caption-side: top;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  padding: 0 0 12px 18px; /* clear the rounded corner of the clipped table box */
  text-align: left;
  text-transform: uppercase;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--color-line);
  overflow-wrap: anywhere;
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}

.data-table th[scope="row"] {
  background: var(--color-bg);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 400;
  width: 30%;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-card {
    margin-right: var(--shadow-step);
  }
}


.ask-grid {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-big);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.ask {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  border-right: 1px solid var(--color-line);
  padding: 28px;
}

.ask:nth-child(2n) {
  border-right: 0;
}

.ask:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.ask h3 {
  font-size: 1.15rem;
}

.ask p {
  color: var(--color-muted);
  margin: 0;
}

.ask:hover {
  background: var(--color-accent-soft);
}

@media (max-width: 760px) {
  .ask-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ask,
  .ask:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--color-line);
    border-right: 0;
  }

  .ask:last-child {
    border-bottom: 0;
  }
}


/* ---------- legal pages ---------- */
.legal-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
}

.legal-index {
  align-self: start;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 18px;
  position: sticky;
  top: 150px;
}

.legal-index ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-index a {
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text);
  display: flex;
  min-height: 44px;
  text-decoration: none;
}

.legal-index li:last-child a {
  border-bottom: 0;
}

.legal-index a:hover,
.legal-index a:focus-visible {
  color: var(--color-accent);
}

.legal-stack {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.legal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  min-width: 0;
  padding: clamp(22px, 3vw, 36px);
  scroll-margin-top: 150px;
}

.legal-card h2 {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
}

.legal-card h3 {
  font-size: 1.08rem;
  margin-top: var(--space-md);
}

.legal-card p,
.legal-card li {
  color: #3B3F48;
}

.legal-card ul {
  padding-left: 20px;
}

.legal-card .data-table {
  margin-bottom: var(--space-sm);
}

.scroll-x {
  min-width: 0;
  overflow-x: auto;
  scrollbar-color: var(--color-accent) transparent;
  scrollbar-width: thin;
}

.data-table.wide {
  min-width: 620px;
}

.data-table thead th {
  background: var(--color-text);
  color: var(--color-surface);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-card .btn {
  max-width: 420px;
}

.legal-card.accent-edge {
  border-left: 6px solid var(--color-accent);
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .legal-index {
    position: static;
  }
}


/* ---------- service pages (recibido, 404) ---------- */
.service-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-card);
  padding: 24px;
}

.service-card p {
  color: var(--color-muted);
  margin: 0;
}

.page-head .big-code {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: clamp(3rem, 2rem + 4vw, 6rem);
  line-height: 1;
  margin: 0;
  text-align: right;
}

@media (max-width: 860px) {
  .service-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-head .big-code {
    text-align: left;
  }
}


/* ---------- consent corner ---------- */
.privacy-notice {
  background: var(--color-surface);
  border: 2px solid var(--color-text);
  border-radius: 20px;
  bottom: 20px;
  box-shadow: 6px 6px 0 var(--color-text);
  max-width: 380px;
  padding: 18px 20px;
  position: fixed;
  right: 20px;
  z-index: 9;
}

.privacy-notice p {
  font-size: 0.93rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.notice-btns {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notice-btn {
  background: var(--color-surface);
  border: 2px solid var(--color-text);
  border-radius: 12px;
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  min-height: 46px;
}

.notice-btn:hover,
.notice-btn:focus-visible {
  background: var(--color-text);
  color: var(--color-surface);
}

@media (max-width: 600px) {
  .privacy-notice {
    bottom: 10px;
    left: 10px;
    max-width: none;
    right: 10px;
  }
}


/* ---------- reveal (classes only set by script) ---------- */
.js .veiled {
  opacity: 0;
  translate: 0 22px;
}

.js .veiled.entered {
  opacity: 1;
  transition: opacity 0.5s ease, translate 0.5s ease;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .js .veiled,
  .js .veiled.entered {
    opacity: 1;
    transition: none;
    translate: 0 0;
  }

  .step:hover {
    translate: none;
  }
}
