/* TodAps Home refresh — servicios, bio y promoción */

/* Visibilidad segura: contenido nunca depende de IntersectionObserver. */
.reveal-on-scroll,
.dw-reveal {
  opacity: 1 !important;
  transform: none !important;
}

/* Contraste estable frente al reset global de enlaces. */
.hero-primary-cta {
  color: #ffffff !important;
}

.hero-primary-cta svg {
  color: currentColor !important;
  stroke: currentColor !important;
}

html.dark .hero-primary-cta {
  color: #0f172a !important;
}

.home-promo-strip {
  width: min(74rem, calc(100% - 2rem));
  min-height: 78px;
  margin: 1.5rem auto 2.5rem;
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .42), transparent 25%),
    linear-gradient(120deg, #dff7ff, #e7efff);
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 16px 44px rgba(37, 99, 235, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.home-promo-strip:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(37, 99, 235, .13);
}

.home-promo-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #2563eb;
}

.home-promo-icon svg,
.home-promo-action svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.home-promo-copy {
  min-width: 0;
  display: grid;
  gap: .18rem;
}

.home-promo-copy small {
  color: #087fa2;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-promo-copy strong {
  font-size: clamp(.94rem, 2vw, 1.14rem);
  line-height: 1.25;
  letter-spacing: -.015em;
}

.home-promo-action {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #1d4ed8;
  font-size: .83rem;
  font-weight: 900;
  white-space: nowrap;
}

.home-services {
  margin-top: 2rem;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: clamp(28px, 4vw, 42px);
  background:
    radial-gradient(circle at 100% 0%, rgba(6, 182, 212, .13), transparent 32%),
    linear-gradient(145deg, #f1f7ff, #f8fafc 58%);
}

.home-services-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .65fr);
  align-items: end;
  gap: 2rem 4rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.home-kicker {
  margin: 0 0 .8rem;
  color: #087fa2;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-services-head h2,
.home-bio h2 {
  margin: 0;
  color: var(--td-ink);
  font-size: clamp(2.45rem, 5.8vw, 5rem);
  line-height: .94;
  letter-spacing: -.065em;
  font-weight: 950;
  text-wrap: balance;
}

.home-services-head > p {
  margin: 0;
  color: var(--td-ink-dim);
  font-size: 1rem;
  line-height: 1.7;
}

.home-service-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: .25rem;
  list-style: none;
}

.home-service-row {
  width: 100%;
  min-height: 88px;
  padding: 1rem 1.15rem;
  display: grid;
  grid-template-columns: 2rem 2.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  border: 0 !important;
  border-radius: 22px;
  background: transparent;
  color: var(--td-ink);
  text-align: left;
  cursor: pointer;
  overflow: visible !important;
  transition: background .22s ease, transform .22s ease !important;
}

.home-service-row:hover,
.home-service-row:focus-visible {
  background: rgba(255, 255, 255, .78);
  transform: translateX(6px);
  outline: none;
}

.home-service-index {
  color: #0891b2;
  font-size: .72rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.home-service-icon {
  width: 27px;
  height: 27px;
  color: #2563eb;
  stroke-width: 1.7;
}

.home-service-copy {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(11rem, .55fr) minmax(15rem, 1fr);
  align-items: center;
  gap: 1.5rem;
}

.home-service-copy strong {
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  line-height: 1.1;
  letter-spacing: -.035em;
}

.home-service-copy small {
  color: var(--td-ink-dim);
  font-size: .88rem;
  line-height: 1.5;
}

.home-service-action {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #2563eb;
  font-size: .78rem;
  font-weight: 900;
}

.home-service-action svg {
  width: 17px;
  height: 17px;
}

.home-bio {
  margin-top: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(20rem, .75fr);
  gap: 3rem 6rem;
  border-radius: clamp(28px, 4vw, 42px);
  background:
    radial-gradient(circle at 8% 12%, rgba(37, 99, 235, .12), transparent 30%),
    linear-gradient(145deg, #ffffff, #eef6ff);
}

.home-bio-role {
  max-width: 24rem;
  margin: 1.35rem 0 0;
  color: #087fa2;
  font-size: .92rem;
  font-weight: 800;
}

.home-bio-content {
  align-self: end;
}

.home-bio-content > p {
  margin: 0;
  color: var(--td-ink-dim);
  font-size: .98rem;
  line-height: 1.75;
}

.home-bio-content > p + p {
  margin-top: 1rem;
}

.home-bio-content .home-bio-lead {
  color: var(--td-ink);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.6;
}

.home-bio-actions {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem 1.4rem;
  flex-wrap: wrap;
}

.home-bio-actions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 900;
}

.home-bio-actions svg {
  width: 19px;
  height: 19px;
}

.home-bio-primary {
  padding: .8rem 1.15rem;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
}

.home-bio-primary:hover {
  transform: translateY(-2px);
}

.home-bio-social {
  color: #2563eb !important;
}

html.dark .home-promo-strip {
  background:
    radial-gradient(circle at 85% 20%, rgba(34, 211, 238, .14), transparent 28%),
    linear-gradient(120deg, #172033, #14253a);
  color: #f8fafc;
}

html.dark .home-promo-copy small,
html.dark .home-promo-action {
  color: #67e8f9;
}

html.dark .home-services {
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, .12), transparent 30%),
    linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .78));
}

html.dark .home-service-row:hover,
html.dark .home-service-row:focus-visible {
  background: rgba(255, 255, 255, .06);
}

html.dark .home-bio {
  background:
    radial-gradient(circle at 8% 12%, rgba(37, 99, 235, .16), transparent 30%),
    linear-gradient(145deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .8));
}

html.dark .home-bio-primary {
  background: #f8fafc;
  color: #0f172a !important;
  box-shadow: none;
}

@media (max-width: 900px) {
  .home-services-head,
  .home-bio {
    grid-template-columns: 1fr;
  }

  .home-services-head {
    align-items: start;
  }

  .home-service-copy {
    grid-template-columns: 1fr;
    gap: .35rem;
  }
}

@media (max-width: 640px) {
  .home-promo-strip {
    width: calc(100% - 1.5rem);
    margin: .75rem auto 1.5rem;
    grid-template-columns: minmax(0, 1fr) auto;
    border-radius: 20px;
  }

  .home-promo-icon {
    display: none;
  }

  .home-promo-action > span {
    display: none;
  }

  .home-services {
    margin-inline: -.25rem;
    padding: 2rem 1rem;
    border-radius: 26px;
  }

  .home-services-head {
    gap: 1.2rem;
  }

  .home-services-head h2,
  .home-bio h2 {
    font-size: clamp(2.4rem, 13vw, 3.6rem);
  }

  .home-service-row {
    min-height: 92px;
    padding: .9rem .55rem;
    grid-template-columns: 1.5rem 1.8rem minmax(0, 1fr);
    gap: .75rem;
  }

  .home-service-index {
    font-size: .65rem;
  }

  .home-service-icon {
    width: 24px;
    height: 24px;
  }

  .home-service-copy strong {
    font-size: 1.12rem;
  }

  .home-service-copy small {
    font-size: .8rem;
  }

  .home-service-action {
    display: none;
  }

  .home-service-row:hover {
    transform: none;
  }

  .home-bio {
    padding: 2rem 1.25rem;
    gap: 2rem;
    border-radius: 26px;
  }

  .home-bio-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-bio-actions a {
    width: 100%;
  }
}
