/* =========================================================
   JOSEP PEDRO · v2
   Menú y pie estilo GAA, portada con la cabecera y el slider de la v1.
   Tipografías de la v1: Instrument Sans (titulares) e Inter (interfaz).
   ========================================================= */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/InstrumentSanswdthwght.ttf") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1a1a1a;
  --heading: #333;
  --muted: #707070;
  --soft: #f2f2f2;
  --soft-2: #e8e8e8;
  --placeholder: #e3e3e0;
  --white: #fff;
  --green: #2fbf4f;
  --gutter: 5vw;
  --radius: 10px;
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ui: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Base solo en páginas v2 ---------- */
body.is-v2 {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.is-v2 *, body.is-v2 *::before, body.is-v2 *::after { box-sizing: border-box; }
body.is-v2 img { max-width: 100%; }
body.is-v2 a { color: inherit; }
body.is-v2 .container { width: 100%; padding-inline: var(--gutter); }
:where(body.is-v2) :where(h1, h2, h3, p, ul, ol, figure) { margin: 0; }
.seo-main { display: block; }

/* ---------- Menú (estilo GAA) ---------- */
.jp-nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 12px 0;
  font-family: var(--ui); font-size: 12px; font-weight: 500; line-height: 1;
  pointer-events: none;
}
.jp-nav > * { pointer-events: auto; }
.jp-brand {
  color: var(--ink); text-decoration: none; letter-spacing: .02em;
  transition: opacity .3s var(--ease-out);
}
.jp-brand:hover { opacity: .6; }
.jp-brand-sup { font-size: .75em; vertical-align: .35em; margin-left: .1em; }
.jp-pills {
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.jp-pills::-webkit-scrollbar { display: none; }
.jp-pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 999px;
  background: var(--soft); color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.jp-pill:hover { color: var(--ink); background: var(--soft-2); }
.jp-pill.is-current { background: #dcdcdc; color: var(--ink); }
.jp-pill.is-cta { background: var(--ink); color: var(--white); }
.jp-pill.is-cta:hover { background: #000; }

/* Punto verde que late (disponibilidad) */
.jp-dot {
  position: relative; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--green);
}
.jp-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green);
  animation: jp-pulse 1.8s ease-out infinite;
}
@keyframes jp-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(2.8); opacity: 0; } }

/* ---------- Botones ---------- */
.jp-button {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px;
  background: var(--ink); color: var(--white) !important; text-decoration: none;
  font-family: var(--ui); font-size: 14px; font-weight: 500; line-height: 1;
  transition: opacity .3s var(--ease-out), background-color .35s var(--ease);
}
.jp-button:hover { opacity: .8; }
.jp-button.is-light { background: var(--soft); color: var(--ink) !important; }
.jp-button.is-light:hover { background: var(--soft-2); opacity: 1; }
.jp-center { display: flex; justify-content: center; }
.jp-link { text-decoration: none; transition: opacity .3s var(--ease-out); }
.jp-link:hover { opacity: .5; }

/* ---------- Cabecera de la portada (v1) ---------- */
.jp-hero { padding: 180px 0 9vh; }
.home-hero {
  display: grid; grid-template-columns: 1fr; grid-template-areas: "big" "sub" "side";
  row-gap: 2rem; align-items: start; width: 100%;
}
.hh-h1 { display: contents; font: inherit; }
.hh-big {
  grid-area: big; display: block; max-width: 11em; color: var(--ink);
  font-size: 6.4vw; line-height: .98; letter-spacing: -.05em; font-weight: 450; font-variation-settings: "wght" 450;
  margin-bottom: 2vw;
  animation: hh-in 1s var(--ease-out) both;
}
.hh-sub {
  grid-area: sub; display: block; max-width: 24em; color: var(--heading);
  font-size: 1.6vw; line-height: 1.25; letter-spacing: -.02em; font-weight: 450; font-variation-settings: "wght" 450;
  animation: hh-in 1s .15s var(--ease-out) both;
}
.hh-side {
  grid-area: side; display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem;
  animation: hh-in 1s .3s var(--ease-out) both;
}
.hh-text { margin: 0; color: #777; font-size: 15px; line-height: 1.5; white-space: pre-line; }
@keyframes hh-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Slider de proyectos (v1), sobre blanco ---------- */
body.is-v2 .work-slider {
  height: auto; background: none; display: block; padding: 0 0 8vh;
}
body.is-v2 .work-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 5vh; }
body.is-v2 .work-row { overflow: hidden; height: 22vh; min-height: 150px; }
body.is-v2 .work-track { display: flex; gap: 10px; height: 100%; width: max-content; will-change: transform; }
body.is-v2 .work-item {
  position: relative; display: block; height: 100%; flex: none;
  border-radius: var(--radius); overflow: hidden; background: var(--placeholder);
  transition: border-radius .35s var(--ease);
}
body.is-v2 .work-item img {
  display: block; height: 100%; width: auto; object-fit: cover;
  user-select: none; -webkit-user-drag: none; transition: transform .35s var(--ease);
}
body.is-v2 .work-label {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--ink); font-family: var(--ui); font-size: 12px; font-weight: 500; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease; pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  body.is-v2 .work-item:hover { border-radius: 20px; }
  body.is-v2 .work-item:hover img { transform: scale(1.02); }
  body.is-v2 .work-item:hover .work-label { opacity: 1; transform: none; }
}
body.is-v2 .work-item:focus-visible .work-label { opacity: 1; transform: none; }
@media (hover: none) {
  body.is-v2 .work-label { opacity: 1; transform: none; font-size: 11px; }
}

/* ---------- Trusted by ---------- */
.jp-trusted {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 4vh var(--gutter) 14vh; text-align: center;
}
.jp-trusted-list {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 32px;
  list-style: none; padding: 0;
  font-family: var(--ui); font-size: 14px; font-weight: 500; color: var(--muted);
}
.jp-trusted-list img { display: block; max-height: 22px; width: auto; opacity: .55; filter: grayscale(1); }

/* ---------- Pie (estilo GAA) ---------- */
.jp-footer {
  padding: 48px var(--gutter) 24px;
  border-top: 1px solid var(--soft-2);
  background: var(--white); color: var(--ink);
  font-family: var(--ui); font-size: 12px; font-weight: 500; line-height: 1.4;
}
.jp-footer p, .jp-footer ul { margin: 0; }
.jp-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.jp-footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.jp-footer-brand { color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.jp-footer-label { color: var(--muted); font-family: var(--ui); font-size: 12px; font-weight: 500; }
.jp-footer-links, .jp-clocks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.jp-footer .jp-link { color: var(--ink); }
.jp-clocks li { display: flex; gap: 10px; }
.jp-clocks span { min-width: 9em; }
.jp-clock { font-variant-numeric: tabular-nums; color: var(--muted); }
.jp-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px; border-radius: 999px; background: var(--soft);
  color: var(--ink); text-decoration: none; transition: background-color .35s var(--ease);
}
.jp-status:hover { background: var(--soft-2); }
.jp-footer-legal { margin-top: 48px !important; color: var(--muted); }

/* ---------- Puntero (v1) en páginas v2 ---------- */
html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input, html.has-cursor textarea, html.has-cursor [contenteditable] { cursor: text !important; }
.cursor-dot { position: fixed; top: 0; left: 0; z-index: 2147483647; pointer-events: none; width: 0; height: 0; opacity: 0; transition: opacity .2s ease; mix-blend-mode: difference; }
.cursor-dot.is-visible { opacity: 1; }
.cursor-dot.is-text { opacity: 0; }
.cursor-dot::before { content: ""; position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease-out); }
.cursor-dot.is-link::before { transform: scale(3.4); animation: cursor-breathe 1.8s ease-in-out .35s infinite; }
.cursor-dot.is-down::before { transform: scale(.7); animation: none; }
.cursor-dot.is-link.is-down::before { transform: scale(2.8); }
@keyframes cursor-breathe { 0%, 100% { transform: scale(3.4); } 50% { transform: scale(2.7); } }

