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

:root {
  --color-black: #000000;
  --color-dark: #2B2B2B;
  --color-dark-bg: #232323;
  --color-card-bg: #393939;
  --color-white: #FFFFFF;
  --color-blue: #009FE3;
  --color-green: #3AAA35;
  --color-orange: #F39200;
  --color-light-gray: #E2E2E2;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Montserrat', sans-serif;
  --font-text: 'Inter', sans-serif;
}

* {
  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 CLASSES
   ============================================ */
.tg-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.tg-section__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  text-align: center;
  color: var(--color-dark);
  max-width: 950px;
  margin: 0 auto 30px;
}

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

.tg-text-center {
  text-align: center;
}

.tg-text-white {
  color: var(--color-white);
}

/* ============================================
   SECTION 1: INTRO
   ============================================ */
.tg-intro {
  padding: 100px 0 80px;
  background: var(--color-white);
}

.tg-intro__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  text-align: center;
  color: var(--color-black);
  margin-bottom: 40px;
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
}

.tg-intro__text {
  max-width: 960px;
  margin: 0 auto;
}

.tg-intro__text p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 6px;
}

.tg-intro__text p strong {
  font-weight: 700;
}

/* ============================================
   SECTION 2: DISTRIBUIDOR
   ============================================ */
.tg-distribuidor {
  padding: 60px 0 80px;
  background: var(--color-white);
}

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

.tg-distribuidor__subtitle {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 18px;
  text-align: center;
  color: var(--color-black);
  margin-bottom: 50px;
}

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

/* Diamond layout variables */
.tg-distribuidor__diamonds {
  --diamond-size: 233px;
  --row-offset: 166px;
  --gap: 100px;
  width: fit-content;
  margin: 0 auto;
}

/* Row container */
.tg-distribuidor__diamond-row {
  display: flex;
  gap: var(--gap);
  height: 126px;
}

/* Row positioning */
.tg-distribuidor__diamond-row--1 {
  transform: translateX(0);
}
.tg-distribuidor__diamond-row--2 {
  transform: translate(var(--row-offset), 60px);
}
.tg-distribuidor__diamond-row--3 {
  transform: translate(calc(var(--row-offset) * 2), 120px);
}

/* Diamond shape */
.tg-distribuidor__diamond {
  width: var(--diamond-size);
  height: var(--diamond-size);
  flex: 0 0 var(--diamond-size);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue);
  border-radius: 16px;
  transform: rotate(45deg);
  overflow: hidden;
}

.tg-distribuidor__diamond-text {
  display: block;
  transform: rotate(-45deg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--color-white);
  text-align: center;
  padding: 10px;
  max-width: 140px;
}

/* =========================================
   TABLET (768px - 1199px)
   ========================================= */
@media (max-width: 1199px) {
  .tg-distribuidor__diamonds {
    --diamond-size: 170px;
    --row-offset: 120px;
    --gap: 55px;
  }
  .tg-distribuidor__diamond-row {
    height: 126px;
  }
  .tg-distribuidor__diamond-row--2 {
    transform: translate(var(--row-offset), 45px);
  }
  .tg-distribuidor__diamond-row--3 {
    transform: translate(calc(var(--row-offset) * 2), 90px);
  }
  .tg-distribuidor__diamond {
    border-radius: 14px;
  }
  .tg-distribuidor__diamond-text {
    font-size: 13px;
    max-width: 120px;
  }
}

/* =========================================
   SMALL TABLET (600px - 767px)
   ========================================= */
@media (max-width: 767px) {
  .tg-distribuidor__diamonds {
    --diamond-size: 125px;
    --row-offset: 88px;
    --gap: 35px;
  }
  .tg-distribuidor__diamond-row {
    height: 100px;
  }
  .tg-distribuidor__diamond-row--2 {
    transform: translate(var(--row-offset), 35px);
  }
  .tg-distribuidor__diamond-row--3 {
    transform: translate(calc(var(--row-offset) * 2), 70px);
  }
  .tg-distribuidor__diamond {
    border-radius: 12px;
  }
  .tg-distribuidor__diamond-text {
    font-size: 11px;
    max-width: 95px;
  }
}

/* =========================================
   PHONE (≤ 599px) — 2-column grid
   ========================================= */
@media (max-width: 599px) {
  .tg-distribuidor__diamonds {
    --diamond-size: 135px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, var(--diamond-size));
    justify-content: center;
    column-gap: 55px;
    row-gap: 55px;
    margin: 0 auto;
  }
  .tg-distribuidor__diamond-row {
    display: contents;
  }
  .tg-distribuidor__diamond-row--1,
  .tg-distribuidor__diamond-row--2,
  .tg-distribuidor__diamond-row--3 {
    transform: none;
  }
  .tg-distribuidor__diamond {
    border-radius: 11px;
  }
  .tg-distribuidor__diamond-text {
    font-size: 12px;
    max-width: 130px;
  }
}

