/* ============================================
   TG L02 · Software MOHO — TabletasGraficas.cl
   Google Fonts: Barlow Condensed, Montserrat, Inter
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600&family=Montserrat:wght@400;500;700&family=Inter:wght@400;700&display=swap');

:root {
  --color-black: #000000;
  --color-dark: #2B2B2B;
  --color-dark-bg: #232323;
  --color-white: #FFFFFF;
  --color-blue: #009FE3;
  --color-green: #3AAA35;
  --color-red: #FF2823;
  --color-pink: #E6007E;
  --color-light-gray: #E2E2E2;
  --color-gray: #DDDDDD;
  --color-light: #F1F1F1;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-text: 'Inter', sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   UTILITY
   ============================================ */
.tg-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.tg-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* ============================================
   SECTION 1 — INTRO (Hero)
   ============================================ */
.tg-intro {
  padding: 55px 0 0;
  text-align: center;
  position: relative;
}

.tg-intro__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 12px;
}

.tg-intro__subheading {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 38.5px;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 10px;
}

.tg-intro__subheading strong {
  font-weight: 700;
}

.tg-intro__subheading-small {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 38.5px;
  color: var(--color-dark);
  text-align: center;
}

.tg-intro__tagline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
  letter-spacing: -0.4px;
  color: var(--color-dark);
  text-align: left;
  margin-top: 50px;
  margin-bottom: 12px;
  max-width: 1065px;
}

.tg-intro__description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: -0.1px;
  color: var(--color-dark);
  text-align: left;
  max-width: 1158px;
}

.tg-intro__description p {
  margin-bottom: 8px;
}

/* ============================================
   SECTION 2 — QUE ES (About MOHO)
   ============================================ */
.tg-que-es {
  background-color: var(--color-light-gray);
  padding: 60px 0 100px;
  position: relative;
}

.tg-que-es__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 49px;
  line-height: 59px;
  color: var(--color-black);
  text-align: left;
  margin-bottom: 30px;
}

.tg-que-es__inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.tg-que-es__image-col {
  flex: 0 0 490px;
  position: relative;
}

.tg-que-es__image-box {
  position: relative;
  filter: drop-shadow(4.1px 8px 21px rgba(0, 0, 0, 0.53));
}

.tg-que-es__image-box img {
  width: 100%;
  border-radius: 4px;
}

.tg-que-es__content-col {
  flex: 1;
  position: relative;
}

.tg-que-es__highlight-bg {
  background-color: var(--color-pink);
  opacity: 0.75;
  border-radius: 21px;
  padding: 30px 35px 30px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.tg-que-es__highlight-bg .tg-que-es__overlay-img {
  position: absolute;
  right: -60px;
  bottom: -40px;
  width: 340px;
  z-index: 2;
}

.tg-que-es__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  color: var(--color-white);
  position: relative;
  z-index: 1;
}

.tg-que-es__text p {
  margin-bottom: 8px;
}

.tg-que-es__usage-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--color-white);
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

.tg-que-es__usage-cols {
  display: flex;
  gap: 80px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.tg-que-es__usage-col {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  line-height: 37px;
  color: var(--color-white);
}

.tg-que-es__footer-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  color: var(--color-black);
  margin-top: 40px;
  max-width: 572px;
}

/* ============================================
   SECTION 3 — POR QUE (Features Grid)
   ============================================ */
.tg-por-que {
  padding: 90px 0 100px;
  position: relative;
  /* background-color: var(--color-white); */
}

.tg-por-que__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.tg-por-que__content {
  position: relative;
  z-index: 1;
}

.tg-por-que__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 49px;
  line-height: 59px;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 20px;
}

.tg-por-que__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: var(--color-black);
  text-align: center;
  max-width: 990px;
  margin: 0 auto 12px;
}

.tg-por-que__desc strong {
  font-weight: 700;
}

.tg-por-que__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  max-width: 1130px;
  margin: 40px auto 0;
}

.tg-por-que__card {
  width: 270px;
  height: 273px;
  perspective: 800px;
  justify-self: center;
}

.tg-por-que__card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.tg-por-que__card:hover .tg-por-que__card-inner {
  transform: rotateY(180deg);
}

.tg-por-que__card-front,
.tg-por-que__card-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 27px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  overflow: hidden;
}

.tg-por-que__card-front {
  background-color: var(--tg-card-front-bg, var(--color-blue));
  color: var(--tg-card-front-text, var(--color-white));
}

.tg-por-que__card-back {
  background-color: var(--tg-card-back-bg, var(--color-light-gray));
  color: var(--tg-card-back-text, var(--color-blue));
  transform: rotateY(180deg);
  padding: 24px 20px;
}

.tg-por-que__card-icon {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
}

.tg-por-que__card-icon img {
  max-height: 46px;
  width: auto;
}
div.tg-por-que__card:nth-child(2) img {
  max-height: 56px;
}


.tg-por-que__card-label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 23px;
  line-height: 26px;
  text-align: center;
}