/* ---------- Responsive ---------- */
@media screen and (max-width: 991px) {
  .hh-big { font-size: 9vw; }
  .hh-sub { font-size: 3vw; }
  .jp-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 767px) {
  .jp-hero { padding: 140px 0 6vh; }
  body.is-v2 .work-row { height: 19vh; min-height: 120px; }
  .jp-pill[href="/"] { display: none; }
}
@media screen and (max-width: 479px) {
  .hh-big { font-size: 11vw; }
  .hh-sub { font-size: 18px; }
  .home-hero { row-gap: 20px; }
  .jp-footer-grid { grid-template-columns: 1fr; }
  .jp-nav { padding-top: 12px; }
  .jp-pill { padding: 7px 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .hh-big, .hh-sub, .hh-side, .jp-dot::after, .cursor-dot.is-link::before { animation: none; }
  body.is-v2 .work-item, body.is-v2 .work-item img { transition: none; }
}

/* =========================================================
   Work (Case Studies): cuadrícula de 3 columnas
   ========================================================= */
.jp-page-head {
  display: flex; flex-direction: column; align-items: flex-start; gap: 24px;
  padding: 150px var(--gutter) 48px;
}
.jp-title {
  max-width: 22em; color: var(--ink);
  font-family: var(--display); font-size: 3.2vw; line-height: 1.02; letter-spacing: -.04em;
  font-weight: 450; font-variation-settings: "wght" 450;
  animation: hh-in 1s var(--ease-out) both;
}
.jp-title .is-muted { color: var(--muted); }
.jp-filters {
  display: flex; flex-wrap: wrap; gap: 4px;
  font-family: var(--ui); font-size: 12px; font-weight: 500; line-height: 1;
  animation: hh-in 1s .15s var(--ease-out) both;
}

.jp-work { padding: 0 10px 14vh; }
.jp-work-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  list-style: none; margin: 0; padding: 0;
}
.jp-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); background: var(--placeholder);
  aspect-ratio: 4 / 5; color: var(--ink); text-decoration: none;
  transition: border-radius .35s var(--ease);
}
.jp-card-media { position: absolute; inset: 0; }
.jp-card-media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s var(--ease);
}
.jp-card-label {
  position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--ui); font-size: 12px; font-weight: 500; line-height: 1.2;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.jp-card-title { margin: 0; font: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jp-card-arrow { flex: none; opacity: .5; transition: opacity .35s var(--ease); }
.jp-card-nda {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-family: var(--ui); font-size: 12px; font-weight: 500;
}
.jp-card.is-nda img { filter: blur(18px) grayscale(.4); transform: scale(1.1); }
@media (hover: hover) and (pointer: fine) {
  .jp-card:hover { border-radius: 20px; }
  .jp-card:hover .jp-card-media img { transform: scale(1.02); }
  .jp-card.is-nda:hover .jp-card-media img { transform: scale(1.12); }
  .jp-card:hover .jp-card-label { opacity: 1; transform: none; }
  .jp-card:hover .jp-card-arrow { opacity: 1; }
}
.jp-card:focus-visible .jp-card-label { opacity: 1; transform: none; }
@media (hover: none) {
  .jp-card-label { opacity: 1; transform: none; font-size: 11px; }
}
.jp-empty { padding: 0 var(--gutter); color: var(--muted); font-family: var(--ui); font-size: 14px; }

@media screen and (max-width: 991px) {
  .jp-work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jp-title { font-size: 5vw; }
}
@media screen and (max-width: 767px) {
  .jp-page-head { padding-top: 120px; }
}
@media screen and (max-width: 479px) {
  .jp-work-grid { grid-template-columns: 1fr; }
  .jp-title { font-size: 9vw; }
}
@media (prefers-reduced-motion: reduce) {
  .jp-title, .jp-filters { animation: none; }
  .jp-card, .jp-card-media img { transition: none; }
}

/* =========================================================
   Filtros bajo el menú y páginas sin titular visible
   ========================================================= */
.jp-pills.is-sub { background: rgba(255, 255, 255, .72); }
.jp-pills.is-sub .jp-pill { padding: 6px 10px; font-size: 11px; }

.jp-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Cabecera vacía: solo deja aire para el menú */
.jp-page-head { padding: 0; height: 140px; }
/* Páginas v1: el titular se oculta, el H1 sigue en el código para Google */
.section-hero.jp-hide-hero {
  height: 110px !important; min-height: 0 !important; padding: 0 !important; overflow: hidden;
}
.section-hero.jp-hide-hero > * { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media screen and (max-width: 767px) {
  .jp-page-head { height: 132px; }
}

/* =========================================================
   Info > Process
   ========================================================= */
.jp-process { padding: 40px var(--gutter) 10vh; }
.jp-lead {
  max-width: 24em; margin: 0 0 8vh !important; color: var(--ink);
  font-family: var(--display); font-size: 2.6vw; line-height: 1.12; letter-spacing: -.035em;
  font-weight: 450; font-variation-settings: "wght" 450;
  animation: hh-in 1s var(--ease-out) both;
}
.jp-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  list-style: none; margin: 0; padding: 0;
}
.jp-step {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; border-radius: var(--radius); background: var(--soft);
  min-height: 380px;
}
.jp-step-num { font-family: var(--ui); font-size: 12px; font-weight: 500; color: var(--muted); }
.jp-step-title {
  margin: 0; font-family: var(--display); font-size: 24px; line-height: 1.1; letter-spacing: -.02em;
  font-weight: 500; font-variation-settings: "wght" 500;
}
.jp-step-text { margin: 0; color: var(--heading); font-size: 15px; line-height: 1.45; }
.jp-step-out { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--soft-2); display: flex; flex-direction: column; gap: 8px; }
.jp-step-out ul { list-style: none; margin: 0; padding: 0; font-family: var(--ui); font-size: 13px; font-weight: 500; line-height: 1.5; }

.jp-section-label { margin: 0 0 20px; color: var(--muted); font-family: var(--ui); font-size: 12px; font-weight: 500; }
.jp-engage { padding: 0 var(--gutter) 10vh; }
.jp-engage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.jp-engage-card { padding: 20px; border-radius: var(--radius); border: 1px solid var(--soft-2); }
.jp-engage-card h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.15; letter-spacing: -.02em; font-weight: 500; font-variation-settings: "wght" 500; }
.jp-engage-card p { margin: 0; color: var(--heading); font-size: 15px; line-height: 1.45; }

.jp-cta { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 4vh var(--gutter) 14vh; text-align: center; }
.jp-cta-title { margin: 0; font-size: 2.6vw; line-height: 1.1; letter-spacing: -.035em; font-weight: 450; font-variation-settings: "wght" 450; }

@media screen and (max-width: 991px) {
  .jp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jp-lead, .jp-cta-title { font-size: 4.4vw; }
  .jp-engage-grid { grid-template-columns: 1fr; }
}
@media screen and (max-width: 479px) {
  .jp-steps { grid-template-columns: 1fr; }
  .jp-step { min-height: 0; }
  .jp-lead, .jp-cta-title { font-size: 26px; }
}

/* Journal: fecha arriba a la izquierda de la tarjeta */
.jp-card-meta {
  position: absolute; left: 10px; top: 10px;
  padding: 5px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--ui); font-size: 11px; font-weight: 500; color: var(--muted);
  opacity: 0; transition: opacity .3s ease;
}
@media (hover: hover) and (pointer: fine) { .jp-card:hover .jp-card-meta { opacity: 1; } }
@media (hover: none) { .jp-card-meta { opacity: 1; } }

/* =========================================================
   Portada v2: slider a pantalla completa con la cabecera encima.
   Al hacer scroll la cabecera sube y deja ver el slider.
   ========================================================= */
.jp-stage { position: relative; height: 200vh; height: 200svh; }
body.is-v2 .jp-stage .work-slider {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh; padding: 10px 0;
  display: flex; flex-direction: column;
}
body.is-v2 .jp-stage .work-rows { flex: 1; min-height: 0; margin: 0; gap: 10px; }
body.is-v2 .jp-stage .work-row { flex: 1; height: auto; min-height: 0; }
.jp-stage .jp-hero {
  position: absolute; inset: 0 0 auto; z-index: 1;
  height: 100vh; height: 100svh; padding: 0;
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
}
.jp-stage .home-hero { padding-top: 60px; }
.jp-slider-cta {
  position: absolute; left: 0; right: 0; bottom: 28px; z-index: 2;
  display: flex; justify-content: center; pointer-events: none;
}
.jp-slider-cta .jp-button { pointer-events: auto; }
.jp-button.is-glass {
  background: rgba(255, 255, 255, .8); color: var(--ink) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.jp-button.is-glass:hover { background: #fff; opacity: 1; }
.jp-stage + * { position: relative; }

/* =========================================================
   Info > About v2
   ========================================================= */
:root { --section: clamp(96px, 14vh, 180px); }
.jp-section { padding: 0 var(--gutter) var(--section); }
.jp-about-intro { padding-top: 48px; }
.jp-statement {
  max-width: 24em; color: var(--ink);
  font-family: var(--display); font-size: 3vw; line-height: 1.1; letter-spacing: -.035em;
  font-weight: 450; font-variation-settings: "wght" 450;
  animation: hh-in 1s var(--ease-out) both;
}
.jp-section-label { margin-bottom: 20px; }
.jp-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  list-style: none; margin-top: clamp(64px, 10vh, 120px); padding: 0;
}
.jp-stats li { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--soft-2); }
.jp-stat-value { font-size: 44px; line-height: 1; letter-spacing: -.03em; font-weight: 450; font-variation-settings: "wght" 450; }
.jp-stat-label { color: var(--muted); font-family: var(--ui); font-size: 12px; font-weight: 500; }

