/* Carta de Servicios - Figma-driven implementation */

.service-charter-header {
  padding: 64px 0 24px;
}

.service-charter-header__inner {
  display: flex;
  justify-content: center;
}

.service-charter-header__title {
  margin: 0;
  max-width: 446px;
  text-align: center;
  color: #0a0a0a;
  font: 700 36px/40px var(--hp-font);
}

.service-charter-cards {
  padding: 0 0 64px;
}

.service-charter-cards__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-charter-card:nth-child(3n + 1) {
  grid-row: span 2;
  min-height: 100%;
}

.service-charter-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 204px;
  padding: 24px;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  background: #f9fafb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-charter-card:nth-child(3n + 1) {
  min-height: 381px;
}

.service-charter-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 323px;
  z-index: 2;
  position: relative;
}

.service-charter-card__bottom {
  z-index: 2;
  position: relative;
  margin-top: auto;
  display: flex;
  justify-content: flex-start;
}

.service-charter-card__icon-wrapper {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.service-charter-card__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.service-charter-card__icon--placeholder {
  width: 32px;
  height: 32px;
}

.service-charter-card__title {
  margin: 0;
  color: #0a0a0a;
  font: 500 24px/32px var(--hp-font);
  letter-spacing: 0;
}

.service-charter-card__button {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.service-charter-card__decor {
  position: absolute;
  bottom: 32.5px;
  right: 86px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  z-index: 0;
}

.service-charter-card__visual-bars {
  position: absolute;
  bottom: 0px;
  right: -52px;
  width: 84px;
  height: 50px;
}

.service-charter-card__visual-line {
  position: absolute;
  height: 1px;
  background: #d4d4d8;
  bottom: 2px;
}

.service-charter-card__visual-line--left {
  left: -200px;
  width: 194px;
}

.service-charter-card__visual-line--right {
  left: 60px;
  width: 70px;
}

@media (max-width: 1200px) {
  .service-charter-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .service-charter-header {
    padding: 40px 0 20px;
  }

  .service-charter-header__title {
    font-size: 30px;
    line-height: 34px;
  }

  .service-charter-cards__grid {
    grid-template-columns: 1fr;
  }

  .service-charter-card {
    min-height: 320px;
  }

  .service-charter-card__title {
    min-height: auto;
    font-size: 28px;
  }
}