.tg-por-que__card-back-text {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

/* ============================================
   SECTION 4 — VERSIONES (Debut + Pro Cards)
   ============================================ */
.tg-versiones {
  padding: 80px 0;
}

.tg-versiones__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  color: var(--color-black);
  text-align: center;
  margin-bottom: 60px;
}

.tg-versiones__card {
  background-color: var(--color-dark-bg);
  border-radius: 27px;
  display: flex;
  max-width: 1170px;
  margin: 0 auto 30px;
  overflow: visible;
  position: relative;
  min-height: 619px;
}

.tg-versiones__card--pro {
  min-height: 726px;
}

.tg-versiones__card-img {
  flex: 0 0 386px;
  position: relative;
  overflow: visible;
}

.tg-versiones__card-img img {
  width: 386px;
  height: auto;
  object-fit: cover;
  position: absolute;
  inset: 0;
  margin: auto;
  margin-left: -40px;
}

.tg-versiones__card-body {
  flex: 1;
  padding: 56px 40px 40px;
  position: relative;
}

.tg-versiones__card-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 45px;
  line-height: 60px;
  letter-spacing: -1.6px;
  color: var(--color-white);
  margin-bottom: 14px;
}

.tg-versiones__card-subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 33.8px;
  margin-bottom: 40px;
}

.tg-versiones__card-subtitle strong {
  font-weight: 700;
  color: var(--color-blue);
}

.tg-versiones__card-subtitle span {
  font-size: 15px;
  color: var(--color-white);
}

.tg-versiones__card--pro .tg-versiones__card-subtitle {
  font-size: 20px;
  line-height: 32.8px;
}

.tg-versiones__card--pro .tg-versiones__card-subtitle span {
  font-size: 18px;
}

.tg-versiones__card-cols {
  display: grid;
  grid-template-columns: 200px 200px 1fr;
  gap: 20px;
}

.tg-versiones__card-col-icon {
  display: block;
  width: auto !important;
  height: 33px !important;
  margin-bottom: 10px;
  /* filter: brightness(0) invert(1); */
}

.tg-versiones__card-col-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 12px;
}

.tg-versiones__card-col-list {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: var(--color-white);
}

@media (max-width: 768px) {
  .tg-versiones__card-img img {
    height: 100% !important;
    width: auto !important;
    margin-left: auto !important;
  }
}

/* ============================================
    SECTION 5 — TABLA (Comparison Table)
    ============================================ */
.tg-tabla {
  padding: 80px 0;
}

.tg-tabla__grid {
  width: min(100%, 1600px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.25fr 0.92fr 0.92fr;
  grid-template-rows: 100px auto;
  gap: 3px;

  font-family: var(--font-body);
  color: var(--color-black);
}

/* Title cell (top-left) */
.tg-tabla__title {
  grid-column: 1;
  grid-row: 1;

  height: 100px;
  display: flex;
  align-items: center;
  padding-left: 12px;
}

.tg-tabla__title h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(32px, 3.2vw, 49px);
  line-height: 1;
  color: var(--color-black);
}

/* Features column (left) */
.tg-tabla__features {
  grid-column: 1;
  grid-row: 2;

  display: grid;
  grid-template-rows: repeat(11, 64px);
  overflow: hidden;
  border-radius: 35px 0 0 35px;
  margin-top: -3px;
}

.tg-tabla__features > div {
  display: flex;
  align-items: center;
  padding: 0 36px;
  background: var(--color-light);
  border-bottom: 3px solid var(--color-white);
  font-family: var(--font-body);
  font-size: clamp(18px, 1.45vw, 28px);
}

.tg-tabla__features > div:last-child {
  border-bottom: 0;
}

/* Version columns */
.tg-tabla__version {
  overflow: hidden;
}

.tg-tabla__version--debut {
  grid-column: 2;
  grid-row: 1 / 3;
  border-radius: 25px 25px 0 0;
}

.tg-tabla__version--pro {
  grid-column: 3;
  grid-row: 1 / 3;
  border-radius: 25px 25px 0 0;
}

.tg-tabla__version-header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(24px, 2vw, 34px);
}

.tg-tabla__version--debut .tg-tabla__version-header {
  background: #0ba0d9;
}

.tg-tabla__version--pro .tg-tabla__version-header {
  background: var(--color-red);
}

.tg-tabla__version-items {
  display: grid;
  grid-template-rows: repeat(11, 64px);
  border-radius: 0 0 35px 0;
}

.tg-tabla__version-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gray);
  border-bottom: 3px solid var(--color-white);
  font-family: var(--font-body);
  font-size: clamp(20px, 1.5vw, 27px);
}

.tg-tabla__version-item:last-child {
  border-bottom: 0;
}

.tg-tabla__version-item strong {
  font-weight: 700;
}

/* Checkmark */
.tg-tabla__check {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-block;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.tg-tabla__check::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 20px;
  left: 11px;
  top: 4px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}

.tg-tabla__check--blue {
  color: #079fe0;
}

.tg-tabla__check--red {
  color: var(--color-red);
}

/* ============================================
    TABLA — MOBILE
    ============================================ */