/* Unas palabras: slider de fotos + texto, en dos columnas */
.jp-founder { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.jp-slides { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--placeholder); }
.jp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.jp-slide.is-active { opacity: 1; }
.jp-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jp-slide-empty {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: repeating-linear-gradient(135deg, #ececea 0 12px, #e5e5e2 12px 24px);
  color: var(--muted); font-family: var(--ui); font-size: 12px; font-weight: 500;
}
.jp-slide figcaption {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 999px;
  background: rgba(255,255,255,.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--ui); font-size: 12px; font-weight: 500;
}
.jp-slide-dots { position: absolute; right: 14px; bottom: 18px; display: flex; gap: 5px; }
.jp-slide-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); transition: background-color .4s; }
.jp-slide-dots span.is-active { background: #fff; }
.jp-founder-copy { display: flex; flex-direction: column; gap: 0; padding-bottom: 8px; }
.jp-founder-text {
  max-width: 30em; color: var(--heading);
  font-size: clamp(18px, 1.6vw, 24px); line-height: 1.4; letter-spacing: -.01em;
  font-weight: 450; font-variation-settings: "wght" 450;
}
.jp-founder-sign { display: flex; flex-direction: column; gap: 4px; margin-top: 32px; font-family: var(--ui); font-size: 13px; font-weight: 500; }
.jp-founder-sign span + span { color: var(--muted); }

/* Bloques con título a la izquierda */
.jp-map-head {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px);
  align-items: baseline; padding-top: 20px; margin-bottom: clamp(40px, 6vh, 72px);
  border-top: 1px solid var(--soft-2);
}
.jp-block-title {
  font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -.035em;
  font-weight: 450; font-variation-settings: "wght" 450;
}
.jp-map-text { max-width: 30em; color: var(--muted); font-family: var(--ui); font-size: 14px; font-weight: 500; line-height: 1.5; }

/* Mapa de puntos */
.jp-map { margin-bottom: clamp(40px, 6vh, 72px); }
.jp-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.jp-map-land { fill: none; stroke: #dcdcda; stroke-width: .6; stroke-linecap: round; }
.jp-map-marker circle { fill: var(--ink); }
.jp-map-marker .jp-map-pulse { fill: var(--ink); opacity: 0; transform-box: fill-box; transform-origin: center; animation: jp-map-pulse 2.4s ease-out infinite; }
.jp-map-marker:nth-child(3n) .jp-map-pulse { animation-delay: .8s; }
.jp-map-marker:nth-child(3n+1) .jp-map-pulse { animation-delay: 1.6s; }
@keyframes jp-map-pulse { 0% { opacity: .35; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }

.jp-lists {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px);
  font-family: var(--ui); font-size: 14px; font-weight: 500; line-height: 1.6;
}
.jp-lists ul { list-style: none; padding: 0; color: var(--muted); columns: 2; column-gap: 24px; }
.jp-list-title { margin-bottom: 12px; font: inherit; color: var(--ink); }

/* Principios */
.jp-principles-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; }
.jp-principle { display: flex; flex-direction: column; gap: 14px; min-height: 240px; padding: 20px; border-radius: var(--radius); background: var(--soft); }
.jp-principle h3 { font-size: 20px; line-height: 1.15; letter-spacing: -.02em; font-weight: 500; font-variation-settings: "wght" 500; }
.jp-principle p { color: var(--heading); font-size: 14px; line-height: 1.5; }
.jp-tags { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin-top: auto !important; padding: 0; }
.jp-tags li { padding: 5px 9px; border-radius: 999px; background: #fff; font-family: var(--ui); font-size: 11px; font-weight: 500; color: var(--muted); }

/* Capabilities como filas */
.jp-caps-list { list-style: none; padding: 0; border-bottom: 1px solid var(--soft-2); }
.jp-cap-row {
  display: grid; grid-template-columns: 60px minmax(0, 4fr) minmax(0, 6fr) 20px; gap: 24px; align-items: baseline;
  padding: 22px 0; border-top: 1px solid var(--soft-2); color: var(--ink); text-decoration: none;
  position: relative; isolation: isolate;
}
/* Fondo del hover: crece hacia fuera, el texto no se mueve */
.jp-cap-row::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: var(--radius); background: var(--soft); opacity: 0;
  transition: inset .35s var(--ease), opacity .35s var(--ease);
}
.jp-cap-title { font-size: 22px; line-height: 1.15; letter-spacing: -.02em; font-weight: 450; font-variation-settings: "wght" 450; }
.jp-cap-summary { color: var(--muted); font-family: var(--ui); font-size: 13px; font-weight: 500; line-height: 1.5; }
@media (hover: hover) and (pointer: fine) {
  .jp-cap-row:hover::before { inset: -1px -14px 0; opacity: 1; }
  .jp-cap-row:hover .jp-card-arrow { opacity: 1; }
}

.jp-mail-title { margin-bottom: 24px; font-size: 22px; font-weight: 500; }
.jp-mail-card { position: relative; width: min(360px, 100%); margin: 0 auto; border-radius: 16px; overflow: hidden; }
.jp-mail-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.jp-cta { padding: 0 var(--gutter) var(--section); }

@media screen and (max-width: 991px) {
  .jp-statement { font-size: 5vw; }
  .jp-principles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .jp-founder, .jp-map-head, .jp-lists { grid-template-columns: 1fr; }
  .jp-cap-row { grid-template-columns: 44px minmax(0, 1fr) 20px; }
  .jp-cap-summary { display: none; }
}
@media screen and (max-width: 479px) {
  .jp-statement { font-size: 26px; }
  .jp-principles-grid { grid-template-columns: 1fr; }
  .jp-principle { min-height: 0; }
  .jp-stat-value { font-size: 34px; }
  .jp-lists ul { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .jp-map-marker .jp-map-pulse { animation: none; }
  .jp-slide { transition: none; }
}

/* =========================================================
   Process: círculos con un punto que los recorre (de la v1, en claro)
   ========================================================= */
.jp-process { padding: 48px var(--gutter) var(--section); }
.jp-lead { margin-bottom: clamp(64px, 10vh, 120px) !important; }
.jp-circles-stage { position: relative; }
.jp-circles { display: flex; list-style: none; padding: 0; }
.jp-circle {
  position: relative; flex: 1 1 0; aspect-ratio: 1 / 1; margin-left: -2.5%; border-radius: 50%;
  border: 1px solid #e4e4e2; display: flex; align-items: center; justify-content: center; text-align: center;
  transition: border-color .8s ease;
}
.jp-circle:first-child { margin-left: 0; }
.jp-circle-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
  font-size: 17vw; line-height: 1; letter-spacing: -.04em; color: rgba(26, 26, 26, .035);
  font-weight: 450; font-variation-settings: "wght" 450; transition: color .8s ease;
}
.jp-circle-body { position: relative; max-width: 64%; }
.jp-circle-title {
  margin-bottom: .8em !important; color: var(--muted);
  font-family: var(--ui); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.3;
  transition: color .8s ease;
}
.jp-circle-text { color: #b4b4b2; font-size: 14px; line-height: 1.45; transition: color .8s ease; }
.jp-circle.is-active { border-color: #bdbdbb; }
.jp-circle.is-active .jp-circle-num { color: rgba(26, 26, 26, .07); }
.jp-circle.is-active .jp-circle-title { color: var(--ink); }
.jp-circle.is-active .jp-circle-text { color: var(--heading); }
.jp-circles-stage .process-dot {
  position: absolute; left: 0; top: 0; z-index: 2; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 4px rgba(26, 26, 26, .08); opacity: 0; transition: opacity .5s ease; pointer-events: none;
}
.jp-circles-stage .process-dot.is-on { opacity: 1; }

.jp-outputs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  list-style: none; margin-top: clamp(48px, 8vh, 96px) !important; padding: 0;
}
.jp-outputs > li { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--soft-2); }
.jp-outputs ul { list-style: none; padding: 0; font-family: var(--ui); font-size: 13px; font-weight: 500; line-height: 1.6; }

.jp-engage { padding: 0 var(--gutter) var(--section); }
.jp-map-head.is-first { border-top: 0; padding-top: 0; }

