/*
Theme Name: ZenTrack
Theme URI: https://zentrack.io
Author: ZenTrack
Author URI: https://zentrack.io
Description: Landing page oficial de ZenTrack — Finanzas y facturación claras para PYMES en Panamá y Latinoamérica. Tema personalizado sin constructores externos.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: zentrack
*/

/* ===========================
   RESET & VARIABLES
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green:       #7ec83a;
  --green-dark:  #5aa320;
  --green-light: #f3f9ec;
  --green-pale:  #f7fcf2;
  --dark:        #1a1a1a;
  --dark-2:      #262626;
  --gray:        #555555;
  --gray-light:  #999999;
  --border:      #e8e8e8;
  --white:       #ffffff;
  --font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --radius:      12px;
  --radius-sm:   8px;
  --max-w:       1160px;
  --pad-h:       24px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ===========================
   BOTONES
   =========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dark);
  color: var(--white);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--green);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--dark);
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--dark);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--dark);
  color: var(--white);
}

/* ===========================
   NAVEGACIÓN
   =========================== */
.zt-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.zt-nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.zt-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.2px;
  color: var(--dark);
  flex-shrink: 0;
}

.zt-nav__logo svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.zt-nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.zt-nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
}
.zt-nav__links a:hover {
  color: var(--dark);
}

.zt-nav__cta {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--dark);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--dark);
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  cursor: pointer;
  white-space: nowrap;
}
.zt-nav__cta:hover {
  background: var(--dark);
  color: var(--white);
}

/* Hamburger móvil */
.zt-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.zt-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Menú móvil abierto */
.zt-nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px var(--pad-h) 24px;
  border-top: 1px solid var(--border);
  background: var(--white);
  gap: 4px;
}
.zt-nav__mobile.is-open {
  display: flex;
}
.zt-nav__mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.zt-nav__mobile a:last-child {
  border-bottom: none;
  margin-top: 8px;
  padding: 12px 0;
  font-weight: 700;
  color: var(--dark);
}

/* ===========================
   HERO
   =========================== */
.zt-hero {
  padding: 130px var(--pad-h) 88px;
  background: var(--green-pale);
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.zt-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  width: 100%;
}

.zt-hero__badge {
  display: inline-block;
  background: var(--white);
  color: var(--gray);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  margin-bottom: 26px;
}

.zt-hero h1 {
  font-size: clamp(30px, 3.8vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--dark);
  margin-bottom: 22px;
}

.zt-hero__desc {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 34px;
  max-width: 500px;
}

.zt-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.zt-hero__footnote {
  font-size: 12px;
  color: var(--gray-light);
}

/* Video placeholder */
.zt-hero__video {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  gap: 14px;
  position: relative;
}

.zt-hero__video-top {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  color: var(--gray-light);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.zt-hero__play {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.zt-hero__play:hover {
  background: var(--green);
  color: var(--white);
}

.zt-hero__video-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-2);
}

.zt-hero__video-sub {
  font-size: 12px;
  color: var(--gray-light);
}

/* ===========================
   SECCIÓN: ETIQUETA COMÚN
   =========================== */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-light);
  margin-bottom: 22px;
  display: block;
}

/* ===========================
   NOSOTROS
   =========================== */
.zt-nosotros {
  padding: 96px var(--pad-h);
  background: var(--green-pale);
}

.zt-nosotros__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.zt-nosotros__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.zt-nosotros__left h2 {
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.zt-nosotros__left p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 28px;
}

.zt-nosotros__tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.zt-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.zt-tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* Feature cards */
.zt-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zt-feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.2s ease;
}
.zt-feature-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.zt-feature-card__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  margin-top: 1px;
}
.zt-feature-card__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.zt-feature-card__body h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--dark);
  line-height: 1.3;
}

.zt-feature-card__body p {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

/* ===========================
   DESCARGAR
   =========================== */
.zt-descargar {
  padding: 96px var(--pad-h);
  background: var(--white);
}

.zt-descargar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.zt-descargar__left h2 {
  font-size: clamp(26px, 2.8vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.zt-descargar__left > p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 28px;
}

.zt-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  list-style: none;
}

.zt-bullets li {
  font-size: 13px;
  color: var(--dark);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.zt-bullets li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--dark);
  font-size: 5px;
  top: 6px;
}

