/**
 * Página Seguridad y salud
 */

/* ==========================================================
   PAGE
   ========================================================== */

.company-page--health-safety {
  width: 100%;
  overflow: clip;
}

/* ==========================================================
   BLOQUE 1 - SEGURIDAD Y SALUD EN EL TRABAJO
   ========================================================== */

.health-safety-workplace {
  background: var(--maetel-white);
}

.health-safety-workplace__marker {
  margin: 0 auto 24px;
}

.health-safety-workplace__title {
  max-width: 1080px;
  margin: 0 auto;
  text-wrap: balance;
}

/* Cultura preventiva */

.health-safety-workplace__lead {
  display: grid;
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
}

.health-safety-workplace__lead-content {
  position: relative;
  max-width: 620px;
  padding-left: clamp(24px, 3vw, 38px);
}

.health-safety-workplace__lead-content::before {
  content: "";
  position: absolute;
  top: 0.35em;
  bottom: 0.35em;
  left: 0;
  width: 2px;
  background: var(--maetel-turquoise);
}

.health-safety-workplace__lead-title {
  margin: 0 0 24px;
  color: var(--maetel-blue);
}

.health-safety-workplace__lead-text p {
  margin: 0;
}

.health-safety-workplace__lead-text p + p {
  margin-top: 1.2rem;
}

.health-safety-workplace__lead-text strong {
  color: var(--maetel-blue);
  font-weight: var(--maetel-font-weight-semibold);
}

.health-safety-workplace__lead-media {
  margin: 0;
}

.health-safety-workplace__lead-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--maetel-blue);
}

.health-safety-workplace__lead-media figcaption {
  margin-top: 12px;
  color: var(--maetel-text-muted);
  font-size: var(--maetel-font-size-caption);
  line-height: 1.4;
}

/* Títulos internos */

.health-safety-workplace__block-title {
  max-width: 760px;
  margin: 0 auto clamp(26px, 3.4vw, 42px);
  color: var(--maetel-blue);
  font-size: var(--maetel-font-size-content-title);
  font-weight: var(--maetel-font-weight-regular);
  line-height: 1.18;
  text-align: center;
  text-wrap: balance;
}

/* Sistema de Gestión SST */

.health-safety-workplace__management {
  margin-top: clamp(72px, 8vw, 118px);
}

.health-safety-workplace__management-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.25fr) minmax(0, 0.75fr);
  gap: 0;
  align-items: stretch;
  max-width: 1120px;
  margin: 0 auto;
}

.health-safety-workplace__management-media {
  order: 1;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--maetel-blue);
}

.health-safety-workplace__management-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
}

.health-safety-workplace__management-card {
  order: 2;
  display: flex;
  align-items: center;
  max-width: none;
  margin: 0;
  padding: clamp(32px, 4vw, 48px);
  border-left: 2px solid var(--maetel-turquoise);
  background: var(--maetel-surface-soft);
}

.health-safety-workplace__management-card p {
  margin: 0;
  color: var(--maetel-text);
}

.health-safety-workplace__management-card strong {
  color: var(--maetel-blue);
  font-weight: var(--maetel-font-weight-semibold);
}

/* Políticas */

.health-safety-workplace__policies {
  margin-top: clamp(72px, 8vw, 118px);
}

.health-safety-workplace__policy-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.health-safety-workplace__policy-card {
  position: relative;
  padding: clamp(30px, 4vw, 44px);
  border: 1px solid rgba(0, 46, 94, 0.14);
  background: var(--maetel-white);
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.health-safety-workplace__policy-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(30px, 4vw, 44px);
  width: 52px;
  height: 2px;
  background: var(--maetel-turquoise);
}

.health-safety-workplace__policy-card:hover {
  border-color: rgba(0, 151, 169, 0.5);
  box-shadow: 0 24px 60px rgba(0, 46, 94, 0.08);
  transform: translateY(-3px);
}

.health-safety-workplace__policy-card-title {
  margin: 0 0 18px;
  color: var(--maetel-blue);
}

.health-safety-workplace__policy-card-text p {
  margin: 0;
}

.health-safety-workplace__policy-card-text p + p {
  margin-top: 1.1rem;
}

.health-safety-workplace__policy-card-text strong {
  color: var(--maetel-blue);
  font-weight: var(--maetel-font-weight-semibold);
}

/* Documentación */

.health-safety-workplace__documents {
  margin-top: clamp(70px, 8vw, 112px);
}

/* ==========================================================
   DOCUMENTOS REUTILIZABLES
   ========================================================== */

.health-safety-documents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1060px;
  margin: 0 auto;
}

.health-safety-documents--single {
  grid-template-columns: 1fr;
  max-width: 620px;
}

.health-safety-workplace__documents .health-safety-documents {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
}

.health-safety-document {
  position: relative;
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(0, 46, 94, 0.14);
  background: var(--maetel-white);
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.health-safety-workplace__documents .health-safety-document {
  grid-template-columns: 1fr;
  align-items: start;
  min-height: 100%;
}

.health-safety-document::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  width: 48px;
  height: 2px;
  background: var(--maetel-turquoise);
}

.health-safety-document:hover {
  border-color: rgba(0, 151, 169, 0.5);
  box-shadow: 0 24px 60px rgba(0, 46, 94, 0.08);
  transform: translateY(-3px);
}

.health-safety-document__preview {
  display: grid;
  place-items: center;
  width: 126px;
  min-height: 126px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(0, 46, 94, 0.12);
  background: linear-gradient(
    145deg,
    rgba(0, 46, 94, 0.06) 0%,
    rgba(0, 151, 169, 0.12) 100%
  );
  color: var(--maetel-blue);
  text-align: center;
}