@media screen and (max-width: 991px) {
  .jp-outputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 767px) {
  .jp-circles { flex-direction: column; align-items: center; }
  .jp-circle { flex: none; width: min(84vw, 360px); margin: calc(min(84vw, 360px) * -0.06) 0 0; }
  .jp-circle:first-child { margin-top: 0; }
  .jp-circle-num { font-size: min(64vw, 280px); }
}
@media screen and (max-width: 479px) {
  .jp-outputs { grid-template-columns: 1fr; }
}

/* Etiqueta de página como H1 visible */
h1.jp-section-label { font-weight: 500; }
.jp-intro-top { padding-top: 48px; }
.jp-intro-top .jp-lead { margin-bottom: clamp(64px, 10vh, 120px) !important; }

/* Process: textos fuera del círculo */
.jp-circle-title { margin-bottom: 0 !important; }
.jp-circle-body { max-width: 70%; }
.jp-outputs > li { gap: 14px; transition: border-color .8s ease; }
.jp-output-text { color: var(--heading); font-size: 15px; line-height: 1.5; margin-bottom: 8px !important; }
.jp-outputs > li.is-active { border-top-color: var(--ink); }

/* Mapa: países sombreados y capitales con brillo */
.jp-map-country { fill: none; stroke: #6f6f6d; stroke-width: .6; stroke-linecap: round; }
.jp-map-marker .jp-map-pulse { display: none; }
.jp-map-marker .jp-map-cap { fill: var(--green); }
.jp-map-marker .jp-map-glow { fill: var(--green); opacity: .35; transform-box: fill-box; transform-origin: center; animation: jp-glow 2.8s ease-in-out infinite; }
.jp-map-marker:nth-child(2n) .jp-map-glow { animation-delay: .9s; }
.jp-map-marker:nth-child(3n) .jp-map-glow { animation-delay: 1.8s; }
@keyframes jp-glow { 0%, 100% { opacity: .18; transform: scale(.75); } 50% { opacity: .5; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .jp-map-glow { animation: none; } }

/* =========================================================
   Página de cada capability / sector
   ========================================================= */
.jp-svc-hero { padding-top: 48px; }
.jp-svc-hero .jp-section-label a { color: inherit; }
.jp-svc-title {
  max-width: 16em; margin-bottom: 24px !important;
  font-size: clamp(40px, 5.2vw, 84px); line-height: 1; letter-spacing: -.045em;
  font-weight: 450; font-variation-settings: "wght" 450;
  animation: hh-in 1s var(--ease-out) both;
}
.jp-svc-lead {
  max-width: 28em; color: var(--heading);
  font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; letter-spacing: -.015em;
  font-weight: 450; font-variation-settings: "wght" 450;
  animation: hh-in 1s .15s var(--ease-out) both;
}
.jp-stats.is-facts { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.jp-fact-value { font-family: var(--ui); font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.jp-svc-image img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 14px; background: var(--placeholder); }
.jp-svc-image { padding-left: 10px; padding-right: 10px; }

.jp-rich { max-width: 36em; color: var(--heading); font-size: 17px; line-height: 1.6; }
.jp-rich p + p { margin-top: 1em; }

.jp-inc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; }
.jp-inc-grid .jp-principle { min-height: 200px; }

.jp-faq { max-width: 40em; border-bottom: 1px solid var(--soft-2); }
.jp-faq-item { border-top: 1px solid var(--soft-2); }
.jp-faq-item:first-child { border-top: 0; }
.jp-faq-item summary {
  display: flex; justify-content: space-between; gap: 24px; align-items: center; cursor: pointer; list-style: none;
  padding: 18px 0; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; font-weight: 450; font-variation-settings: "wght" 450;
}
.jp-faq-item summary::-webkit-details-marker { display: none; }
.jp-faq-icon { position: relative; flex: none; width: 12px; height: 12px; }
.jp-faq-icon::before, .jp-faq-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.jp-faq-icon::after { transform: rotate(90deg); }
.jp-faq-item[open] .jp-faq-icon::after { transform: rotate(0); }
.jp-faq-item p { padding: 0 0 20px; color: var(--muted); font-family: var(--ui); font-size: 14px; font-weight: 500; line-height: 1.6; max-width: 36em; }

@media screen and (max-width: 991px) {
  .jp-inc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 479px) {
  .jp-inc-grid { grid-template-columns: 1fr; }
  .jp-svc-image img { aspect-ratio: 4 / 3; }
}

/* =========================================================
   Ficha de proyecto
   ========================================================= */
.jp-media-section { padding-left: 10px; padding-right: 10px; }
.jp-map-head.is-case { align-items: start; }
.jp-details { display: flex; flex-direction: column; margin: 28px 0 0; font-family: var(--ui); font-size: 13px; font-weight: 500; line-height: 1.5; }
.jp-details > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 16px; padding: 10px 0; border-top: 1px solid var(--soft-2); }
.jp-details dt { color: var(--muted); }
.jp-details dd { margin: 0; color: var(--ink); }

.jp-outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; list-style: none; padding: 0; }
.jp-outcomes li { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--soft-2); }
.jp-outcomes h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.02em; font-weight: 450; font-variation-settings: "wght" 450; }
.jp-outcomes p { color: var(--muted); font-family: var(--ui); font-size: 13px; font-weight: 500; line-height: 1.55; }

.jp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jp-pair.is-one { grid-template-columns: 1fr; }
.jp-pair img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--placeholder); }
.jp-pair.is-one img { aspect-ratio: 16 / 8; }

.jp-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; padding: 0; }
.jp-gallery li { border-radius: 14px; overflow: hidden; background: var(--placeholder); }
.jp-gallery li.is-wide { grid-column: 1 / -1; }
.jp-gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.jp-gallery li.is-wide img { aspect-ratio: 16 / 8; }
.jp-gallery.is-even img { aspect-ratio: 4 / 3; }

.jp-quote {
  max-width: 22em; margin: 0 auto !important; text-align: center; color: var(--ink);
  font-size: clamp(24px, 2.6vw, 40px); line-height: 1.15; letter-spacing: -.03em;
  font-weight: 450; font-variation-settings: "wght" 450;
}
.jp-testimonial { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.jp-testimonial figcaption { display: flex; align-items: center; gap: 10px; font-family: var(--ui); font-size: 13px; font-weight: 500; }
.jp-testimonial figcaption img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.jp-testimonial figcaption span + span { color: var(--muted); }

.jp-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.jp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.jp-case-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 10px; list-style: none; padding: 0; margin-top: clamp(40px, 6vh, 72px) !important; }
.jp-case-steps li { display: flex; flex-direction: column; gap: 10px; }
.jp-case-step-img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--placeholder); margin-bottom: 6px; }
.jp-case-step-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.jp-case-steps h3 { font-size: 20px; line-height: 1.15; letter-spacing: -.02em; font-weight: 500; font-variation-settings: "wght" 500; }
.jp-case-steps p { color: var(--heading); font-size: 14px; line-height: 1.5; max-width: 32em; }

.jp-rich.is-small { font-family: var(--ui); font-size: 13px; font-weight: 500; color: var(--muted); }
.jp-lists.is-credits { grid-template-columns: 1fr 1fr; }

.jp-cta-text { max-width: 30em; color: var(--muted); font-family: var(--ui); font-size: 14px; font-weight: 500; line-height: 1.55; }
.jp-cta-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.jp-work-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jp-work-grid.is-two .jp-card { aspect-ratio: 4 / 3; }

@media screen and (max-width: 991px) {
  .jp-case-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 479px) {
  .jp-pair, .jp-gallery, .jp-case-steps, .jp-work-grid.is-two, .jp-lists.is-credits { grid-template-columns: 1fr; }
  .jp-gallery img, .jp-gallery li.is-wide img, .jp-pair img { aspect-ratio: 4 / 3; }
  .jp-details > div { grid-template-columns: 1fr; gap: 2px; }
}

/* Bloques de imágenes estilo Behance: misma altura en cada fila */
.jp-row { display: flex; gap: 10px; }
.jp-row figure { margin: 0; min-width: 0; border-radius: 14px; overflow: hidden; background: var(--placeholder); }
.jp-row img { display: block; width: 100%; height: auto; }
.jp-row.is-narrow { justify-content: center; }
.jp-row.is-narrow figure { flex: none !important; width: min(60%, 760px); }
.jp-quote.is-statement { color: var(--muted); font-size: clamp(20px, 2vw, 30px); }
.jp-section.jp-media-section + .jp-section.jp-media-section { margin-top: calc(10px - var(--section)); }
@media screen and (max-width: 479px) {
  .jp-row.is-n2, .jp-row.is-n3 { flex-direction: column; }
  .jp-row.is-n2 figure, .jp-row.is-n3 figure { flex: none !important; }
  .jp-row.is-narrow figure { width: 100%; }
}
.jp-case-steps li { padding-top: 16px; border-top: 1px solid var(--soft-2); }
.jp-case-steps li:has(.jp-case-step-img) { padding-top: 0; border-top: 0; }

