/* Servicios · fase servicios / ajustes locales sin tocar global.css */
.page-hero .narrow {
  width: min(1080px, var(--container));
}

.page-hero h1 {
  max-width: 1060px;
  font-size: clamp(32px, 3.75vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.page-hero p {
  max-width: 800px;
  font-size: clamp(16px, 1.28vw, 18px);
  line-height: 1.76;
  text-align: justify;
  text-align-last: center;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: break-word;
}

.services-section {
  padding-top: clamp(54px, 6.6vw, 84px);
}

.service-rows {
  display: grid;
  gap: clamp(24px, 3vw, 34px);
}

/* Encabezados editoriales de cada bloque · patrón visual homologado con “Qué es” y Metodología. */
.services-group-head {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(380px, .72fr);
  column-gap: clamp(42px, 6.4vw, 98px);
  row-gap: 12px;
  align-items: end;
  width: 100%;
  margin: 0 0 clamp(12px, 1.8vw, 20px);
  padding: clamp(30px, 3.6vw, 44px) 0 0;
  text-align: left;
  border-top: 0;
}

.services-group-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, rgba(184, 115, 51, .82), transparent);
  box-shadow: 0 0 12px rgba(184, 115, 51, .14);
  pointer-events: none;
}

.services-group-head::after {
  content: none;
  display: none;
}

.services-group-head .eyebrow {
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: fit-content;
  max-width: none;
  margin: 0 0 16px;
  padding-left: 0;
  line-height: 1.35;
}

.services-group-head h2 {
  grid-column: 1;
  grid-row: 2;
  max-width: 760px;
  margin: 0;
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--color-brown);
  font-size: clamp(30px, 3.25vw, 45px);
  line-height: 1.12;
  letter-spacing: -0.024em;
}

.services-group-head p {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 640px;
  margin: 0 0 6px;
  padding: clamp(6px, .7vw, 12px) 0 0 22px;
  border-left: 1px solid rgba(184, 115, 51, .30);
  color: var(--color-text);
  font-size: clamp(15px, 1.04vw, 16px);
  line-height: 1.84;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: break-word;
  word-spacing: .01em;
}

.services-group-head-complementary {
  margin-top: clamp(18px, 3.3vw, 42px);
  border-top-color: transparent;
}

.services-group-head-complementary::before {
  background: linear-gradient(90deg, rgba(184, 115, 51, .82), transparent);
}

.service-row-complementary {
  background:
    linear-gradient(180deg, rgba(184, 115, 51, .045), rgba(255, 253, 251, .96)),
    var(--color-surface);
  border-color: rgba(184, 115, 51, .24);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  padding: clamp(22px, 2.6vw, 34px);
  transition: opacity .48s ease, transform .56s ease, box-shadow .24s ease, border-color .24s ease, background-color .24s ease;
}

.service-row.reverse {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
}

.service-row.reverse .service-photo {
  order: 2;
}

.service-row.reverse .prose {
  order: 1;
}

.service-row:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 115, 51, .34);
  box-shadow: 0 22px 48px rgba(74, 52, 40, .13);
  background: linear-gradient(180deg, #fffdfb, #fff9f4);
}


.service-row::after {
  top: 18px;
  right: 18px;
  width: 58px;
  height: 36px;
  border-top: 1px solid rgba(184, 115, 51, .20);
  border-right: 1px solid rgba(184, 115, 51, .13);
  opacity: .50;
  transition: opacity .24s ease, transform .24s ease, border-color .24s ease;
}

.service-row:hover::after {
  opacity: .86;
  transform: translate(-2px, 2px);
}

.service-row .number {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: rgba(184, 115, 51, .92);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .16em;
  line-height: 1;
  margin-bottom: 14px;
}

.service-row .number::after {
  content: none;
  display: none;
}

.service-row h3 {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.016em;
  margin-bottom: 14px;
}

.service-row .prose p {
  max-width: 720px;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: break-word;
  word-spacing: normal;
}

.service-row .prose p:last-child {
  margin-bottom: 0;
}

