/* jhzjoan.com · estilos. Primero celular; desde 760 px y 960 px se ensancha.
   Paleta F de jhzjoan-logos: papel #F1F0EC, tinta #0E1216, azul cerceta #00739E (acento),
   amarillo #F4C531 (resaltar, siempre con texto oscuro) y petróleo #0D3B47 (único fondo oscuro, nunca negro).
   Estilo plano: sin brillos, sin degradados y sin sombras de neón.
   Fuente Archivo guardada en el propio sitio (static/fonts/, licencia OFL en OFL.txt): la CSP no deja cargar fuentes de fuera.
   Un solo archivo de 35 KB con todos los grosores (fuente variable) y solo letras latinas (español e inglés). */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap; /* mientras carga se ve la fuente del sistema; nunca hay texto invisible */
  src: url('/fonts/archivo-wght.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0e1216;
  --paper: #f1f0ec;
  --paper-2: #e6e4dd;
  --white: #ffffff;
  --teal: #00739e; /* acento: texto y botones sobre papel o blanco (4.7:1 y 5.3:1) */
  --teal-hover: #005f83;
  --yellow: #f4c531; /* resaltar: siempre con texto --ink encima (11.5:1) */
  --petrol: #0d3b47; /* fondo oscuro de contacto y pie */
  --text-dark: #f1f0ec; /* texto sobre petróleo (10.6:1) */
  --muted-dark: #b9cdd3; /* texto secundario sobre petróleo (7.3:1) */
  --line-petrol: #2a5866;
  --text: #0e1216;
  --muted: #4a5058; /* texto secundario sobre papel (7.1:1) */
  --line: #d9d6cd;
  --radius: 16px;
  --sans: 'Archivo', 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.12;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.025em;
}
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(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}
.dark :focus-visible {
  outline-color: var(--yellow);
}

.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(--teal);
  color: var(--white);
  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(--petrol);
  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(--teal);
  margin-bottom: 12px;
}
.dark .eyebrow {
  color: var(--yellow);
}
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(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-hover);
}
.dark .btn-primary {
  background: var(--yellow);
  color: var(--ink);
}
.dark .btn-primary:hover {
  background: #f7d35e;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.dark .btn-ghost {
  color: var(--text-dark);
  border-color: var(--muted-dark);
}
.dark .btn-ghost:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}
.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: var(--paper);
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.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 var(--line);
  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);
  color: var(--paper);
}
.lang a {
  color: var(--muted);
}
.lang a:hover {
  color: var(--teal);
}

/* Hero */
.hero {
  padding: 48px 0 64px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 44px;
}
.hero h1 {
  font-size: clamp(2.3rem, 1.4rem + 4.6vw, 4.1rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
  color: var(--ink);
}
/* El rótulo de arriba es parte del h1 (palabras clave para Google) pero se ve igual que antes */
.hero h1 .eyebrow {
  display: block;
  line-height: 1.6;
}
.hl {
  color: var(--teal);
}
.points {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--muted);
}
.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(--teal);
  border-bottom: 2.5px solid var(--teal);
  transform: rotate(-45deg);
}
.dark .checks li::before {
  border-color: var(--yellow);
}
.hero-visual {
  position: relative;
  padding-right: 18%;
}

/* Marcos de dispositivo */
.device {
  margin: 0;
  background: var(--white);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.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);
  border-bottom: 2px solid var(--ink);
}
.dots,
.terminal-bar {
  display: inline-flex;
  gap: 6px;
}
.dots i,
.terminal-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line);
}
.phone {
  border-radius: 26px;
  border: 6px solid var(--ink);
  background: var(--ink);
}
.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(--teal);
  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(--teal);
}
.path-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-weight: 700;
  color: var(--teal);
}

/* 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(--teal);
}
.banner {
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1.45;
}
.banner strong {
  font-weight: 800;
}

/* Apps */
.app {
  display: grid;
  gap: 32px;
  margin-top: 44px;
  padding: 26px 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}
