/* =========================
   GENERAL THEME
   ========================= */

:root {
  --ht-bg: #020617;
  --ht-bg-alt: #050b1f;
  --ht-card-bg: rgba(15, 23, 42, 0.96);
  --ht-border-subtle: rgba(148, 163, 184, 0.35);
  --ht-text: #f9fafb;
  --ht-text-muted: #9ca3af;
  --ht-coral: #ea4f49;               /* solo H Solutech */
  --ht-coral-soft: rgba(234, 79, 73, 0.12);
  --ht-brand: #2272ff;               /* azul de la app H-TecTime */
  --ht-brand-light: #5aa2ff;
  --ht-brand-sky: #38bdf8;
  --ht-brand-soft: rgba(34, 114, 255, 0.14);
  --ht-loss: #ea4f49;                /* coral H Solutech: pérdidas en la calculadora */
  --ht-primary: #2272ff;
  --ht-primary-soft: rgba(34, 114, 255, 0.13);
  --ht-radius-xl: 1.6rem;
  --ht-shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.7);
}

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

.ht-body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #0f172a, #020617 55%);
  color: var(--ht-text);
  -webkit-font-smoothing: antialiased;
}

.ht-page {
  min-height: 100vh;
}

/* Containers */
.ht-container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

/* =========================
   H-TECTIME TOPBAR
   ========================= */

.htectime-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background:
    radial-gradient(
      circle at left,
      rgba(37, 99, 235, 0.22),
      transparent 55%
    ),
    radial-gradient(
      circle at right,
      rgba(56, 189, 248, 0.16),
      transparent 55%
    ),
    linear-gradient(
      to right,
      rgba(2, 6, 23, 0.96),
      rgba(15, 23, 42, 0.98)
    );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.65rem 0;
  transition:
    padding 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.htectime-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Marca izquierda: logo + texto */
.htectime-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.htectime-logo {
  height: 80px;
  width: auto;
  display: block;
}

.htectime-name {
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #e5e7eb;
  font-weight: 500;
}

/* Botón “Back to main site” */
.htectime-back-link {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(10px);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.htectime-back-link:hover {
  background: rgba(234, 79, 73, 0.14);
  border-color: rgba(234, 79, 73, 0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

/* Versión móvil */
@media (max-width: 640px) {
  .htectime-header-inner {
    padding: 0.6rem 1rem;
  }

  .htectime-logo {
    height: 40px;
  }

  .htectime-name {
    font-size: 0.85rem;
    letter-spacing: 0.22em;
  }

  .htectime-back-link {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }
}


/* Transiciones suaves */
.htectime-header {
  transition:
    padding 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.htectime-logo,
.htectime-name,
.htectime-back-link {
  transition: all 0.25s ease;
}

/* Estado cuando el usuario ya hizo scroll */
.htectime-header.is-compact {
  background: rgba(2, 6, 23, 0.98);
  padding: 0.35rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
}

.htectime-header.is-compact .htectime-header-inner {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* Logo más pequeño */
.htectime-header.is-compact .htectime-logo {
  height: 40px;
}


.htectime-header.is-compact .htectime-name {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
}


.htectime-header.is-compact .htectime-back-link {
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  transform: translateY(0) scale(0.96);
}




/* =========================
   HERO
   ========================= */

.ht-hero {
  position: relative;
  padding: 3.5rem 0 3.8rem;
  overflow: hidden;
}

.ht-hero-bg {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top left, rgba(34, 114, 255, 0.35), transparent 55%),
    radial-gradient(circle at top right, rgba(34, 114, 255, 0.32), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.ht-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.ht-hero-copy h1 {
  font-size: clamp(2.2rem, 3vw + 1rem, 2.8rem);
  margin-bottom: 1rem;
}

.ht-hero-copy p {
  max-width: 520px;
  color: var(--ht-text-muted);
  font-size: 0.98rem;
}

.ht-hero-bullets {
  margin: 1.2rem 0 1.6rem;
  padding-left: 1rem;
  color: var(--ht-text-muted);
  font-size: 0.95rem;
}

.ht-hero-bullets li + li {
  margin-top: 0.25rem;
}

.ht-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Buttons */
.ht-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
}

.ht-btn-primary {
  background: linear-gradient(120deg, var(--ht-brand), var(--ht-brand-light));
  color: #ffffff;
  box-shadow: 0 16px 35px rgba(34, 114, 255, 0.35);
}

.ht-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(34, 114, 255, 0.45);
}

.ht-btn-ghost {
  color: var(--ht-text);
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.7);
}

.ht-btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

.w-full {
  width: 100%;
}

/* Hero card */
.ht-hero-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--ht-radius-xl);
  padding: 1.8rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--ht-shadow-soft);
}

.ht-hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.25rem;
}

.ht-hero-card p {
  font-size: 0.93rem;
  color: var(--ht-text-muted);
}

.ht-hero-taglist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0.8rem;
}

.ht-tag {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.ht-hero-note {
  font-size: 0.82rem;
  color: var(--ht-text-muted);
}

/* =========================
   SECTIONS
   ========================= */

.ht-section {
  padding: 3.5rem 0;
  background: transparent;
}

.ht-section-alt {
  background: linear-gradient(to bottom, #020617, #020617 30%, #020617 100%);
}

.ht-section-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.ht-section-header.left {
  text-align: left;
}

.ht-section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.7rem;
}

.ht-section-header p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ht-text-muted);
}

/* =========================
   FEATURES
   ========================= */

.ht-features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ht-feature-card {
  background: var(--ht-card-bg);
  border-radius: 1.4rem;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--ht-border-subtle);
  box-shadow: var(--ht-shadow-soft);
  position: relative;
  overflow: hidden;
}

.ht-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(34, 114, 255, 0.3), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.ht-feature-card:hover::before {
  opacity: 1;
}

.ht-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--ht-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.ht-feature-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.ht-feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.ht-feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ht-text-muted);
}

/* =========================
   WHY + HIGHLIGHT
   ========================= */

