/* ==========================================================================
   ServiceHero, AudienceRecognition, FeaturedProject, VideoLoop/VisualPause,
   IncludedItems, ProcessSteps — 07 §11.2, §11.9, §10.3, §11.17, §11.16
   ========================================================================== */

/* --- ServiceHero ---------------------------------------------------------- */

.service-hero {
  /* Reduced 2026-08-03 (Teo, audit-approved): was --section-editorial
     (152px @1440, the full page-hero token) — a landing hero doesn't need
     as much air as a legal document's opening, and it was eating almost
     the entire first viewport combined with the H1. */
  padding-block: var(--space-section-generous);
}

.service-hero__media img {
  width: 100%;
}

/* Added 2026-08-03 (Teo, audit-approved): subtle editorial contrast between
   the artwork's own white paper and the cream page background — without it
   the piece's edges nearly disappear against --surface-base. Scoped to the
   hero specifically (not artwork-figure generally, which is used in
   contexts — FeaturedProject, MediaGallery — that already sit on a raised
   or dark surface with enough contrast on their own). Reuses the same
   shadow colour family (--color-tinta) as the only other shadow precedent
   in the codebase (operations.css), at a much lighter opacity befitting a
   quiet editorial cue rather than a UI card. */
.service-hero__media .artwork-figure__media {
  box-shadow: 0 2px 16px rgb(46 35 26 / 10%);
}

/* Preview only (Teo, 2026-08-02): the shared .split--media-dominant ratio
   (layout.css, 1.6fr text : 1fr media) reads as the image having LESS
   presence despite its name — this page-scoped modifier is additive, opt-in
   (acu_service_hero()'s $options['splitClass']) and never edits the shared
   rule, so every other .split--media-dominant caller is unaffected. */
@media (min-width: 64rem) {
  .service-hero__split--wide {
    grid-template-columns: 1fr 1.3fr;
  }
}

/* Preview only (Teo, 2026-08-02) — acu_service_hero()'s secondaryAsLink and
   acu_final_cta()'s secondaryAsLink both opt into this; same treatment as
   the existing .service-selector-option__secondary precedent. */
.service-hero__secondary-link,
.final-cta__secondary-link {
  font-size: var(--text-sm);
}

.service-hero__reviews {
  margin-top: var(--space-2);
}

.review-aggregate {
  display: inline-block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
}

.review-aggregate__stars {
  color: var(--color-acento-editorial);
  letter-spacing: 0.1em;
}

.review-aggregate--link:hover {
  color: var(--text-accent);
  text-decoration: underline;
}

/* --- AudienceRecognition (Bloque 2) ---------------------------------------
   Page-specific composition, primitives only — no cards, generous negative
   space (landing v8, Bloque 2 tratamiento visual). */

.audience-recognition__situations {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.audience-recognition__situations li {
  padding-left: var(--space-5);
  border-left: 2px solid var(--border-active);
}

/* Casa Familiar's own plain-.section blocks (Para quién, Portfolio, Precios)
   — added 2026-08-03 (Teo, audit-approved). Was --section-standard
   (116.8px @1440) identically on 5 back-to-back sections regardless of
   how closely related their content was; --space-section-default reads as
   a page with real rhythm instead of one repeated gap. Scoped to this one
   landing's own class, not .section itself (used sitewide). */
.casa-familiar-section {
  padding-block: var(--space-section-default);
}

/* --- FeaturedProject -------------------------------------------------------
   Its own layout, not a generic large card (07 §11.9 rule). */

.featured-project {
  background-color: var(--surface-raised);
  padding-block: var(--space-section-default);
}

.featured-project__media img {
  width: 100%;
}

/* --- VideoLoop / VisualPause (Bloque 6) ------------------------------------
   Full-bleed ambient moment — contains no critical information (07 §11.23). */

.visual-pause {
  position: relative;
  overflow: hidden;
  /* .surface-dark (layout.css) supplies the background and the matching
     heading/muted-text colour overrides — not duplicated here. */
}

.visual-pause__media {
  width: 100%;
}

.video-loop {
  display: block;
  width: 100%;
  height: auto;
}

.visual-pause__caption {
  padding: var(--space-6) var(--gutter);
  text-align: center;
}

.visual-pause__caption .lead {
  margin-inline: auto;
}

/* --- IncludedItems (Bloque 7, Columna A) -----------------------------------
   Restyled 2026-08-02: groups always stack in one column (a 3-column grid
   here, nested inside the 2-column IncludedItems+ProcessSteps split below,
   read as confusing column-jumping at desktop width) — a thin divider
   between groups instead of a heading-weight title for each. */

.included-items {
  display: flex;
  flex-direction: column;
}

.included-items__group {
  padding-block: var(--space-5);
  border-top: 1px solid var(--border-subtle);
}

.included-items__group:first-child {
  padding-top: 0;
  border-top: none;
}

.included-items__group-title {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-acento-editorial);
}

.included-items__list {
  margin: var(--space-3) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--text-muted);
}

.included-items__shipping {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
}

/* --- ProcessSteps (Bloque 7, Columna B) ------------------------------------
   Restyled 2026-08-02: a single vertical lane at every width — used to
   switch to a wrapping horizontal flex row at desktop width, which read as
   a disordered grid (1-2 in one row, 3-4 in the next) instead of one
   sequence. The connecting line between numbers is a pseudo-element on the
   number badge itself (07 §11.16: no decorative arrows), stopping short of
   the next number rather than running the full gap. */

.process-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.process-steps__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding-bottom: var(--space-6);
}

.process-steps__item:last-child {
  padding-bottom: 0;
}

.process-steps__number {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-pill);
  /* Base surface, not --surface-raised: this badge sits inside
     .included-and-process, which is itself raised — reusing that tone here
     would make the badge blend into its own section background. */
  background-color: var(--surface-base);
  color: var(--color-acento-editorial);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 700;
}

.process-steps__item:not(:last-child) .process-steps__number::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  /* Reaches from this badge down to the next one — item padding-bottom
     (--space-6) plus the next badge's own height, so the line runs
     uninterrupted between the two circles rather than stopping mid-gap. */
  height: calc(var(--space-6) + 2.75rem);
  background-color: var(--border-subtle);
}

.process-steps__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-top: var(--space-1);
}

.process-steps__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  color: var(--text-strong);
}

.process-steps__description {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.process-steps__note {
  margin-top: var(--space-6);
  font-size: var(--text-sm);
}

/* --- Bloque 7 shared container --------------------------------------------
   "Debe funcionar como una sola gran sección visual con dos subbloques
   diferenciados" (landing v8, Bloque 7). */

.included-and-process {
  background-color: var(--surface-raised);
  /* Added 2026-08-03 (Teo, audit-approved) — was plain .section's
     --section-standard (116.8px @1440), same repetition fix as
     .casa-familiar-section / .featured-project above. */
  padding-block: var(--space-section-default);
}

.included-and-process__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-9);
}

@media (min-width: 64rem) {
  .included-and-process__columns {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}
