.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--color-white);
  background: var(--color-navy-950);
}

.home-desktop-visual { display: none; }

.home-hero__media {
  position: relative;
  z-index: 0;
  width: 100%;
  aspect-ratio: 4 / 5;
  background-color: var(--color-navy-950);
  background-image: url("../images/sie/home-hero-operacion-hidrometrica-mobile.webp");
  background-position: 50% 65%;
  background-size: cover;
  background-repeat: no-repeat;
}

.home-hero__mobile-slide { display: none; }

.home-hero__media::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(0 26 54 / 0%) 70%, rgb(0 26 54 / 12%) 100%),
    linear-gradient(180deg, rgb(0 26 54 / 38%) 0%, rgb(0 26 54 / 18%) 28%, rgb(0 26 54 / 0%) 52%);
  content: "";
}

@media (max-width: 63.99rem) {
  .home-hero__media { background-image: none; }

  .home-hero__mobile-slide {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity var(--hero-fade-duration, 1100ms) cubic-bezier(0.4, 0, 0.2, 1);
  }

  .home-hero__mobile-slide.is-exiting { z-index: 1; }

  .home-hero__mobile-slide.is-active {
    z-index: 2;
    opacity: 1;
  }

  .home-hero__mobile-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home-hero__mobile-image--embarcacion { object-position: 50% 65%; }
  .home-hero__mobile-image--uas { object-position: 50% 50%; }
  .home-hero__mobile-image--escaner { object-position: 52% 48%; }

  .home-hero__media::before { z-index: 3; }

}

/* Home only: the photographic hero is the sole source of the trigger's size. */
[data-home-agent] .ai-agent { width: 4rem; }
[data-home-agent] .ai-agent__trigger {
  display: grid;
  place-items: center;
  gap: 0;
  width: 4rem;
  min-width: 4rem;
  height: 4rem;
  min-height: 4rem;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-cyan-500), #007ca7);
}
[data-home-agent] .ai-agent__text { display: none; }
[data-home-agent] .ai-agent__icon { width: 2.8rem; height: 2.8rem; padding: 0; background: transparent; }
[data-home-agent="expanded"] .ai-agent { width: min(21rem, calc(100vw - 2rem)); }
[data-home-agent="expanded"] .ai-agent__trigger {
  display: flex;
  gap: 1.1rem;
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 5rem;
  padding: .6rem .65rem .6rem 1.5rem;
  border-radius: 999px;
  background: rgb(0 26 54 / 94%);
}
[data-home-agent="expanded"] .ai-agent__text { display: grid; flex: 1 1 auto; min-width: 0; gap: .2rem; text-align: left; }
[data-home-agent="expanded"] .ai-agent__text strong { font-size: 1rem; }
[data-home-agent="expanded"] .ai-agent__text span { color: rgb(255 255 255 / 82%); font-size: .88rem; }
[data-home-agent="expanded"] .ai-agent__icon { flex: 0 0 auto; width: 3.8rem; height: 3.8rem; padding: .3rem; background: var(--color-cyan-500); }

@media (min-width: 48rem) {
  .home-hero__media {
    aspect-ratio: 16 / 9;
    background-image: url("../images/sie/home-hero-operacion-hidrometrica.webp");
    background-position: 58% 70%;
  }

  .home-hero__media::before {
    background:
      linear-gradient(180deg, rgb(0 26 54 / 0%) 58%, rgb(0 26 54 / 14%) 100%),
      linear-gradient(90deg, rgb(0 26 54 / 14%) 0%, rgb(0 26 54 / 4%) 48%, rgb(0 26 54 / 0%) 72%);
  }

}

@media (min-width: 75rem) {
  .home-hero {
    min-height: calc(100vh - var(--header-height-desktop));
    padding-top: 0;
  }

  .home-hero__media {
    position: absolute;
    inset: 0;
    width: auto;
    aspect-ratio: auto;
    min-height: 100%;
    background-position: left 76%;
    background-size: 110% auto;
  }

  .home-hero__media::before {
    background:
      linear-gradient(180deg, rgb(0 26 54 / 0%) 68%, rgb(0 26 54 / 28%) 100%),
      linear-gradient(90deg, rgb(0 26 54 / 97%) 0%, rgb(0 26 54 / 95%) 42%, rgb(0 26 54 / 76%) 51%, rgb(0 26 54 / 36%) 62%, rgb(0 26 54 / 7%) 72%, rgb(0 26 54 / 0%) 100%);
  }

}

