/* Formato nuevo para las páginas que venían del diseño anterior (blog, academia, referidos, Habita Taller,
   legales, /b/, 404 y /usa). 22-11-2026. Se carga al final: pasa los colores a oscuro, la tipografía a Geist,
   los botones a vidrio, y da estilo a la barra y al pie estándar (lg-nav / lg-pie) que reemplazan a los antiguos. */

:root {
  --bg: #0b0d0c !important; --paper: #121614 !important; --card: #151a17 !important;
  --ink: #f2f5ee !important; --ink2: #1a1f1c !important; --ink3: #232925 !important;
  --mut: #a5a9a3 !important; --dim: #7c807b !important;
  --line: rgba(242, 245, 238, .12) !important; --line2: rgba(242, 245, 238, .07) !important;
  --y: #AEFA48 !important; --y2: rgba(174, 250, 72, .14) !important; --yd: #AEFA48 !important;
  --navy: #1b2633 !important; --navy2: #24324a !important; --wire: #1e2427 !important; --wire2: #283035 !important;
  --ok2: rgba(47, 163, 107, .16) !important; --bad2: rgba(229, 72, 77, .16) !important;
  --dl: rgba(242, 245, 238, .12) !important; --ds: rgba(242, 245, 238, .7) !important;
  --fd: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
  --ft: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
  --lg-lima: #AEFA48; --lg-fondo: #0b0d0c; --lg-sup: rgba(255, 255, 255, .045); --lg-borde: rgba(255, 255, 255, .12);
  color-scheme: dark;
}
html { background: #0b0d0c !important; }
body { background: #0b0d0c !important; color: #f2f5ee !important; font-family: var(--ft) !important; }
::selection { background: rgba(174, 250, 72, .35); color: #fff; }

/* tipografía como la portada: Geist 500, sin condensar */
h1, h2, .h1, .h2 { font-family: var(--fd) !important; font-weight: 500 !important; font-stretch: 100% !important; letter-spacing: -0.03em !important; }
h3, h4 { font-family: var(--ft) !important; font-stretch: 100% !important; }

/* botones de vidrio (todas las variantes antiguas: .btn, .btn.y, .btn.o, .btn.op, .btn.d, .btn.l) */
.btn {
  color: #f2f5ee !important; border: 1px solid rgba(255, 255, 255, .2) !important; border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03)) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 10px 28px -14px rgba(0, 0, 0, .7) !important;
  font-family: var(--ft) !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease, transform .15s ease !important;
}
.btn:hover { border-color: rgba(174, 250, 72, .5) !important; background: linear-gradient(180deg, rgba(174, 250, 72, .12), rgba(255, 255, 255, .03)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 0 0 1px rgba(174, 250, 72, .12), 0 12px 32px -12px rgba(174, 250, 72, .35) !important; transform: none !important; }
.btn:active { transform: translateY(1px) !important; }
.btn:focus-visible { outline: 2px solid #AEFA48 !important; outline-offset: 3px; }
.btn svg { color: #AEFA48; fill: currentColor; }
a[href*="wa.me"].btn::before { content: ""; width: 18px; height: 18px; flex: none; background: #AEFA48;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.47 14.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.16-.17.2-.35.22-.64.08-.3-.15-1.26-.47-2.4-1.48-.88-.79-1.48-1.76-1.65-2.06-.17-.3-.02-.46.13-.61.13-.13.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.03-.52-.07-.15-.67-1.61-.92-2.21-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48 0 1.46 1.07 2.88 1.21 3.07.15.2 2.1 3.2 5.08 4.49.71.31 1.26.49 1.7.63.71.23 1.36.2 1.87.12.57-.09 1.76-.72 2-1.41.25-.7.25-1.29.17-1.41-.07-.13-.27-.2-.57-.35M12.05 21.79h0a9.87 9.87 0 0 1-5.03-1.38l-.36-.21-3.74.98 1-3.65-.24-.37a9.86 9.86 0 0 1-1.51-5.26c0-5.45 4.44-9.88 9.89-9.88 2.64 0 5.12 1.03 6.99 2.9a9.82 9.82 0 0 1 2.89 6.99c0 5.45-4.44 9.88-9.89 9.88M20.46 3.49A11.82 11.82 0 0 0 12.05 0C5.5 0 .16 5.34.16 11.89c0 2.1.55 4.14 1.59 5.95L.06 24l6.3-1.65a11.88 11.88 0 0 0 5.68 1.45h0c6.55 0 11.89-5.34 11.89-11.89 0-3.18-1.24-6.16-3.48-8.41Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.47 14.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.16-.17.2-.35.22-.64.08-.3-.15-1.26-.47-2.4-1.48-.88-.79-1.48-1.76-1.65-2.06-.17-.3-.02-.46.13-.61.13-.13.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.03-.52-.07-.15-.67-1.61-.92-2.21-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48 0 1.46 1.07 2.88 1.21 3.07.15.2 2.1 3.2 5.08 4.49.71.31 1.26.49 1.7.63.71.23 1.36.2 1.87.12.57-.09 1.76-.72 2-1.41.25-.7.25-1.29.17-1.41-.07-.13-.27-.2-.57-.35M12.05 21.79h0a9.87 9.87 0 0 1-5.03-1.38l-.36-.21-3.74.98 1-3.65-.24-.37a9.86 9.86 0 0 1-1.51-5.26c0-5.45 4.44-9.88 9.89-9.88 2.64 0 5.12 1.03 6.99 2.9a9.82 9.82 0 0 1 2.89 6.99c0 5.45-4.44 9.88-9.89 9.88M20.46 3.49A11.82 11.82 0 0 0 12.05 0C5.5 0 .16 5.34.16 11.89c0 2.1.55 4.14 1.59 5.95L.06 24l6.3-1.65a11.88 11.88 0 0 0 5.68 1.45h0c6.55 0 11.89-5.34 11.89-11.89 0-3.18-1.24-6.16-3.48-8.41Z'/%3E%3C/svg%3E") center / contain no-repeat; }
a[href*="wa.me"].btn > svg:first-child { display: none; }

/* campos de formulario de vidrio */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]), textarea, select {
  background: rgba(255, 255, 255, .055) !important; color: #f2f5ee !important; border: 1px solid rgba(255, 255, 255, .14) !important; border-radius: 12px !important; }
input:focus, textarea:focus, select:focus { outline: none !important; border-color: rgba(174, 250, 72, .55) !important; box-shadow: 0 0 0 3px rgba(174, 250, 72, .14) !important; }
input::placeholder, textarea::placeholder { color: rgba(242, 245, 238, .5) !important; }

/* ---------------------------------------------------------------- barra estándar */
.lg-nav { position: sticky; top: 0; z-index: 60; transition: background-color .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.lg-nav.is-scrolled, .lg-nav.is-open { background: rgba(11, 13, 12, .74); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: rgba(255, 255, 255, .08); }
.lg-nav__in { max-width: 1280px; margin: 0 auto; height: 72px; padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 24px; }
.lg-logo { display: inline-flex; align-items: center; gap: 9px; color: #f2f5ee !important; text-decoration: none !important; font: 500 21px/1 'Geist', system-ui, sans-serif; letter-spacing: -0.02em; flex: none; }
.lg-logo svg { width: 22px; height: auto; color: #AEFA48; }
.lg-logo small { font: 500 12px/1 'Geist', system-ui, sans-serif; letter-spacing: .02em; color: #a5a9a3; padding: 4px 8px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; margin-left: 2px; }
.lg-links { display: flex; gap: 2px; margin-left: auto; }
.lg-links a { padding: 8px 12px; border-radius: 8px; font: 500 14px/1 'Geist', system-ui, sans-serif; color: rgba(242, 245, 238, .72) !important; text-decoration: none !important; transition: color .2s ease; }
.lg-links a:hover, .lg-links a[aria-current] { color: #f2f5ee !important; }
.lg-acc { display: flex; align-items: center; gap: 10px; flex: none; }
.lg-acc .lg-mini { font: 500 14px/1 'Geist', system-ui, sans-serif; color: rgba(242, 245, 238, .72) !important; text-decoration: none !important; padding: 8px 6px; }
.lg-acc .lg-mini:hover { color: #f2f5ee !important; }
.lg-nav .btn { height: 40px !important; min-height: 40px !important; padding: 0 16px !important; font-size: 14px !important; }
.lg-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); color: #f2f5ee; place-items: center; cursor: pointer; }
.lg-toggle svg { width: 18px; height: 18px; }
@media (max-width: 960px) {
  .lg-links { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0; padding: 8px 20px 20px; background: rgba(11, 13, 12, .97); border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .lg-nav.is-open .lg-links { display: flex; }
  .lg-links a { padding: 16px 0; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); border-radius: 0; }
  .lg-toggle { display: grid; }
  .lg-acc { margin-left: auto; }
  .lg-acc .lg-mini { display: none; }
}
@media (max-width: 420px) { .lg-logo { font-size: 18px; } .lg-logo small { display: none; } .lg-nav .btn .lg-largo { display: none; } }
.lg-nav .btn .lg-corto { display: none; }
@media (max-width: 420px) { .lg-nav .btn .lg-corto { display: inline; } }

/* ---------------------------------------------------------------- pie estándar */
.lg-pie { background: #050606 !important; color: rgba(242, 245, 238, .72) !important; border-top: 1px solid rgba(255, 255, 255, .06); margin-top: 0; font: 400 14px/1.6 'Geist', system-ui, sans-serif; }
.lg-pie__in { max-width: 1280px; margin: 0 auto; padding: 64px max(20px, env(safe-area-inset-right, 0px)) 28px max(20px, env(safe-area-inset-left, 0px)); }
.lg-pie__cols { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.lg-pie__marca p { margin: 14px 0 18px; max-width: 30ch; color: #f2f5ee; font-size: 15px; }
.lg-pie h3 { font: 500 13px/1 'Geist', system-ui, sans-serif !important; color: #7c807b; letter-spacing: 0 !important; margin: 0 0 14px; }
.lg-pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lg-pie a { color: rgba(242, 245, 238, .82) !important; text-decoration: none !important; }
.lg-pie a:hover { color: #f2f5ee !important; }
.lg-pie__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 22px; font-size: 12.5px; color: #7c807b; }
.lg-redes { display: flex; gap: 10px; }
.lg-redes a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: #0b0d0c; color: #AEFA48 !important;
  border: 1px solid color-mix(in oklab, #AEFA48 14%, transparent); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 3px 8px -3px rgba(0, 0, 0, .6); transition: transform .2s ease, border-color .2s ease; }
.lg-redes a:hover { transform: translateY(-2px); border-color: color-mix(in oklab, #AEFA48 45%, transparent); }
.lg-redes svg { width: 22px; height: 22px; }
@media (max-width: 900px) { .lg-pie__cols { grid-template-columns: 1fr 1fr; } .lg-pie__marca { grid-column: 1 / -1; } }

/* superficies claras que quedaron del diseño anterior (las corrige legado.js) */
.lg-sup { background-color: rgba(255, 255, 255, .045) !important; border-color: rgba(255, 255, 255, .1) !important; }
@media (prefers-reduced-motion: reduce) { .btn, .lg-redes a, .lg-nav { transition: none !important; } }

/* la barra nueva no hereda estilos de las barras antiguas (nav{…}, #nav{…}, .ah{…}) */
.lg-nav { display: block !important; inset: auto !important; transform: none !important; opacity: 1 !important; padding: 0 !important; height: auto !important; box-shadow: none !important; }
.lg-nav nav.lg-links { position: static !important; inset: auto !important; background: transparent !important; box-shadow: none !important; border: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; height: auto !important; width: auto !important; padding: 0 !important; margin: 0 0 0 auto !important; display: flex !important; transform: none !important; }
.lg-nav nav.lg-links a { background: transparent !important; }
@media (max-width: 960px) {
  .lg-nav nav.lg-links { display: none !important; position: absolute !important; left: 0 !important; right: 0 !important; top: 72px !important; flex-direction: column !important; padding: 8px 20px 20px !important; background: rgba(11, 13, 12, .97) !important; border-bottom: 1px solid rgba(255, 255, 255, .08) !important; margin: 0 !important; }
  .lg-nav.is-open nav.lg-links { display: flex !important; }
}
/* Habita Taller ya era oscura: su «papel» es texto claro; las secciones claras las ajusta legado.js */
html.lg-taller { --paper: #f2f5ee !important; --ink: #0b0d0c !important; }

/* la barra fija de abajo del celular (antigua) se retira, como en la portada */
.mbar { display: none !important; }
.btn { gap: 9px !important; }
