/* =========================
   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;
  --ht-coral-soft: rgba(234, 79, 73, 0.12);
  --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(236, 72, 153, 0.18),
      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(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 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(234, 79, 73, 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-coral), #ff7a64);
  color: #111827;
  box-shadow: 0 16px 35px rgba(234, 79, 73, 0.35);
}

.ht-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(234, 79, 73, 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-coral);
}

.ht-highlight-box {
  background: var(--ht-card-bg);
  border-radius: var(--ht-radius-xl);
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--ht-border-subtle);
  box-shadow: var(--ht-shadow-soft);
  font-size: 0.93rem;
  color: var(--ht-text-muted);
}

.ht-highlight-box h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.ht-highlight-note {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  color: var(--ht-text-muted);
}

/* =========================
   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(234, 79, 73, 0.8);
  box-shadow: 0 22px 50px rgba(234, 79, 73, 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-coral);
  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-coral);
  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 {
  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);
}

.ht-tech-logo {
  height: 32px;
  width: auto;
  margin-bottom: 0.8rem;
}

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

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

.ht-store-badges {
  text-align: left;
}

.ht-store-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ht-text-muted);
  margin-bottom: 0.5rem;
}

.ht-store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.ht-store-link img {
  height: 34px;
  display: block;
}

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

.ht-contact-grid {
  display: grid;
  gap: 2.3rem;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  align-items: flex-start;
}

.ht-contact-details {
  margin-top: 1rem;
  font-size: 0.93rem;
  color: var(--ht-text-muted);
}

.ht-contact-details a {
  color: var(--ht-text-muted);
  text-decoration: none;
}

.ht-contact-details a:hover {
  color: var(--ht-text);
}

.ht-contact-form {
  background: var(--ht-card-bg);
  border-radius: var(--ht-radius-xl);
  padding: 1.6rem 1.4rem 1.2rem;
  border: 1px solid var(--ht-border-subtle);
  box-shadow: var(--ht-shadow-soft);
}

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

.ht-field label {
  display: block;
  font-size: 0.82rem;
  color: var(--ht-text-muted);
  margin-bottom: 0.25rem;
}

.ht-field input,
.ht-field textarea {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #020617;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ht-text);
}

.ht-field input:focus,
.ht-field textarea:focus {
  outline: none;
  border-color: var(--ht-primary);
  box-shadow: 0 0 0 1px rgba(34, 114, 255, 0.35);
}

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

.ht-form-note {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--ht-text-muted);
}

/* =========================
   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; 
}