.ht-why-grid {
  display: grid;
  gap: 2.3rem;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.ht-checklist {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  color: var(--ht-text-muted);
  font-size: 0.93rem;
}

.ht-checklist.small {
  font-size: 0.9rem;
}

.ht-checklist li {
  position: relative;
  padding-left: 1.3rem;
  margin-bottom: 0.5rem;
}

.ht-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.03rem;
  font-size: 0.8rem;
  color: var(--ht-brand);
}

/* comparación sin / con H-TecTime */
.ht-compare {
  align-self: center;
  background: var(--ht-card-bg);
  border: 1px solid var(--ht-border-subtle);
  border-radius: var(--ht-radius-xl);
  box-shadow: var(--ht-shadow-soft);
  overflow: hidden;
  font-size: 0.92rem;
}

.ht-compare__head,
.ht-compare__list li {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ht-compare__head span {
  padding: 0.85rem 1.2rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ht-text-muted);
}

.ht-compare__head span:last-child {
  color: #fff;
  background: linear-gradient(135deg, var(--ht-brand), var(--ht-brand-light));
}

.ht-compare__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ht-compare__list li + li {
  border-top: 1px solid var(--ht-border-subtle);
}

.ht-compare__before,
.ht-compare__after {
  position: relative;
  padding: 0.8rem 1.2rem 0.8rem 2.4rem;
  line-height: 1.4;
}

.ht-compare__before {
  color: var(--ht-text-muted);
}

.ht-compare__after {
  color: var(--ht-text);
  background: rgba(34, 114, 255, 0.07);
}

.ht-compare__before::before,
.ht-compare__after::before {
  position: absolute;
  left: 1.1rem;
  top: 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.ht-compare__before::before {
  content: "✕";
  color: var(--ht-loss);
}

.ht-compare__after::before {
  content: "✓";
  color: var(--ht-brand-light);
}

.ht-compare__note {
  margin: 0;
  padding: 0.9rem 1.2rem;
  border-top: 1px solid var(--ht-border-subtle);
  font-size: 0.84rem;
  color: var(--ht-text-muted);
}

/* aviso: adiós al reloj biométrico */
.ht-callout {
  margin: 1.4rem 0 0;
  padding: 0.95rem 1.1rem;
  border-left: 3px solid var(--ht-brand);
  border-radius: 0 0.8rem 0.8rem 0;
  background: linear-gradient(90deg, rgba(34, 114, 255, 0.14), rgba(34, 114, 255, 0.02));
  color: var(--ht-text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.ht-callout strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ht-text);
  font-size: 1rem;
}

/* animación al entrar en pantalla */
[data-reveal] .ht-checklist li,
[data-reveal] .ht-callout,
[data-reveal] .ht-compare,
[data-reveal] .ht-compare__before,
[data-reveal] .ht-compare__after,
[data-reveal] .ht-compare__note {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal] .ht-checklist li { transform: translateX(-14px); }
[data-reveal] .ht-callout { transform: translateY(12px); }
[data-reveal] .ht-compare { transform: translateY(20px) scale(0.98); }
[data-reveal] .ht-compare__after { transform: translateX(14px); }

/* la ✓ hace un pequeño "pop" cuando aparece */
[data-reveal] .ht-compare__after::before { transform: scale(0); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1.6); }

[data-reveal].is-visible .ht-checklist li,
[data-reveal].is-visible .ht-callout,
[data-reveal].is-visible .ht-compare,
[data-reveal].is-visible .ht-compare__before,
[data-reveal].is-visible .ht-compare__after,
[data-reveal].is-visible .ht-compare__note {
  opacity: 1;
  transform: none;
}

[data-reveal].is-visible .ht-compare__after::before { transform: scale(1); }

/* la lista de la izquierda entra una por una */
[data-reveal].is-visible .ht-checklist li:nth-child(1) { transition-delay: 0.05s; }
[data-reveal].is-visible .ht-checklist li:nth-child(2) { transition-delay: 0.12s; }
[data-reveal].is-visible .ht-checklist li:nth-child(3) { transition-delay: 0.19s; }
[data-reveal].is-visible .ht-checklist li:nth-child(4) { transition-delay: 0.26s; }
[data-reveal].is-visible .ht-checklist li:nth-child(5) { transition-delay: 0.33s; }
[data-reveal].is-visible .ht-checklist li:nth-child(6) { transition-delay: 0.40s; }
[data-reveal].is-visible .ht-callout { transition-delay: 0.55s; }

/* en la tabla: primero aparece el problema y luego la solución, fila por fila */
[data-reveal].is-visible .ht-compare { transition-delay: 0.1s; }
[data-reveal].is-visible .ht-compare__list li:nth-child(1) .ht-compare__before { transition-delay: 0.35s; }
[data-reveal].is-visible .ht-compare__list li:nth-child(1) .ht-compare__after,
[data-reveal].is-visible .ht-compare__list li:nth-child(1) .ht-compare__after::before { transition-delay: 0.50s; }
[data-reveal].is-visible .ht-compare__list li:nth-child(2) .ht-compare__before { transition-delay: 0.63s; }
[data-reveal].is-visible .ht-compare__list li:nth-child(2) .ht-compare__after,
[data-reveal].is-visible .ht-compare__list li:nth-child(2) .ht-compare__after::before { transition-delay: 0.78s; }
[data-reveal].is-visible .ht-compare__list li:nth-child(3) .ht-compare__before { transition-delay: 0.91s; }
[data-reveal].is-visible .ht-compare__list li:nth-child(3) .ht-compare__after,
[data-reveal].is-visible .ht-compare__list li:nth-child(3) .ht-compare__after::before { transition-delay: 1.06s; }
[data-reveal].is-visible .ht-compare__list li:nth-child(4) .ht-compare__before { transition-delay: 1.19s; }
[data-reveal].is-visible .ht-compare__list li:nth-child(4) .ht-compare__after,
[data-reveal].is-visible .ht-compare__list li:nth-child(4) .ht-compare__after::before { transition-delay: 1.34s; }
[data-reveal].is-visible .ht-compare__list li:nth-child(5) .ht-compare__before { transition-delay: 1.47s; }
[data-reveal].is-visible .ht-compare__list li:nth-child(5) .ht-compare__after,
[data-reveal].is-visible .ht-compare__list li:nth-child(5) .ht-compare__after::before { transition-delay: 1.62s; }
[data-reveal].is-visible .ht-compare__list li:nth-child(6) .ht-compare__before { transition-delay: 1.75s; }
[data-reveal].is-visible .ht-compare__list li:nth-child(6) .ht-compare__after,
[data-reveal].is-visible .ht-compare__list li:nth-child(6) .ht-compare__after::before { transition-delay: 1.90s; }
[data-reveal].is-visible .ht-compare__note { transition-delay: 2.1s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] *,
  [data-reveal] *::before { opacity: 1 !important; transform: none !important; translate: none !important; transition: none !important; }
}

