/* Final layout refinement for the TributoSimple credibility section. */
.tax-why {
  padding: 112px 0 64px;
}

.tax-why__grid {
  grid-template-columns: minmax(330px, .9fr) minmax(0, 1.35fr);
  gap: clamp(56px, 7vw, 96px);
  align-items: start;
}

.tax-why__aside .tax-title {
  max-width: none;
  font-size: clamp(42px, 3.6vw, 52px);
  line-height: .98;
  letter-spacing: -.03em;
  overflow-wrap: normal;
  hyphens: none;
}

.tax-why__aside > p {
  max-width: 340px;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.48;
}

.tax-why__app {
  width: min(100%, 270px);
  max-width: none;
  margin: 30px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.tax-why__app figcaption {
  margin: 12px 0 1px;
  font-size: 13px;
  line-height: 1.4;
}

.tax-why__copy {
  max-width: 690px;
  font-size: 19px;
  line-height: 1.55;
}

.tax-why__copy p {
  margin-bottom: 18px;
}

.tax-why__list {
  margin-top: 28px;
}

.tax-why__item {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 24px;
  padding: 23px 0;
}

.tax-why__number {
  padding-top: 1px;
  font-size: 30px;
  line-height: 1;
}

.tax-why__item h3 {
  font-size: 21px;
  line-height: 1.15;
}

.tax-why__item p {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.5;
}

.tax-why__media {
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
}

.tax-media__head {
  align-items: baseline;
  margin-bottom: 28px;
}

.tax-why__media-title {
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1;
}

.tax-media__head p {
  font-size: 17px;
}

.tax-media__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
  align-items: center;
}

.tax-media__item {
  height: 44px;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.tax-media__item img {
  max-height: 30px;
}

.tax-media__item img[alt="iProfesional"] {
  max-width: 165px;
  max-height: 28px;
}

.tax-media__item:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
}

.tax-terms {
  padding: 72px 0 96px;
  background: var(--tax-milk);
}

.tax-terms__box {
  border: 1px solid rgba(31, 37, 48, .11);
  border-left: 3px solid var(--tax-gold);
  box-shadow: 0 14px 34px rgba(31, 37, 48, .06);
}

/* The official Gestión y Valor mark is used without a drawn background or frame. */
.tax-tariff__logo--gyv {
  width: 65px;
  height: 65px;
  object-position: left center;
}

.tax-tariff--premium {
  background: #202735;
  border-color: #202735;
  box-shadow: 0 18px 38px rgba(31, 37, 48, .16);
  color: #f8f7f3;
}

.tax-tariff--premium .tax-tariff__logo--gyv {
  width: 190px;
  height: 65px;
}

.tax-tariff--premium .tax-tariff__subtitle,
.tax-tariff--premium .tax-tariff__price span {
  color: rgba(248, 247, 243, .72);
}

.tax-tariff--premium .tax-tariff__price {
  color: #fff;
}

.tax-tariff__consultation {
  margin: -2px 0 22px;
  padding: 12px 0;
  border-top: 1px solid rgba(31, 37, 48, .12);
  border-bottom: 1px solid rgba(31, 37, 48, .12);
  color: var(--tax-text);
  font-size: 14px;
  line-height: 1.42;
}

.tax-tariff--premium .tax-tariff__consultation {
  border-color: rgba(255, 255, 255, .16);
  color: rgba(248, 247, 243, .82);
}

.tax-tariff--premium li {
  border-color: rgba(255, 255, 255, .14);
}

.tax-tariff--premium .tax-button {
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}

.tax-tariff--premium .tax-button:hover {
  background: #fff;
  border-color: #fff;
  color: #202735;
}

.tax-booking-modal[hidden] {
  display: none !important;
}

.tax-booking-modal {
  position: fixed;
  z-index: 30000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.tax-booking-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 19, 29, .72);
  backdrop-filter: blur(7px);
}

.tax-booking-modal__dialog {
  position: relative;
  width: min(1120px, 100%);
  height: min(830px, calc(100dvh - 48px));
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

.tax-booking-modal__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.tax-booking-modal__close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(31, 37, 48, .17);
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: #202735;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.tax-booking-modal__close:hover {
  background: #fff;
}

body.tax-booking-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .tax-why {
    padding: 78px 0 56px;
  }

  .tax-why__grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .tax-why__aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    column-gap: 44px;
    align-items: start;
  }

  .tax-why__aside .tax-title,
  .tax-why__aside > p {
    grid-column: 1;
  }

  .tax-why__app {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 230px;
    margin: 0;
  }

  .tax-why__media {
    margin-top: 48px;
  }

  .tax-media__head {
    display: block;
  }

  .tax-media__head p {
    margin-top: 12px;
  }

  .tax-media__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 20px;
  }
}

@media (max-width: 620px) {
  .tax-why {
    padding: 58px 0 46px;
  }

  .tax-why__aside {
    display: block;
  }

  .tax-why__aside .tax-title {
    font-size: 36px;
  }

  .tax-why__aside > p {
    font-size: 17px;
  }

  .tax-why__app {
    width: min(100%, 250px);
    margin-top: 26px;
  }

  .tax-why__copy {
    font-size: 17px;
  }

  .tax-why__item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
  }

  .tax-why__number {
    font-size: 26px;
  }

  .tax-why__item h3 {
    font-size: 19px;
  }

  .tax-media__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .tax-media__item {
    height: 48px;
    padding: 6px;
  }

  .tax-terms {
    padding: 48px 0 65px;
  }

  .tax-booking-modal {
    padding: 0;
  }

  .tax-booking-modal__dialog {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
  }
}

/* Hero follows the canonical RULATAM dark-navy surface: no photography or gradient. */
.tax-hero {
  background: #202733;
}

.tax-hero::before,
.tax-hero::after {
  display: none;
}
