/* Guarda y Custodia 2026 — ciclo de vida documental, físico y digital */
.service-page--guarda {
  --guarda-black: #0b0c0c;
  --guarda-yellow: #ffd400;
  --guarda-paper: #f2f1ec;
  --guarda-grey: #5b5c58;
  background: var(--guarda-paper);
}

/* Hero */
.service-page--guarda .guarda-hero {
  min-height: 780px;
  align-items: center;
  background-position: center 46%;
}

.service-page--guarda .guarda-hero::before {
  background:
    linear-gradient(90deg, rgb(6 7 8 / 84%) 0%, rgb(8 9 10 / 54%) 46%, rgb(8 9 10 / 16%) 78%, rgb(8 9 10 / 6%) 100%),
    linear-gradient(0deg, rgb(0 0 0 / 38%) 0%, transparent 56%);
}

.service-page--guarda .service-hero__inner {
  padding-top: 154px;
  padding-bottom: 80px;
}

.service-page--guarda .guarda-hero__copy {
  max-width: 700px;
  padding: clamp(30px, 3.4vw, 46px);
  background: #fff;
  border-top: 4px solid var(--guarda-yellow);
  box-shadow: 0 28px 80px rgb(0 0 0 / 28%);
}

.service-page--guarda .guarda-hero h1 {
  max-width: 760px;
  color: #111;
  margin-bottom: 26px;
  font-size: clamp(40px, 4.4vw, 66px);
}

.service-page--guarda .guarda-hero p {
  max-width: 680px;
  color: #3f3f3b;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.72;
}

html[lang="en"] .service-page--guarda .guarda-hero h1 {
  max-width: 800px;
  color: #111;
  font-size: clamp(40px, 4.4vw, 66px);
}