/* ============================================
   SECTION 3: MARCAS
   ============================================ */
.tg-marcas {
  background: var(--color-dark-bg);
  padding: 80px 0;
}

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

.tg-marcas__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.tg-marcas__card {
  background: var(--color-card-bg);
  width: 562px;
  max-width: 100%;
  padding: 50px 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tg-marcas__card-logo {
  margin-bottom: 30px;
  height: 60px;
  display: flex;
  align-items: center;
}

.tg-marcas__card-logo img {
  max-height: 60px;
  width: auto;
}

.tg-marcas__card-title {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-white);
  margin-bottom: 20px;
  max-width: 480px;
}

.tg-marcas__card-title span {
  font-weight: 400;
}

.tg-marcas__card-subtitle {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 18px;
  color: var(--color-white);
  margin-bottom: 30px;
}

.tg-marcas__versions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tg-marcas__version {
  text-align: center;
}

.tg-marcas__version img {
  width: 188px;
  height: 260px;
  object-fit: cover;
  margin-bottom: 12px;
}

.tg-marcas__version-label {
  display: inline-block;
  border: 1px solid var(--color-white);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-white);
  min-width: 160px;
}

.tg-marcas__card-note {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.2;
  color: var(--color-white);
  max-width: 540px;
  margin-top: 10px;
}

/* ============================================
   SECTION 4: SOLUCIONES
   ============================================ */
.tg-soluciones {
  background: var(--color-blue);
  padding: 80px 0;
}

.tg-soluciones__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  align-items: flex-start;
}

.tg-soluciones__left {
  flex: 0 0 280px;
  padding-top: 20px;
}

.tg-soluciones__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 48px;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 20px;
}

.tg-soluciones__left-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--color-white);
}

.tg-soluciones__right {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  flex: 1;
  min-width: 0;
}

.tg-soluciones__panel {
  background: rgba(0, 0, 0, 0.1);
  padding: 40px;
  flex: 1;
  min-width: 380px;
}

.tg-soluciones__panel-title {
  font-family: var(--font-text);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-white);
  margin-bottom: 10px;
}

.tg-soluciones__panel-list {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.55;
  color: var(--color-white);
  list-style: none;
}

/* ============================================
   SECTION 5: LICENCIAMIENTO
   ============================================ */
.tg-licenciamiento {
  padding: 80px 0;
  background: var(--color-white);
}

.tg-licenciamiento__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.tg-licenciamiento__content {
  flex: 1;
  min-width: 300px;
}

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

.tg-licenciamiento__intro {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 17px;
  line-height: 36px;
  color: var(--color-dark);
  margin-bottom: 15px;
}

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

.tg-licenciamiento__list li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-blue);
  margin-right: 12px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.tg-licenciamiento__outro {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 17px;
  line-height: 36px;
  color: var(--color-dark);
  margin-top: 15px;
}

.tg-licenciamiento__image {
  flex: 1;
  min-width: 350px;
  display: flex;
  justify-content: center;
}

.tg-licenciamiento__image-wrapper {
  background: var(--color-blue);
  position: relative;
  overflow: hidden;
  max-width: 778px;
}

.tg-licenciamiento__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   SECTION 6: COMBINACION
   ============================================ */
.tg-combinacion {
  padding: 80px 0;
  background: var(--color-white);
}

.tg-combinacion__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.tg-combinacion__image {
  flex: 1;
  min-width: 350px;
}

.tg-combinacion__image-wrapper {
  background: var(--color-green);
  position: relative;
  overflow: hidden;
}

.tg-combinacion__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.tg-combinacion__content {
  flex: 1;
  min-width: 350px;
}

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

.tg-combinacion__text {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 17px;
  line-height: 28.5px;
  color: var(--color-dark);
}

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

/* ============================================
   SECTION 7: BENEFICIOS
   ============================================ */
.tg-beneficios {
  background: var(--color-orange);
  padding: 80px 0;
}

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

.tg-beneficios__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  line-height: 26px;
  text-align: center;
  color: var(--color-white);
  max-width: 930px;
  margin: 0 auto 60px;
}

.tg-beneficios__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.tg-beneficios__item {
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px;
  margin-bottom: 20px;
}

.tg-beneficios__icon {
  width: 83px;
  height: 83px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.tg-beneficios__icon img {
  width: auto;
  height: auto;
  max-width: 50px;
  max-height: 50px;
}

.tg-beneficios__text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  color: var(--color-white);
  text-align: center;
}

