/* ─────────────────────────────────────────────────────────────────
   Harvis · sistema visual web (Home + landings hijas)
   Hereda tokens del design system. Sin ornamento.
   ───────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* paleta TECDE */
  --tecde-violet:        #8a41ff;
  --tecde-violet-deep:   #6041d2;
  --tecde-violet-tint:   #e6d7ff;

  /* paleta Harvis */
  --harvis-teal:         #09979a;
  --harvis-teal-neon:    #0bc9cd;
  --harvis-teal-tint:    #cef4f5;
  --harvis-green:        #356900;
  --harvis-green-neon:   #6ad200;
  --harvis-green-tint:   #e1f6cc;
  --harvis-blue-deep:    #066567;

  /* neutros */
  --ink:                 #0a0a0c;
  --ink-soft:            #25252b;
  --paper:               #ffffff;
  --paper-warm:          #f7f7f4;
  --paper-mute:          #ececec;

  /* semánticos */
  --fg-1: var(--ink);
  --fg-2: #4a4a52;
  --fg-3: #8a8a92;
  --fg-inv: var(--paper);
  --bg-1: var(--paper);
  --bg-2: var(--paper-warm);
  --hairline: rgba(0,0,0,0.08);
  --hairline-strong: rgba(0,0,0,0.16);

  /* tipo */
  --font-display: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body:    'Poppins', system-ui, -apple-system, sans-serif;
  --font-ui:      'Poppins', system-ui, sans-serif;

  --tracking-tight:  -0.025em;
  --tracking-normal: 0;
  --tracking-eyebrow: 0.14em;

  /* espacio */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px; --space-24: 96px;
  --space-32: 128px; --space-40: 160px;

  /* radios */
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 18px;
  --radius-xl: 28px; --radius-pill: 999px;

  /* motion */
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast: 120ms;
  --t-base: 220ms;
  --t-slow: 600ms;

  /* layout */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 72px;
}

/* ─────────── reset ─────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ─────────── container ─────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}
.container--wide { max-width: 1320px; }

/* ─────────── tipografía base ─────────── */
.eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--harvis-teal);
  display: inline-block;
}
.eyebrow--neutral { color: var(--fg-3); }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: var(--tracking-tight);
  margin: 0;
  text-wrap: balance;
}
.display--xl  { font-size: clamp(48px, 9vw, 120px); }
.display--lg  { font-size: clamp(40px, 7vw, 88px); }
.display--md  { font-size: clamp(32px, 5vw, 64px); }
.display--sm  { font-size: clamp(26px, 3.5vw, 44px); }

.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 56ch;
  font-weight: 400;
  margin: 0;
  text-wrap: pretty;
}

/* ─────────── botones ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  transition: background var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out),
              transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
  white-space: nowrap;
  user-select: none;
}
.btn .arrow { transition: transform var(--t-base) var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--harvis-green-neon);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.btn--primary:hover { background: #79e314; color: var(--ink); }
.btn--primary:focus-visible { box-shadow: var(--shadow-glow); outline: none; }

.btn--dark {
  background: var(--ink);
  color: var(--paper);
}
.btn--dark:hover { background: #1c1c20; }

.btn--secondary {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn--secondary:hover { background: var(--ink); color: var(--paper); }

.btn--ghost {
  background: transparent;
  color: var(--fg-1);
  height: 44px;
  padding: 0 12px;
}
.btn--ghost:hover { color: var(--harvis-teal); }

.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }

.btn--block { width: 100%; }

/* link minimal */
.tlink {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
  transition: color var(--t-base), border-color var(--t-base);
}
.tlink:hover { color: var(--harvis-teal); border-color: var(--harvis-teal); }

.tlink--muted {
  color: var(--fg-2);
  border-bottom-color: var(--hairline-strong);
}