.service-page--guarda .service-button {
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.service-page--guarda .service-button:hover,
.service-page--guarda .service-button:focus-visible { transform: translateY(-2px); }

/* Títulos compartidos */
.guarda-intro h2,
.guarda-lifecycle h2,
.guarda-expertise h2,
.guarda-hire h2,
.guarda-contact h2 {
  margin: 0 0 34px;
  font-family: "HP Simplified", sans-serif;
  font-size: clamp(43px, 5vw, 68px);
  line-height: .96;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.guarda-intro h2::after,
.guarda-lifecycle h2::after,
.guarda-expertise h2::after,
.guarda-hire h2::after {
  content: "";
  width: 58px;
  height: 4px;
  display: block;
  margin-top: 22px;
  background: var(--guarda-yellow);
}

/* Intro — split asimétrico con fotografía a sangre */
.guarda-intro {
  padding: 116px 0;
  overflow: hidden;
  background: #fff;
}

.guarda-intro__layout {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  align-items: stretch;
  min-height: 560px;
}

.guarda-intro__copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: clamp(60px, 6vw, 96px) clamp(40px, 4vw, 64px) clamp(60px, 6vw, 96px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.guarda-intro h2 {
  max-width: 640px;
  margin-bottom: 0;
  font-size: clamp(46px, 4vw, 62px);
  line-height: .9;
}

.guarda-intro__copy p {
  max-width: 430px;
  margin: 30px 0 0;
  color: var(--guarda-grey);
  font-size: 18px;
  line-height: 1.55;
}

.guarda-intro__media {
  position: relative;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  background: #111;
}

.guarda-intro__media img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
  object-fit: cover;
  object-position: 54% center;
}

/* Ciclo de custodia — infografía HTML/CSS */
.guarda-lifecycle {
  padding: 116px 0;
  background: var(--guarda-paper);
}

.guarda-lifecycle h2 { max-width: 820px; margin-bottom: 54px; }

.guarda-lifecycle__flow {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.guarda-stage {
  position: relative;
  min-height: 300px;
  padding: clamp(28px, 2.8vw, 40px);
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 24px;
  border: 1px solid #d5d4cd;
  background: #fff;
}

.guarda-stage:nth-child(2) {
  border-color: var(--guarda-yellow);
  background: var(--guarda-yellow);
}

.guarda-stage:nth-child(3) {
  border-color: var(--guarda-black);
  background: var(--guarda-black);
  color: #fff;
}

/* Chevron conector entre etapas */
.guarda-stage::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -12px;
  z-index: 2;
  width: 11px;
  height: 11px;
  border-top: 2px solid #111;
  border-right: 2px solid #111;
  transform: translateY(-50%) rotate(45deg);
}

.guarda-stage:last-child::after { content: none; }

.guarda-stage__icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 2px solid #111;
  background: var(--guarda-yellow);
}

.guarda-stage:nth-child(2) .guarda-stage__icon { background: #fff; }

.guarda-stage:nth-child(3) .guarda-stage__icon {
  border-color: var(--guarda-yellow);
  background: transparent;
}

.guarda-stage__icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #111;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guarda-stage:nth-child(3) .guarda-stage__icon svg { stroke: var(--guarda-yellow); }

.guarda-stage__step {
  font-family: "HP Simplified", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--guarda-grey);
}

.guarda-stage:nth-child(2) .guarda-stage__step { color: #4a4322; }
.guarda-stage:nth-child(3) .guarda-stage__step { color: var(--guarda-yellow); }

.guarda-stage__name {
  align-self: end;
  font-family: "HP Simplified", sans-serif;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1;
  text-transform: uppercase;
}

/* Todo en su lugar, siempre — sección oscura */
.guarda-expertise {
  padding: 116px 0;
  overflow: hidden;
  background: var(--guarda-black);
  color: #fff;
}

.guarda-expertise > .shell > h2 {
  max-width: 920px;
  margin-bottom: 58px;
}

.guarda-expertise__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  align-items: stretch;
}

.guarda-expertise__media {
  position: relative;
  min-height: 650px;
  margin: 0;
  overflow: hidden;
}

.guarda-expertise__media img {
  width: 100%;
  height: 100%;
  min-height: 650px;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(.9) contrast(1.05);
}

.guarda-expertise__copy {
  display: grid;
  grid-template-rows: auto 1fr 1fr;
  background: var(--guarda-paper);
  color: #111;
}

.guarda-expertise__block {
  padding: clamp(32px, 3.4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid #111;
}

.guarda-expertise__block:first-child { background: var(--guarda-yellow); }
.guarda-expertise__block:last-child { border-bottom: 0; }

.guarda-expertise__block p {
  max-width: 560px;
  margin: 0;
  color: #343532;
  font-size: 16px;
  line-height: 1.78;
}

.guarda-expertise__block:first-child p {
  color: #111;
  font-family: "HP Simplified", sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.18;
}

/* Contratar servicio */
.guarda-hire {
  padding: 116px 0;
  background: #fff;
}

.guarda-hire h2 { margin-bottom: 40px; }

.guarda-hire__lead {
  max-width: 620px;
  margin: 0 0 54px;
  font-family: "HP Simplified", sans-serif;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  text-transform: uppercase;
}

.guarda-hire__grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.guarda-benefit {
  min-height: 268px;
  padding: clamp(28px, 3vw, 42px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 26px;
  border: 1px solid #d5d4cd;
  background: var(--guarda-paper);
}

.guarda-benefit:nth-child(2),
.guarda-benefit:nth-child(6) {
  border-color: var(--guarda-yellow);
  background: var(--guarda-yellow);
}

.guarda-benefit:nth-child(4) {
  border-color: var(--guarda-black);
  background: var(--guarda-black);
  color: #fff;
}

.guarda-benefit:last-child {
  grid-column: 1 / -1;
  min-height: 0;
  grid-template-rows: auto;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 34px;
}

.guarda-benefit__icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 2px solid #111;
  background: var(--guarda-yellow);
}

.guarda-benefit:nth-child(2) .guarda-benefit__icon,
.guarda-benefit:nth-child(6) .guarda-benefit__icon { background: #fff; }

.guarda-benefit:nth-child(4) .guarda-benefit__icon {
  border-color: var(--guarda-yellow);
  background: transparent;
}

.guarda-benefit__icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: #111;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guarda-benefit:nth-child(4) .guarda-benefit__icon svg { stroke: var(--guarda-yellow); }

.guarda-benefit p {
  align-self: start;
  margin: 0;
  color: #343532;
  font-size: 16px;
  line-height: 1.78;
}

.guarda-benefit:nth-child(2) p,
.guarda-benefit:nth-child(6) p { color: #111; }
.guarda-benefit:nth-child(4) p { color: rgb(255 255 255 / 82%); }
.guarda-benefit:nth-child(4) strong { color: #fff; }

.guarda-benefit:last-child p {
  align-self: center;
  max-width: 780px;
  font-family: "HP Simplified", sans-serif;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.25;
  text-transform: uppercase;
}

/* Contacto */
.guarda-contact {
  padding: 116px 0;
  background: var(--guarda-yellow);
  color: #111;
}

.guarda-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(48px, 6vw, 82px);
}

.guarda-contact__intro { min-width: 0; }

.guarda-contact__intro h2 {
  max-width: 100%;
  font-size: clamp(48px, 4vw, 64px);
}

.guarda-contact__intro p {
  max-width: 500px;
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.8;
}

.guarda-contact__phone {
  display: inline-flex;
  font-family: "HP Simplified", sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
}

.guarda-form {
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  background: #fff;
  border: 1px solid rgb(0 0 0 / 24%);
  box-shadow: 0 26px 70px rgb(0 0 0 / 18%);
}

.guarda-form__trap { display: none; }

.guarda-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.guarda-form__field--wide { grid-column: 1 / -1; }

.guarda-form__field label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.guarda-form__field input,
.guarda-form__field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #b8b8b3;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #111;
  font: inherit;
}

.guarda-form__field input { height: 48px; }
.guarda-form__field textarea { height: 116px; padding-top: 12px; resize: vertical; }
.guarda-form__field input:focus,
.guarda-form__field textarea:focus { border-bottom-color: #111; }

.guarda-form__captcha {
  min-height: 70px;
  padding: 12px 15px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #d2d2cd;
  background: #f6f6f3;
}

.guarda-form__captcha-check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #111;
  font-weight: 800;
}

.guarda-form__captcha strong,
.guarda-form__captcha small { display: block; }
.guarda-form__captcha strong { font-size: 11px; }
.guarda-form__captcha small { margin-top: 2px; color: #676762; font-size: 10px; }
.guarda-form__captcha svg { width: 24px; fill: none; stroke: #111; stroke-width: 1.7; }

.guarda-form__submit {
  min-height: 54px;
  border: 2px solid #111;
  background: #111;
  color: #fff;
  cursor: pointer;
  font-family: "HP Simplified", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease;
}

.guarda-form__submit:hover,
.guarda-form__submit:focus-visible { background: var(--guarda-yellow); color: #111; }

.service-page--guarda :focus-visible {
  outline: 2px solid var(--guarda-yellow);
  outline-offset: 4px;
}

.service-page--guarda .guarda-contact :focus-visible { outline-color: #111; }

@media (max-width: 1080px) {
  .service-page--guarda .guarda-hero { min-height: 720px; }
  .guarda-intro,
  .guarda-lifecycle,
  .guarda-expertise,
  .guarda-hire,
  .guarda-contact { padding: 92px 0; }
  .guarda-intro__layout,
  .guarda-expertise__stage,
  .guarda-contact__grid { grid-template-columns: 1fr; }
  .guarda-intro__layout { min-height: auto; }
  .guarda-intro__copy { padding: 0 0 58px; }
  .guarda-intro__media,
  .guarda-intro__media img { min-height: 520px; }
  .guarda-lifecycle__flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guarda-stage { min-height: 260px; }
  .guarda-stage:nth-child(2)::after { content: none; }
  .guarda-expertise__media,
  .guarda-expertise__media img { min-height: 560px; }
  .guarda-hire__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guarda-benefit { min-height: 230px; }
  .guarda-contact__grid { gap: 48px; }
  .guarda-contact__grid { grid-template-columns: 1fr; }
  .guarda-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .service-page--guarda .guarda-hero {
    min-height: 720px;
    align-items: flex-end;
    background-position: 66% center;
  }
  .service-page--guarda .guarda-hero::before {
    background: linear-gradient(0deg, rgb(6 6 5 / 90%) 0%, rgb(8 8 7 / 60%) 56%, rgb(8 8 7 / 20%) 100%);
  }
  .service-page--guarda .service-hero__inner { padding-top: 118px; padding-bottom: 38px; }
  .service-page--guarda .guarda-hero__copy {
    padding: 28px 22px 30px;
    background: #fff;
    border-top-width: 3px;
  }
  .service-page--guarda .guarda-hero h1,
  html[lang="en"] .service-page--guarda .guarda-hero h1 { font-size: clamp(40px, 4.4vw, 66px); }
  .service-page--guarda .guarda-hero p { font-size: 14px; line-height: 1.62; }
  .service-page--guarda .service-hero__actions { gap: 9px; }
  .service-page--guarda .service-button { padding-inline: 14px; font-size: 11px; }

  .guarda-intro,
  .guarda-lifecycle,
  .guarda-expertise,
  .guarda-hire,
  .guarda-contact { padding: 76px 0; }
  .guarda-intro__copy { padding: 0 0 48px; }
  .guarda-intro h2,
  .guarda-lifecycle h2,
  .guarda-expertise h2,
  .guarda-hire h2,
  .guarda-contact h2 { font-size: 43px; margin-bottom: 28px; }
  .guarda-intro__copy p { margin-top: 22px; font-size: 16px; }
  .guarda-intro__media,
  .guarda-intro__media img { min-height: 360px; }

  .guarda-lifecycle h2 { margin-bottom: 38px; }
  .guarda-hire h2 { margin-bottom: 30px; }
  .guarda-hire__lead { margin-bottom: 38px; font-size: 22px; }
  .guarda-lifecycle__flow { grid-template-columns: 1fr; }
  .guarda-stage { min-height: 0; padding: 28px 22px; gap: 20px; }
  .guarda-stage::after { content: none; }

  .guarda-expertise > .shell > h2 { margin-bottom: 38px; }
  .guarda-expertise__media,
  .guarda-expertise__media img { min-height: 360px; }
  .guarda-expertise__block { padding: 32px 22px; }
  .guarda-expertise__block p { font-size: 15px; }

  .guarda-hire__grid { grid-template-columns: 1fr; }
  .guarda-benefit { min-height: 0; padding: 28px 22px; gap: 22px; }
  .guarda-benefit p { font-size: 15px; line-height: 1.72; }
  .guarda-benefit:last-child { grid-template-columns: 1fr; gap: 22px; }
  .guarda-benefit:last-child p { font-size: 20px; }

  .guarda-contact__grid { gap: 42px; }
  .guarda-form { padding: 25px 20px; grid-template-columns: 1fr; }
  .guarda-form__field--wide { grid-column: auto; }
  .guarda-form__captcha { grid-template-columns: auto 1fr; }
  .guarda-form__captcha svg { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .service-page--guarda .service-button,
  .guarda-form__submit { transition: none; }
}
