/* ============================================================
   ARE Trüst — Page polish: Negocio Conjunto
   Additive refinements layered AFTER aretrust-polish.css.
   Scope: "Modelos de Participación" cards, "Soluciones Flexibles"
   points, "Su Participación, Garantizada" slider, and the
   "Inicie su Proceso" numbered steps. Token colors + easings only.
   Never touches display / position / grid-template / flex-direction.
   ============================================================ */

:root {
  --ar-emerald:        #015d3a;
  --ar-emerald-deep:   #012e1d;
  --ar-emerald-bright: #0a7a4d;
  --ar-forest:         #172d1b;
  --ar-mint:           #e7f2ee;
  --ar-gold:           #c9a44c;

  --ar-ease:      cubic-bezier(.22, 1, .36, 1);
  --ar-ease-soft: cubic-bezier(.4, 0, .2, 1);
  --ar-ease-io:   cubic-bezier(.65, 0, .35, 1);
}

/* ============================================================
   1. Section eyebrow / heading rhythm
   A quiet gold hairline under the major H1 headings gives the
   editorial cadence a steady drumbeat without adding chrome.
   ============================================================ */
.section-light-grey .heading-max-width-wrapper {
  position: relative;
  padding-bottom: 1.25rem;
}
.section-light-grey .heading-max-width-wrapper::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, var(--ar-gold), rgba(201, 164, 76, 0));
  border-radius: 2px;
}

/* ============================================================
   2. "Modelos de Participación" — the three model columns
   The top-level model headings get a refined emerald accent;
   the nested "Detalles Clave" sub-block is set apart with a
   quiet hairline so the key terms read as a considered footnote.
   ============================================================ */
.features-3-column-grid > .features-wrapper > .heading-h5 {
  color: var(--ar-emerald-deep);
  letter-spacing: -.005em;
  position: relative;
  padding-left: .9rem;
}
.features-3-column-grid > .features-wrapper > .heading-h5::before {
  content: "";
  position: absolute;
  left: 0;
  top: .15em;
  bottom: .15em;
  width: 2px;
  background: var(--ar-emerald);
  border-radius: 2px;
}

/* The nested "Detalles Clave" wrapper — gentle inset rule above it */
.features-wrapper .features-wrapper {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(1, 93, 58, .14);
}
.features-wrapper .features-wrapper > .heading-h5 {
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ar-emerald);
  opacity: .92;
  margin-bottom: .5rem;
}

/* ============================================================
   3. "Soluciones Flexibles y a Medida" — the six benefit points
   Each point heading gets a small emerald marker; gentle hover
   warmth on the whole point so the column feels alive.
   ============================================================ */
.text-points-container {
  transition: transform .5s var(--ar-ease);
}
.text-points-container > .heading-h4 {
  color: var(--ar-emerald-deep);
  position: relative;
  padding-left: 1.1rem;
  letter-spacing: -.004em;
}
.text-points-container > .heading-h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--ar-emerald);
  box-shadow: 0 0 0 4px rgba(1, 93, 58, .1);
  transition: box-shadow .5s var(--ar-ease), background-color .5s var(--ar-ease);
}
.text-points-container:hover > .heading-h4::before {
  background: var(--ar-emerald-bright);
  box-shadow: 0 0 0 5px rgba(10, 122, 77, .16);
}

/* The Soluciones image — quiet settle on hover, mirroring card cadence */
._3-column-grid-image-wrapper {
  overflow: hidden;
  border-radius: 1rem;
}
._3-column-grid-image {
  transition: transform 1.3s var(--ar-ease);
  backface-visibility: hidden;
}
._3-column-grid-image-wrapper:hover ._3-column-grid-image {
  transform: scale(1.035);
}

/* ============================================================
   4. "Su Participación, Garantizada" — quiet emphasis
   A gold hairline beneath the title; refined slider arrows + nav.
   ============================================================ */
.section-our-office .title-container {
  padding-bottom: 1rem;
}
.section-our-office .title-container::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 3.25rem;
  height: 2px;
  background: linear-gradient(90deg, var(--ar-gold), rgba(201, 164, 76, 0));
  border-radius: 2px;
}
.our-office-slide,
.our-office-mask {
  border-radius: 1rem;
}
.our-office-image {
  transition: transform 1.4s var(--ar-ease);
  backface-visibility: hidden;
}
.our-office-slider:hover .our-office-image {
  transform: scale(1.025);
}
.arrow-black {
  transition: color .4s var(--ar-ease), transform .4s var(--ar-ease), opacity .4s var(--ar-ease);
}
.arrow-black:hover {
  color: var(--ar-emerald);
  transform: scale(1.08);
}

/* ============================================================
   5. "Inicie su Proceso de Participación" — the numbered steps
   The steps are .careers-item cards stacked in .jobs--container.
   A thin emerald connector threads them; numerals get a refined
   monogram; the title heading reads as a true step label.
   Base already handles border/bg hover — we add depth + cadence.
   ============================================================ */
.jobs--container {
  position: relative;
}
/* Vertical connector thread running behind the step stack */
.jobs--container::before {
  content: "";
  position: absolute;
  left: 2.5rem;
  top: 3.25rem;
  bottom: 3.25rem;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(1, 93, 58, 0),
    rgba(1, 93, 58, .22) 12%,
    rgba(1, 93, 58, .22) 88%,
    rgba(1, 93, 58, 0));
  pointer-events: none;
  z-index: 0;
}

.careers-item {
  position: relative;
  z-index: 1;
  background-color: #fff;
  transition:
    border-color .45s var(--ar-ease),
    background-color .45s var(--ar-ease),
    box-shadow .55s var(--ar-ease),
    transform .55s var(--ar-ease) !important;
  will-change: transform;
}
.careers-item:hover {
  border-color: rgba(1, 93, 58, .32) !important;
  box-shadow: 0 26px 54px -34px rgba(1, 93, 58, .42);
  transform: translateY(-3px);
}
.careers-item:active {
  transform: translateY(-1px);
}

/* Step heading "Paso N: ..." — emerald, refined tracking */
.careers-item .careers-titile-wrapper > .heading-h4 {
  color: var(--ar-emerald-deep);
  letter-spacing: -.006em;
  transition: color .4s var(--ar-ease);
}
.careers-item:hover .careers-titile-wrapper > .heading-h4 {
  color: var(--ar-emerald);
}

/* The "design" pill on step 1 reads as off-brand blue in the base —
   retint to emerald-mint so it stays in palette. */
.careers-pill.design {
  background-color: var(--ar-mint) !important;
  color: var(--ar-emerald) !important;
}

/* The link chevron — settle toward emerald and ease outward on hover */
.careers-link-icon {
  transition: opacity .4s var(--ar-ease), transform .45s var(--ar-ease);
}
.careers-item:hover .careers-link-icon {
  opacity: 1;
  transform: translateX(3px);
}

/* The detail rows (Reunión Confidencial / Presentación del Modelo…) —
   icons warm to emerald as the card is engaged */
.careers-icon {
  transition: color .45s var(--ar-ease);
}
.careers-item:hover .careers-icon {
  color: var(--ar-emerald) !important;
}
.careers-details-wrapper {
  transition: color .45s var(--ar-ease);
}

/* ============================================================
   6. Respect reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .careers-item,
  .text-points-container,
  ._3-column-grid-image,
  .our-office-image,
  .arrow-black,
  .careers-link-icon {
    transition: none !important;
  }
  .careers-item:hover,
  .text-points-container:hover,
  ._3-column-grid-image-wrapper:hover ._3-column-grid-image,
  .our-office-slider:hover .our-office-image {
    transform: none !important;
  }
}
