/* Estilo Namasté · paleta base Hoja. DESIGN.md es la fuente de valores.
   WOFF2 latinos estáticos; swap conserva la marca también en primera visita. */
@font-face {
  font-family: Archivo; src: url("fonts/Archivo-variable-latin.woff2") format("woff2");
  font-style: normal; font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: Figtree; src: url("fonts/Figtree-variable-latin.woff2") format("woff2");
  font-style: normal; font-weight: 300 900; font-display: swap;
}
:root {
  --paper: #FBF8F1; --mesa: #F3EFE6; --ink: #1C1D21;
  --soft: #5E5A50; --quiet: #8A8475; --line: #E4DDCF;
  --wood: #E6D8BF; --forest: #2F3A33; --marker: #FFD23F;
  --leaf: #3E6B3F; --leaf-deep: #2F5A31; --leaf-soft: #E4ECDA;
  --water: #2E6670; --water-soft: #DDEBEC;
  --autumn: #9A5218; --autumn-soft: #FCEEDD;
  --tile: #A53A22; --tile-soft: #FADDD3;
  --slate: #55575E; --slate-soft: #ECE9E2;
  --acento: var(--leaf); --acento-osc: var(--leaf-deep); --acento-claro: var(--leaf-soft);
  --blanco: #FFFFFF;
  --r-xs: 4px; --r-s: 6px; --r-m: 9px; --r-l: 12px; --r-xl: 20px;
  --r-bubble: 14px; --r-pill: 999px;
  --sombra-papel: 0 1px 2px rgba(28,29,33,.05), 0 10px 30px rgba(28,29,33,.07);
  --sombra-flotante: 0 2px 6px rgba(28,29,33,.10), 0 18px 40px rgba(28,29,33,.12);
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px;
  --e6: 32px; --e7: 48px; --e8: 64px; --e9: 96px;
  --t-rapido: 120ms; --t-normal: 180ms; --t-lento: 240ms;
  --curva: cubic-bezier(.2,.7,.3,1);
  --ancho: 1200px; --lectura: 31em;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--mesa); color: var(--ink);
  font-family: Figtree, "Segoe UI", system-ui, sans-serif;
  font-size: 18px; font-weight: 450; line-height: 1.65;
}
h1, h2, h3, p, li { text-wrap: pretty; }
h1, h2, h3, p, li, a, label, .eyebrow { overflow-wrap: break-word; }
a[href^="mailto:"] { overflow-wrap: anywhere; }
h1, h2, h3 {
  font-family: Archivo, "Segoe UI", system-ui, sans-serif; font-weight: 800;
  margin: 0; letter-spacing: -.015em; line-height: 1.08; text-wrap: balance;
}
h1 { font-size: 38px; line-height: 1.02; letter-spacing: -.025em; }
h2 { font-size: 26px; }
h3 { font-size: 21px; line-height: 1.2; }
p { margin: 0 0 var(--e4); max-width: var(--lectura); }
p:last-child { margin-bottom: 0; }
a { color: var(--acento-osc); }
.skip-link {
  position: fixed; top: var(--e2); left: var(--e2); z-index: 20;
  transform: translateY(-150%); background: var(--ink); color: var(--paper);
  padding: var(--e3) var(--e4); border-radius: var(--r-s);
}
.skip-link:focus { transform: none; }
.site-header {
  position: static; top: 0; z-index: 10;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.header-inner, .hero, .footer-inner { width: min(100% - 40px, var(--ancho)); margin-inline: auto; }
.header-inner { min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--e1); }
.identity {
  display: flex; align-items: center; gap: var(--e2); flex-shrink: 0; min-height: 44px;
  font-family: Archivo, "Segoe UI", system-ui, sans-serif; font-size: 16px;
  font-weight: 800; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand-leaf { width: 20px; height: 20px; flex: none; color: var(--acento); }
/* Sin JS la cabecera es estática: tampoco coinciden las dos hojas.
   Solo se fija después de instalar el observador del pie. */
.leaf-observer .site-header { position: sticky; }
.footer-visible .brand-leaf { visibility: hidden; }
.footer-leaf { width: 40px; height: 40px; flex: none; color: var(--quiet); }
nav { display: flex; flex-wrap: wrap; min-width: 0; margin-left: auto; }
nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: var(--e2);
  border-radius: var(--r-xs); color: var(--soft); font-size: 14px;
  font-weight: 600; text-decoration: none;
}
nav a:hover { color: var(--ink); background: var(--acento-claro); }
.section { padding: var(--e7) max(20px, calc((100% - var(--ancho)) / 2)); border-top: 1px solid var(--line); scroll-margin-top: 76px; }
.section:nth-child(even) { background: var(--paper); }
.hero { padding: var(--e7) 0; }
.hero, .conversation { display: flex; flex-direction: column; gap: var(--e4); }
.bubble {
  width: fit-content; max-width: min(100%, var(--lectura)); padding: var(--e5);
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--paper);
}
.bubble-wide { width: min(100%, var(--lectura)); max-width: 100%; }
.hero-copy, .hero-demo { min-width: 0; }
.hero-intro { margin: var(--e5) 0; color: var(--soft); font-size: 19px; font-weight: 600; line-height: 1.5; }
.hero-photo { display: block; width: 100%; }
.hero-photo img {
  display: block; width: 100%; height: auto; object-fit: cover;
  border-radius: var(--r-s); box-shadow: var(--sombra-papel);
}
.hero-demo { padding-top: 0; }
.hero-demo-label { color: var(--soft); font-size: 14px; font-weight: 600; line-height: 1.5; }
.hero-messages { display: grid; gap: var(--e2); list-style: none; padding: 0; margin: 0; }
.hero-messages > li { min-width: 0; }
.hero-message { display: flex; align-items: flex-end; gap: var(--e2); }
.hero-visitor { justify-content: flex-end; }
.hero-continuation { padding-left: 40px; }
.hero-balloon {
  min-width: 0; max-width: 82%; padding: 11px 14px; border: 1px solid var(--line);
  border-radius: var(--r-bubble); background: var(--acento-claro); font-size: 18px; font-weight: 450; line-height: 1.65;
}
.hero-balloon p { text-wrap: pretty; }
.hero-visitor .hero-balloon { background: var(--blanco); }
.hero-speaker { display: block; margin-bottom: var(--e1); color: var(--acento-osc); font-size: 14px; font-weight: 700; }
.hero-avatar {
  display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px;
  border-radius: var(--r-pill); background: var(--acento); color: var(--paper);
  font-size: 14px; font-weight: 700; object-fit: cover;
}
.hero-avatar img { display: block; width: 32px; height: 32px; border-radius: inherit; object-fit: cover; }
.hero-phone {
  width: min(192px, 100%); margin: var(--e1) auto var(--e2); padding: var(--e2) var(--e3);
  border: 4px solid var(--ink); border-radius: var(--r-xl); background: var(--paper);
}
.hero-phone-camera { width: 32px; height: 4px; margin: 0 auto var(--e2); border-radius: var(--r-xs); background: var(--ink); }
.hero-phone strong { font-size: 14px; }
.hero-phone-caption { display: block; color: var(--soft); font-size: 14px; }
.hero-order { margin-top: var(--e2); padding: var(--e2); border-radius: var(--r-xs); background: var(--blanco); border: 1px solid var(--line); }
.hero-order b, .hero-order span { display: block; font-size: 14px; }
.hero-order span { color: var(--acento-osc); }
.hero-example-note { color: var(--soft); font-size: 14px; line-height: 1.5; text-align: center; }
/* Espacio reservado: la animación nunca altera el layout ni anuncia mensajes. */
@keyframes hero-message-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-pending .hero-message:not(.hero-seen) { opacity: 0; }
  .hero-pending .hero-entering { animation: hero-message-in 450ms var(--curva) both; }
}
.cta-block { width: min(100%, 432px); margin-left: auto; }
.hero .cta-block { margin-left: 0; }
.button {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px;
  padding: 12px 20px; border: 1px solid var(--ink); border-radius: var(--r-l);
  background: var(--ink); color: var(--paper); cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  text-align: center; text-decoration: none;
  transition: background-color var(--t-rapido) var(--curva), transform var(--t-rapido) var(--curva);
}
.button:hover { background: #000000; }
.button:active { transform: translateY(1px); }
.button-secondary { background: var(--paper); color: var(--ink); }
.button-secondary:hover { color: var(--paper); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button-note { margin: var(--e3) 0 0; color: var(--soft); font-size: 14px; line-height: 1.5; text-align: center; }
.section-heading { margin: 0 0 var(--e5); }
.eyebrow { color: var(--soft); font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; }
.project-list { gap: var(--e5); }
.project-card { width: 100%; max-width: 100%; padding: var(--e5); box-shadow: var(--sombra-papel); }
.sample-image { display: block; min-width: 0; }
.sample-image img { display: block; width: 100%; height: auto; border-radius: var(--r-s); }
.sample-card { align-items: center; }
.sample-card .button { width: fit-content; }
.image-placeholder {
  display: grid; min-height: 128px; place-items: center; border: 1px solid var(--line);
  border-radius: var(--r-s); background: var(--wood); color: var(--soft); font-size: 14px; font-weight: 600;
}
.project-copy { padding-top: var(--e5); min-width: 0; }
.text-only .project-copy { padding-top: 0; }
.project-copy h3 { margin-bottom: var(--e4); }
.project-copy h3 span { display: block; margin-top: var(--e1); color: var(--soft); font-family: Figtree, "Segoe UI", system-ui, sans-serif; font-size: 18px; font-weight: 600; line-height: 1.5; }
.technologies { margin-top: var(--e5); color: var(--soft); font-size: 14px; line-height: 1.5; }
.closing-message { margin-top: var(--e4); }
.review-inline, .review-note {
  background: var(--autumn-soft); color: var(--autumn); border-radius: var(--r-xs);
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.review-inline { padding: 1px var(--e1); font-size: 14px; line-height: 1.5; }
.review-note { display: block; width: fit-content; padding: var(--e2) var(--e3); font-size: 14px; line-height: 1.5; }
.review-note.standalone { margin: var(--e4) 0 0 auto; max-width: var(--lectura); }
.steps { margin: 0; padding: 0; list-style: none; }
.steps .bubble { display: flex; align-items: flex-start; gap: var(--e3); }
.steps .bubble:nth-child(even) { align-self: flex-end; }
.step-number {
  display: grid; width: 32px; aspect-ratio: 1; flex: 0 0 auto; place-items: center;
  border-radius: var(--r-pill); background: var(--acento); color: var(--paper); font-size: 14px; font-weight: 700;
}
#charlas h3 { margin: var(--e5) 0 var(--e2); }
#charlas ul { margin: 0 0 var(--e4); padding-left: var(--e5); }
#charlas li + li { margin-top: var(--e1); }
.reply-bubble { align-self: flex-end; width: min(100%, 752px); max-width: 100%; background: var(--paper); }
.form-marker { margin: 0 0 var(--e4) auto; }
label { display: block; margin-top: var(--e4); font-weight: 700; }
.field-help { display: block; margin: var(--e1) 0 var(--e2); color: var(--soft); font-size: 14px; line-height: 1.5; }
input, textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--quiet); border-bottom: 2px solid var(--quiet);
  border-radius: var(--r-s); background: var(--blanco); color: var(--ink); font: inherit; padding: 12px 13px;
}
textarea { min-height: 144px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--acento); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--tile); }
.field-error { display: block; margin-top: var(--e1); color: var(--tile); font-size: 14px; font-weight: 600; }
.field-error[hidden] { display: none; }
.reply-bubble .button, .contact-form .button { margin-top: var(--e5); }
.contact-form > label:first-of-type { margin-top: 0; }
.privacy-copy { margin-top: var(--e3); color: var(--soft); font-size: 14px; line-height: 1.5; }
.privacy-copy a { display: block; width: fit-content; padding-block: var(--e2); }
.footer-inner a { display: inline-block; padding-block: var(--e3); }
/* Enlaces en linea dentro de las burbujas de conversacion: mas zona de toque
   sin alterar el renglon. */