/* Download card */
.zt-download-card {
  background: var(--green-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.zt-download-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.zt-download-card > p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 22px;
}

.zt-store-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.zt-store-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font);
  color: var(--dark);
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  width: 100%;
  text-align: left;
  gap: 8px;
}
.zt-store-btn:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border-color: #ccc;
}

.zt-store-btn__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.zt-store-btn__left svg {
  flex-shrink: 0;
  color: var(--dark);
}

.zt-store-btn__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zt-store-btn__badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.zt-download-footnote {
  font-size: 12px;
  color: var(--gray-light);
  line-height: 1.6;
}

/* ===========================
   LISTA DE ESPERA
   =========================== */
.zt-waitlist {
  padding: 96px var(--pad-h);
  background: var(--green-pale);
}

.zt-waitlist__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.zt-waitlist__left h2 {
  font-size: clamp(26px, 2.8vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.zt-waitlist__left > p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 26px;
}

.zt-waitlist__perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.zt-waitlist__perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}
.zt-waitlist__perks li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* Formulario */
.zt-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.zt-form-card__badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--green);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 100px;
  text-align: center;
  line-height: 1.4;
}

.zt-form-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
  padding-right: 96px;
  line-height: 1.3;
}

.zt-form-card > p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 22px;
  line-height: 1.6;
}

.zt-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--dark);
}

.zt-form input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  margin-bottom: 12px;
  outline: none;
  transition: border-color 0.2s;
}
.zt-form input[type="email"]:focus {
  border-color: var(--green);
}
.zt-form input[type="email"]::placeholder {
  color: var(--gray-light);
}

.zt-form button[type="submit"] {
  width: 100%;
  padding: 15px;
  background: var(--green-dark);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease;
  margin-bottom: 12px;
}
.zt-form button[type="submit"]:hover {
  background: var(--green);
}

.zt-form__note {
  font-size: 12px;
  color: var(--gray-light);
  text-align: center;
  line-height: 1.5;
}

/* Mensaje de éxito/error */
.zt-form-msg {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.zt-form-msg--success {
  background: #e8f7d6;
  color: #3a7c0f;
  border: 1px solid #b4e07a;
}
.zt-form-msg--error {
  background: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f5aeae;
}

/* ===========================
   FOOTER
   =========================== */
.zt-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.zt-footer__main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px var(--pad-h) 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.zt-footer__brand {
  max-width: 320px;
}

.zt-footer__logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 14px;
}
.zt-footer__logo svg {
  width: 22px;
  height: 22px;
}

.zt-footer__brand p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

.zt-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.zt-footer__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  transition: color 0.2s;
}
.zt-footer__nav a:hover {
  color: var(--dark);
}

.zt-footer__bottom {
  border-top: 1px solid var(--border);
}

.zt-footer__bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px var(--pad-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.zt-footer__bottom p {
  font-size: 12px;
  color: var(--gray-light);
}

/* ===========================
   RESPONSIVE — TABLET
   =========================== */
@media (max-width: 900px) {
  .zt-hero__inner,
  .zt-nosotros__grid,
  .zt-descargar__inner,
  .zt-waitlist__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .zt-hero {
    padding: 110px var(--pad-h) 72px;
    min-height: auto;
  }

  .zt-hero__desc {
    max-width: 100%;
  }

  .zt-bullets {
    grid-template-columns: 1fr;
  }

  .zt-nosotros__grid {
    gap: 40px;
  }

  .zt-footer__main {
    flex-direction: column;
    gap: 36px;
  }
}

/* ===========================
   RESPONSIVE — MÓVIL
   =========================== */
@media (max-width: 640px) {
  :root {
    --pad-h: 18px;
  }

  .zt-nav__links,
  .zt-nav__cta {
    display: none;
  }

  .zt-nav__toggle {
    display: flex;
  }

  .zt-hero {
    padding: 100px var(--pad-h) 60px;
    align-items: flex-start;
  }

  .zt-hero h1 {
    letter-spacing: -1px;
  }

  .zt-hero__actions {
    flex-direction: column;
  }

  .zt-hero__actions .btn-primary,
  .zt-hero__actions .btn-secondary {
    text-align: center;
    width: 100%;
  }

  .zt-nosotros,
  .zt-descargar,
  .zt-waitlist {
    padding: 72px var(--pad-h);
  }

  .zt-nosotros__tags {
    flex-direction: column;
  }

  .zt-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 14px var(--pad-h);
  }
}