@media (max-width: 520px) {
  .ht-compare { font-size: 0.85rem; }
  .ht-compare__head span,
  .ht-compare__note { padding-left: 0.9rem; padding-right: 0.9rem; }
  .ht-compare__before,
  .ht-compare__after { padding: 0.7rem 0.7rem 0.7rem 1.8rem; }
  .ht-compare__before::before,
  .ht-compare__after::before { left: 0.7rem; top: 0.7rem; }
}

/* =========================
   PLANS
   ========================= */

.ht-plans-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ht-plan-card {
  background: var(--ht-card-bg);
  border-radius: 1.5rem;
  padding: 1.7rem 1.5rem 1.4rem;
  border: 1px solid var(--ht-border-subtle);
  box-shadow: var(--ht-shadow-soft);
  position: relative;
}

.ht-plan-featured {
  border-color: rgba(34, 114, 255, 0.8);
  box-shadow: 0 22px 50px rgba(34, 114, 255, 0.35);
  transform: translateY(-4px);
}

.ht-plan-soon {
  opacity: 0.92;
}

.ht-plan-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ht-text-muted);
  margin-bottom: 0.2rem;
}

.ht-plan-badge {
  position: absolute;
  top: 1.3rem;
  right: 1.2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  background: var(--ht-brand);
  color: #111827;
}

.ht-plan-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.ht-plan-tagline {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  color: var(--ht-text-muted);
}

.ht-plan-list {
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
  font-size: 0.9rem;
  color: var(--ht-text-muted);
}

.ht-plan-list li + li {
  margin-top: 0.3rem;
}

.ht-plan-note {
  font-size: 0.8rem;
  color: var(--ht-text-muted);
}

.ht-plans-cta {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ht-text-muted);
}

.ht-plans-cta a {
  color: var(--ht-brand);
  text-decoration: none;
}

.ht-plans-cta a:hover {
  text-decoration: underline;
}

/* =========================
   TECH
   ========================= */

.ht-tech-grid {
  display: grid;
  gap: 2.3rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.ht-tech-card {
  align-self: center;
  background: var(--ht-card-bg);
  border-radius: var(--ht-radius-xl);
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--ht-border-subtle);
  box-shadow: var(--ht-shadow-soft);
  font-size: 0.92rem;
  color: var(--ht-text-muted);
}

/* diagrama: app → AWS → panel */
.ht-flow__label {
  margin: 0 0 1rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ht-text-muted);
}

.ht-flow {
  display: flex;
  align-items: center;
}

.ht-flow__node {
  flex: 0 0 auto;
  width: 30%;
  padding: 0.8rem 0.6rem;
  border-radius: 0.9rem;
  border: 1px solid var(--ht-border-subtle);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.ht-flow__node strong {
  display: block;
  color: var(--ht-text);
  font-size: 0.92rem;
}

.ht-flow__node small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.74rem;
  line-height: 1.3;
}

.ht-flow__node--cloud {
  border-color: rgba(90, 162, 255, 0.6);
  background: linear-gradient(135deg, rgba(34, 114, 255, 0.25), rgba(56, 189, 248, 0.1));
  box-shadow: 0 0 28px rgba(34, 114, 255, 0.28);
}

.ht-flow__node--cloud strong {
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.ht-flow__link {
  position: relative;
  flex: 1 1 auto;
  height: 2px;
  margin: 0 0.3rem;
  background: repeating-linear-gradient(90deg, rgba(90, 162, 255, 0.55) 0 6px, transparent 6px 11px);
}

/* el puntito que viaja por la línea */
.ht-flow__link i {
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--ht-brand-sky);
  box-shadow: 0 0 10px var(--ht-brand-sky), 0 0 2px #fff;
  animation: htFlowDot 2.4s linear infinite;
}

.ht-flow__link + .ht-flow__node + .ht-flow__link i {
  animation-delay: 1.2s;
}

.ht-flow__link em {
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ht-brand-light);
  white-space: nowrap;
}

@keyframes htFlowDot {
  0%   { left: 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}

/* el nodo de la nube "respira" */
.ht-flow__node--cloud {
  animation: htCloudGlow 3s ease-in-out infinite;
}

@keyframes htCloudGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(34, 114, 255, 0.2); }
  50%      { box-shadow: 0 0 36px rgba(34, 114, 255, 0.45); }
}

.ht-tech-facts {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  border-top: 1px solid var(--ht-border-subtle);
}

.ht-tech-facts li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  line-height: 1.45;
}

.ht-tech-facts li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ht-tech-facts li::before {
  content: "✓";
  position: absolute;
  left: 0.1rem;
  top: 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ht-brand-light);
}

.ht-tech-facts strong {
  color: var(--ht-text);
  font-weight: 600;
}

