/* Landing sections */

.lp-section {
  padding: var(--space-section) 0;
}

.lp-section--sand {
  background: var(--color-arena);
  color: var(--color-ink);
}

.lp-section--verde {
  background: var(--color-verde);
  color: var(--color-arena);
}

.lp-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-dorado);
}

.lp-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 400;
  line-height: var(--lh-display);
  letter-spacing: -0.02em;
}

.lp-title em {
  font-style: normal;
}

.lp-lead {
  margin: 0;
  max-width: 40ch;
  color: var(--color-ink-muted);
}

.lp-section--verde .lp-lead {
  color: rgba(219, 212, 198, 0.78);
}

.lp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.35rem);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-verde-deep);
}

.hero__copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(3.25rem, 5.5vh, 4.75rem);
  padding-inline: max(var(--gutter), calc((100% - var(--content-wide)) / 2));
}

.hero__frame {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.hero__text {
  width: 100%;
  max-width: calc(38rem * 1.15);
  container-type: inline-size;
}

.hero__slides {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
}

.hero__slide {
  display: grid;
  grid-column: 1;
  grid-row: 1 / -1;
  grid-template-rows: subgrid;
  align-content: start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms var(--ease), visibility 600ms;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero__slide h1 {
  margin: 0 0 0.9rem;
  max-width: none;
  font-family: var(--font-display);
  font-size: min(var(--fs-display), 8.2cqi);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-arena);
}

.hero__slide p {
  margin: 0 0 1.35rem;
  max-width: calc(40ch * 1.15);
  color: rgba(219, 212, 198, 0.86);
  font-size: 0.98rem;
}

.hero__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 3.5rem;
  padding: 0;
  border: 0;
  color: rgba(219, 212, 198, 0.82);
  background: transparent;
  filter: drop-shadow(0 1px 2px rgba(5, 26, 23, 0.55));
  transform: translateY(-50%);
  transition: color var(--transition);
}

.hero__arrow--prev {
  left: clamp(0.35rem, 1.2vw, 1rem);
}

.hero__arrow--next {
  right: clamp(0.35rem, 1.2vw, 1rem);
}

.hero__arrow svg {
  width: 28px;
  height: 28px;
}

.hero__arrow svg path {
  stroke-width: 1.75;
}

.hero__arrow:hover,
.hero__arrow:focus-visible {
  color: var(--color-arena);
}

.hero__dots {
  display: flex;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.hero__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: rgba(219, 212, 198, 0.35);
}

.hero__dot.is-active {
  background: var(--color-dorado);
}

.hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--color-verde) url("/image/hero-poster.jpg?v=17") center / cover no-repeat;
}

.hero__media video,
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media video {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.hero__media video.is-ready {
  opacity: 1;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 26, 23, 0.86) 0%, rgba(5, 26, 23, 0.55) 46%, rgba(5, 26, 23, 0.22) 100%);
  pointer-events: none;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
  grid-template-rows: minmax(4.5rem, 1fr) auto auto auto;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  min-height: 320px;
  overflow: hidden;
  background: var(--color-verde);
  color: var(--color-arena);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 26, 23, 0.15) 10%, rgba(5, 26, 23, 0.82) 100%);
}

.service-card__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: 1 / -1;
  min-height: 320px;
  padding: 1.6rem 1.5rem 1.5rem;
}

.service-card h3,
.service-card p,
.service-card .arrow-link {
  align-self: start;
}

.service-card h3 {
  grid-row: 2;
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.2vw, 2.05rem);
  font-weight: 400;
}

.service-card p {
  grid-row: 3;
  margin: 0 0 1.4rem;
  max-width: 36ch;
  color: rgba(219, 212, 198, 0.86);
}

.service-card .arrow-link {
  grid-row: 4;
  margin: 0;
}

/* Sectors */
#sectores .lp-title {
  color: var(--color-arena);
}

#sectores .lp-title span,
#sectores .lp-title em {
  display: block;
  white-space: nowrap;
}

#sectores .lp-title em {
  color: var(--color-dorado);
  font-style: normal;
  font-weight: 400;
}

@media (max-width: 720px) {
  #sectores .lp-title {
    font-size: clamp(1.02rem, 6vw, 1.7rem);
  }
}

#sectores .lp-lead,
#servicios .lp-lead {
  max-width: 72ch;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 1.25rem;
  row-gap: 1rem;
}

.sector-card {
  position: relative;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  align-items: start;
  padding: 0 0 1.5rem;
  border: 1px solid rgba(194, 146, 43, 0.22);
  background: rgba(5, 26, 23, 0.28);
}

.sector-card__icon {
  position: absolute;
  z-index: 1;
  top: 0.85rem;
  left: 0.95rem;
  width: 36px;
  height: 36px;
  color: var(--color-dorado);
  stroke-width: 1.15;
  filter: drop-shadow(0 1px 2px rgba(5, 26, 23, 0.7));
}

