/* jhzjoan.com · estilos. Primero celular; desde 760 px y 960 px se ensancha.
   Colores de marca tomados de jhzjoan-logos: verde #0E8A6A (fondo claro) y #2BC48A (fondo oscuro), tinta #111418, papel #F5F4F0.
   Sin fuentes descargadas: se usan las del sistema (carga instantánea, nada que esperar). */

:root {
  --ink: #111418;
  --ink-2: #181d23;
  --ink-3: #222932;
  --paper: #f5f4f0;
  --paper-2: #ebe9e2;
  --white: #ffffff;
  --green: #2bc48a; /* sobre fondo oscuro */
  --green-ink: #0b6e55; /* texto verde sobre fondo claro (contraste AA) */
  --green-brand: #0e8a6a;
  --text-dark: #e9ecef; /* texto sobre fondo oscuro */
  --muted-dark: #a9b2bc;
  --text: #1b2026;
  --muted: #535c66;
  --line: #dcd9d0;
  --line-dark: #2c343e;
  --radius: 16px;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --wrap: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1,
h2,
h3,
h4 {
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Foco visible para teclado */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}
.light :focus-visible {
  outline-color: var(--green-ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--green);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), 100% - 32px);
  margin-inline: auto;
}
.dark {
  background: var(--ink);
  color: var(--text-dark);
}
.light {
  background: var(--paper);
}
.light.alt {
  background: var(--white);
}
section {
  padding: 64px 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 12px;
}
.dark .eyebrow {
  color: var(--green);
}
h2 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  max-width: 24ch;
}
.h-sm {
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem);
}
.lead {
  font-size: 1.075rem;
  color: var(--muted);
  margin-top: 16px;
  max-width: 62ch;
}
.dark .lead {
  color: var(--muted-dark);
}
.small {
  font-size: 0.875rem;
  color: var(--muted-dark);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background: var(--green);
  color: var(--ink);
}
.btn-primary:hover {
  background: #3fd69b;
}
.light .btn-primary {
  background: var(--green-ink);
  color: var(--white);
}
.light .btn-primary:hover {
  background: #095a46;
}
.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border-color: #46505c;
}
.btn-ghost:hover {
  border-color: var(--green);
}
.btn-sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.9rem;
  border-radius: 10px;
}
.ico {
  flex: none;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Encabezado */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(17 20 24 / 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--text-dark);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}
.brand img {
  width: 122px;
  height: auto;
}
.nav {
  display: none;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  display: flex;
  border: 1px solid #3a434e;
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}
.lang > * {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 38px;
  padding: 0 8px;
  text-decoration: none;
}
.lang-on {
  background: var(--ink-3);
  color: var(--green);
}
.lang a {
  color: var(--muted-dark);
}
.lang a:hover {
  color: var(--white);
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(43 196 138 / 0.16), transparent 60%),
    var(--ink);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 44px;
}
.hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 4.6vw, 4.1rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--white);
}
.hl {
  color: var(--green);
}
.points {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--muted-dark);
}
.points li,
.checks li,
.prompts li,
.soon li,
.dashes li {
  position: relative;
  padding-left: 26px;
}
.points li::before,
.checks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
.light .checks li::before {
  border-color: var(--green-ink);
}
.hero-visual {
  position: relative;
  padding-right: 18%;
}

/* Marcos de dispositivo */
.device {
  margin: 0;
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
  overflow: hidden;
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
}
.device img {
  width: 100%;
}
.laptop,
.desktop {
  border-radius: 14px;
}
.device-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted-dark);
  border-bottom: 1px solid var(--line-dark);
}
.dots,
.terminal-bar {
  display: inline-flex;
  gap: 6px;
}
.dots i,
.terminal-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a434e;
}
.phone {
  border-radius: 26px;
  border: 6px solid #1f252c;
  background: #1f252c;
}
.phone img {
  border-radius: 20px;
}
.hero-phone {
  position: absolute;
  right: 0;
  bottom: -28px;
  width: 34%;
  max-width: 210px;
}

/* ¿Qué buscas? */
.paths {
  padding: 40px 0 8px;
}
.paths-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.path-card {
  display: grid;
  gap: 6px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.path-card:hover {
  border-color: var(--green-ink);
  transform: translateY(-2px);
}
.path-card strong {
  font-size: 1.15rem;
  line-height: 1.3;
}
.path-card > span:not(.path-n):not(.path-cta) {
  color: var(--muted);
}
.path-n {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-ink);
}
.path-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-weight: 700;
  color: var(--green-ink);
}

/* Problemas y tarjetas */
.cards-4 {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.alt .card {
  background: var(--paper);
}
.card h3 {
  font-size: 1.1rem;
  margin: 8px 0 6px;
}
.card p {
  color: var(--muted);
  font-size: 0.97rem;
}
.num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--green-ink);
}
.banner {
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--text-dark);
  font-size: 1.15rem;
  line-height: 1.45;
}
.banner strong {
  color: var(--green);
}