/* entrada al bajar */
[data-reveal] .ht-tech-card,
[data-reveal] .ht-flow__node,
[data-reveal] .ht-tech-facts li {
  opacity: 0;
  translate: 0 16px;
  transition: opacity 0.5s ease, translate 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible .ht-tech-card,
[data-reveal].is-visible .ht-flow__node,
[data-reveal].is-visible .ht-tech-facts li {
  opacity: 1;
  translate: 0 0;
}

[data-reveal].is-visible .ht-flow__node:nth-child(1) { transition-delay: 0.3s; }
[data-reveal].is-visible .ht-flow__node:nth-child(3) { transition-delay: 0.55s; }
[data-reveal].is-visible .ht-flow__node:nth-child(5) { transition-delay: 0.8s; }
[data-reveal].is-visible .ht-tech-facts li:nth-child(1) { transition-delay: 1s; }
[data-reveal].is-visible .ht-tech-facts li:nth-child(2) { transition-delay: 1.15s; }
[data-reveal].is-visible .ht-tech-facts li:nth-child(3) { transition-delay: 1.3s; }

/* en celular: diagrama vertical */
@media (max-width: 520px) {
  .ht-flow {
    flex-direction: column;
    align-items: stretch;
  }

  .ht-flow__node {
    width: auto;
  }

  .ht-flow__link {
    width: 2px;
    height: 2.4rem;
    margin: 0.3rem auto;
    background: repeating-linear-gradient(180deg, rgba(90, 162, 255, 0.55) 0 6px, transparent 6px 11px);
  }

  .ht-flow__link i {
    top: 0;
    left: 50%;
    margin: 0 0 0 -4px;
    animation-name: htFlowDotY;
  }

  .ht-flow__link em {
    bottom: auto;
    top: 50%;
    left: 0.7rem;
    transform: translateY(-50%);
  }
}

@keyframes htFlowDotY {
  0%   { top: 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: calc(100% - 8px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ht-flow__link i,
  .ht-flow__node--cloud { animation: none; }
}

/* =========================
   APP DOWNLOAD
   ========================= */

.ht-app-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
}

/* botones de tienda hechos en HTML (se ven nítidos y del mismo tamaño) */
.ht-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.ht-store {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 172px;
  padding: 0.55rem 1.1rem 0.55rem 0.8rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ht-store:hover {
  transform: translateY(-2px);
  border-color: var(--ht-brand-light);
  box-shadow: 0 10px 26px rgba(34, 114, 255, 0.25);
}

.ht-store img {
  width: 28px;
  height: 28px;
}

.ht-store span {
  display: flex;
  flex-direction: column;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
}

.ht-store small {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

.ht-app-privacy {
  margin: 1.1rem 0 0;
  font-size: 0.8rem;
}

.ht-app-privacy a {
  color: var(--ht-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ht-app-privacy a:hover {
  color: var(--ht-brand-light);
}

/* =========================
   CONTACT
   ========================= */

.ht-contact-section {
  position: relative;
  isolation: isolate;
}

/* brillo azul detrás del formulario */
.ht-contact-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: 8%;
  top: 18%;
  width: min(520px, 60vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 114, 255, 0.22), transparent 65%);
  pointer-events: none;
}

.ht-contact-grid {
  display: grid;
  gap: 2.8rem;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
}

.ht-contact-copy .ht-section-header p strong {
  color: var(--ht-text);
}

.ht-talk {
  margin-top: 1.8rem;
  max-width: 380px;
}

.ht-talk__title {
  margin: 0 0 0.6rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ht-text-muted);
}

.ht-talk__row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.8rem 2rem 0.8rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--ht-text);
  text-decoration: none;
  transition: color 0.2s ease, padding 0.2s ease;
}

.ht-talk__row:last-child {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.ht-talk__row small {
  flex: 0 0 5.5rem;
  font-size: 0.78rem;
  color: var(--ht-text-muted);
}

.ht-talk__row::after {
  content: "→";
  position: absolute;
  right: 0.2rem;
  color: var(--ht-brand-light);
  transition: transform 0.2s ease;
}

.ht-talk__row:hover {
  color: var(--ht-brand-light);
}

.ht-talk__row:hover::after {
  transform: translateX(4px);
}

.ht-contact-card {
  padding: 1.8rem 1.6rem 1.4rem;
  border-radius: var(--ht-radius-xl);
  border: 1px solid rgba(90, 162, 255, 0.35);
  background: linear-gradient(180deg, rgba(23, 33, 58, 0.96), rgba(12, 18, 36, 0.96));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.ht-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.9rem;
}

.ht-field {
  margin-bottom: 0.95rem;
}

.ht-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #cbd5e1;
}

.ht-optional {
  font-weight: 400;
  color: var(--ht-text-muted);
}

.ht-field input,
.ht-field select,
.ht-field textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(2, 6, 23, 0.7);
  padding: 0.72rem 0.9rem;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ht-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ht-field input::placeholder,
.ht-field textarea::placeholder {
  color: #64748b;
}

.ht-field select {
  appearance: none;
  padding-right: 2.2rem;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 52%, calc(100% - 0.8rem) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.ht-field select option {
  background: #0b1226;
  color: var(--ht-text);
}

.ht-field input:hover,
.ht-field select:hover,
.ht-field textarea:hover {
  border-color: rgba(148, 163, 184, 0.5);
}

.ht-field input:focus,
.ht-field select:focus,
.ht-field textarea:focus {
  outline: none;
  border-color: var(--ht-brand-light);
  background: rgba(2, 6, 23, 0.9);
  box-shadow: 0 0 0 3px rgba(34, 114, 255, 0.25);
}

.ht-field textarea {
  resize: vertical;
  min-height: 90px;
}

.ht-contact-card .ht-btn {
  margin-top: 0.3rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  font-size: 1rem;
}

.ht-form-note {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ht-text-muted);
}

.ht-contact-card .form-status:empty {
  display: none;
}

/* entrada al bajar */
[data-reveal] .ht-contact-card,
[data-reveal] .ht-stores,
[data-reveal] .ht-app-visual {
  opacity: 0;
  translate: 0 20px;
  transition: opacity 0.6s ease 0.15s, translate 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s;
}

[data-reveal].is-visible .ht-contact-card,
[data-reveal].is-visible .ht-stores,
[data-reveal].is-visible .ht-app-visual {
  opacity: 1;
  translate: 0 0;
}

@media (max-width: 520px) {
  .ht-form__row {
    grid-template-columns: 1fr;
  }

  .ht-contact-card {
    padding: 1.4rem 1.1rem 1.1rem;
  }

  .ht-store {
    min-width: 0;
    flex: 1 1 140px;
  }
}

/* =========================
   FOOTER
   ========================= */

.ht-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.2rem 0 1.4rem;
  background: #020617;
}