@media (min-width: 64rem) {
  html { scroll-behavior: smooth; }

  .home-desktop-visual {
    position: relative;
    isolation: isolate;
    display: block;
    height: clamp(460px, 68vh, 680px);
    overflow: hidden;
    background: var(--color-navy-950);
  }

  .home-desktop-visual::after {
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    height: 32%;
    content: "";
    background: linear-gradient(180deg, transparent, rgb(0 18 38 / 58%));
    pointer-events: none;
  }

  .home-desktop-visual__slide {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    opacity: 0;
    transition: opacity var(--hero-fade-duration, 1100ms) cubic-bezier(0.4, 0, 0.2, 1);
  }

  .home-desktop-visual__slide.is-exiting { z-index: 1; }

  .home-desktop-visual__slide.is-active {
    z-index: 2;
    opacity: 1;
  }

  .home-desktop-visual__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .home-desktop-visual__image--hidrometria { object-position: 50% 58%; }
  .home-desktop-visual__image--topografia { object-position: 50% 42%; }
  .home-desktop-visual__image--gnss { object-position: 50% 25%; }

  .home-hero {
    min-height: 0;
    color: #fff;
    background:
      radial-gradient(circle at 12% 20%, rgb(8 185 232 / 12%), transparent 34rem),
      linear-gradient(135deg, var(--color-navy-950), var(--color-navy-900));
    scroll-margin-top: var(--header-height-desktop);
  }

  .home-hero::before { content: none; }
  .home-hero__media { display: none; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .home-desktop-visual__slide { transition: none; }
  .home-hero__mobile-slide { transition: none; }
}

/* Home's two editorial gateways. Selectors are exclusive to this block. */
.home-pillars { background: #001a36; color: #fff; }
.home-pillars__inner { max-width: var(--content-max-width); margin-inline: auto; padding: clamp(2.5rem, 4.5vw, 4.5rem) var(--space-page); }
.home-pillars__intro { margin-block: 0 1.5rem; }
.home-pillars__intro h1 { margin: 0; font-size: clamp(1.8rem, 2.7vw, 3rem); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.home-pillars__intro h1 span { color: #17c9f3; }
.home-pillars__grid { display: grid; gap: 1.5rem; }
.home-pillar { --pillar-accent: #74ddff; display: grid; grid-template-areas: "eyebrow" "title" "copy" "art" "cta"; gap: 1.15rem; position: relative; min-width: 0; padding: clamp(1.25rem, 2.1vw, 2.25rem); border: 1px solid #226080; border-radius: 1.1rem; background: #002443; color: #fff; text-decoration: none; transition: transform 220ms ease, border-color 220ms ease; }
.home-pillar--certified { --pillar-accent: #007da3; border-color: #d8e9ef; background: #f4f9fc; color: #001a36; }
.home-pillar__eyebrow { grid-area: eyebrow; margin: 0; padding-bottom: 1rem; border-bottom: 1px solid #3784a54d; color: var(--pillar-accent); font-size: .68rem; font-weight: 650; letter-spacing: .12em; line-height: 1.6; }
.home-pillar h2 { grid-area: title; margin: 0; font-size: clamp(1.65rem, 2.15vw, 2.3rem); font-weight: 600; line-height: 1.16; letter-spacing: -.035em; }
.home-pillar__description { grid-area: copy; margin: 0; color: #c5d9e7; font-size: .94rem; line-height: 1.6; }
.home-pillar--certified .home-pillar__description { color: #496074; }
.home-pillar__cta { grid-area: cta; display: flex; align-items: center; justify-content: space-between; align-self: end; gap: 1rem; min-height: 3.25rem; padding: .8rem 1rem; border-radius: .35rem; background: #dff6ff; color: #001a36; font-weight: 650; font-size: .9rem; line-height: 1.4; }
.home-pillar--certified .home-pillar__cta { background: #002443; color: #fff; }
.home-pillar__cta > span { font-size: 1.4rem; line-height: 1; }
.home-pillar:focus-visible { outline: 3px solid #74ddff; outline-offset: 5px; }
@media (min-width: 40rem) {
  .home-pillar { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "eyebrow eyebrow" "title art" "copy art" "cta cta"; grid-template-rows: auto auto 1fr auto; column-gap: 1.25rem; }
}
@media (min-width: 64rem) {
  .home-pillars__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-pillar:hover { transform: translateY(-3px); border-color: #17c9f3; }
}
@media (prefers-reduced-motion: reduce) {
  .home-pillar { transition: none; }
}

.home-light-sections {
  background:
    radial-gradient(circle at 4% 16%, rgb(16 168 212 / 8%) 0%, rgb(16 168 212 / 3.5%) 22%, transparent 46%),
    radial-gradient(circle at 96% 43%, rgb(0 127 168 / 6.5%) 0%, rgb(0 127 168 / 2.5%) 25%, transparent 48%),
    radial-gradient(circle at 18% 82%, rgb(2 43 73 / 3.5%) 0%, transparent 42%),
    linear-gradient(180deg, #fbfdff 0%, #f7fbfe 48%, #fff 100%);
}

.home-team { background: #fbfcfd; color: var(--color-navy-950); }
.home-team__inner, .home-culture__inner {
  width: min(100%, 90rem);
  margin-inline: auto;
  padding: clamp(4.5rem, 7.5vw, 8rem) max(var(--space-page), 5.5vw);
}
.home-team__inner { width: min(100%, var(--content-max-width)); padding: clamp(3rem, 4.5vw, 5rem) var(--space-page); }
.home-team__header { max-width: 76rem; margin: 0 auto; text-align: center; }
.home-people-eyebrow { margin: 0 0 1.5rem; font-size: .75rem; font-weight: 700; letter-spacing: .2em; line-height: 1.6; }
.home-team .home-people-eyebrow { margin-bottom: 1rem; color: #007c9f; font-size: clamp(.85rem, 1vw, 1rem); letter-spacing: .16em; }
.home-team h2, .home-culture h2 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.6rem); font-weight: 600; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.home-team h2 { font-size: clamp(2.15rem, 4.2vw, 4.4rem); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
.home-team__intro { max-width: 60rem; margin: 1.25rem auto 0; color: #465c6e; font-size: clamp(1.08rem, 1.45vw, 1.3rem); line-height: 1.7; }
.home-team__photo { margin: clamp(1.75rem, 2.5vw, 2.5rem) auto 0; max-width: 88rem; }
.home-team__photo img { display: block; width: 100%; height: auto; border-radius: .8rem; box-shadow: 0 1rem 3rem rgb(0 26 54 / 7%); }
.home-team__support { max-width: 56rem; margin: clamp(1.5rem, 2vw, 2rem) auto 0; text-align: center; }
.home-team__support p { color: #465c6e; font-size: clamp(1.08rem, 1.35vw, 1.25rem); line-height: 1.7; margin: 0; }
.home-team .home-team__cta { gap: .75rem; margin-top: 1.5rem; }

.home-culture__controls button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 5px; }
.home-culture { background: linear-gradient(125deg, #001a36, #002e4d); color: #fff; }
.home-culture__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: center; }
.home-culture .home-people-eyebrow, .home-culture h2 span { color: #74ddff; }
.home-culture h2 { font-size: clamp(2rem, 3.1vw, 3.15rem); }
.home-culture__content > p:not(.home-people-eyebrow) { margin: 1.75rem 0 0; color: #d1dde7; font-size: 1.05rem; line-height: 1.85; }
.home-culture__highlights { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; padding: 1.75rem 0; margin: 1.75rem 0; border-block: 1px solid rgb(116 221 255 / 20%); }
.home-culture__highlights li { padding-left: .8rem; border-left: 2px solid #17c9f3; font-size: .85rem; line-height: 1.6; }
.home-culture__carousel { min-width: 0; width: 100%; max-width: 36rem; margin-inline: auto; }
.home-culture__slides { display: grid; }
.home-culture__slide { grid-area: 1 / 1; min-width: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 550ms ease, visibility 550ms; }
.home-culture__slide.is-active { opacity: 1; visibility: visible; }
.home-culture__slide img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; border-radius: .75rem; background: #002443; }
.home-culture__slide figcaption { margin-top: 1.25rem; color: #c7dce9; font-size: .85rem; line-height: 1.6; }
.home-culture__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; }
.home-culture__controls[hidden] { display: none; }
.home-culture__controls button { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid #52768e; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font: inherit; font-size: 1.2rem; }
.home-culture__controls button:hover { background: #0a405f; }
.home-culture__dots { display: flex; gap: .15rem; }
.home-culture__dots button { border: 0; }
.home-culture__dots button::after { content: ''; width: .4rem; height: .4rem; border-radius: 50%; background: #68899f; }
.home-culture__dots button[aria-current]::after { width: 1.35rem; border-radius: 1rem; background: #74ddff; }
@media (max-width: 63.99rem) {
  .home-culture__inner { grid-template-columns: 1fr; gap: 3rem; }
  .home-culture__content { max-width: 40rem; margin-inline: auto; }
  .home-culture__inner { padding-inline: max(var(--space-page), 5.5vw); }
}
@media (max-width: 35rem) {
  .home-team h2 br { display: none; }
  .home-culture__content > p:not(.home-people-eyebrow) { font-size: 1rem; }
  .home-culture__highlights { gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {

.home-culture__slide { transition: none; }
}

/* Home people sections: editorial spacing and photographic gallery. */
.home-team, .home-culture { position: relative; isolation: isolate; }
.home-team::before, .home-culture::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url('../images/decor/sie-topographic-pattern.svg') center / cover no-repeat;
  opacity: .18;
}
.home-team { background: #f5fbfe; }
.home-team__inner { max-width: 88rem; padding-block: clamp(2.75rem, 4vw, 4.25rem); }
.home-team__header { max-width: 62rem; }
.home-team .home-people-eyebrow, .home-culture .home-people-eyebrow { font-size: .85rem; line-height: 1.5; letter-spacing: .15em; margin-bottom: 1.5rem; }
.home-team .home-people-eyebrow::after, .home-culture .home-people-eyebrow::after { content: ''; display: block; width: 3rem; height: 2px; background: #08b9e8; margin-top: .85rem; }
.home-team .home-people-eyebrow::after { margin-inline: auto; }
.home-team h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.14; }
.home-team h2 span { color: #007bb8; }
.home-team__intro { max-width: 51rem; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.65; margin-top: 1.15rem; text-wrap: pretty; }
.home-team__photo { max-width: 78rem; margin-top: 1.6rem; }
.home-team__photo img { aspect-ratio: 2.5 / 1; object-fit: cover; object-position: center bottom; border-radius: 1rem; box-shadow: 0 .5rem 1.5rem rgb(0 26 54 / 6%); }
.home-team__support { max-width: 49rem; margin-top: 0; }
.home-team__support p { font-size: 1rem; line-height: 1.65; }
.home-team .home-team__cta { width: fit-content; max-width: 100%; min-width: 0; min-height: 3.25rem; margin-top: 1.25rem; padding: .75rem 1.9rem; border: 1px solid #005083; border-radius: 3rem; background: linear-gradient(110deg, #006399, #003663); font-size: 1rem; font-weight: 600; gap: 1.2rem; }
.home-team .home-team__cta:hover { background: #002f55; }
.home-culture__inner { width: min(100%, 90rem); padding: clamp(1.75rem, 2.5vw, 2.75rem) var(--space-page); grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 3vw, 3rem); }
.home-culture h2 { font-size: clamp(2rem, 2.8vw, 2.8rem); font-weight: 700; line-height: 1.16; letter-spacing: -.025em; }
.home-culture h2 span { color: #08b9e8; }
.home-culture__content > p:not(.home-people-eyebrow) { font-size: 1rem; line-height: 1.65; margin-top: 1.25rem; text-wrap: pretty; }
.home-culture__highlights { gap: 0 1.25rem; border: 0; margin: 1.5rem 0; padding: 0; }
.home-culture__highlights li { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem 0; border-left: 0; border-bottom: 1px solid rgb(116 221 255 / 20%); }
.home-culture__highlights svg { flex: 0 0 2rem; width: 2rem; height: 2rem; fill: none; stroke: #08b9e8; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.home-culture__highlights strong { display: block; font-size: .9rem; font-weight: 600; line-height: 1.4; }
.home-culture__highlights small { display: block; margin-top: .4rem; color: #b8cbd9; font-size: .78rem; line-height: 1.5; }
.home-culture__carousel { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(5rem, .3fr); gap: .9rem; align-items: start; }
.home-culture__slides { min-width: 0; }
.home-culture__slide { position: relative; overflow: hidden; border-radius: .75rem; }
.home-culture__slide img { aspect-ratio: 3 / 4; }
.home-culture__slide figcaption { position: absolute; inset: auto 0 0; margin: 0; padding: 3.5rem 1.5rem 1.5rem; background: linear-gradient(transparent, rgb(0 15 31 / 88%)); color: white; font-size: clamp(1rem, 1.5vw, 1.3rem); font-weight: 650; line-height: 1.35; }
.home-culture__slide figcaption::after { content: ''; display: block; width: 3rem; height: 2px; margin-top: .85rem; background: #08b9e8; }
.home-culture__thumbnails { display: grid; gap: .75rem; }
.home-culture__thumbnails[hidden] { display: none; }
.home-culture__thumbnails button { display: block; padding: 0; border: 2px solid transparent; border-radius: .6rem; overflow: hidden; background: #002443; cursor: pointer; opacity: .65; transition: opacity 180ms, border-color 180ms; }
.home-culture__thumbnails button[aria-current], .home-culture__thumbnails button:hover { opacity: 1; border-color: #08b9e8; }
.home-culture__thumbnails button:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.home-culture__thumbnails img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1.1; object-fit: cover; }
.home-culture__controls { grid-column: 1 / -1; width: min(100%, 16rem); margin: .2rem auto 0; }
@media (min-width: 64rem) {
  .home-culture__carousel {
    /* Scale the complete 3:4 photograph with the available screen height. */
    max-width: min(44rem, calc(97.5svh - 9rem));
    gap: .6rem;
  }
  .home-culture__thumbnails { gap: .5rem; }
  .home-culture .home-people-eyebrow { margin-bottom: 1rem; }
  .home-culture__highlights { margin-bottom: 0; }
}
@media (max-width: 63.99rem) {
  .home-culture__inner { grid-template-columns: 1fr; gap: 2.25rem; }
  .home-culture__content { max-width: 42rem; }
  .home-culture__carousel { max-width: 42rem; }
  .home-team__photo img { aspect-ratio: 2 / 1; }
}
@media (max-width: 35rem) {
  .home-team__photo img { aspect-ratio: 1.65 / 1; }
  .home-team__support p { font-size: .95rem; }
  .home-culture__carousel { grid-template-columns: 1fr; gap: .75rem; }
  .home-culture__thumbnails { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .home-culture__thumbnails img { aspect-ratio: 1.4 / 1; }
  .home-culture__highlights { column-gap: 1rem; }
  .home-culture__highlights li { gap: .5rem; }
  .home-culture__highlights svg { flex-basis: 1.5rem; width: 1.5rem; height: 1.5rem; }
  .home-culture__slide figcaption { padding: 3rem 1rem 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-culture__thumbnails button { transition: none; }
}

.home-agent-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  color: var(--color-white);
  background: linear-gradient(115deg, var(--color-navy-950), #003763);
}

.home-agent-cta::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/decor/sie-topographic-pattern-mobile.svg") center / cover no-repeat;
  content: "";
  opacity: 0.28;
  pointer-events: none;
}

.home-agent-cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(calc(100% - 3rem), var(--content-max-width));
  margin: 1.5rem auto;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 0.8rem 1.8rem rgb(0 26 54 / 18%);
}

.home-agent-cta__icon {
  width: 4.8rem;
  height: 4.8rem;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--color-white);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.home-agent-cta__content h2 {
  margin: 0;
  font-size: clamp(1.7rem, 6vw, 2.3rem);
  line-height: 1.15;
}

.home-agent-cta__content p {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 3.7vw, 1.15rem);
  line-height: 1.6;
}

.home-agent-cta__button {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.75rem;
  min-height: 3.5rem;
  margin-top: 1rem;
  padding: 0.5rem 0;
  cursor: pointer;
  border: 0;
  border-radius: 0.3rem;
  color: var(--color-white);
  background: transparent;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 650;
}

.home-agent-cta__button:hover { color: var(--color-cyan-400); }

.home-footer {
  position: relative;
  color: var(--color-white);
  background: linear-gradient(115deg, #001a36, #002f55);
  border-top: 1px solid rgb(23 201 243 / 45%);
}

.home-footer__inner {
  display: grid;
  width: min(100%, var(--content-max-width));
  margin-inline: auto;
  padding: 2.2rem var(--space-page) 1.5rem;
}

.home-footer__brand {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgb(23 201 243 / 45%);
}

.home-footer__brand img {
  display: block;
  width: min(100%, 21rem);
  height: auto;
}

.home-footer__contact {
  display: grid;
  order: -1;
}

.home-footer__contact p,
.home-footer__contact a {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 4.4rem;
  margin: 0;
  color: inherit;
  text-decoration: none;
}

.home-footer__contact a { border-top: 1px solid rgb(23 201 243 / 35%); }

.home-footer svg {
  width: 1.8rem;
  height: 1.8rem;
  fill: none;
  stroke: var(--color-cyan-400);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.home-footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-footer__pending {
  display: flex;
  min-height: 4rem;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.45rem;
  border-bottom: 1px solid rgb(23 201 243 / 35%);
  color: rgb(255 255 255 / 78%);
  font-size: clamp(0.82rem, 3.2vw, 0.98rem);
}

.home-footer__pending:nth-child(even) { border-left: 1px solid rgb(23 201 243 / 35%); }
.home-footer__pending:last-child { grid-column: 1 / -1; }
.home-footer__pending small { color: var(--color-cyan-400); font-size: 0.65em; }

.home-footer__legal {
  padding-top: 1.25rem;
  color: rgb(255 255 255 / 76%);
  font-size: clamp(0.78rem, 3vw, 0.92rem);
  line-height: 1.5;
  text-align: center;
}

.home-footer__legal p { margin: 0.35rem 0; }
.home-footer__legal a { color: var(--color-cyan-400); text-underline-offset: 0.2rem; }
.home-footer__legal a:hover { color: var(--color-white); }

@media (min-width: 48rem) {
  .home-agent-cta::before {
    background-image: url("../images/decor/sie-topographic-pattern.svg");
  }

  .home-footer__contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-footer__contact a { border-top: 0; }
}

@media (min-width: 75rem) {

  .home-agent-cta__inner {
    grid-template-columns: 4.5rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    width: min(100%, var(--content-max-width));
    margin: 0 auto;
    padding: 1.5rem var(--space-page);
    border-radius: 0;
    box-shadow: none;
  }

  .home-agent-cta__icon { width: 4rem; height: 4rem; margin: 0; }
  .home-agent-cta__content h2 { font-size: 1.8rem; }
  .home-agent-cta__content p { margin-top: 0.4rem; }
  .home-agent-cta__button { margin: 0; padding-inline: 1rem; }

  .home-footer__inner {
    grid-template-columns: minmax(12rem, 1fr) minmax(22rem, 1.8fr) minmax(0, 3fr);
    grid-template-areas:
      "brand contact nav"
      "legal legal legal";
    align-items: center;
    gap: 1rem 2rem;
    padding-block: 1.7rem 1.1rem;
  }

  .home-footer__brand {
    grid-area: brand;
    min-width: 0;
    justify-content: flex-start;
    padding: 0;
    border: 0;
  }

  .home-footer__brand img {
    width: 100%;
    max-width: 17rem;
    height: auto;
  }
  .home-footer__contact { grid-area: contact; order: initial; }

  .home-footer__contact p,
  .home-footer__contact a {
    grid-template-columns: 1.6rem minmax(0, 1fr);
    gap: 0.55rem;
    min-height: 3rem;
    font-size: 0.9rem;
  }

  .home-footer__nav {
    grid-area: nav;
    display: flex;
    justify-content: flex-end;
  }

  .home-footer__pending,
  .home-footer__pending:last-child {
    display: flex;
    min-height: 3rem;
    grid-column: auto;
    padding: 0.45rem 0.7rem;
    border-bottom: 0;
    border-left: 1px solid var(--color-cyan-500);
    font-size: clamp(0.72rem, 0.78vw, 0.88rem);
    white-space: nowrap;
  }

  .home-footer__pending small { display: none; }

  .home-footer__legal {
    grid-area: legal;
    padding-top: 0.8rem;
    border-top: 1px solid rgb(255 255 255 / 15%);
    font-size: 0.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {

.home-agent-cta__button,
.home-footer__legal a {
    transition: none;
  }
}

.home-experience {
  margin-top: clamp(3.5rem, 6vw, 4.5rem);
}

.home-experience__header {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.home-experience__title {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 3rem);
  line-height: 1.15;
  text-wrap: balance;
}

.home-experience__description {
  max-width: 46rem;
  margin: 1rem auto 0;
  color: #415379;
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  line-height: 1.6;
  text-wrap: balance;
}

.home-experience__grid {
  display: grid;
  gap: 1.5rem;
  max-width: 44rem;
  margin: clamp(2.5rem, 6vw, 3.5rem) auto 0;
}

.home-experience__card {
  display: flex;
  overflow: hidden;
  min-width: 0;
  flex-direction: column;
  border: 1px solid #d7e0e8;
  border-radius: 1rem;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 0.55rem 1.2rem rgb(0 26 54 / 9%);
  transition: transform 230ms ease, box-shadow 230ms ease;
}

.home-experience__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dce8ee;
}

.home-experience__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  transition: transform 230ms ease;
}

.home-experience__card:nth-child(2) img {
  object-position: center 48%;
}

.home-experience__card:nth-child(3) img {
  object-position: center 30%;
}

.home-experience__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.3rem clamp(1.15rem, 4vw, 1.6rem) 1.5rem;
}

.home-experience__content h3 {
  margin: 0;
  font-size: clamp(1.2rem, 4.5vw, 1.45rem);
  line-height: 1.3;
}

.home-experience__content p {
  margin: 0.55rem 0 1rem;
  color: #526486;
  font-size: clamp(0.98rem, 3.5vw, 1.08rem);
  line-height: 1.5;
}

.home-experience__content a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  margin-top: auto;
  border-radius: 0.25rem;
  color: #007bc3;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
  transition: color 220ms ease, background-color 220ms ease;
}

.home-experience__content a svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 220ms ease;
}

.home-experience__content a:hover {
  color: #005c99;
}

.home-experience__content a:hover svg {
  transform: translateX(0.2rem);
}

.home-experience__content a:focus-visible,
.home-experience__button:focus-visible {
  outline: 0.2rem solid var(--color-focus);
  outline-offset: 0.2rem;
}

.home-experience__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 28rem;
  min-height: 4.25rem;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  padding: 0.75rem 1.5rem;
  border: 0.125rem solid #078fce;
  border-radius: 0.45rem;
  color: var(--color-white);
  background: #078fce;
  font-size: clamp(1.05rem, 4vw, 1.2rem);
  text-align: center;
  text-decoration: none;
  transition: background-color 220ms ease, box-shadow 220ms ease;
}

.home-experience__button:hover {
  background: #006fa9;
  box-shadow: 0 0.55rem 1.1rem rgb(8 185 232 / 24%);
}

.home-experience.is-animation-ready:not(.is-visible) .home-experience__card {
  opacity: 0;
  transform: translateY(14px);
}

.home-experience.is-animation-ready .home-experience__card {
  transition: opacity 360ms ease-out var(--card-delay, 160ms), transform 360ms ease-out var(--card-delay, 160ms), box-shadow 230ms ease;
}

.home-experience__card:nth-child(2) { --card-delay: 260ms; }
.home-experience__card:nth-child(3) { --card-delay: 360ms; }

@media (min-width: 48rem) {
  .home-experience__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .home-experience__card:nth-child(3) {
    grid-column: 1 / -1;
    width: calc((100% - 1.5rem) / 2);
    justify-self: center;
  }

}

@media (min-width: 75rem) {
  .home-experience {
    margin-top: 5.5rem;
  }

  .home-experience__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-experience__card:nth-child(3) {
    grid-column: auto;
    width: auto;
  }

  .home-experience__card:hover {
    box-shadow: 0 0.85rem 1.7rem rgb(0 26 54 / 15%);
    transform: translateY(-4px);
  }

  .home-experience__card:hover img {
    transform: scale(1.025);
  }

  .home-experience__button {
    width: auto;
    min-width: 16rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-experience__card,
  .home-experience__media img,
  .home-experience__content a,
  .home-experience__content a svg,
  .home-experience__button,
  .home-experience.is-animation-ready:not(.is-visible) .home-experience__card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Complementary alpha with additive blending prevents a dark dip mid-crossfade. */
.home-desktop-visual, .home-hero__media { isolation: isolate; overflow: hidden; }
.home-desktop-visual__slide, .home-hero__mobile-slide { mix-blend-mode: plus-lighter; }
@media (min-width: 64rem) {
  .home-desktop-visual { background: #000; }
}
@media (max-width: 63.99rem) {
  .home-hero__media { background: #000; }
}
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .home-hero__mobile-image--embarcacion { object-position: 58% 70%; }
}
@keyframes home-hero-depth {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}
@media (prefers-reduced-motion: no-preference) {
  .is-carousel-ready :is(.home-desktop-visual__slide, .home-hero__mobile-slide):is(.is-active, .is-exiting) > img {
    animation: home-hero-depth var(--hero-zoom-duration, 5600ms) linear both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-desktop-visual__image, .home-hero__mobile-image { animation: none; transform: none; }
}

/* Home — specialized solutions and shared quality process. */
.home-solutions { color: var(--color-navy-950); }
.home-solutions__inner { max-width: 90rem; margin-inline: auto; padding: clamp(1.75rem, 3vw, 3rem) var(--space-page); }
.home-solutions__header { max-width: 58rem; margin-bottom: 1.4rem; }
.home-solutions__header h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 700; }
.home-solutions__header h2 span { color: #08b9e8; }
.home-solutions__header p { max-width: 54rem; margin: .8rem 0 0; color: #496074; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.5; text-wrap: pretty; }
.home-solutions__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.25rem, 2vw, 2rem); }
.home-solutions__process { position: relative; overflow: hidden; border: 1px solid #96dfff; border-radius: 1rem; background: linear-gradient(135deg, #f9fcff, #edf8fe); }
.home-solutions__steps { position: relative; z-index: 1; display: grid; gap: 1.25rem; margin: 0; padding: 1.75rem clamp(1.25rem, 2.5vw, 2.5rem) clamp(8rem, 13vw, 11rem); list-style: none; }
.home-solutions__steps li { position: relative; display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); align-items: center; column-gap: 3.25rem; min-height: 4.25rem; }
.home-solutions__steps li::before { content: ''; position: absolute; left: 4.8rem; top: 2rem; width: .75rem; height: .75rem; border-radius: 50%; background: #08b9e8; }
.home-solutions__steps li:not(:last-child)::after { content: ''; position: absolute; left: calc(4.8rem + .375rem - .5px); top: 2.75rem; bottom: -3.25rem; width: 1px; background: #08b9e8; }
.home-solutions__step-icon { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border: 1px solid #003663; border-radius: 50%; background: #ffffff80; }
.home-solutions svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.home-solutions__step-icon svg { width: 1.9rem; height: 2.1rem; }
.home-solutions__steps h3 { margin: 0 0 .2rem; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.025em; }
.home-solutions__steps p { margin: 0; max-width: 24rem; color: #496074; font-size: .98rem; line-height: 1.4; }
.home-solutions__art { position: absolute; bottom: 0; left: 0; display: block; width: 100%; height: auto; pointer-events: none; }
.home-solutions__services { display: grid; grid-template-rows: repeat(4, 1fr) auto; gap: .75rem; min-width: 0; }
.home-solutions__service { display: grid; grid-template-columns: 2.65rem minmax(0, 1fr) 1.5rem; gap: clamp(1rem, 2vw, 2rem); align-items: center; padding: 1.1rem 1.4rem; border: 1px solid #abe4fc; border-radius: .8rem; background: linear-gradient(120deg, #edf8ff, #f5fbff); color: var(--color-navy-950); text-decoration: none; transition: background 180ms ease, border-color 180ms ease; }
.home-solutions__service-icon { width: 2.65rem; height: 3rem; }
.home-solutions__service:first-child .home-solutions__service-icon { color: #08b9e8; }
.home-solutions__service strong { display: block; margin-bottom: .25rem; font-size: 1.15rem; line-height: 1.25; letter-spacing: -.025em; }
.home-solutions__service span > span { display: block; color: #496074; font-size: .95rem; line-height: 1.4; }
.home-solutions__arrow { width: 1.5rem; height: 1.5rem; color: #00ace8; }
.home-solutions__cta { display: flex; justify-content: center; align-items: center; gap: 1rem; min-height: 3.6rem; padding: .85rem 1.25rem; border: 1px solid #005083; border-radius: 3rem; color: #fff; background: linear-gradient(110deg, #006399, #003663); text-decoration: none; font-size: 1rem; line-height: 1.4; font-weight: 600; text-align: center; }
.home-solutions__cta span { font-size: 1.5rem; }
.home-solutions__service:hover { border-color: #08b9e8; background: #e3f5ff; }
.home-solutions__cta:hover { background: #002f55; }
.home-solutions__services a:focus-visible { outline: 3px solid #007bb8; outline-offset: 4px; }
@media (max-width: 63.99rem) {
  .home-solutions__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .home-solutions__steps { padding-bottom: clamp(8rem, 25vw, 14rem); }
  .home-solutions__steps p { max-width: 32rem; }
  .home-solutions__services { grid-template-rows: none; }
}
@media (max-width: 39.99rem) {
  .home-solutions__header h2 br { display: none; }
  .home-solutions__header h2 { max-width: 25rem; }
  .home-solutions__steps { padding: 1.25rem 1rem 7rem; gap: 1.25rem; }
  .home-solutions__steps li { grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 1.65rem; }
  .home-solutions__step-icon { width: 2.75rem; height: 2.75rem; }
  .home-solutions__step-icon svg { width: 1.5rem; height: 1.65rem; }
  .home-solutions__steps li::before { left: 3.3rem; width: .55rem; height: .55rem; }
  .home-solutions__steps li:not(:last-child)::after { left: calc(3.3rem + .275rem - .5px); top: 2.55rem; }
  .home-solutions__steps h3 { font-size: 1.05rem; }
  .home-solutions__steps p { font-size: .9rem; }
  .home-solutions__service { grid-template-columns: 2rem minmax(0, 1fr) 1.1rem; gap: .8rem; padding: 1.1rem .9rem; }
  .home-solutions__service-icon { width: 2rem; height: 2.4rem; }
  .home-solutions__service strong { font-size: 1rem; }
  .home-solutions__service span > span { font-size: .9rem; }
  .home-solutions__arrow { width: 1.1rem; }
  .home-solutions__cta { font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  .home-solutions__service { transition: none; }
}

/* Final Home block: national and international project highlights. */
@media (max-width: 47.99rem) {
  .home-pillars__inner { padding-block: 1.75rem; }
  .home-pillars__grid { gap: 1rem; }
  .home-pillar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "copy" "art" "cta";
    grid-template-rows: auto;
    gap: 0.8rem;
    padding: 1.1rem;
  }
  
  .home-pillar__eyebrow { display: none; }
  .home-pillar h2 { font-size: clamp(1.4rem, 5.5vw, 1.8rem); line-height: 1.2; }
  .home-pillar h2 br { display: none; }
  .home-pillar__description { font-size: 0.9rem; line-height: 1.5; }
  .home-pillar__cta { min-height: 2.75rem; padding: 0.65rem 0.8rem; gap: 0.6rem; }
  .home-team__inner { max-width: 32rem; padding-block: 2rem; }
  .home-team h2 { font-size: clamp(1.6rem, 6vw, 1.95rem); line-height: 1.12; white-space: normal; word-break: normal; }
  .home-team h2 br { display: none; }
  .home-team__intro {
    max-width: none;
    margin: 0.9rem 0 0;
    font-size: 0.95rem;
    line-height: 1.45;
    text-align: justify;
    text-align-last: left;
    text-wrap: wrap;
    hyphens: auto;
  }
  .home-team__photo { margin-top: 1.15rem; }
  .home-team__photo img { border-radius: 0.75rem; }
  .home-team .home-team__cta {
    width: 100%;
    min-height: 3rem;
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.94rem;
    line-height: 1.25;
    gap: 0.75rem;
  }
  .home-solutions__service { display: none; }
  .home-solutions__services { grid-template-rows: auto; gap: 0; }
  .home-experience__grid > .home-experience__card:not(:first-child) { display: none; }
}
@media (hover: none) {
  .home-pillar:hover { transform: none; }
  .home-pillar:active { border-color: #17c9f3; }
}

.home-experience { margin: 0; color: #fff; background: url('../images/decor/sie-topographic-pattern.svg') center / cover no-repeat, radial-gradient(ellipse at 85% 0%, #0b3052, transparent 60%), #001a36; }
.home-experience__inner { max-width: 90rem; margin-inline: auto; padding: clamp(2.75rem, 4.5vw, 4.5rem) var(--space-page); }
.home-experience__header { max-width: 70rem; }
.home-experience__title { color: #fff; font-size: clamp(1.8rem, 3vw, 3rem); font-weight: 700; line-height: 1.12; letter-spacing: -.03em; }
.home-experience__description { max-width: 64rem; margin-top: 1.2rem; color: #c4d5e8; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; }
.home-experience__grid { gap: clamp(1.25rem, 2vw, 1.75rem); margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.home-experience__card { border-color: #b9d2e2; background: #f7fbff; color: var(--color-navy-950); box-shadow: 0 .6rem 1.4rem #00000014; }
.home-experience__media { position: relative; }
.home-experience__card:first-child img { object-position: center 48%; }
.home-experience__card:nth-child(2) img { object-position: center 72%; }
.home-experience__card:nth-child(3) img { object-position: center 48%; }
.home-experience__location { position: absolute; top: 1rem; left: 1.15rem; display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 2rem; background: #002443; color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.2; }
.home-experience__location svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: #17c9f3; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.home-experience__content { padding: 1.2rem clamp(1.15rem, 1.6vw, 1.6rem) 1.25rem; }
.home-experience__content h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); letter-spacing: -.025em; }
.home-experience__content p { margin: .65rem 0 1.1rem; color: #496074; font-size: 1rem; line-height: 1.55; }
.home-experience__content a { min-height: 2.75rem; gap: .7rem; }
.home-experience .home-experience__button { width: fit-content; max-width: 100%; min-width: min(100%, 23rem); min-height: 3.6rem; gap: 1rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); padding: .85rem 1.75rem; border: 1px solid #005083; border-radius: 3rem; background: linear-gradient(110deg, #006399, #003663); color: #fff; font-size: 1rem; font-weight: 600; line-height: 1.4; }
.home-experience .home-experience__button > span { font-size: 1.5rem; }
.home-experience .home-experience__button:hover { background: #002f55; box-shadow: none; }
@media (min-width: 48rem) and (max-width: 63.99rem) {
  .home-experience__card:nth-child(3) { width: calc((100% - clamp(1.25rem, 2vw, 1.75rem)) / 2); }
}
@media (min-width: 64rem) {
  .home-experience__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-experience__card:nth-child(3) {
    grid-column: auto;
    width: auto;
  }

  .home-experience__media {
    display: contents;
  }

  .home-experience__media img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .home-experience__location {
    position: static;
    order: 1;
    align-self: flex-start;
    max-width: calc(100% - 2.3rem);
    margin: 0 1.15rem 1.25rem;
  }

  .home-experience__location svg {
    flex-shrink: 0;
  }

  .home-experience__content {
    padding-bottom: 0;
  }
}
@media (max-width: 47.99rem) {
  .home-experience { background-image: url('../images/decor/sie-topographic-pattern-mobile.svg'); background-size: cover; }
  .home-experience__header {
    max-width: 30rem;
    text-align: left;
  }
  .home-experience__title {
    max-width: 24ch;
    font-size: clamp(1.65rem, 6vw, 2rem);
    line-height: 1.2;
    letter-spacing: -.02em;
    text-wrap: balance;
  }
  .home-experience__title br { display: none; }
  .home-experience__description {
    margin-top: 1.25rem;
    line-height: 1.75;
    text-align: justify;
    text-align-last: left;
    text-wrap: wrap;
    hyphens: auto;
  }
  .home-experience__media { display: contents; }
  .home-experience__media img { height: auto; aspect-ratio: 16 / 9; }
  .home-experience__location { position: static; order: 1; align-self: flex-start; max-width: calc(100% - 2.3rem); margin: 0 1.15rem 1.25rem; }
  .home-experience__location svg { flex-shrink: 0; }
  .home-experience__content { padding-bottom: 0; }
  .home-experience__card:first-child img { object-position: center 42%; }
  .home-experience__grid { max-width: 30rem; gap: 1.5rem; }
  .home-experience__content h3 { font-size: 1.2rem; }
  .home-experience .home-experience__button { width: 100%; max-width: 30rem; padding-inline: 1rem; font-size: 1rem; }
}

/* Reference redesign: scoped exclusively to the second home block. */
/* =========================================================
   HOME — BLOQUE 2
   Presentación de SIÉ + Capacidad Técnica + Gestión Certificada
   ========================================================= */

.home-pillars {
  color: #fff;
  background:
    url('../images/decor/sie-topographic-pattern.svg')
    left top / 65rem auto no-repeat,
    #001a36;
}

/* Estructura general */
.home-pillars__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding: clamp(2rem, 3vw, 3rem) var(--space-page);
}

.home-pillars__header {
  min-width: 0;
  align-self: center;
}

.home-pillars__intro {
  margin: 0;
}

/* Identificador SIÉ INGENIERÍA */
.home-pillars__eyebrow {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 1.55rem;
  color: #40d8f5;
  font-size: .8rem;
  font-weight: 650;
  letter-spacing: .23em;
}

.home-pillars__eyebrow::before {
  content: '';
  width: 2.6rem;
  height: 2px;
  background: currentColor;
}

/* Descripción protagonista de la empresa */
.home-pillars__description {
  max-width: 36rem;
  margin: 0 0 1.9rem;
  color: #fff;
  font-size: clamp(1.55rem, 2.15vw, 2.3rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.025em;
  text-align: left;
  text-wrap: pretty;
}

.home-pillars__description span {
  color: #0ac4ec;
}

/* Ámbitos de actuación */
.home-pillars__areas {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.2rem;
  margin: 0;
  padding: 1.05rem 0 0;
  border-top: 1px solid #23607b;
  list-style: none;
  color: #d2deea;
  font-size: .95rem;
}

.home-pillars__areas li {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.home-pillars__areas li:not(:last-child)::after {
  content: '';
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
  background: #17c9f3;
}

/* Columna de fortalezas */
.home-pillars__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .9rem;
  min-width: 0;
}

/* Tarjetas */
.home-pillar {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  grid-template-areas:
    "eyebrow eyebrow"
    "icon title"
    "copy copy"
    "credentials credentials"
    "cta cta";
  gap: .8rem .9rem;
  min-width: 0;
  padding: 1.1rem;
  overflow: hidden;
  border: 1px solid #1687aa;
  border-radius: .95rem;
  color: #fff;
  background:
    url('../images/decor/sie-topographic-pattern.svg')
    right center / auto 140% no-repeat,
    #001d38;
  text-decoration: none;
  transition:
    transform 220ms ease,
    border-color 220ms ease;
}

.home-pillar--certified {
  color: #001a36;
  border-color: #42c9ef;
  background-color: #f2faff;
}

/* Encabezado pequeño de cada tarjeta */
.home-pillar__eyebrow {
  grid-area: eyebrow;
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 0;
  padding: 0;
  border: 0;
  color: #22d6f4;
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .07em;
  line-height: 1.5;
}

.home-pillar__eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .35;
}

.home-pillar--certified .home-pillar__eyebrow {
  color: #0075b4;
}

/* Iconos */
.home-pillar__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: #04c8ed;
}

.home-pillar__icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.home-pillar--certified .home-pillar__icon {
  color: #0064a1;
}

/* Títulos */
.home-pillar h2 {
  grid-area: title;
  align-self: center;
  margin: 0;
  font-size: clamp(1.3rem, 4.7vw, 1.65rem);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -.025em;
  text-wrap: pretty;
}

/* Descripción interna */
.home-pillar__description {
  grid-area: copy;
  margin: 0;
  color: #c5d9e7;
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.home-pillar--certified .home-pillar__description {
  color: #496074;
}

/* Certificaciones */
.home-pillar__credentials {
  grid-area: credentials;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0;
  color: #0075b4;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
}

/* CTA */
.home-pillar__cta {
  grid-area: cta;
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: end;
  gap: .75rem;
  min-height: 2.8rem;
  margin-top: .2rem;
  padding: .65rem .9rem;
  border-radius: .3rem;
  color: #001a36;
  background: #40d5f5;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.3;
}

.home-pillar--certified .home-pillar__cta {
  color: #fff;
  background: #002443;
}

.home-pillar__cta > span {
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 220ms ease;
}

.home-pillar:focus-visible {
  outline: 3px solid #74ddff;
  outline-offset: 5px;
}

/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 64rem) {

  .home-pillars__inner {
    grid-template-columns:
      minmax(0, 1.12fr)
      minmax(0, .88fr);
    align-items: center;
    gap: clamp(2.5rem, 4vw, 4.5rem);
  }

  .home-pillars__header {
    transform: translateY(-.5rem);
  }

  /* Limita físicamente el peso visual de las tarjetas */
  .home-pillars__grid {
    width: 100%;
    max-width: 34rem;
    justify-self: end;
    gap: .75rem;
  }

  .home-pillar {
    grid-template-columns: 3.25rem minmax(0, 1fr);
    grid-template-areas:
      "eyebrow eyebrow"
      "icon title"
      "icon copy"
      "icon credentials"
      "cta cta";
    gap: .5rem 1rem;
    padding: 1rem 1.25rem;
  }

  .home-pillar__icon {
    width: 3.25rem;
    height: 3.25rem;
  }

  .home-pillar__icon svg {
    width: 1.8rem;
    height: 1.8rem;
  }

  .home-pillar__eyebrow {
    margin-bottom: .15rem;
    font-size: .67rem;
  }

  .home-pillar h2 {
    font-size: clamp(1.25rem, 1.55vw, 1.55rem);
    line-height: 1.16;
  }

  .home-pillar__description {
    font-size: .9rem;
    line-height: 1.45;
  }

  .home-pillar__credentials {
    font-size: .67rem;
  }

  .home-pillar__cta {
    min-height: 2.65rem;
    margin-top: .15rem;
    padding: .55rem .85rem;
    font-size: .82rem;
  }
}

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 39.99rem) {

  .home-pillars__inner {
    gap: 2rem;
    padding-block: 1.75rem;
  }

  .home-pillars__header {
    transform: none;
  }

  .home-pillars__eyebrow {
    margin-bottom: 1.25rem;
    font-size: .7rem;
  }

  .home-pillars__description {
    max-width: none;
    margin: 0 0 1.25rem;
    font-size: clamp(1.28rem, 5.5vw, 1.65rem);
    line-height: 1.28;
    letter-spacing: -.018em;
  }

  .home-pillars__areas {
    padding-top: 1rem;
    font-size: .85rem;
    gap: .65rem 1.15rem;
  }

  .home-pillars__areas li {
    gap: .6rem;
  }

  .home-pillars__areas li::before {
    content: '';
    width: .3rem;
    height: .3rem;
    border-radius: 50%;
    background: #17c9f3;
  }

  .home-pillars__areas li:not(:last-child)::after {
    display: none;
  }

  .home-pillar {
    grid-template-columns: 3rem minmax(0, 1fr);
    grid-template-areas:
      "eyebrow eyebrow"
      "icon title"
      "copy copy"
      "credentials credentials"
      "cta cta";
    gap: .9rem .8rem;
    padding: 1.1rem;
  }

  .home-pillar h2 {
    align-self: center;
    font-size: 1.35rem;
  }

  .home-pillar__description {
    font-size: .92rem;
    line-height: 1.5;
  }

  .home-pillar__cta {
    min-height: 2.75rem;
    padding-inline: .85rem;
    font-size: .83rem;
  }
}

/* =========================================================
INTERACCIONES
   ========================================================= */

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-pillar:hover {
    transform: translateY(-3px);
    border-color: #17c9f3;
  }

  .home-pillar:hover .home-pillar__cta > span {
    transform: translateX(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-pillar,
  .home-pillar__cta > span {
    transition: none;
  }
}