/* Imágenes reales con marco premium homologado, sin hover propio ni recortes agresivos. */
.service-photo {
  position: relative;
  align-self: center;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  padding: clamp(8px, .95vw, 12px);
  background:
    linear-gradient(135deg, rgba(245, 196, 130, .22), transparent 32%, rgba(74, 52, 40, .18) 100%),
    linear-gradient(180deg, #2b1a12 0%, #130b08 100%);
  border: 1px solid rgba(184, 115, 51, .34);
  box-shadow:
    0 26px 58px rgba(74, 52, 40, .18),
    0 10px 24px rgba(74, 52, 40, .10),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  isolation: isolate;
}



.service-visual-panel::before {
  content: "";
  position: absolute;
  inset: clamp(16px, 1.45vw, 22px);
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(245, 196, 130, .26);
  box-shadow:
    inset 0 0 0 1px rgba(20, 11, 7, .20),
    0 0 26px rgba(232, 176, 111, .08);
  opacity: .72;
}

.service-visual-panel::after {
  content: none;
  display: none;
}

.service-row:hover .service-photo,
.service-photo:hover,
.service-photo:focus-within {
  transform: none;
  border-color: rgba(184, 115, 51, .34);
  box-shadow:
    0 26px 58px rgba(74, 52, 40, .18),
    0 10px 24px rgba(74, 52, 40, .10),
    inset 0 1px 0 rgba(255, 255, 255, .14);
}

.service-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  margin: 0 auto;
  border: 1px solid rgba(245, 196, 130, .18);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
  filter: saturate(.98) contrast(1.02) brightness(.98);
  transform: none;
  transition: none;
}

.service-row:hover .service-photo img,
.service-photo:hover img,
.service-photo:focus-within img {
  transform: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .18);
  filter: saturate(.98) contrast(1.02) brightness(.98);
}

.services-final-cta {
  background: linear-gradient(180deg, rgba(184, 115, 51, .06), rgba(184, 115, 51, .02));
  color: var(--color-text);
}

.services-final-cta .narrow {
  max-width: 900px;
}

.services-final-cta h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.018em;
  margin: 0 auto 18px;
  color: var(--color-brown);
}

.services-final-cta p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text);
  text-align: justify;
  text-align-last: center;
  text-justify: inter-word;
  hyphens: none;
  overflow-wrap: break-word;
}

.services-final-cta .btn {
  margin-top: 8px;
}

.services-final-cta .btn-secondary {
  background: rgba(184, 115, 51, .08);
  color: var(--color-brown);
  border-color: rgba(184, 115, 51, .48);
  box-shadow: none;
}

.services-final-cta .btn-secondary:hover {
  background: var(--color-copper);
  color: var(--color-white);
  border-color: var(--color-copper);
  box-shadow: 0 14px 30px rgba(184, 115, 51, .22);
}


@media (max-width: 1080px) {
  .services-group-head {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }

  .services-group-head .eyebrow,
  .services-group-head h2,
  .services-group-head p {
    grid-column: 1;
    grid-row: auto;
    max-width: 780px;
  }

  .services-group-head .eyebrow,
  .services-group-head h2 {
    padding-left: 0;
  }

  .services-group-head p {
    margin-top: 4px;
  }
}

@media (max-width: 920px) {
  .services-group-head {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding-left: 0;
  }

  .services-group-head .eyebrow,
  .services-group-head h2,
  .services-group-head p {
    grid-column: 1;
    grid-row: auto;
    max-width: 780px;
  }

  .services-group-head .eyebrow,
  .services-group-head h2 {
    padding-left: 0;
  }

  .service-row,
  .service-row.reverse {
    grid-template-columns: 1fr;
  }

  .service-row.reverse .service-photo,
  .service-row.reverse .prose {
    order: initial;
  }

  .service-photo {
    width: 100%;
    max-width: 560px;
    justify-self: center;
  }
}

@media (max-width: 680px) {
  .page-hero h1 {
    font-size: clamp(30px, 9vw, 40px);
  }

  .page-hero p {
    text-align: center;
    text-align-last: center;
  }

  .services-group-head {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .services-group-head h2 {
    font-size: clamp(25px, 7.4vw, 34px);
  }

  .services-group-head p,
  .service-row .prose p {
    text-align: left;
    text-align-last: left;
    hyphens: none;
  }

  .service-row {
    padding: 22px;
  }

  .service-row .number {
    justify-content: flex-start;
  }

  .service-row h3 {
    font-size: clamp(24px, 7.6vw, 32px);
  }

  .service-photo {
    max-width: 100%;
    padding: clamp(7px, 2.8vw, 10px);
  }

  .service-visual-panel::before {
    inset: 13px;
  }

  .services-final-cta p {
    text-align: center;
    text-align-last: center;
  }

  .services-final-cta .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .service-row {
    padding: 18px;
  }

  .service-photo {
    padding: 7px;
  }

  .service-visual-panel::before {
    inset: 11px;
  }
}