.ht-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ht-text-muted);
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 960px) {
  .ht-hero-grid,
  .ht-why-grid,
  .ht-plans-grid,
  .ht-tech-grid,
  .ht-app-grid,
  .ht-contact-grid,
  .ht-features-grid {
    grid-template-columns: 1fr;
  }

  .ht-hero {
    padding-top: 2.6rem;
  }

  .ht-plan-featured {
    transform: none;
  }
}

@media (max-width: 640px) {
  .ht-topbar-inner {
    padding-inline: 1rem;
  }

  .ht-container {
    width: min(100% - 1.8rem, 1120px);
  }

  .ht-hero-copy h1 {
    font-size: 2rem;
  }

  .ht-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}



/* =========================
   BOTÓN "BACK TO TOP" 
   ========================= */

.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  background: radial-gradient(circle at 30% 20%, #ffffff, #f97362);
  color: #111827;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.2s ease;
  z-index: 60;
}

/* Estado visible */
.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* Hover */
.scroll-top:hover {
  transform: translateY(-3px);
}

@media (max-width: 640px) {
  .scroll-top {
    bottom: 1.2rem;
    right: 1.2rem;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}


.ht-link-coral {
  color: #EA4F49; 
  text-decoration: underline;
}

.ht-link-coral:hover {
  color: #f8706b; 
}
/* =========================
   HEADER: volver + selector de idioma
   ========================= */
.htectime-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-switcher.lang-switcher--inline {
  position: static;
  top: auto;
  right: auto;
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 520px) {
  .htectime-right {
    gap: 0.75rem;
  }

  .htectime-back-link {
    font-size: 0.85rem;
  }
}

/* =========================
   HERO CON MOCKUP (tamaño contenido)
   ========================= */
.ht-hero-grid--visual {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.mock-stage {
  position: relative;
  max-width: 520px;
  margin-left: auto;
  padding: 0 0 2rem 2rem;
}

.mock-phone--overlap {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24%;
  min-width: 90px;
  max-width: 125px;
  padding: 4px;
  border-radius: 20px;
}

.mock-phone--overlap img {
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
  border-radius: 16px;
}

/* =========================
   SHOWCASE: capturas + texto
   ========================= */
.ht-show-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  margin-top: 4rem;
}

.ht-section-header + .ht-show-row {
  margin-top: 0.5rem;
}

.ht-show-row .mock-browser {
  width: 100%;
  max-width: 500px;
  justify-self: center;
}

.ht-show-row--reverse .ht-show-copy {
  order: 2;
}

.ht-show-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--ht-brand-soft);
  color: var(--ht-brand);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ht-show-copy h3 {
  margin: 0.75rem 0 0.6rem;
  font-size: clamp(1.25rem, 1vw + 1rem, 1.5rem);
  line-height: 1.3;
}

.ht-show-copy p {
  margin: 0;
  color: var(--ht-text-muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.ht-show-hint {
  margin: 2.5rem 0 0;
  text-align: center;
  color: var(--ht-text-muted);
  font-size: 0.8rem;
}

/* =========================
   BANDA DE LLAMADO A LA ACCIÓN
   ========================= */
.ht-cta-band {
  padding: 2.5rem 0;
  background:
    radial-gradient(circle at left, rgba(34, 114, 255, 0.22), transparent 60%),
    radial-gradient(circle at right, rgba(34, 114, 255, 0.22), transparent 60%),
    #0b1226;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.ht-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
}

.ht-cta-inner h2 {
  margin: 0 0 0.3rem;
  font-size: 1.4rem;
}

.ht-cta-inner p {
  margin: 0;
  color: var(--ht-text-muted);
  font-size: 0.93rem;
}

/* =========================
   APP MÓVIL: teléfono con carrusel
   ========================= */
.ht-app-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  isolation: isolate;
}

.ht-app-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 114, 255, 0.35), transparent 65%);
}

.ht-app-visual .mock-phone {
  width: 210px;
  flex-shrink: 0;
  padding: 5px;
  border-radius: 30px;
  transform: rotate(-4deg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.mock-phone--slides {
  display: grid;
}

.mock-phone--slides img {
  grid-area: 1 / 1;
  border-radius: 18px;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.mock-phone--slides img.is-active {
  opacity: 1;
}

/* =========================
   HERO: acento, confianza y etiquetas flotantes
   ========================= */
.ht-accent {
  background: linear-gradient(120deg, var(--ht-brand-light), var(--ht-brand-sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ht-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ht-text-muted);
  font-size: 0.82rem;
}

.ht-trust li::before {
  content: "✓";
  margin-right: 0.4rem;
  color: #34d399;
  font-weight: 700;
}

.ht-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.8rem 0.5rem 0.55rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  opacity: 0;
  animation:
    htChipIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    htChipFloat 5s ease-in-out infinite;
}

.ht-chip strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.ht-chip small {
  display: block;
  font-size: 0.68rem;
  color: #64748b;
  line-height: 1.2;
}

.ht-chip__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex-shrink: 0;
}

.ht-chip__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ht-chip--ok .ht-chip__icon   { background: #dcfce7; color: #16a34a; }
.ht-chip--warn .ht-chip__icon { background: #ffedd5; color: #ea580c; }
.ht-chip--pay .ht-chip__icon  { background: #dbeafe; color: #2563eb; }

/* posiciones alrededor del mockup */
.ht-chip--1 { top: -0.9rem;   right: 8%;      animation-delay: 0.5s, 1.1s; }
.ht-chip--2 { top: 44%;       right: -1.4rem; animation-delay: 0.9s, 1.5s; }
.ht-chip--3 { bottom: 0.4rem; right: 14%;     animation-delay: 1.3s, 1.9s; }

@keyframes htChipIn {
  from { opacity: 0; translate: 0 12px; scale: 0.94; }
  to   { opacity: 1; translate: 0 0;    scale: 1; }
}

@keyframes htChipFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* =========================
   CALCULADORA
   ========================= */
.ht-calc {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  border-radius: var(--ht-radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 114, 255, 0.16), transparent 50%),
    var(--ht-card-bg);
  border: 1px solid var(--ht-border-subtle);
  box-shadow: var(--ht-shadow-soft);
}

.ht-calc h2 {
  margin: 0.75rem 0 0.5rem;
  font-size: clamp(1.4rem, 1.2vw + 1rem, 1.8rem);
}

.ht-calc__sub {
  margin: 0 0 1.75rem;
  color: var(--ht-text-muted);
  font-size: 0.93rem;
}

.ht-calc__field + .ht-calc__field {
  margin-top: 1.35rem;
}

.ht-calc__field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.55rem;
  font-size: 0.88rem;
  color: var(--ht-text-muted);
}

.ht-calc__field output {
  color: var(--ht-text);
  font-weight: 600;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.ht-calc input[type="range"] {
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(
    90deg,
    var(--ht-brand) var(--fill, 50%),
    rgba(148, 163, 184, 0.25) var(--fill, 50%)
  );
  cursor: pointer;
}

.ht-calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ht-brand);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.ht-calc input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--ht-brand);
}

.ht-calc input[type="range"]:focus-visible {
  outline: 2px solid var(--ht-primary);
  outline-offset: 6px;
}

.ht-calc__result {
  padding: 2rem 1.75rem;
  border-radius: 1.2rem;
  background: rgba(2, 6, 23, 0.75);
  border: 1px solid rgba(234, 79, 73, 0.4);
  text-align: center;
}

.ht-calc__label {
  margin: 0;
  color: var(--ht-text-muted);
  font-size: 0.88rem;
}

.ht-calc__amount {
  margin: 0.4rem 0 0.3rem;
  font-size: clamp(2.4rem, 4vw + 1rem, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ht-loss);
  font-variant-numeric: tabular-nums;
}

.ht-calc__amount small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ht-text-muted);
}