.bubble p a:not(.button) { padding-block: var(--e1); }
.form-status { margin-top: var(--e5); padding: var(--e4); border: 1px solid var(--leaf-deep); border-radius: var(--r-s); background: var(--leaf-soft); color: var(--leaf-deep); font-weight: 600; }
.form-status.error { border-color: var(--tile); background: var(--tile-soft); color: var(--tile); }
.site-footer { background: var(--forest); color: var(--paper); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--e3) var(--e5); padding: var(--e7) 0; font-size: 14px; line-height: 1.5; }
.footer-inner a { color: var(--paper); }
.privacy-review { flex-basis: 100%; max-width: var(--lectura); padding: var(--e2) var(--e3); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }
.site-footer :focus-visible { outline-color: var(--paper); }
[aria-invalid="true"]:focus-visible { outline-color: var(--tile); }
@media (max-width: 43.999rem) {
  .hero { padding-top: 24px; }
  .hero h1 { font-size: 38px; }
  .hero-intro { margin-block: var(--e4); font-size: 19px; }
  .header-inner { column-gap: 0; }
  .identity { font-size: 14px; gap: var(--e1); }
  nav a { font-size: 14px; padding-inline: var(--e1); }
}
/* Short phones: keep the complete photo and first message together. */
@media (max-width: 43.999rem) and (max-height: 700px) {
  .hero { padding-top: var(--e2); gap: var(--e2); }
  .hero h1 { font-size: 26px; }
  .hero-intro { margin-block: var(--e2); font-size: 16px; line-height: 1.4; }
  .hero .button-note { margin-top: var(--e1); font-size: 14px; line-height: 1.4; }
  .hero-demo-label { margin-bottom: var(--e2); }
  .hero-message:first-child .hero-balloon { max-width: 100%; }
  .hero-balloon { max-width: 92%; padding: 8px 12px; font-size: 16px; line-height: 1.45; }
}
@media (max-width: 359px) { .header-inner { flex-wrap: wrap; } }
/* Pie compacto en móvil: nombre y año en una fila, enlaces en otra (zonas de 44 px). */
@media (max-width: 43.999rem) {
  .footer-inner { padding-block: var(--e4); gap: var(--e1) var(--e5); }
  .footer-leaf { width: 24px; height: 24px; }
  .footer-inner > span { flex: 1 1 calc(100% - 60px); min-width: 0; }
  .footer-inner > a { margin-right: var(--e2); }
  .footer-inner nav { flex-basis: 100%; gap: 0 var(--e5); }
}
@media (min-width: 44rem) {
  .header-inner, .hero, .footer-inner { width: min(100% - 64px, var(--ancho)); }
  h2 { font-size: 34px; }
  .hero, .section { padding-block: var(--e8); }
  .section { padding-inline: max(32px, calc((100% - var(--ancho)) / 2)); }
  .hero-intro { font-size: 22px; }
  .project-card { display: grid; grid-template-columns: minmax(180px, .82fr) minmax(0, 1.3fr); gap: var(--e5); }
  .project-card:nth-child(even) { grid-template-columns: minmax(0, 1.3fr) minmax(180px, .82fr); }
  .project-card:nth-child(even) .image-placeholder { grid-column: 2; grid-row: 1; }
  .project-card:nth-child(even) .project-copy { grid-column: 1; grid-row: 1; }
  /* Las fichas guardan su contenido dentro de .project-copy: sin esta expansión,
     el único hijo cae en la primera pista y deja la otra vacía en escritorio. */
  .project-card > .project-copy:only-child { grid-column: 1 / -1; }
  .project-copy { padding-top: 0; }
  .project-card.text-only { display: block; }
}
@media (min-width: 64rem) {
  .header-inner, .hero, .footer-inner { width: min(100% - 96px, var(--ancho)); }
  .section { padding-inline: max(48px, calc((100% - var(--ancho)) / 2)); }
  .hero.conversation { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: var(--e5) var(--e8); padding-top: 40px; }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero h1 { max-width: 18ch; font-size: 68px; }
  .hero-photo { grid-column: 2; grid-row: 1; align-self: center; max-width: none; }
}
@media (min-width: 90rem) { .hero.conversation { column-gap: var(--e9); } }
/* Keep the whole transcript above the fold on short desktop screens. */
@media (min-width: 64rem) and (max-height: 800px) {
  .hero.conversation { padding-top: var(--e5); }
  .hero h1 { font-size: 56px; }
  .hero-messages { gap: var(--e1); }
  .hero-balloon { padding-block: 8px; }
  .hero-order { margin-top: var(--e1); padding-block: var(--e1); }
}
@media (max-height: 500px) { .leaf-observer .site-header { position: static; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