/* Tres términos clave del proyecto */
.jp-terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; }
.jp-terms li {
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 180px; padding: 20px; border-radius: 14px; background: var(--soft);
}
.jp-term { font-size: clamp(24px, 2.4vw, 38px); line-height: 1.05; letter-spacing: -.035em; font-weight: 450; font-variation-settings: "wght" 450; }
@media screen and (max-width: 767px) {
  .jp-terms { grid-template-columns: 1fr; }
  .jp-terms li { min-height: 0; gap: 20px; }
}

/* Términos clave: tres estilos a elegir (a, b, c) */
.jp-terms.is-a, .jp-terms.is-b, .jp-terms.is-c { display: flex; }
/* A · Píldoras grandes, como el menú */
.jp-terms.is-a { flex-wrap: wrap; justify-content: center; gap: 10px; }
.jp-terms.is-a li { flex-direction: row; justify-content: center; min-height: 0; padding: 18px 30px; border-radius: 999px; background: var(--soft); display: inline-flex; align-items: center; gap: 12px; }
.jp-terms.is-a .jp-term { font-size: clamp(20px, 1.8vw, 28px); }
/* B · Columnas con línea fina, como las cifras de About */
.jp-terms.is-b { gap: 24px; }
.jp-terms.is-b li { flex: 1 1 0; min-height: 0; padding: 18px 0 0; border-radius: 0; background: none; border-top: 1px solid var(--ink); }
.jp-terms.is-b .jp-term { font-size: clamp(26px, 2.8vw, 44px); }
/* C · Una línea grande, términos separados por barras finas */
.jp-terms.is-c { justify-content: center; align-items: center; flex-wrap: wrap; gap: 0; }
.jp-terms.is-c li { min-height: 0; padding: 0 clamp(16px, 2.4vw, 40px); border-radius: 0; background: none; }
.jp-terms.is-c li + li { border-left: 1px solid #cfcfcd; }
.jp-terms.is-c .jp-term { font-size: clamp(26px, 3.2vw, 52px); }
.jp-terms.is-c li:nth-child(2) .jp-term { color: var(--muted); }
@media screen and (max-width: 767px) {
  .jp-terms.is-b, .jp-terms.is-c { flex-direction: column; align-items: stretch; }
  .jp-terms.is-c li { padding: 12px 0; text-align: center; }
  .jp-terms.is-c li + li { border-left: 0; border-top: 1px solid #cfcfcd; }
}

/* Píldoras en móvil: ancho completo, una debajo de otra */
@media screen and (max-width: 767px) {
  .jp-terms.is-a { flex-direction: column; align-items: stretch; }
  .jp-terms.is-a li { padding: 16px 24px; }
}
.jp-row-caption { max-width: 40em; margin: 0 0 12px 4px !important; color: var(--muted); font-family: var(--ui); font-size: 13px; font-weight: 500; line-height: 1.5; }
.jp-section.jp-media-section + .jp-section.jp-media-section:has(.jp-row-caption) { margin-top: calc(56px - var(--section)); }
/* Imagen principal del proyecto: respeta su proporción */
.jp-svc-image.is-natural img { aspect-ratio: auto; height: auto; }

/* =========================================================
   Formatos estándar de imagen en los proyectos
   Cabecera 3:2 · imagen sola 3:2 · vertical sola 4:5 · parejas y tríos 4:5
   ========================================================= */
.jp-svc-image.is-natural img { aspect-ratio: 3 / 2; object-fit: cover; height: auto; }
.jp-row figure { flex: 1 1 0 !important; }
.jp-row img { aspect-ratio: 4 / 5; object-fit: cover; height: auto; }
.jp-row.is-n1:not(.is-narrow) img { aspect-ratio: 3 / 2; }
.jp-row.is-narrow figure { flex: none !important; width: min(60%, 760px); }
@media screen and (max-width: 479px) {
  .jp-row.is-n1:not(.is-narrow) img { aspect-ratio: 3 / 2; }
  .jp-row.is-narrow figure { width: 100%; }
}

/* Fases del proceso: 4 en fila en escritorio, 2 y 2 en tablet; nunca 3 + 1 */
.jp-case-steps:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.jp-case-steps:has(> li:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media screen and (max-width: 991px) {
  .jp-case-steps:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 479px) {
  .jp-case-steps, .jp-case-steps:has(> li:nth-child(4):last-child), .jp-case-steps:has(> li:nth-child(2):last-child) { grid-template-columns: 1fr; }
}
/* Más aire entre columnas de las fases */
.jp-case-steps { column-gap: clamp(24px, 3vw, 48px); row-gap: 40px; }
/* Imagen cuadrada sola: se mantiene cuadrada, sin recortar contexto */
.jp-row.is-square img { aspect-ratio: 1 / 1; }

/* Proyecto: menos aire entre un bloque de texto y las imágenes que lo siguen */
.jp-section:not(.jp-media-section):has(+ .jp-section.jp-media-section) { padding-bottom: clamp(48px, 7vh, 88px); }
.jp-section:not(.jp-media-section):has(+ .jp-section.jp-media-section) > .jp-map-head:last-child { margin-bottom: 0; }
.jp-section:has(> .jp-map-head:last-child):has(+ .jp-section.jp-media-section) { padding-bottom: clamp(40px, 5vh, 64px); }
@media screen and (max-width: 991px) {
  .jp-map-head { row-gap: 16px; }
}
.jp-svc-image.is-video video { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; background: var(--placeholder); }
.jp-image-note { max-width: 46em; color: var(--muted); font-family: var(--ui); font-size: 12px; font-weight: 500; line-height: 1.5; }
.jp-section.jp-image-note-wrap { padding-bottom: clamp(48px, 7vh, 88px); }

/* Proyecto confidencial: tarjeta sin enlace, imagen visible */
.jp-card.is-nda img { filter: none; transform: none; }
.jp-card.is-nda { cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .jp-card.is-nda:hover { border-radius: var(--radius); }
  .jp-card.is-nda:hover .jp-card-media img { transform: none; }
}

/* =========================================================
   Contact
   ========================================================= */
.jp-contact { align-items: start; }
.jp-contact-side .jp-details { margin-top: 0; }
.jp-contact-side .jp-details a { color: var(--ink); }
.jp-contact-social { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.jp-avail { display: inline-flex; align-items: center; gap: 8px; }
.jp-form { display: flex; flex-direction: column; gap: 28px; margin: 0; }
.jp-field { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.jp-field > label, .jp-field > legend {
  display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 0;
  color: var(--muted); font-family: var(--ui); font-size: 13px; font-weight: 500; line-height: 1.4;
}
.jp-field > legend { margin-bottom: 10px; float: left; }
.jp-field > legend + * { clear: both; }
.jp-field em { font-style: normal; opacity: .7; }
.jp-field-n { font-variant-numeric: tabular-nums; opacity: .7; }
.jp-field input:not([type="checkbox"]):not([type="radio"]), .jp-field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid transparent; border-radius: 12px;
  background: var(--soft); color: var(--ink); font: 500 16px/1.4 var(--ui);
  outline: none; transition: background-color .3s var(--ease), border-color .3s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.jp-field textarea { min-height: 150px; resize: vertical; }
.jp-field input::placeholder, .jp-field textarea::placeholder { color: #a8a8a8; }
.jp-field input:hover, .jp-field textarea:hover { background: var(--soft-2); }
.jp-field input:focus, .jp-field textarea:focus { background: #fff; border-color: var(--ink); }
.jp-field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.jp-choice { display: flex; flex-wrap: wrap; gap: 6px; }
.jp-choice label { position: relative; cursor: pointer; }
.jp-choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.jp-choice span {
  display: inline-flex; align-items: center; padding: 9px 14px; border-radius: 999px;
  background: var(--soft); color: var(--muted); font: 500 13px/1 var(--ui);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.jp-choice label:hover span { background: var(--soft-2); color: var(--ink); }
.jp-choice input:checked + span { background: var(--ink); color: var(--white); }
.jp-choice input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.jp-form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding-top: 4px; }
.jp-form-foot .jp-button { border: 0; cursor: pointer; font-size: 15px; padding: 1em 1.6em; }
.jp-form-note { color: var(--muted); font-family: var(--ui); font-size: 12px; font-weight: 500; line-height: 1.5; }
.jp-form-done { display: none; flex-direction: column; gap: 12px; padding: 32px; border-radius: 14px; background: var(--soft); }
.jp-form-done.is-visible { display: flex; }
@media screen and (max-width: 991px) {
  .jp-contact { row-gap: 48px; }
  .jp-contact-main { order: -1; }
}
@media screen and (max-width: 479px) {
  .jp-field-pair { grid-template-columns: 1fr; }
}
/* Vídeo de Vimeo en cabecera: 3:2, sin controles, recortado como cover */
.jp-hero-embed { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 14px; background: var(--placeholder); }
.jp-hero-embed iframe { position: absolute; top: 50%; left: 50%; width: 118.6%; height: 100%; transform: translate(-50%, -50%); border: 0; pointer-events: none; }
/* Pills de términos entre imágenes: mismo aire arriba y abajo */
.jp-section.jp-media-section:has(+ .jp-section > .jp-terms) { padding-bottom: clamp(48px, 7vh, 88px); }
.jp-section:has(> .jp-terms) { padding-bottom: clamp(48px, 7vh, 88px); }
/* Vídeo de cabecera vertical: 4:5 centrado, misma altura que una cabecera 3:2 */
.jp-svc-image.is-video.is-vertical { display: flex; justify-content: center; }
.jp-svc-image.is-video.is-vertical video { width: calc((100vw - 20px) / 1.5 * 0.8); max-width: 100%; aspect-ratio: 4 / 5; }
@media screen and (max-width: 767px) {
  .jp-svc-image.is-video.is-vertical video { width: 100%; }
}

/* =========================================================
   Journal: artículo
   ========================================================= */
.jp-post-layout { align-items: start; }
.jp-post-meta { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 24px; }
.jp-post-meta .jp-details { margin-top: 0; }
.jp-post-meta .jp-details a { color: var(--ink); }
.jp-post-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-family: var(--ui); font-size: 12px; font-weight: 500; line-height: 1; }
.jp-article { max-width: 38em; color: var(--heading); font-size: 18px; line-height: 1.65; }
.jp-article > * + * { margin-top: 1.1em; }
.jp-article h2 { margin-top: 2.2em !important; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.15; letter-spacing: -.03em; font-weight: 450; font-variation-settings: "wght" 450; color: var(--ink); }
.jp-article h3 { margin-top: 1.8em !important; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; font-weight: 500; color: var(--ink); }
.jp-article h2 + *, .jp-article h3 + * { margin-top: .6em; }
.jp-article ul, .jp-article ol { padding-left: 1.2em; }
.jp-article li + li { margin-top: .4em; }
.jp-article a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.jp-article strong { font-weight: 600; color: var(--ink); }
.jp-article blockquote { margin: 1.8em 0; padding: 0 0 0 20px; border-left: 2px solid var(--ink); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; letter-spacing: -.02em; color: var(--ink); }
.jp-article img, .jp-article figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.jp-article figure { margin: 2em 0; }
.jp-article figcaption { margin-top: 10px; color: var(--muted); font-family: var(--ui); font-size: 12px; font-weight: 500; }
.jp-post-cta-btn { margin-top: 24px; }
.jp-post-all { font-family: var(--ui); font-size: 13px; font-weight: 500; color: var(--muted); }
.jp-post-all:hover { color: var(--ink); }
.jp-post-cta .jp-map-head, .jp-post + .jp-post-cta { }
@media screen and (max-width: 991px) {
  .jp-post-meta { position: static; }
  .jp-article { font-size: 17px; }
}
/* Títulos de tarjeta completos, en varias líneas si hace falta */
.jp-card-label { align-items: flex-end; border-radius: 14px; }
.jp-card-title { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.jp-card-arrow { margin-bottom: 3px; }

/* =========================================================
   Modo oscuro (botón en el menú)
   ========================================================= */
.jp-theme { border: 0; cursor: pointer; padding: 7px 9px; font: inherit; }
.jp-theme svg { display: block; transition: transform .45s var(--ease); }
:root[data-theme="dark"] .jp-theme svg { transform: rotate(180deg); }
:root[data-theme="dark"] {
  --ink: #ececea;
  --heading: #d4d4d2;
  --muted: #8f8f8c;
  --soft: #1f1f1f;
  --soft-2: #2a2a2a;
  --placeholder: #262626;
  --white: #121212;
  color-scheme: dark;
}
:root[data-theme="dark"] body.is-v2 { background: #121212; }
:root[data-theme="dark"] .jp-pills,
:root[data-theme="dark"] .jp-pills.is-sub { background: rgba(18, 18, 18, .72); }
:root[data-theme="dark"] .jp-pill.is-current { background: #3a3a3a; }
:root[data-theme="dark"] .jp-pill.is-cta:hover { background: #fff; }
:root[data-theme="dark"] .jp-card-label,
:root[data-theme="dark"] .jp-card-meta { background: rgba(18, 18, 18, .85); color: var(--ink); }
:root[data-theme="dark"] .jp-button.is-glass { background: rgba(18, 18, 18, .8); }
:root[data-theme="dark"] .jp-button.is-glass:hover { background: #121212; }
:root[data-theme="dark"] .jp-tags li { background: #1f1f1f; }
:root[data-theme="dark"] .jp-map-land { stroke: #333331; }
:root[data-theme="dark"] .jp-map-country { stroke: #9a9a97; }
:root[data-theme="dark"] .jp-field input:focus, :root[data-theme="dark"] .jp-field textarea:focus { background: #121212; }
:root[data-theme="dark"] .jp-field input::placeholder, :root[data-theme="dark"] .jp-field textarea::placeholder { color: #5f5f5c; }
:root[data-theme="dark"] .jp-svc-image img, :root[data-theme="dark"] .jp-row img, :root[data-theme="dark"] .jp-card-media img { filter: brightness(.94); }
body.is-v2, .jp-pills, .jp-pill, .jp-card-label, .jp-footer, .jp-section { transition: background-color .4s var(--ease), color .4s var(--ease); }
:root[data-theme="dark"] .jp-stage .jp-hero { background: rgba(18, 18, 18, .78); }
:root[data-theme="dark"] body.is-v2 .work-label { background: rgba(18, 18, 18, .85); color: var(--ink); }

/* =========================================================
   Lápiz: dibujar sobre la página
   ========================================================= */
.jp-sketch-toggle[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.jp-draw { position: absolute; top: 0; left: 0; z-index: 90; pointer-events: none; touch-action: none; }
.is-drawing .jp-draw { pointer-events: auto; cursor: crosshair; }
.is-drawing .cursor-dot { opacity: 0 !important; }
.jp-draw-bar {
  position: fixed; left: 50%; bottom: 20px; z-index: 101; transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: var(--ui); font-size: 12px; font-weight: 500; line-height: 1;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
:root[data-theme="dark"] .jp-draw-bar { background: rgba(18, 18, 18, .8); }
.is-drawing .jp-draw-bar { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.jp-draw-bar .jp-pill { border: 0; cursor: pointer; font: inherit; }
.jp-draw-hint { margin-right: 8px; color: var(--muted); white-space: nowrap; }
/* Colores del lápiz */
.jp-swatches { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; }
.jp-swatch { width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; background: var(--sw); cursor: pointer; box-shadow: 0 0 0 2px transparent; transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.jp-swatch:hover { transform: scale(1.15); }
.jp-swatch.is-on { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px var(--sw); }
.jp-draw-bar .jp-draw-hint { display: none; }
/* Aviso la primera vez */
.jp-draw-tip {
  position: fixed; z-index: 120; transform: translate(-50%, -4px); padding: 8px 12px; border-radius: 999px;
  background: var(--ink); color: var(--white); font-family: var(--ui); font-size: 12px; font-weight: 500; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.jp-draw-tip::before { content: ""; position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 1px; }
.jp-draw-tip.is-on { opacity: 1; transform: translate(-50%, 0); }
/* Zona de dibujo en Contacto */
.jp-sketch-pad { position: relative; border-radius: 12px; background: var(--soft); overflow: hidden; }
.jp-sketch-pad canvas { display: block; width: 100%; height: 260px; cursor: crosshair; touch-action: none; }
.jp-sketch-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: #a8a8a8; font-family: var(--ui); font-size: 14px; font-weight: 500; pointer-events: none; transition: opacity .3s var(--ease); }
.jp-sketch-pad.has-ink .jp-sketch-empty { opacity: 0; }
.jp-sketch-note { position: absolute; left: 14px; top: 12px; color: var(--muted); font-family: var(--ui); font-size: 12px; font-weight: 500; pointer-events: none; }
.jp-sketch-tools { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 4px; font-family: var(--ui); font-size: 12px; font-weight: 500; line-height: 1; }
.jp-sketch-tools .jp-pill { border: 0; cursor: pointer; font: inherit; background: var(--white); }
.jp-upload { position: relative; display: inline-flex; align-self: flex-start; margin-top: 4px; cursor: pointer; }
.jp-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.jp-upload span { color: var(--muted); font-family: var(--ui); font-size: 12px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.jp-upload:hover span { color: var(--ink); }
.jp-field > .jp-upload { display: inline-flex; width: auto; }
/* Menú: icono de casa y mensajes */
.jp-pill.is-home { padding-left: 10px; padding-right: 10px; }
.jp-pill.is-home svg { display: block; }
.jp-nav-tip { z-index: 130; }
/* Zona de dibujo con cuadrícula de libreta */
.jp-sketch-pad {
  background-color: var(--soft);
  background-image: linear-gradient(to right, rgba(0, 0, 0, .055) 1px, transparent 1px), linear-gradient(to bottom, rgba(0, 0, 0, .055) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px;
}
:root[data-theme="dark"] .jp-sketch-pad { background-image: linear-gradient(to right, rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .06) 1px, transparent 1px); }
.jp-sketch-empty { background: none; }
.jp-sketch-empty { text-shadow: 0 0 8px var(--soft); }

/* Lápiz como cursor mientras se dibuja */
html.is-drawing .jp-draw, html.has-cursor.is-drawing .jp-draw,
html .jp-sketch-pad canvas, html.has-cursor .jp-sketch-pad canvas { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M3%2021l1.2-4.6L16.6%204a2%202%200%200%201%202.8%200l.6.6a2%202%200%200%201%200%202.8L7.6%2019.8%203%2021Z%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%223.2%22/%3E%3Cpath%20d%3D%22M3%2021l1.2-4.6L16.6%204a2%202%200%200%201%202.8%200l.6.6a2%202%200%200%201%200%202.8L7.6%2019.8%203%2021Z%22%20fill%3D%22%23ffffff%22%20stroke%3D%22%23ffffff%22%20stroke-width%3D%220%22/%3E%3Cpath%20d%3D%22M3%2021l1.2-4.6L16.6%204a2%202%200%200%201%202.8%200l.6.6a2%202%200%200%201%200%202.8L7.6%2019.8%203%2021Z%22%20fill%3D%22none%22%20stroke%3D%22%231a1a1a%22%20stroke-width%3D%221.5%22/%3E%3Cpath%20d%3D%22M14.6%206l3.4%203.4%22%20stroke%3D%22%231a1a1a%22%20stroke-width%3D%221.5%22/%3E%3Cpath%20d%3D%22M3%2021l1.2-4.6%203.4%203.4Z%22%20fill%3D%22%231a1a1a%22/%3E%3C/g%3E%3C/svg%3E") 3 21, crosshair !important; }
:root[data-theme="dark"].is-drawing .jp-draw, :root[data-theme="dark"] .jp-sketch-pad canvas, html.has-cursor[data-theme="dark"] .jp-sketch-pad canvas, html.has-cursor[data-theme="dark"].is-drawing .jp-draw { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cg%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%3E%3Cpath%20d%3D%22M3%2021l1.2-4.6L16.6%204a2%202%200%200%201%202.8%200l.6.6a2%202%200%200%201%200%202.8L7.6%2019.8%203%2021Z%22%20fill%3D%22%23121212%22%20stroke%3D%22%23121212%22%20stroke-width%3D%223.2%22/%3E%3Cpath%20d%3D%22M3%2021l1.2-4.6L16.6%204a2%202%200%200%201%202.8%200l.6.6a2%202%200%200%201%200%202.8L7.6%2019.8%203%2021Z%22%20fill%3D%22%23121212%22%20stroke%3D%22%23121212%22%20stroke-width%3D%220%22/%3E%3Cpath%20d%3D%22M3%2021l1.2-4.6L16.6%204a2%202%200%200%201%202.8%200l.6.6a2%202%200%200%201%200%202.8L7.6%2019.8%203%2021Z%22%20fill%3D%22none%22%20stroke%3D%22%23ececea%22%20stroke-width%3D%221.5%22/%3E%3Cpath%20d%3D%22M14.6%206l3.4%203.4%22%20stroke%3D%22%23ececea%22%20stroke-width%3D%221.5%22/%3E%3Cpath%20d%3D%22M3%2021l1.2-4.6%203.4%203.4Z%22%20fill%3D%22%23ececea%22/%3E%3C/g%3E%3C/svg%3E") 3 21, crosshair !important; }
/* La barra del lápiz sigue usando el puntero normal */
html.has-cursor.is-drawing .jp-draw-bar, html.has-cursor.is-drawing .jp-draw-bar * { cursor: pointer !important; }
html.has-cursor.is-drawing .jp-nav a, html.has-cursor.is-drawing .jp-nav button { cursor: pointer !important; }

/* =========================================================
   Legal, cookies y 404
   ========================================================= */
.jp-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.jp-footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-family: var(--ui); font-size: 12px; font-weight: 500; color: var(--muted); }
.jp-footer-legal-links a:hover { color: var(--ink); }
.jp-consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-family: var(--ui); font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--heading); }
.jp-consent input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--ink); cursor: pointer; }
.jp-consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.jp-form-legal { max-width: 46em; margin-top: -12px; }
.jp-cookies {
  position: fixed; left: 50%; bottom: 20px; z-index: 140; width: min(560px, calc(100% - 24px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 14px 14px 14px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 40px rgba(0, 0, 0, .08);
  font-family: var(--ui); font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--heading);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
:root[data-theme="dark"] .jp-cookies { background: rgba(28, 28, 28, .92); box-shadow: none; }
.jp-cookies.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.jp-cookies p { flex: 1 1 260px; margin: 0; }
.jp-cookies a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.jp-cookies-btns { display: flex; gap: 6px; }
.jp-cookies .jp-pill { border: 0; cursor: pointer; font: inherit; font-size: 12px; }
html.has-cursor .jp-cookies, html.has-cursor .jp-cookies * { cursor: auto !important; }
html.has-cursor .jp-cookies button, html.has-cursor .jp-cookies a { cursor: pointer !important; }
.jp-404 { min-height: 60vh; }
.jp-404-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 32px 0 0; padding: 0; }
.jp-404-note { margin-top: 28px; color: var(--muted); font-family: var(--ui); font-size: 13px; font-weight: 500; }

/* Accesibilidad: enlaces del pie con área de toque suficiente */
.jp-footer-links a, .jp-footer-legal-links a { display: inline-block; padding: 4px 0; }
/* Pie: enlaces legales en la misma línea y mismo gris que el copyright */
.jp-footer-bottom { margin-top: 48px; align-items: baseline; }
.jp-footer-bottom .jp-footer-legal { margin-top: 0 !important; }
.jp-footer .jp-footer-legal-links .jp-link { color: var(--muted); padding: 0; }
.jp-footer .jp-footer-legal-links .jp-link:hover { color: var(--ink); }
.jp-footer-legal-links { font-size: inherit; font-family: inherit; font-weight: inherit; }
/* Botón de la portada: crece en pantallas grandes */
.jp-hero .hh-side .jp-button { font-size: clamp(14px, 1.05vw, 19px); padding: .9em 1.6em; }
/* Portada: mismo aire entre titular, subtítulo y botón */
.home-hero { row-gap: clamp(24px, 2.4vw, 52px); }
.hh-big { margin-bottom: -.12em; }
@media screen and (max-width: 479px) { .home-hero { row-gap: 20px; } }

/* Process en tablet y móvil: cada fase con su círculo encima de su explicación */
.jp-output-ring { display: none; }
@media screen and (max-width: 991px) {
  .jp-circles-stage { display: none; }
  .jp-outputs { margin-top: 0 !important; row-gap: clamp(48px, 8vw, 72px); column-gap: 24px; }
  .jp-outputs > li { border-top: 0; padding-top: 0; }
  .jp-output-ring {
    position: relative; display: flex; align-items: center; justify-content: center; text-align: center;
    width: min(100%, 300px); aspect-ratio: 1 / 1; margin: 0 auto 10px; border-radius: 50%;
    border: 1px solid #e4e4e2; transition: border-color .8s ease;
  }
  .jp-output-ring .jp-circle-num { font-size: min(24vw, 200px); }
  .jp-output-ring .jp-circle-title { position: relative; max-width: 70%; }
  .jp-outputs > li.is-active .jp-output-ring { border-color: #bdbdbb; }
  .jp-outputs > li.is-active .jp-circle-num { color: rgba(26, 26, 26, .07); }
  .jp-outputs > li.is-active .jp-circle-title { color: var(--ink); }
  :root[data-theme="dark"] .jp-output-ring { border-color: #3a3a3a; }
  :root[data-theme="dark"] .jp-outputs > li.is-active .jp-output-ring { border-color: #8f8f8c; }
  :root[data-theme="dark"] .jp-outputs > li.is-active .jp-circle-num { color: rgba(255, 255, 255, .07); }
}
@media screen and (max-width: 479px) {
  .jp-output-ring { width: min(78vw, 300px); }
  .jp-output-ring .jp-circle-num { font-size: min(52vw, 200px); }
}

/* ---------- Menú morph: marca + botón que se transforma en panel con vista previa ---------- */
.jp-morph {
  position: relative; overflow: hidden; max-width: calc(100vw - 24px);
  display: flex; align-items: flex-start; gap: 4px; padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-radius .5s var(--ease), background-color .4s var(--ease), box-shadow .5s var(--ease);
}
.jp-morph.is-animating { transition: width .55s var(--ease), height .55s var(--ease), border-radius .55s var(--ease), background-color .4s var(--ease), box-shadow .5s var(--ease); }
.jp-morph.is-open { border-radius: 18px; background: rgba(255, 255, 255, .92); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .25); }
.jp-morph-brand { flex: none; padding: 10px 6px 10px 12px; white-space: nowrap; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.jp-morph-brand .jp-brand-sup {
  display: inline-block; margin-left: .1em; padding: .1em .3em .06em; vertical-align: .08em;
  border: .13em solid currentColor; border-radius: 999px;
  font-size: .76em; font-weight: 600; line-height: .9; letter-spacing: 0;
}
.jp-morph.is-open .jp-morph-brand { padding: 14px 18px 10px 12px; }

/* Botón: un + que al pasar el ratón enseña "Menu" y gira a × */
.jp-morph-open {
  flex: none; display: inline-flex; align-items: center; gap: 0; height: 32px; padding: 0 10px;
  border: 0; border-radius: 999px; background: var(--soft); color: var(--ink); cursor: pointer;
  font: 500 15px/1 var(--ui); letter-spacing: -.015em;
  transition: background-color .35s var(--ease), gap .4s var(--ease);
}
.jp-morph-open[hidden] { display: none; }
.jp-morph-word { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .45s var(--ease), opacity .3s var(--ease-out); }
.jp-morph-open:hover, .jp-morph-open:focus-visible { background: var(--soft-2); gap: 8px; }
.jp-morph-open:hover .jp-morph-word, .jp-morph-open:focus-visible .jp-morph-word { max-width: 60px; opacity: 1; }
.jp-morph-plus { position: relative; flex: none; width: 12px; height: 12px; transition: transform .45s var(--ease); }
/* Dos barras iguales, sin rotar una de ellas, para que tengan el mismo grosor en pantalla */
.jp-morph-plus::before, .jp-morph-plus::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
.jp-morph-plus::before { left: 0; right: 0; top: calc(50% - .75px); height: 1.5px; }
.jp-morph-plus::after { top: 0; bottom: 0; left: calc(50% - .75px); width: 1.5px; }
.jp-morph.is-shown .jp-morph-plus.is-x { transform: rotate(45deg); transition-delay: .1s; }
.jp-morph-plus.is-x { width: 12px; height: 12px; }

.jp-morph-panel { display: grid; grid-template-columns: 230px 300px; gap: 6px; font-family: var(--display); }
.jp-morph-panel[hidden] { display: none; }
.jp-morph-col {
  display: flex; flex-direction: column; gap: 22px; min-height: 360px;
  padding: 14px 16px 16px; border-radius: 13px; background: var(--soft);
}
.jp-morph-close {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--muted); font: 400 17px/1 var(--display);
  transition: color .3s var(--ease-out);
}
.jp-morph-close:hover { color: var(--ink); }
.jp-morph-col nav { flex: 1; }
.jp-morph-list, .jp-morph-legal { list-style: none; margin: 0; padding: 0; }
.jp-morph-list { display: flex; flex-direction: column; gap: 6px; }
.jp-morph .jp-morph-link {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #b4b4b4;
  font-size: 21px; line-height: 1.12; letter-spacing: -.01em;
  transition: color .3s var(--ease-out);
}
.jp-morph .jp-morph-link .jp-dot { width: 6px; height: 6px; align-self: flex-start; margin: .15em 0 0 -4px; }
.jp-morph .jp-morph-link:hover, .jp-morph .jp-morph-link:focus-visible, .jp-morph .jp-morph-link.is-active { color: var(--ink); }
.jp-morph-foot { display: flex; align-items: flex-end; gap: 12px; }
.jp-morph-legal { display: flex; flex-direction: column; gap: 6px; }
.jp-morph .jp-morph-legal a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .3s var(--ease-out); }
.jp-morph .jp-morph-legal a:hover { color: var(--ink); }
.jp-morph-row { display: flex; align-items: flex-start; gap: 6px; max-width: calc(100vw - 24px); }
.jp-morph-tools { display: flex; gap: 6px; }
.jp-morph-row .jp-morph-tool {
  width: 40px; height: 40px; padding: 0; justify-content: center;
  background: rgba(255, 255, 255, .72); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.jp-morph-row .jp-morph-tool:hover { background: #fff; }

.jp-morph-preview { position: relative; margin: 0; border-radius: 13px; overflow: hidden; background: var(--placeholder); }
.jp-morph-preview img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06);
  transition: opacity .5s var(--ease-out), transform .9s var(--ease-out);
}
.jp-morph-preview img.is-active { opacity: 1; transform: scale(1); }
.jp-morph-preview::after {
  content: ""; position: absolute; inset: 45% 0 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.55));
  pointer-events: none;
}
.jp-morph-preview figcaption {
  position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px;
  display: flex; flex-direction: column; gap: 4px; color: #fff; font-size: 15px; line-height: 1.25;
}
.jp-morph-title { color: rgba(255, 255, 255, .7); }
.jp-morph-desc .w { opacity: .25; transition: opacity .35s var(--ease-out); }
.jp-morph-desc .w.is-in { opacity: 1; }

/* El contenido entra con un pequeño retraso, cuando el panel ya se está abriendo */
.jp-morph-panel > *, .jp-morph-list li { opacity: 0; transform: translateY(6px); transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.jp-morph.is-shown .jp-morph-panel > *, .jp-morph.is-shown .jp-morph-list li { opacity: 1; transform: none; }
.jp-morph.is-shown .jp-morph-preview { transition-delay: .06s; }
.jp-morph.is-shown .jp-morph-list li:nth-child(2) { transition-delay: .03s; }
.jp-morph.is-shown .jp-morph-list li:nth-child(3) { transition-delay: .06s; }
.jp-morph.is-shown .jp-morph-list li:nth-child(4) { transition-delay: .09s; }
.jp-morph.is-shown .jp-morph-list li:nth-child(5) { transition-delay: .12s; }

@media (max-width: 639px) {
  .jp-morph-row:has(.jp-morph.is-open) .jp-morph-tools { display: none; }
  .jp-morph.is-open { flex-direction: column; width: calc(100vw - 24px); }
  .jp-morph.is-open .jp-morph-brand { padding: 10px 12px 4px; }
  .jp-morph-panel { grid-template-columns: 1fr; width: 100%; }
  .jp-morph-preview { display: none; }
  .jp-morph-col { min-height: 0; }
  .jp-morph .jp-morph-link { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .jp-morph, .jp-morph.is-animating, .jp-morph-panel > *, .jp-morph-list li, .jp-morph-preview img, .jp-morph-word, .jp-morph-plus { transition: none !important; }
}
:root[data-theme="dark"] .jp-morph { background: rgba(18, 18, 18, .72); }
:root[data-theme="dark"] .jp-morph.is-open { background: rgba(10, 10, 10, .92); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .7); }
:root[data-theme="dark"] .jp-morph-col { background: #1f1f1f; }
:root[data-theme="dark"] .jp-morph-row .jp-morph-tool { background: rgba(18, 18, 18, .72); }
:root[data-theme="dark"] .jp-morph-row .jp-morph-tool:hover { background: #2a2a2a; }
:root[data-theme="dark"] .jp-morph .jp-morph-link { color: #5c5c5c; }
:root[data-theme="dark"] .jp-morph .jp-morph-link:hover, :root[data-theme="dark"] .jp-morph .jp-morph-link.is-active { color: var(--ink); }

/* Marca: "JosepPedro" en Inter Medium. Barra cerrada: todo centrado en vertical. */
.jp-morph:not(.is-open) { align-items: center; }
.jp-morph .jp-morph-brand {
  display: block; padding: 0 8px 0 12px; line-height: 32px;
  font-family: var(--ui); font-size: 15px; font-weight: 500; letter-spacing: -.015em;
}
.jp-morph.is-open .jp-morph-brand { padding: 8px 18px 0 12px; }
.jp-morph-open { justify-content: center; min-width: 32px; }
