/* Judastheos Architects — navegación compartida (todas las páginas) */
:root { --jx-bg: #111111; --jx-text: #f5f5f5; --jx-muted: #8a8a8a; --jx-line: rgba(255,255,255,.08); --jx-glass: rgba(255,255,255,.07); --jx-glass-b: rgba(255,255,255,.18); --jx-font: 'Raleway', 'Barlow', 'Helvetica Neue', Arial, sans-serif; --jx-ease: cubic-bezier(.16,1,.3,1); }

/* Evita ver el nav viejo un instante antes de reemplazarlo */
nav:not(.jx-nav) > * { visibility: hidden; }

nav.jx-nav { position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 0 !important; display: block !important; transform: none !important; opacity: 1 !important; z-index: 900 !important; background: rgba(17,17,17,.74) !important; backdrop-filter: blur(16px) saturate(1.1) !important; -webkit-backdrop-filter: blur(16px) saturate(1.1) !important; border-bottom: 1px solid var(--jx-line) !important; transition: background .3s ease !important; }
nav.jx-nav.jx-scrolled { background: rgba(17,17,17,.94) !important; }
.jx-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.15rem 2.5rem; }
.jx-brand { font-family: var(--jx-font); font-size: .66rem; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--jx-text) !important; text-decoration: none; white-space: nowrap; }
.jx-brand span { color: var(--jx-muted); font-weight: 300; }
.jx-links { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.jx-links a { display: block; font-family: var(--jx-font); font-size: .56rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--jx-muted) !important; text-decoration: none; padding: .55rem .95rem; transition: color .2s ease; }
.jx-links a:hover, .jx-links a.jx-active { color: var(--jx-text) !important; }
.jx-links a.jx-active { position: relative; }
.jx-links a.jx-active::before { content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .2rem; height: 1px; background: var(--jx-text); opacity: .5; }
.jx-right { display: flex; align-items: center; gap: .7rem; }
.jx-right #lang-btn, .jx-right .lang-toggle { margin: 0 !important; }
.jx-cta { font-family: var(--jx-font); font-size: .55rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--jx-text) !important; text-decoration: none; white-space: nowrap; padding: .72rem 1.35rem; border-radius: 40px; background: var(--jx-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--jx-glass-b); transition: background .2s ease, border-color .2s ease; }
.jx-cta:hover, .jx-cta.jx-active { background: var(--jx-text); color: #111 !important; border-color: var(--jx-text); }
.jx-burger { display: none; width: 44px; height: 44px; border-radius: 50%; padding: 0; background: var(--jx-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--jx-glass-b); flex-direction: column; align-items: center; justify-content: center; gap: 5px; position: relative; z-index: 2; }
.jx-burger span { display: block; width: 16px; height: 1.5px; background: var(--jx-text); transition: transform .25s ease; }
.jx-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.jx-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

/* Menú móvil */
.jx-menu { position: fixed; inset: 0; z-index: 890; background: rgba(17,17,17,.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); display: flex; flex-direction: column; justify-content: center; padding: 6.5rem 1.75rem 2.5rem; overflow-y: auto; opacity: 0; transition: opacity .3s ease; }
.jx-menu.jx-open { opacity: 1; }
.jx-menu:focus { outline: none; }
.jx-menu[hidden] { display: none !important; }
.jx-menu .jx-m-link { font-family: var(--jx-font); font-weight: 200; font-size: clamp(1.5rem, 7.5vw, 2.3rem); letter-spacing: .14em; text-transform: uppercase; color: var(--jx-text) !important; text-decoration: none; padding: .75rem 0; border-bottom: 1px solid var(--jx-line); display: flex; justify-content: space-between; align-items: center; }
.jx-menu .jx-m-link small { font-size: .5rem; font-weight: 500; letter-spacing: .24em; color: var(--jx-muted); }
.jx-menu .jx-m-link.jx-active { color: var(--jx-muted) !important; }
.jx-m-actions { display: grid; gap: .7rem; margin-top: 2rem; }
.jx-m-actions a { font-family: var(--jx-font); text-align: center; font-size: .58rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 1.05rem 1.5rem; border-radius: 40px; }
.jx-m-actions .jx-solid { background: var(--jx-text); color: #111 !important; }
.jx-m-actions .jx-glass { color: var(--jx-text) !important; background: var(--jx-glass); border: 1px solid var(--jx-glass-b); }
.jx-m-social { display: flex; gap: 1.4rem; justify-content: center; margin-top: 2rem; }
.jx-m-social a { font-family: var(--jx-font); font-size: .52rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--jx-muted) !important; text-decoration: none; }

/* Elementos viejos de navegación: se conservan en el DOM (los scripts de cada página los usan) pero ocultos */
.jx-old, #nav-overlay, .nav-overlay, .mobile-menu, .nav-mobile { display: none !important; }

@media (max-width: 1100px) {
  .jx-links, .jx-right .jx-cta { display: none; }
  .jx-burger { display: flex; }
  .jx-nav-in { padding: .9rem 1.25rem; }
  .jx-brand { font-size: .6rem; letter-spacing: .26em; }
}
@media (max-width: 420px) { .jx-brand span { display: none; } }

/* Cursor personalizado: oculto en pantallas táctiles y hasta que se mueva el mouse */
@media (hover: none), (pointer: coarse) {
  #cursor, .cursor, .cursor-dot, .cursor-ring { display: none !important; }
  *, *::before, *::after { cursor: auto !important; }
}
body:not(.jx-moused) #cursor { opacity: 0 !important; }

/* Banda blanca de acento (compartida) */
.jx-paper { background: #f3f1ec; color: #141414; padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.25rem, 4vw, 4rem); position: relative; z-index: 2; font-family: 'DM Sans', 'Helvetica Neue', Arial, sans-serif; }
.jx-paper-in { max-width: 1320px; margin: 0 auto; }
.jx-paper-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.jx-pe { font-family: var(--jx-font); font-size: .68rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #4a4a4a; display: flex; align-items: center; gap: .9rem; margin-bottom: 1.4rem; }
.jx-pe::before { content: ''; width: 32px; height: 1px; background: #4a4a4a; }
.jx-ph { font-family: var(--jx-font); font-weight: 200; font-size: clamp(2rem, 4.4vw, 4rem); line-height: .98; letter-spacing: .04em; text-transform: uppercase; color: #141414; }
.jx-pl { font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.85; color: #3d3d3d; max-width: 54ch; }
.jx-steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-top: 1px solid rgba(20,20,20,.14); margin-top: clamp(2.5rem, 5vw, 4rem); }
.jx-step { padding: 2rem 1.6rem 2rem 0; border-right: 1px solid rgba(20,20,20,.14); }
.jx-step + .jx-step { padding-left: 1.6rem; }
.jx-step:last-child { border-right: 0; }
.jx-step b { display: block; font-family: var(--jx-font); font-weight: 200; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: #141414; }
.jx-step strong { display: block; margin-top: 1.1rem; font-family: var(--jx-font); font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #141414; }
.jx-step p { margin-top: .6rem; font-size: 1rem; line-height: 1.75; color: #4a4a4a; }
.jx-pics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1rem, 2vw, 1.6rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.jx-pics a { color: inherit !important; text-decoration: none; display: block; }
.jx-pics img { width: 100%; height: auto; display: block; border-radius: 6px; box-shadow: 0 30px 60px -38px rgba(0,0,0,.45); transition: transform .9s var(--jx-ease); }
.jx-pics a:hover img { transform: translateY(-4px); }
.jx-pics span { display: flex; justify-content: space-between; gap: 1rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid rgba(20,20,20,.14); font-family: var(--jx-font); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #2a2a2a; }
.jx-pics span em { font-style: normal; font-weight: 500; color: #6b6b6b; }
.jx-pa { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(2rem, 4vw, 3rem); }
.jx-pa a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 2rem; border-radius: 40px; font-family: var(--jx-font); font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; transition: opacity .2s, background .2s; }
.jx-pa .ink { background: #141414; color: #f3f1ec !important; }
.jx-pa .ink:hover { opacity: .88; }
.jx-pa .ghost { color: #141414 !important; border: 1px solid rgba(20,20,20,.25); background: rgba(20,20,20,.03); }
.jx-pa .ghost:hover { background: rgba(20,20,20,.08); }
@media (max-width: 860px) {
  .jx-paper-head, .jx-steps, .jx-pics { grid-template-columns: minmax(0,1fr); }
  .jx-step, .jx-step + .jx-step { padding: 1.6rem 0; border-right: 0; border-bottom: 1px solid rgba(20,20,20,.14); }
  .jx-pa a { flex: 1 1 100%; }
}

/* Desplegable "Estudio" */
.jx-has-sub { position: relative; }
.jx-has-sub > a::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: .5rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .7; }
.jx-sub { position: absolute; top: calc(100% + .4rem); left: 50%; min-width: 220px; padding: .5rem; border-radius: 14px; background: rgba(20,20,20,.86); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 60px -30px rgba(0,0,0,.85); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s ease, transform .25s var(--jx-ease), visibility .2s; }
.jx-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
.jx-has-sub:hover .jx-sub, .jx-has-sub:focus-within .jx-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.jx-sub a { display: block; padding: .8rem 1rem !important; border-radius: 9px; font-family: var(--jx-font); font-size: .62rem !important; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #d6d6d6 !important; text-decoration: none; white-space: nowrap; }
.jx-sub a:hover, .jx-sub a:focus-visible { background: rgba(255,255,255,.09); color: #fff !important; }
.jx-sub a::after { display: none !important; }
.jx-m-sub { display: flex; flex-wrap: wrap; gap: .5rem; padding: .3rem 0 1rem; border-bottom: 1px solid var(--jx-line); }
.jx-m-sub a { font-family: var(--jx-font); font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #cfcfcf !important; text-decoration: none; padding: .6rem 1rem; border-radius: 40px; background: var(--jx-glass); border: 1px solid var(--jx-glass-b); }
.jx-menu .jx-m-link:has(+ .jx-m-sub) { border-bottom: 0; }

/* ══ Capa móvil: legibilidad mínima y zonas táctiles cómodas (≤ 760px) ══ */
@media (max-width: 760px) {
  /* texto: mínimo 11.5px en rótulos, chips y etiquetas */
  .jx-brand, .eye, .code, .chip, .space-n, .card-prog, .card-go, .filters button, .spec dt, .plan-b a, .pn small,
  .foot-links a, .foot-bottom, .foot-bottom a, figcaption, figcaption span, .jx-pe, .jx-pics span, .mat b, .stats span,
  .page-eyebrow, .sk-chip, .section-label, .course-tag, .course-level, .course-duration, .course-cta, .upcoming-spots,
  .dl-type, .dl-btn-buy, .stat-desc, .filter-btn, .footer-back, .footer-logo, .lang-btn, #lang-btn, .contact-k, .cv-label,
  .input-unit, .summary-title, .book-cover-inner, .book-tag, .tool-num, .tool-tag, .tool-right,
  .hero-eyebrow, .sb-item, .slide-num, .vm-label, .brand-tag, .shop-header-label, .shop-link-all, .shop-item-ref,
  .art-piece-edition, .art-piece-avail, .link-cta, .cta-link, .principle small, .anchors a, .jx-m-sub a, .jx-m-actions a,
  .jx-m-social a, .jx-m-link small, .scroll-lbl, .credit, .ft-credit, .card-top .chip, .sk-btn, .btn, .feat-badge {
    font-size: 11.5px !important;
  }
  .eye, .page-eyebrow, .section-label, .jx-pe, .hero-eyebrow { letter-spacing: .22em !important; }
  /* zonas táctiles de 44px sin cambiar el aspecto (padding vertical) */
  .jx-brand { display: inline-flex !important; align-items: center; min-height: 44px; }
  .foot-links a, .foot-bottom a, .footer-logo, .footer-back, .link-cta, .cta-link, .shop-link-all, .card-go, .plan-b a,
  .jx-m-social a, footer a, .credit a, .ft-credit a, .contact-close a, .fine a {
    display: inline-flex !important; align-items: center; min-height: 44px;
  }
  #lang-btn, .lang-btn, .lang-toggle button { min-height: 40px; min-width: 44px; }
  .foot-links { gap: .2rem 1.2rem !important; }
}
@media (max-width: 760px) {
  a[href*="instagram.com/judastheosagency"] { display: inline-flex !important; align-items: center; min-height: 44px; font-size: 11.5px !important; }
  div:has(> a[href*="instagram.com/judastheosagency"]), p:has(> a[href*="instagram.com/judastheosagency"]), span:has(> a[href*="instagram.com/judastheosagency"]) { font-size: 11.5px !important; }
  .sb-item { min-height: 44px; display: flex !important; align-items: center; }
}