.sector-card__media {
  position: relative;
  width: 100%;
  height: 168px;
  overflow: hidden;
  background: var(--color-verde-deep);
}

.sector-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.sector-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.sector-card h3,
.sector-card p,
.sector-card .arrow-link {
  padding-inline: 1.4rem;
}

.sector-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-dorado);
}

.sector-card p {
  margin: 0;
  color: rgba(219, 212, 198, 0.8);
  font-size: 0.9rem;
}

.sector-card .arrow-link {
  align-self: start;
}

#estandar {
  background: var(--color-verde-deep);
  border-top: 1px solid rgba(194, 146, 43, 0.16);
}

#estandar .lp-title {
  color: var(--color-arena);
}

#estandar .lp-title span,
#estandar .lp-title em {
  color: var(--color-dorado);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
}

.standard-lead {
  max-width: 68ch;
}

.standard-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  align-items: stretch;
}

.standard-item {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  align-items: center;
  justify-items: center;
  text-align: center;
  min-width: 0;
  padding: 0 0.75rem;
  border-right: 1px solid var(--color-dorado);
}

.standard-item:last-child {
  border-right: 0;
}

.standard-item__icon {
  display: flex;
  align-self: end;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  margin: 0 0 1.15rem;
  border: 1px solid var(--color-dorado);
  border-radius: 50%;
  color: var(--color-dorado);
}

.standard-item__icon svg {
  width: 46px;
  height: 46px;
}

.standard-item h3 {
  align-self: center;
  justify-self: stretch;
  width: 100%;
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 0.42vw + 0.5rem, 0.92rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--color-arena);
}

.standard-item h3::after {
  content: "";
  display: block;
  width: 1.75rem;
  height: 1px;
  margin: 0.5rem auto 0;
  background: var(--color-dorado);
}

.standard-item p {
  align-self: start;
  justify-self: stretch;
  width: 100%;
  margin: 0;
  color: rgba(219, 212, 198, 0.74);
  font-size: 0.9rem;
}

@supports not (grid-template-rows: subgrid) {
  .standard-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .standard-item h3 {
    min-height: 2.6em;
  }
}

#presencia {
  overflow: hidden;
  background: var(--color-verde-deep);
  border-top: 1px solid rgba(194, 146, 43, 0.16);
}

/* Presence */
.presence {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: 1.5rem 2rem;
  align-items: center;
}

#presencia .lp-title {
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
}

#presencia .lp-title em {
  display: inline-block;
  color: var(--color-dorado);
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
}

.presence-copy .lp-lead {
  max-width: 38ch;
}

.presence-visual {
  min-width: 0;
}

.presence-map {
  display: block;
  width: 118%;
  max-width: none;
  height: auto;
  margin-right: -18%;
}

@media (min-width: 981px) {
  .presence-visual {
    position: relative;
    align-self: stretch;
  }

  .presence-map {
    position: absolute;
    top: 50%;
    left: 0;
    margin-right: 0;
    transform: translateY(-50%);
  }
}

/* Team */
#equipo .equipo-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

#equipo .equipo-head__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}

#equipo .lp-title {
  margin-bottom: 0;
  color: var(--color-verde);
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  white-space: nowrap;
}

#equipo .lp-lead {
  max-width: 72ch;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.25rem;
  row-gap: 0;
}

.team-grid > .team-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
}

.team-grid > .team-card > .team-card__body {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
}

.team-card {
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
}

.team-card img,
.team-card__media {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  display: block;
}

.team-card__media {
  overflow: hidden;
  background: var(--color-verde);
}

.team-card__media img {
  height: 100%;
}

.team-card__media--placeholder {
  display: grid;
  place-items: center;
  color: var(--color-dorado);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.team-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem 1.6rem 1.4rem;
}

.team-card__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 0.7rem;
  font-size: clamp(1.2rem, 1.2vw, 1.45rem);
}

.team-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 400;
  line-height: 1.15;
}

.team-card .linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 0;
  line-height: 0;
  background: var(--color-dorado);
  color: var(--color-white);
  transition: background-color var(--transition), color var(--transition);
}

.team-card .linkedin-link svg {
  display: block;
  width: 16px;
  height: 16px;
}

.team-card .linkedin-link:hover,
.team-card .linkedin-link:focus-visible {
  background: var(--color-verde);
  color: var(--color-white);
}

.team-card p {
  margin: 0 0 1.2rem;
  color: var(--color-ink-muted);
}

.linkedin-link {
  display: inline-flex;
  margin-top: auto;
  color: var(--color-verde);
}

.linkedin-link:hover {
  color: var(--color-dorado);
}

.linkedin-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

#vacantes {
  background: var(--color-arena-soft);
}

/* Vacancies */
.vacancy-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.85rem;
}

#vacantes .lp-head {
  align-items: flex-start;
}