.ht-calc__year {
  margin: 0.6rem 0 1.4rem;
  font-size: 0.9rem;
  color: var(--ht-text);
}

.ht-calc__note {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  color: var(--ht-text-muted);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 960px) {
  .ht-hero-grid--visual,
  .ht-show-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .mock-stage {
    margin: 0 auto;
  }

  .ht-show-row {
    gap: 1.5rem;
    margin-top: 3rem;
  }

  .ht-show-row--reverse .ht-show-copy {
    order: 0;
  }

  .ht-calc {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.75rem;
  }
}

@media (max-width: 520px) {
  .mock-stage {
    padding-left: 1.25rem;
  }

  .ht-chip--2 {
    display: none;
  }

  .ht-chip--1,
  .ht-chip--3 {
    right: 0;
  }

  .ht-calc {
    padding: 1.35rem;
  }

  .ht-app-visual .mock-phone {
    width: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mock-phone--slides img {
    transition: none;
  }

  .ht-chip {
    animation: none;
    opacity: 1;
  }
}

/* =========================
   MARCA H-TECTIME (azul)
   Redefine las variables de styles.css solo en estas páginas.
   El index de H Solutech conserva su coral.
   ========================= */
.ht-body,
.privacy-body {
  --color-coral: var(--ht-brand);
  --primary: var(--ht-brand);
  --primary-soft: var(--ht-brand-soft);
  --accent: var(--ht-brand-light);
}

.ht-body .contact-icon {
  background: var(--ht-brand-soft);
}

.ht-body .footer {
  background: linear-gradient(90deg, #123f99, #1756c9);
  color: #ffffff;
}

.ht-body .footer a {
  color: #ffffff;
}


/* "Un producto de H Solutech" en el footer */
.ht-made-by {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: 0.8rem;
}

/* ícono + "H Solutech" en coral, sin fondo, con rebote para invitar al clic */
.ht-made-by__badge,
.ht-body .footer a.ht-made-by__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ff8a84; /* coral un tono más claro para que se lea sobre el azul */
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
  animation: htBounce 3.2s ease-in-out 1s infinite;
}

.ht-made-by__badge img {
  width: auto;
  height: 22px;
  /* contorno claro para que el azul oscuro del logo no se pierda */
  filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, 0.85)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.ht-made-by__badge:hover {
  animation-play-state: paused;
  color: #ffb1ac;
}

/* dos saltitos y una pausa */
@keyframes htBounce {
  0%, 30%, 100% { transform: translateY(0); }
  8%  { transform: translateY(-7px); }
  15% { transform: translateY(0); }
  21% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
  .ht-made-by__badge { animation: none; }
}

/* =========================
   HEADER: logo a buen tamaño y alineado con el contenido
   ========================= */
.htectime-header-inner {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

.htectime-logo {
  height: 46px;
}

.htectime-header.is-compact .htectime-logo {
  height: 36px;
}

.htectime-back-link {
  padding: 0.4rem 0.95rem;
  font-size: 0.85rem;
}

.htectime-header.is-compact .htectime-back-link {
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .htectime-header-inner {
    width: 100%;
  }

  .htectime-logo,
  .htectime-header.is-compact .htectime-logo {
    height: 34px;
  }

  .htectime-back-link {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
  }
}

/* Nombre del producto destacado en el subtítulo del hero */
.ht-hero-copy p strong {
  color: #ffffff;
  font-weight: 600;
}

/* =========================
   RELOJ DE H-TECTIME COMO MARCA DE AGUA DETRÁS DEL HERO
   ========================= */
.ht-hero {
  isolation: isolate;
}

.ht-hero::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 6%;
  z-index: -1;
  width: min(560px, 44vw);
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(-8deg);
  background: url("../img/htectime-icon-lg.webp") center / contain no-repeat;
  opacity: 0.08;
  filter: drop-shadow(0 0 40px rgba(34, 114, 255, 0.7));
  pointer-events: none;
}

@media (max-width: 960px) {
  .ht-hero::after {
    top: 0;
    left: 5%;
    width: 80vw;
    transform: rotate(-8deg);
    opacity: 0.06;
  }
}

/* =========================
   PLANES: promo y precio
   ========================= */
.ht-promo {
  width: fit-content;
  margin: -0.8rem auto 2rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: var(--ht-brand-soft);
  border: 1px solid rgba(34, 114, 255, 0.45);
  color: #dbeafe;
  font-size: 0.88rem;
  text-align: center;
}

.ht-promo strong {
  color: #ffffff;
}

.ht-section-header p strong {
  color: #ffffff;
}

.ht-plan-price {
  margin: 0.2rem 0 0.9rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

.ht-plan-price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ht-text-muted);
}

