/* T-Conecta — estilos de las páginas del sitio (index, nosotros, políticas)
   Los tokens y el shell (header, menú, footer, WhatsApp) viven en
   /assets/tc/tc-base.css y se comparten con la tienda. */

body.tc-site {
  margin: 0;
  background: var(--tc-bg);
  -webkit-font-smoothing: antialiased;
}

.tc-page {
  background: var(--tc-bg);
  font-family: var(--tc-font-body);
  color: var(--tc-text);
  min-height: 100vh;
  overflow-x: clip;
}

.tc-page a { color: var(--tc-cyan); text-decoration: none; }
.tc-page a:hover { color: var(--tc-cyan-600); }

/* campos del formulario */
.tc-field::placeholder { color: #5A6577; }
.tc-field:focus { outline: none; border-color: var(--tc-cyan-600); }

/* ── Hero del Home ───────────────────────────────────────── */
@media (max-width: 1023px) {
  #top.hero-home { height: auto !important; padding-bottom: 24px; }
  .tc-hero-img img { width: 100% !important; height: auto !important; }

  /* la diadema va full-bleed, sin márgenes laterales */
  .tc-hero-img {
    margin-left: calc(-1 * var(--tc-gutter));
    margin-right: calc(-1 * var(--tc-gutter));
    max-width: none !important;
    width: calc(100% + 2 * var(--tc-gutter)) !important;
    flex-basis: calc(100% + 2 * var(--tc-gutter)) !important;
  }

  /* los rayos ocupan solo el área de la diadema, detrás de ella */
  #top.hero-home #hero-canvas {
    top: clamp(24px, 5vw, 64px);
    left: var(--tc-gutter);
    right: var(--tc-gutter);
    bottom: auto;
    width: auto;
    height: auto;
    aspect-ratio: 967 / 717;
  }
}

@media (min-width: 1024px) {
  .tc-hero-row {
    min-height: 600px;
    justify-content: flex-end !important;
  }

  .tc-hero-img {
    position: absolute;
    left: clamp(0px, 2vw, 40px);
    top: 0;
    width: 967px;
    height: 717px;
    max-width: none;
    flex: none !important;
    pointer-events: none;
  }

  .tc-hero-img img {
    width: 967px;
    height: 717px;
    object-fit: contain;
  }

  .tc-benefits {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 46px;
    width: 1280px;
    max-width: calc(100% - 32px);
  }
}

@media (max-width: 768px) {
  .hero-cta { gap: 20px !important; }
  .hero-btn { flex: 1 1 100% !important; width: 100% !important; }
}

/* reCAPTCHA: el widget mide 304px; en pantallas angostas se escala para no desbordar */
.tc-captcha { min-height: 78px; max-width: 100%; }
@media (max-width: 360px) {
  .tc-captcha .g-recaptcha { transform: scale(.88); transform-origin: 0 0; }
}

/* Contador de caracteres del mensaje */
.tc-counter { align-self: flex-end; font-size: 12px; line-height: 1; color: #858A8C; font-variant-numeric: tabular-nums; transition: color .2s ease; }
.tc-counter.is-near { color: #F5B544; }
.tc-counter.is-full { color: var(--tc-hot); font-weight: 600; }

/* ── Nuestros aliados (Home): 4 logos, sin enlace ni interacción ── */
.tc-aliados { margin-top: 45px; border-bottom: 1px solid var(--tc-surface-2); }
.tc-aliados__inner {
  max-width: var(--tc-max); margin: 0 auto; box-sizing: border-box;
  padding: 24px var(--tc-gutter) 32px; display: flex; flex-direction: column; gap: 20px;
}
.tc-aliados__title {
  margin: 0; text-align: center; color: var(--tc-text);
  font-family: var(--tc-font-display); font-weight: 400; font-size: 20px; letter-spacing: 2px;
}
.tc-aliados__grid {
  list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 920px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.tc-aliados__item {
  aspect-ratio: 2 / 1; border-radius: var(--tc-radius-sm); overflow: hidden;
  background: var(--tc-surface-2); border: 1px solid var(--tc-border);
}
.tc-aliados__item img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tc-aliados__item.is-empty img { visibility: hidden; } /* mientras no se suba el logo */
@media (max-width: 640px) {
  .tc-aliados__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