.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(--white);
  border: 1px solid var(--line);
  color: var(--muted);
}
.tag-status {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
.app h3,
.app h1 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.4rem);
  color: var(--ink);
  margin-top: 14px;
}
.app-desc {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1.05rem;
}
.app .sub {
  margin: 22px 0 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.checks {
  display: grid;
  gap: 8px;
}
.soon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.soon li {
  padding: 4px 12px;
  border: 1px dashed var(--muted);
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
}
.note {
  margin-top: 18px;
  padding: 12px 14px;
  border-left: 3px solid var(--teal);
  background: var(--white);
  border-radius: 0 10px 10px 0;
  font-size: 0.93rem;
  color: var(--text);
}
.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;
  }
}

/* Enlace de texto a otra página («Ver todo sobre…») */
.more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  margin-top: 18px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
}
.more:hover {
  text-decoration: underline;
}
.dark .more {
  color: var(--yellow);
}

/* 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(--teal);
}
.custom .btn {
  margin-top: 28px;
}
.terminal {
  border-radius: 16px;
  background: var(--white);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.terminal-bar {
  align-items: center;
  width: 100%;
  height: 36px;
  padding: 0 18px;
  border-bottom: 2px solid var(--ink);
  background: var(--yellow);
}
.terminal-bar span {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
}
.terminal-body {
  padding: 24px 22px 28px;
  font-family: var(--mono);
  font-size: clamp(1rem, 0.9rem + 0.8vw, 1.35rem);
  color: var(--text);
  display: grid;
  gap: 10px;
}
.pr {
  color: var(--teal);
  font-weight: 700;
}
.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 4px;
  vertical-align: -0.15em;
  background: var(--teal);
  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(--teal);
  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(--teal);
}
details[open] summary::after {
  content: '–';
}
details p {
  padding: 0 20px 20px;
  color: var(--muted);
}

/* Contacto */
.contact {
  background: var(--petrol);
}
.contact-box {
  display: grid;
  gap: 32px;
}
.contact h2 {
  color: var(--text-dark);
}
.email {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(1.15rem, 0.9rem + 1.4vw, 1.7rem);
  font-weight: 700;
  color: var(--yellow);
  text-decoration: none;
  word-break: break-all;
  border-bottom: 2px solid var(--line-petrol);
}
.email:hover {
  border-bottom-color: var(--yellow);
}
.contact .actions {
  margin-top: 20px;
}
.copy-status {
  min-height: 1.6em;
  margin-top: 10px;
  color: var(--yellow);
  font-weight: 600;
}

/* Pie */
.foot {
  padding: 36px 0;
  border-top: 1px solid var(--line-petrol);
}
.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 {
  display: inline-block;
  padding: 2px 0;
  color: var(--text-dark);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.foot-links a {
  display: inline-block;
  padding: 2px 0;
  color: var(--text-dark);
}

/* Páginas internas (apps, a la medida, 404) */
section.page-top {
  padding-top: 28px;
}
.page-top .app {
  margin-top: 20px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.crumbs li + li::before {
  content: '/';
  margin-right: 10px;
}
.crumbs a {
  display: inline-block;
  min-height: 24px;
  color: var(--text);
}
.custom .crumbs {
  margin-bottom: 28px;
}
.custom h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  max-width: 24ch;
}
.nf-links {
  margin-top: 24px;
}
.nf-links a {
  display: inline-block;
  padding: 3px 0;
  color: var(--text);
}

/* Tablet */
@media (min-width: 760px) {
  section {
    padding: 88px 0;
  }
  .nav {
    display: flex;
    gap: 22px;
    font-size: 0.93rem;
  }
  .nav a {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
  }
  .nav a:hover {
    color: var(--teal);
  }
  .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;
  }
  .foot-links {
    grid-column: 1 / -1;
  }
  section.page-top {
    padding-top: 40px;
  }
}

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