.vacancy-toolbar {
  display: flex;
  gap: 0.6rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(5, 26, 23, 0.2);
  color: var(--color-verde);
  display: grid;
  place-items: center;
}

.carousel-btn:hover {
  border-color: var(--color-dorado);
  color: var(--color-dorado);
}

.vacancy-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.vacancy-track::-webkit-scrollbar {
  display: none;
}

.vacancy-card {
  flex: 0 0 min(280px, 82vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: var(--color-paper);
  min-height: 100%;
}

.vacancy-card__media {
  height: 140px;
  background: var(--color-verde) center / cover no-repeat;
}

.vacancy-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vacancy-card h3,
.vacancy-card p,
.vacancy-card .arrow-link {
  margin-left: 1.3rem;
  margin-right: 1.3rem;
}

.vacancy-card h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.vacancy-card__meta {
  margin: 0 1.3rem 0.7rem;
  color: var(--color-dorado);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vacancy-card p {
  margin-bottom: 1rem;
  color: var(--color-ink-muted);
  font-size: 0.88rem;
}

.vacancy-card .arrow-link {
  margin-top: auto;
  margin-bottom: 1.4rem;
}

.vacancy-empty {
  padding: 2.5rem 0 0;
}

.vacancy-cta {
  margin-top: 2.2rem;
}

.vacancy-aside .vacancy-cta {
  margin-top: 0;
}

/* Apply / company */
.apply-band {
  position: relative;
  padding: clamp(2.15rem, 4vw, 3.25rem) 0;
  background:
    linear-gradient(90deg, rgba(5, 26, 23, 0.5), rgba(5, 26, 23, 0.18)),
    url("/image/postula-cobre.jpg") center / cover no-repeat;
  color: var(--color-arena);
}

.apply-band__inner,
.company-cta__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.apply-band .btn {
  flex-shrink: 0;
}

.apply-band h2,
.company-cta h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 400;
}

.apply-band p,
.company-cta p {
  margin: 0;
  max-width: 42ch;
  color: rgba(219, 212, 198, 0.8);
}

.apply-band p {
  max-width: 62ch;
}

.company-cta {
  padding: clamp(2.15rem, 3.4vw, 2.85rem) 0;
  background: var(--color-arena-soft);
}

.company-cta p {
  max-width: 62ch;
  color: var(--color-ink-muted);
}

/* Insights (modular, off by default) */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.insight-card {
  background: var(--color-paper);
  padding: 1.6rem;
}

.insight-card h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 400;
}

/* Responsive */
@media (max-width: 800px) {
  .standard-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .standard-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-items: center;
    grid-row: auto;
    padding: 1.25rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--color-dorado);
  }

  .standard-item:first-child {
    padding-top: 0;
  }

  .standard-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .standard-item__icon,
  .standard-item h3,
  .standard-item p {
    align-self: center;
    margin-inline: auto;
  }

  .standard-item__icon {
    margin-bottom: 1rem;
  }

  .standard-item h3 {
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
  }
}

@media (min-width: 981px) {
  .service-grid {
    min-height: 320px;
  }
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-rows: none;
    min-height: 0;
  }

  .service-card {
    display: block;
    grid-row: auto;
  }

  .service-card__body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    grid-row: auto;
  }

  .service-card h3,
  .service-card p,
  .service-card .arrow-link {
    grid-row: auto;
  }

  .hero,
  .service-grid,
  .sector-grid,
  .presence,
  .team-grid,
  .insights-grid,
  .apply-band__inner,
  .company-cta__inner,
  .lp-head {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  #equipo .equipo-head__row {
    flex-direction: column;
    align-items: flex-start;
  }

  #equipo .lp-title {
    white-space: normal;
  }

  .sector-grid,
  .service-grid {
    row-gap: 1.25rem;
  }

  .presence-map {
    width: 100%;
    margin-right: 0;
  }

  #presencia .lp-title em {
    white-space: normal;
  }

  .hero__copy {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  .hero__media::after {
    background: linear-gradient(180deg, rgba(5, 26, 23, 0.82) 0%, rgba(5, 26, 23, 0.7) 100%);
  }

  .team-card img,
  .team-card__media {
    height: 280px;
  }

  .team-grid > .team-card:not(:last-child) {
    margin-bottom: 1.25rem;
  }

  .vacancy-toolbar {
    width: 100%;
    justify-content: flex-start;
  }

  #vacantes .vacancy-aside {
    width: 100%;
    align-items: flex-end;
  }

  #vacantes .vacancy-toolbar {
    width: auto;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .hero__arrow {
    top: auto;
    bottom: 1.15rem;
    height: 2.25rem;
    transform: none;
  }

  .hero__dots {
    min-height: 2.25rem;
    align-items: center;
    margin-left: 2.6rem;
    margin-right: 2.6rem;
  }

  .service-card,
  .service-card__body {
    min-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .hero__arrow,
  .arrow-link svg,
  .btn {
    transition: none;
  }
}
