/* Servicios (servicios.html). D-03, D-25.
   Reuses tokens, .frame-grid, .cols, .bleed-left, and from components.css
   .slot and the closing band. Breakpoints: <720 / 720–1023 / ≥1024. */

.servicios {
  --seccion: var(--space-7); /* also used by the closing band (components.css) */
  padding-top: var(--space-6);
}

@media (min-width: 1024px) {
  .servicios {
    --seccion: var(--space-8);
  }
}

.servicios h2 {
  margin-bottom: var(--space-5);
}

/* ---------- Page intro ---------- */

.servicios__intro-texto > h1 {
  margin-bottom: var(--space-4);
}

@media (min-width: 1024px) {
  .servicios__intro-texto {
    grid-column: 1 / span 8;
  }
}

/* In-page links: plain underlined links, spacing as the only separator.
   Not sticky (D-27). */
.en-esta-pagina {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  margin-top: var(--space-5);
}

.en-esta-pagina__titulo {
  font-size: var(--fs-ui);
  font-weight: 600;
}

.en-esta-pagina__lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-4);
}

.en-esta-pagina__lista a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-ui);
}

/* ---------- Service sections (D-25: one layout, no alternation) ----------
   Each section is a nested .frame-grid. The figure uses .bleed-left
   (full-bleed below 720px, bleed-start → frame-end above). */

.servicio {
  margin-top: var(--seccion);
}

.servicio__fig {
  grid-row: 1;
}

.servicio__texto {
  grid-row: 2;
  margin-top: var(--space-5);
}

/* ≥1024: image ends at column 7, text in columns 8–12, same row.
   Same width technique as the closing band: 100% = bleed track + frame,
   column 7 ends at 7/12 of the frame − 5 × gap/12. */
@media (min-width: 1024px) {
  .servicio > .servicio__fig {
    width: calc(var(--bleed-w) + (100% - var(--bleed-w)) * 7 / 12 - var(--gap) * 5 / 12);
    align-self: start;
  }

  .servicio__texto {
    grid-row: 1;
    align-self: start;
    margin-top: 0;
    /* skip columns 1–7 and their gaps: 100% = frame width */
    margin-left: calc((100% - 11 * var(--gap)) * 7 / 12 + 7 * var(--gap));
  }
}

.servicio__texto p + p {
  margin-top: var(--space-3);
}

.servicio__texto h3 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-3);
}

/* "Qué incluye": square --naranja bullets (D-08: non-text accent) */
.incluye {
  display: grid;
  gap: var(--space-2);
}

.incluye li {
  position: relative;
  padding-left: var(--space-4);
}

.incluye li::before {
  content: "";
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--naranja);
}

.servicio__contacto {
  margin-top: var(--space-5);
}

.servicio__contacto a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