.tg-beneficios__item--wide {
  width: 210px;
}

/* ============================================
   SECTION 8: IMPULSE
   ============================================ */
.tg-impulse {
  background: var(--color-light-gray);
  padding: 80px 0;
}

.tg-impulse__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.tg-impulse__content {
  flex: 1;
  min-width: 300px;
  max-width: 560px;
}

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

.tg-impulse__text {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 17px;
  line-height: 26px;
  color: var(--color-dark);
}

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

.tg-impulse__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  flex: 1;
  min-width: 300px;
  justify-content: flex-end;
}

.tg-impulse__cta {
  background: var(--color-dark-bg);
  color: var(--color-white);
  padding: 30px 40px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 280px;
  min-height: 165px;
  transition: background 0.3s ease;
}

.tg-impulse__cta:hover {
  background: #333;
  color: var(--color-white);
  text-decoration: none;
}

.tg-impulse__cta-icon {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tg-impulse__cta-icon img {
  max-width: 100%;
  max-height: 100%;
}

.tg-impulse__cta-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--color-white);
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .tg-marcas__card {
    width: 100%;
    max-width: 562px;
  }
}

@media (max-width: 1024px) {
  .tg-section__title,
  .tg-intro__title,
  .tg-distribuidor__title,
  .tg-marcas__title,
  .tg-soluciones__title,
  .tg-licenciamiento__title,
  .tg-combinacion__title,
  .tg-beneficios__title,
  .tg-impulse__title {
    font-size: 38px;
  }

  .tg-distribuidor__item {
    width: 180px;
    height: 180px;
  }

  .tg-distribuidor__item-text {
    font-size: 14px;
  }

  .tg-soluciones__inner {
    flex-direction: column;
    align-items: center;
  }

  .tg-soluciones__left {
    text-align: center;
    flex: auto;
  }

  .tg-soluciones__right {
    flex-direction: column;
    width: 100%;
  }

  .tg-soluciones__panel {
    min-width: auto;
  }

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

  .tg-licenciamiento__image {
    order: -1;
  }

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

  .tg-combinacion__image {
    order: -1;
  }

  .tg-impulse__inner {
    flex-direction: column;
    text-align: center;
  }

  .tg-impulse__content {
    max-width: 100%;
  }

  .tg-impulse__title {
    text-align: center;
  }

  .tg-impulse__ctas {
    justify-content: center;
  }

  .tg-licenciamiento__title {
    text-align: center;
  }
}

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

  .tg-section__title,
  .tg-intro__title,
  .tg-distribuidor__title,
  .tg-marcas__title,
  .tg-soluciones__title,
  .tg-licenciamiento__title,
  .tg-combinacion__title,
  .tg-beneficios__title,
  .tg-impulse__title {
    font-size: 30px;
  }

  .tg-intro__text p {
    font-size: 16px;
    line-height: 22px;
  }

  .tg-marcas__card {
    padding: 30px 20px;
  }

  .tg-marcas__versions {
    flex-direction: column;
    align-items: center;
  }

  .tg-marcas__version img {
    width: 140px;
    height: 200px;
  }

  .tg-soluciones__title {
    font-size: 30px;
  }

  .tg-soluciones__panel {
    padding: 25px;
  }

  .tg-soluciones__panel-list,
  .tg-soluciones__panel-title {
    font-size: 16px;
  }

  .tg-licenciamiento__list li {
    font-size: 15px;
    line-height: 30px;
  }

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

  .tg-beneficios__item {
    width: 150px;
  }

  .tg-beneficios__icon {
    width: 60px;
    height: 60px;
  }

  .tg-beneficios__icon img {
    max-width: 35px;
    max-height: 35px;
  }

  .tg-beneficios__text {
    font-size: 14px;
  }

  .tg-impulse__cta {
    width: 100%;
    max-width: 280px;
    min-height: 140px;
  }

  .tg-impulse__cta-text {
    font-size: 22px;
  }

  .tg-marcas__card-note {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .tg-section__title,
  .tg-intro__title,
  .tg-distribuidor__title,
  .tg-marcas__title,
  .tg-soluciones__title,
  .tg-licenciamiento__title,
  .tg-combinacion__title,
  .tg-beneficios__title,
  .tg-impulse__title {
    font-size: 26px;
  }

  .tg-marcas__card-logo img {
    max-height: 40px;
  }

  .tg-beneficios__item {
    width: 120px;
  }

  .tg-beneficios__icon {
    width: 50px;
    height: 50px;
  }

  .tg-beneficios__text {
    font-size: 12px;
  }
}