/* Apps */
.app {
  display: grid;
  gap: 32px;
  margin-top: 44px;
  padding: 26px 20px;
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  background: linear-gradient(160deg, var(--ink-2), var(--ink) 70%);
}
.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--ink-3);
  color: var(--muted-dark);
}
.tag-status {
  background: rgb(43 196 138 / 0.14);
  color: var(--green);
}
.app h3 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem);
  color: var(--white);
  margin-top: 14px;
}
.app-desc {
  margin-top: 10px;
  color: var(--muted-dark);
  font-size: 1.05rem;
}
.app h4 {
  margin: 22px 0 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.checks {
  display: grid;
  gap: 8px;
}
.soon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.soon li {
  padding: 4px 12px;
  border: 1px dashed #4a5561;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted-dark);
}
.note {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: var(--ink-3);
  border-radius: 0 10px 10px 0;
  font-size: 0.93rem;
  color: var(--text-dark);
}
.app .btn {
  margin-top: 26px;
}
.app-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 14px;
}
.app-visual .desktop {
  flex: 1 1 auto;
  min-width: 0;
}
.app-visual .phone {
  flex: 0 0 34%;
  max-width: 230px;
}
.app-visual-2 .phone {
  margin-left: -12%;
  margin-bottom: -10px;
}
.app-visual-1 .phone {
  flex-basis: 62%;
  max-width: 260px;
}
/* En celular la imagen va arriba del texto, para que se vea la app antes de la lista */
@media (max-width: 959px) {
  .app-visual {
    order: -1;
  }
}

/* A la medida */
.custom-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
.prompts {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.prompts li::before {
  content: '>';
  position: absolute;
  left: 4px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--green-ink);
}
.custom .btn {
  margin-top: 28px;
}
.terminal {
  border-radius: 16px;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  box-shadow: 0 24px 60px rgb(17 20 24 / 0.25);
  overflow: hidden;
}
.terminal-bar {
  align-items: center;
  width: 100%;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-dark);
}
.terminal-bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted-dark);
}
.terminal-body {
  padding: 24px 22px 28px;
  font-family: var(--mono);
  font-size: clamp(1rem, 0.9rem + 0.8vw, 1.35rem);
  color: var(--text-dark);
  display: grid;
  gap: 10px;
}
.pr {
  color: var(--green);
  font-weight: 700;
}
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.15em;
  background: var(--green);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Proceso */
.steps {
  display: grid;
  gap: 14px;
  margin-top: 32px;
  counter-reset: s;
}
.steps li {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
}
.step-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-ink);
  color: var(--white);
  font-weight: 800;
}
.steps h3 {
  font-size: 1.1rem;
  margin: 14px 0 6px;
}
.steps p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* Confianza y "para quién" */
.fit-title {
  margin-top: 56px;
}
.fit {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.fit > div {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.fit-yes {
  background: var(--white);
}
.fit-no {
  background: var(--paper-2);
}
.fit h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.fit ul {
  display: grid;
  gap: 8px;
  color: var(--text);
}
.dashes li::before {
  content: '–';
  position: absolute;
  left: 4px;
  color: var(--muted);
  font-weight: 700;
}

/* Preguntas */
.faq-wrap h2 {
  max-width: none;
}
.faq-list {
  margin-top: 28px;
  display: grid;
  gap: 10px;
  max-width: 820px;
}
details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 52px 18px 20px;
  font-weight: 700;
  position: relative;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--green-ink);
}
details[open] summary::after {
  content: '–';
}
details p {
  padding: 0 20px 20px;
  color: var(--muted);
}

/* Contacto */
.contact {
  background:
    radial-gradient(50rem 24rem at 10% 120%, rgb(43 196 138 / 0.14), transparent 60%),
    var(--ink);
}
.contact-box {
  display: grid;
  gap: 32px;
}
.contact h2 {
  color: var(--white);
}
.email {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(1.15rem, 0.9rem + 1.4vw, 1.7rem);
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  word-break: break-all;
  border-bottom: 2px solid rgb(43 196 138 / 0.4);
}
.email:hover {
  border-bottom-color: var(--green);
}
.contact .actions {
  margin-top: 20px;
}
.copy-status {
  min-height: 1.6em;
  margin-top: 10px;
  color: var(--green);
  font-weight: 600;
}

/* Pie */
.foot {
  padding: 36px 0;
  border-top: 1px solid var(--line-dark);
}
.foot-in {
  display: grid;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted-dark);
}
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.foot-meta a {
  color: var(--text-dark);
}

/* Tablet */
@media (min-width: 760px) {
  section {
    padding: 88px 0;
  }
  .nav {
    display: flex;
    gap: 22px;
    font-size: 0.93rem;
  }
  .nav a {
    color: var(--muted-dark);
    text-decoration: none;
  }
  .nav a:hover {
    color: var(--white);
  }
  .brand img {
    width: 140px;
  }
  .paths-grid,
  .fit,
  .cards-4,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .app {
    padding: 36px;
  }
  .foot-in {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .foot-in p:first-of-type {
    justify-self: center;
  }
}

/* Escritorio */
@media (min-width: 960px) {
  .hero {
    padding: 80px 0 104px;
  }
  .hero-grid {
    grid-template-columns: 1.02fr 1fr;
    align-items: center;
    gap: 56px;
  }
  .cards-4,
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
  .app {
    grid-template-columns: 1fr 1.05fr;
    align-items: center;
    gap: 48px;
    padding: 48px;
  }
  .app:nth-of-type(even) .app-copy {
    order: 2;
  }
  .custom-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
  .contact-box {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
  }
}

/* Menos movimiento si la persona lo pidió en su sistema */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn:hover,
  .path-card:hover {
    transform: none;
  }
}