.ht-plan-price__from {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ht-text-muted);
}

.ht-plan-price--text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ht-brand-light);
}

/* =========================
   EMPIEZA EN 3 PASOS
   ========================= */
.ht-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.ht-step {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: 1.25rem;
  background: var(--ht-card-bg);
  border: 1px solid var(--ht-border-subtle);
}

.ht-step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ht-brand), var(--ht-brand-light));
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 10px 25px rgba(34, 114, 255, 0.35);
}

.ht-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.ht-step p {
  margin: 0;
  color: var(--ht-text-muted);
  font-size: 0.9rem;
}

/* flecha entre pasos */
.ht-step + .ht-step::before {
  content: "→";
  position: absolute;
  top: 50%;
  left: -1.2rem;
  transform: translateY(-50%);
  color: var(--ht-brand-light);
  font-size: 1.1rem;
}

.ht-steps-cta {
  margin-top: 2rem;
  text-align: center;
}

/* =========================
   PREGUNTAS FRECUENTES
   ========================= */
.ht-faq {
  max-width: 760px;
  margin: 0 auto;
}

.ht-faq__item {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.ht-faq__item summary {
  position: relative;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
}

.ht-faq__item summary::-webkit-details-marker {
  display: none;
}

.ht-faq__item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0.25rem;
  transform: translateY(-50%);
  color: var(--ht-brand-light);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.ht-faq__item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.ht-faq__item summary:hover {
  color: var(--ht-brand-light);
}

.ht-faq__item summary:focus-visible {
  outline: 2px solid var(--ht-brand);
  outline-offset: 4px;
  border-radius: 6px;
}

.ht-faq__item p {
  margin: 0 0 1.2rem;
  padding-right: 2.5rem;
  color: var(--ht-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.ht-faq__item p strong {
  color: #ffffff;
}

/* --- animación de "Empieza en 3 pasos" --- */
.ht-step {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ht-step:hover {
  transform: translateY(-4px);
  border-color: rgba(90, 162, 255, 0.55);
  box-shadow: 0 18px 40px rgba(34, 114, 255, 0.18);
}

[data-reveal] .ht-step,
[data-reveal] .ht-steps-cta {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.55s ease, translate 0.55s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

[data-reveal] .ht-step__num {
  transform: scale(0.4) rotate(-12deg);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1.6);
}

[data-reveal] .ht-step + .ht-step::before {
  opacity: 0;
  translate: -10px 0;
  transition: opacity 0.4s ease, translate 0.4s ease;
}

[data-reveal].is-visible .ht-step,
[data-reveal].is-visible .ht-steps-cta {
  opacity: 1;
  translate: 0 0;
}

[data-reveal].is-visible .ht-step__num {
  transform: none;
}

[data-reveal].is-visible .ht-step + .ht-step::before {
  opacity: 1;
  translate: 0 0;
  animation: htArrowNudge 1.8s ease-in-out 2s infinite;
}

/* uno tras otro: tarjeta → número → flecha → siguiente tarjeta */
[data-reveal].is-visible .ht-step:nth-child(1) { transition-delay: 0.05s, 0.05s, 0s, 0s, 0s; }
[data-reveal].is-visible .ht-step:nth-child(1) .ht-step__num { transition-delay: 0.3s; }
[data-reveal].is-visible .ht-step:nth-child(2)::before { transition-delay: 0.5s; }
[data-reveal].is-visible .ht-step:nth-child(2) { transition-delay: 0.6s, 0.6s, 0s, 0s, 0s; }
[data-reveal].is-visible .ht-step:nth-child(2) .ht-step__num { transition-delay: 0.85s; }
[data-reveal].is-visible .ht-step:nth-child(3)::before { transition-delay: 1.05s; }
[data-reveal].is-visible .ht-step:nth-child(3) { transition-delay: 1.15s, 1.15s, 0s, 0s, 0s; }
[data-reveal].is-visible .ht-step:nth-child(3) .ht-step__num { transition-delay: 1.4s; }
[data-reveal].is-visible .ht-steps-cta { transition-delay: 1.6s; }

/* la flecha "empuja" suavemente hacia el siguiente paso */
@keyframes htArrowNudge {
  0%, 100% { translate: 0 0; }
  50%      { translate: 4px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ht-step:hover { transform: none; }
  [data-reveal] .ht-step + .ht-step::before { animation: none !important; }
}

@media (max-width: 860px) {
  .ht-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .ht-step + .ht-step::before {
    display: none;
  }
}

/* al saltar a una sección, deja espacio para el header fijo */
.ht-body section[id] {
  scroll-margin-top: 80px;
}

/* título del formulario en el azul del logo */
.ht-contact-copy .ht-section-header h2 {
  color: var(--ht-brand);
}


/* =========================
   MENÚ LATERAL (mismo modelo que H Solutech, en azul)
   ========================= */
.ht-side-nav {
  position: fixed;
  left: 1.6rem;
  top: 50%;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transform: translateY(-50%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ht-side-nav a {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  color: #cbd5e1;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.ht-side-nav svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ht-side-nav a:hover {
  color: #fff;
  border-color: var(--ht-brand-light);
  background: rgba(34, 114, 255, 0.22);
  box-shadow: 0 0 16px rgba(34, 114, 255, 0.55);
}

/* sección actual: igual que en H Solutech (aro, halo, un poco más grande y rayita), en azul */
.ht-side-nav a.is-active {
  color: #fff;
  border: 2px solid var(--ht-brand-light);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 4px rgba(34, 114, 255, 0.2), 0 0 18px rgba(34, 114, 255, 0.55);
  transform: scale(1.08);
}

.ht-side-nav a::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  width: 4px;
  height: 0;
  border-radius: 4px;
  background: var(--ht-brand-light);
  transform: translateY(-50%);
  transition: height 0.25s ease;
}

.ht-side-nav a.is-active::before {
  height: 22px;
}

/* etiqueta al pasar el mouse */
.ht-side-nav a::after {
  content: attr(data-label);
  position: absolute;
  left: 58px;
  padding: 0.35rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(34, 114, 255, 0.9);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.ht-side-nav a:hover::after,
.ht-side-nav a:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

/* pantallas medianas: no cabe a la izquierda del contenido → barra abajo */
@media (max-width: 1300px) {
  .ht-side-nav {
    top: auto;
    bottom: 1.1rem;
    left: 50%;
    flex-direction: row;
    gap: 0.4rem;
    padding: 0.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(-50%);
  }

  .ht-side-nav a {
    width: 40px;
    height: 40px;
    border-color: transparent;
    background: transparent;
  }

  .ht-side-nav svg {
    width: 18px;
    height: 18px;
  }

  .ht-side-nav a::after {
    display: none;
  }

  /* se esconde al bajar y vuelve al subir */
  .ht-side-nav.is-hidden {
    opacity: 0;
    transform: translate(-50%, 140%);
    pointer-events: none;
  }
}

@media (max-width: 400px) {
  .ht-side-nav a {
    width: 36px;
    height: 36px;
  }
}

/* botón "Ir a H Solutech": el coral es de H Solutech */
.htectime-back-link span {
  color: var(--ht-coral, #ea4f49);
  transition: transform 0.25s ease;
}

.htectime-back-link:hover span {
  transform: translate(2px, -2px);
}

/* botón "Prueba gratis" del header */
.ht-header-cta {
  padding: 0.55rem 1.2rem;
  font-size: 0.92rem;
  white-space: nowrap;
}

.htectime-header.is-compact .ht-header-cta {
  padding: 0.42rem 1rem;
  font-size: 0.85rem;
}

@media (max-width: 640px) {
  .ht-header-cta {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }
}


/* barra de abajo (pantallas chicas): rayita debajo, sin agrandar */
@media (max-width: 1300px) {
  .ht-side-nav a::before {
    left: 50%;
    top: auto;
    bottom: -5px;
    width: 0;
    height: 3px;
    transform: translateX(-50%);
    transition: width 0.25s ease;
  }

  .ht-side-nav a.is-active::before {
    width: 16px;
    height: 3px;
  }

  .ht-side-nav a.is-active {
    transform: none;
  }
}

/* filas de contacto con ícono, igual que en H Solutech (en azul) */
.ht-talk__row {
  align-items: center;
}

.ht-talk__ic {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid rgba(90, 162, 255, 0.35);
  background: rgba(34, 114, 255, 0.12);
}

.ht-talk__ic svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ht-brand-light);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* enlace a soporte técnico (clientes de H-TecTime) */
.ht-faq-support {
  margin: 1.6rem 0 0;
  text-align: center;
}

.ht-support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(90, 162, 255, 0.45);
  background: rgba(34, 114, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ht-support-link strong {
  color: #fff;
}

.ht-support-link span {
  color: var(--ht-brand-light);
  transition: transform 0.2s ease;
}

.ht-support-link:hover {
  background: rgba(34, 114, 255, 0.22);
  border-color: var(--ht-brand-light);
}

.ht-support-link:hover span {
  transform: translateX(3px);
}

.ht-footer-support {
  margin: 0;
}

.ht-body .footer a.ht-support-link {
  padding: 0.35rem 0.85rem;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.82rem;
}

.ht-body .footer a.ht-support-link span {
  color: #fff;
}

/* =========================
   ENLACES DISCRETOS A H SOLUTECH
   ========================= */
/* "por H Solutech" junto al logo: aparece al pasar el mouse */
.ht-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.ht-by {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(234, 79, 73, 0.4);
  background: rgba(234, 79, 73, 0.08);
  color: #cbd5e1;
  font-size: 0.78rem;
  white-space: nowrap;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.ht-by strong {
  color: #ff8a84;
  font-weight: 600;
}

.ht-by span {
  color: #ff8a84;
}

.ht-brand-wrap:hover .ht-by,
.ht-by:focus-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.ht-by:hover {
  background: rgba(234, 79, 73, 0.18);
}

/* en celular no hay "pasar el mouse": queda el menú y el pie de página */
@media (hover: none), (max-width: 640px) {
  .ht-by {
    display: none;
  }
}

/* línea de confianza en "Tus datos, seguros en la nube" */
.ht-tech-by {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
  color: var(--ht-text-muted);
  font-size: 0.84rem;
  text-decoration: none;
}

.ht-tech-by strong {
  color: #ff8a84;
  font-weight: 600;
}

.ht-tech-by span {
  color: #ff8a84;
  transition: transform 0.2s ease;
}

.ht-tech-by:hover {
  color: #e5e7eb;
}

.ht-tech-by:hover span {
  transform: translateX(3px);
}

/* último círculo del menú: ícono de H Solutech, separado de las secciones */
.ht-side-nav a.ht-side-nav__hs {
  margin-top: 0.6rem;
  border-color: rgba(234, 79, 73, 0.35);
}

.ht-side-nav__hs img {
  width: 20px;
  height: auto;
}

.ht-side-nav a.ht-side-nav__hs:hover {
  border-color: #ea4f49;
  background: rgba(234, 79, 73, 0.18);
  box-shadow: 0 0 16px rgba(234, 79, 73, 0.5);
}

.ht-side-nav a.ht-side-nav__hs::after {
  background: rgba(234, 79, 73, 0.92);
}

@media (max-width: 1300px) {
  .ht-side-nav a.ht-side-nav__hs {
    margin-top: 0;
    margin-left: 0.3rem;
  }
}

/* aviso de privacidad bajo el formulario */
.ht-form-legal {
  margin: 0.4rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ht-text-muted);
}

.ht-form-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ht-form-legal a:hover {
  color: var(--ht-brand-light);
}