.health-safety-workplace__documents .health-safety-document__preview {
  width: 96px;
  min-height: 96px;
}

.health-safety-document__preview.has-image {
  background: var(--maetel-white);
}

.health-safety-document__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.health-safety-document__preview span {
  display: block;
  color: var(--maetel-turquoise);
  font-size: 0.74rem;
  font-weight: var(--maetel-font-weight-semibold);
  letter-spacing: 0.18em;
  line-height: 1;
  text-transform: uppercase;
}

.health-safety-document__preview strong {
  display: block;
  margin-top: 10px;
  color: var(--maetel-blue);
  font-size: 1.6rem;
  font-weight: var(--maetel-font-weight-regular);
  line-height: 1;
}

.health-safety-document__content {
  min-width: 0;
}

.health-safety-workplace__documents .health-safety-document__content {
  margin-top: 4px;
}

.health-safety-document__title {
  margin: 0;
  color: var(--maetel-blue);
  font-size: var(--maetel-font-size-card-title);
  font-weight: var(--maetel-font-weight-regular);
  line-height: 1.2;
}

.health-safety-document__text {
  margin: 8px 0 0;
  color: var(--maetel-text);
  font-size: var(--maetel-font-size-body-small);
  line-height: var(--maetel-line-height-body);
}

.health-safety-document__button {
  margin-top: 20px;
  text-transform: uppercase;
}

.health-safety-document__status {
  display: inline-flex;
  margin-top: 18px;
  color: rgba(38, 55, 70, 0.58);
  font-size: var(--maetel-font-size-caption);
  line-height: 1.2;
}

/* ==========================================================
   BLOQUE 2 - SEGURIDAD DE LA INFORMACIÓN
   ========================================================== */

.health-safety-information {
  background: var(--maetel-surface-soft);
}

.health-safety-information__marker {
  margin: 0 auto 24px;
}

.health-safety-information__title {
  max-width: 1060px;
  margin: 0 auto;
  text-wrap: balance;
}

.health-safety-information__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
  gap: clamp(44px, 6vw, 88px);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.health-safety-information__text {
  position: relative;
  padding-left: clamp(24px, 3vw, 38px);
}

.health-safety-information__text::before {
  content: "";
  position: absolute;
  top: 0.35em;
  bottom: 0.35em;
  left: 0;
  width: 2px;
  background: var(--maetel-turquoise);
}

.health-safety-information__text p {
  margin: 0;
}

.health-safety-information__text p + p {
  margin-top: 1.15rem;
}

.health-safety-information__documents-title {
  max-width: 620px;
  margin: 0 auto 24px;
  color: var(--maetel-blue);
  font-size: var(--maetel-font-size-card-title);
  font-weight: var(--maetel-font-weight-regular);
  line-height: 1.24;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 1024px) {
  .health-safety-workplace__lead,
  .health-safety-information__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .health-safety-workplace__lead-content,
  .health-safety-information__text {
    max-width: 840px;
    margin-inline: auto;
  }

  .health-safety-workplace__lead-media {
    max-width: 860px;
    width: 100%;
    margin-inline: auto;
  }

  .health-safety-workplace__management-layout {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .health-safety-workplace__management-card {
    order: 1;
    min-height: auto;
  }

  .health-safety-workplace__management-media {
    order: 2;
  }

  .health-safety-workplace__management-media img {
    min-height: 320px;
  }

  .health-safety-documents,
  .health-safety-workplace__documents .health-safety-documents {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .health-safety-workplace__documents .health-safety-document {
    grid-template-columns: 126px minmax(0, 1fr);
    align-items: center;
  }

  .health-safety-workplace__documents .health-safety-document__preview {
    width: 126px;
    min-height: 126px;
  }

  .health-safety-workplace__documents .health-safety-document__content {
    margin-top: 0;
  }
}

@media (max-width: 700px) {
  .health-safety-workplace__lead-content,
  .health-safety-information__text {
    padding-left: 24px;
  }

  .health-safety-workplace__management-card {
    padding: 30px 26px;
  }

  .health-safety-workplace__management-media img {
    min-height: 260px;
  }

  .health-safety-workplace__policy-cards {
    grid-template-columns: 1fr;
  }

  .health-safety-document,
  .health-safety-workplace__documents .health-safety-document {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    min-height: auto;
    padding: 18px;
  }

  .health-safety-document::before {
    left: 18px;
    width: 38px;
  }

  .health-safety-document__preview,
  .health-safety-workplace__documents .health-safety-document__preview {
    width: 82px;
    min-height: 82px;
    aspect-ratio: 1 / 1;
  }

  .health-safety-document__preview span {
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }

  .health-safety-document__preview strong {
    margin-top: 8px;
    font-size: 1.25rem;
  }

  .health-safety-document__title {
    font-size: var(--maetel-font-size-body);
    line-height: 1.25;
  }

  .health-safety-document__text {
    margin-top: 6px;
    font-size: var(--maetel-font-size-caption);
    line-height: 1.45;
  }

  .health-safety-document__button {
    margin-top: 16px;
  }

  .health-safety-information__documents-title {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .health-safety-workplace__lead-media img {
    aspect-ratio: 4 / 3;
  }

  .health-safety-workplace__management-media img {
    min-height: 230px;
  }
}

@media (max-width: 430px) {
  .health-safety-document,
  .health-safety-workplace__documents .health-safety-document {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }

  .health-safety-document__preview,
  .health-safety-workplace__documents .health-safety-document__preview {
    width: 68px;
    min-height: 68px;
  }

  .health-safety-document__preview span {
    font-size: 0.58rem;
  }

  .health-safety-document__preview strong {
    font-size: 1.08rem;
  }

  .health-safety-document__button {
    margin-top: 14px;
  }
}