@media (max-width: 768px) {
  .tg-tabla__grid {
    display: block;
    width: 100%;
    padding: 0 16px;
  }

  .tg-tabla__title {
    height: auto;
    margin-bottom: 20px;
  }

  .tg-tabla__title,
  .tg-tabla__features,
  .tg-tabla__version--debut,
  .tg-tabla__version--pro {
    grid-column: auto;
    grid-row: auto;
  }

  .tg-tabla__features {
    display: none;
  }

  .tg-tabla__version {
    margin-bottom: 30px;
    border-radius: 20px;
  }

  .tg-tabla__version-header {
    height: 70px;
    font-size: 25px;
    border-radius: 20px 20px 0 0;
  }

  .tg-tabla__version-items {
    display: block;
    border-radius: 0 0 20px 20px;
  }

  .tg-tabla__version-item {
    min-height: 60px;
    justify-content: space-between;
    padding: 12px 20px;
    font-size: 17px;
  }

  .tg-tabla__version-item::before {
    content: attr(data-feature);
    font-family: var(--font-body);
    font-weight: 400;
  }

  .tg-tabla__version-item strong {
    font-size: 17px;
  }

  .tg-tabla__version-item:last-child {
    border-radius: 0 0 20px 20px;
  }

  .tg-tabla__check {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .tg-tabla__check::after {
    width: 9px;
    height: 17px;
    left: 9px;
    top: 3px;
  }
}

/* ============================================
   SECTION 6 — SOLUCIONES (B2C / B2B)
   ============================================ */
.tg-soluciones {
  padding: 0;
  position: relative;
}

.tg-soluciones__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 48px;
  color: var(--color-black);
  text-align: center;
  padding: 90px 0 40px;
}

.tg-soluciones__row {
  display: flex;
  min-height: 500px;
}

.tg-soluciones__panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.tg-soluciones__panel-bg {
  position: absolute;
  inset: 0;
}

.tg-soluciones__panel-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tg-soluciones__panel--b2c {
  background-color: var(--color-green);
}

.tg-soluciones__panel--b2b {
  background-color: var(--color-blue);
}

.tg-soluciones__panel-content {
  position: relative;
  z-index: 1;
  padding: 255px 60px 60px 200px;
  display: flex;
  flex-direction: column;
}

.tg-soluciones__panel--b2b .tg-soluciones__panel-content {
  padding: 60px 200px 60px 60px;
}

.tg-soluciones__panel-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.1;
  color: var(--color-black);
  margin-bottom: 24px;
}

.tg-soluciones__panel-intro {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 36.6px;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.tg-soluciones__panel-list {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 36.6px;
  color: var(--color-dark);
  list-style: none;
}

.tg-soluciones__panel-list li {
  position: relative;
  padding-left: 18px;
}

.tg-soluciones__panel-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-blue);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .tg-que-es__inner {
    flex-direction: column;
    gap: 40px;
  }

  .tg-que-es__image-col {
    flex: 0 0 auto;
    max-width: 490px;
  }

  .tg-por-que__grid {
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }

  .tg-versiones__card {
    flex-direction: column;
  }

  .tg-versiones__card-img {
    flex: 0 0 250px;
  }

  .tg-versiones__card-cols {
    grid-template-columns: 1fr 1fr;
  }

  .tg-soluciones__row {
    flex-direction: column;
  }

  .tg-tabla__features-col {
    flex: 0 0 300px;
  }
}

@media (max-width: 768px) {
  .tg-intro__heading {
    font-size: 36px;
  }

  .tg-intro__tagline {
    font-size: 19px;
    text-align: center;
  }

  .tg-intro__description {
    font-size: 16px;
    text-align: center;
  }

  .tg-que-es__title {
    font-size: 36px;
  }

  .tg-por-que__grid {
    grid-template-columns: 1fr;
  }

  .tg-por-que__card {
    width: 100%;
    max-width: 270px;
    margin: 0 auto;
  }

  .tg-versiones__card-name {
    font-size: 32px;
  }

  .tg-versiones__card-cols {
    grid-template-columns: 1fr;
  }

  .tg-tabla__table {
    flex-direction: column;
  }

  .tg-soluciones__panel-content {
    padding: 200px 30px 40px 30px;
  }

  .tg-soluciones__panel--b2b .tg-soluciones__panel-content {
    padding: 40px 30px 40px 30px;
  }
}

@media (max-width: 480px) {
  .tg-section {
    padding: 40px 0;
  }

  .tg-intro__heading {
    font-size: 28px;
  }

  .tg-intro__subheading {
    font-size: 16px;
    line-height: 24px;
  }

  .tg-que-es__title,
  .tg-por-que__title,
  .tg-versiones__title,
  .tg-tabla__title,
  .tg-soluciones__title {
    font-size: 30px;
  }

  .tg-que-es__highlight-bg {
    padding: 20px;
  }

  .tg-que-es__usage-cols {
    flex-direction: column;
    gap: 20px;
  }

  .tg-soluciones__panel-title {
    font-size: 24px;
  }
}