/* ─────────── NAV ─────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base) var(--ease-out),
              background var(--t-base) var(--ease-out);
}
.nav.is-scrolled {
  border-bottom-color: var(--hairline);
  background: rgba(255,255,255,0.92);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.nav__logo img { height: 26px; width: auto; }
.nav__center {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}
.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-1);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background var(--t-base), color var(--t-base);
}
.nav__link:hover { background: var(--paper-warm); color: var(--harvis-teal); }
.nav__link.is-active { color: var(--harvis-teal); }
.nav__right { display: flex; align-items: center; gap: var(--space-3); }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
}
.nav__burger span {
  display: block;
  width: 22px; height: 1.6px;
  background: var(--ink);
  position: relative;
  transition: transform var(--t-base), opacity var(--t-base);
}
.nav__burger span::before,
.nav__burger span::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 1.6px;
  background: var(--ink);
  transition: transform var(--t-base);
}
.nav__burger span::before { top: -7px; }
.nav__burger span::after  { top: 7px; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__burger span::after  { transform: translateY(-7px) rotate(-45deg); }

/* drawer mobile */
.drawer {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--paper);
  z-index: 40;
  padding: var(--space-8) var(--gutter) var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--t-base) var(--ease-out),
              opacity var(--t-base) var(--ease-out),
              visibility 0s linear var(--t-base);
}
body.menu-open .drawer {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: transform var(--t-base) var(--ease-out),
              opacity var(--t-base) var(--ease-out),
              visibility 0s linear 0s;
}
.drawer__link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.drawer__cta { margin-top: var(--space-8); display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 1040px) {
  .nav__center, .nav__right .btn--ghost { display: none; }
  .nav__right .btn--sm { display: none; }
  .nav__burger { display: inline-flex; }
}

/* ─────────── secciones genéricas ─────────── */
section { padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(80px, 12vw, 160px); }
section:first-of-type { padding-top: clamp(48px, 6vw, 80px); }

.section__head { margin-bottom: clamp(48px, 6vw, 80px); }
.section__head .eyebrow { margin-bottom: 16px; }

/* ─────────── fade-up animation ─────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease-out),
              transform var(--t-slow) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in { opacity: 1; transform: none; transition: none; }
}

/* ─────────── footer ─────────── */
.footer {
  border-top: 1px solid var(--hairline);
  padding-top: var(--space-20);
  padding-bottom: var(--space-12);
  background: var(--paper);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: var(--space-12);
}
.footer__brand { max-width: 340px; }
.footer__brand img { height: 40px; width: auto; margin-bottom: var(--space-5); display: block; }
.footer__brand p { color: var(--fg-2); font-size: 15px; line-height: 1.5; margin: 0 0 var(--space-5); }
.footer__socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer__social {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--fg-1);
  transition: background var(--t-base), color var(--t-base),
              border-color var(--t-base), transform var(--t-fast) var(--ease-out);
}
.footer__social:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.footer__social:active { transform: scale(0.94); }
.footer__social svg { width: 17px; height: 17px; display: block; }
.footer__col h6 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--fg-3);
  margin: 0 0 var(--space-4);
}
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 15px; color: var(--fg-1); transition: color var(--t-base); }
.footer__col a:hover { color: var(--harvis-green); }

/* Tecde endorsement block */
/* Tecde endorsement block — minimalist */
.footer__tecde {
  margin-top: var(--space-12);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.footer__tecde-iso {
  width: 88px;
  flex-shrink: 0;
}
.footer__tecde-iso img { width: 100%; height: auto; display: block; }
.footer__tecde-copy {
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.5;
  margin: 0;
  max-width: 64ch;
}
.footer__tecde-copy a {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline-strong);
  padding-bottom: 1px;
  transition: color var(--t-base), border-color var(--t-base);
}
.footer__tecde-copy a:hover { color: var(--harvis-green); border-color: var(--harvis-green); }
.footer__bottom {
  margin-top: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer__bottom p { font-size: 13px; color: var(--fg-3); margin: 0; }
.footer__bottom-links { display: flex; gap: var(--space-4); font-size: 13px; color: var(--fg-3); }
.footer__bottom-links a { color: var(--fg-3); transition: color var(--t-base); }
.footer__bottom-links a:hover { color: var(--ink); }
@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ─────────── floating WhatsApp CTA ─────────── */
.fab-wa {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 0 18px 0 16px;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  box-shadow:
    0 10px 30px -10px rgba(37, 211, 102, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.10);
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              background var(--t-base);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  pointer-events: none;
  border: 0;
}
.fab-wa.is-on {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab-wa:hover {
  background: #20bf5b;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 16px 40px -10px rgba(37, 211, 102, 0.55),
    0 6px 16px rgba(0, 0, 0, 0.12);
}
.fab-wa:active { transform: translateY(0) scale(0.98); }
.fab-wa__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}
.fab-wa__icon svg { width: 18px; height: 18px; }
.fab-wa__pulse {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: #25d366;
  z-index: -1;
  animation: fab-pulse 2.4s ease-out infinite;
}
@keyframes fab-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}
@media (max-width: 600px) {
  .fab-wa__label { display: none; }
  .fab-wa { padding: 0; width: 56px; justify-content: center; }
  .fab-wa__icon { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-wa, .fab-wa__pulse { animation: none; transition: opacity var(--t-base); }
}
