/* nicho.css: landings de nicho (/peluquerias/, ...; ADR 0004). Minimal on purpose: base.css gives the bar, footer, buttons,
   type and tokens; here only the section layout. Tokens only (no hard-coded colours) so light, dark and night just work. */
.nx-hero { padding: calc(var(--bar-h) + clamp(48px, 9vw, 128px)) 0 clamp(40px, 6vw, 80px); }
.nx-hero__in > * + * { margin-top: var(--s-5); }
.nx-h1 {
  font-size: var(--t-h2); line-height: .98; letter-spacing: -.035em; font-weight: 700; font-variation-settings: "opsz" 96;
  max-width: 14em; /* em, not ch: ch shifts with the font swap and re-wraps the H1 (CLS) */
}
@media (min-width: 768px) { .nx-h1 { font-size: calc(var(--t-display) * .62); line-height: .96; letter-spacing: -.04em; } }
.nx-hero .sub { color: var(--ink-2); }

.nx-sec { padding: var(--section-y) 0; border-top: 1px solid var(--rule); }
.nx-sec--alt { background: var(--surface); }
.nx-h2 { max-width: 16em; margin-bottom: var(--s-7); }
.nx-h3 { font-size: 1.25rem; line-height: 1.15; letter-spacing: -.01em; margin-bottom: var(--s-2); }

.nx-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .nx-grid--sol { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .nx-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.nx-card { padding: var(--s-5); border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--paper); box-shadow: var(--shadow-1); }
.nx-card p { color: var(--ink-2); }
.nx-glyph { width: 40px; height: 40px; margin-bottom: var(--s-4); fill: none; stroke: var(--solved-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }

.nx-chat { display: grid; gap: var(--s-7); align-items: start; }
.nx-chat .nx-h2 { margin-bottom: var(--s-5); }
@media (min-width: 900px) { .nx-chat { grid-template-columns: 1fr 1fr; } }
.nx-thread { border: 1px solid var(--rule); border-radius: var(--r-l); padding: var(--s-5); background: var(--surface); }
.nx-thread__head { margin-bottom: var(--s-4); }
.nx-thread__list { display: grid; gap: var(--s-3); }
.nx-msg { display: flex; }
.nx-msg p { max-width: 85%; padding: var(--s-3) var(--s-4); border-radius: var(--r-bubble); line-height: 1.4; }
.nx-msg--cliente { justify-content: flex-start; }
.nx-msg--cliente p { background: var(--paper); border: 1px solid var(--rule); border-bottom-left-radius: var(--r-xs); }
.nx-msg--asistente { justify-content: flex-end; }
.nx-msg--asistente p { background: var(--solved); color: var(--on-solved); border-bottom-right-radius: var(--r-xs); }

.nx-faq__list { display: grid; gap: var(--s-3); max-width: 60rem; }
.nx-q { border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--paper); }
.nx-q summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 56px; padding: var(--s-3) var(--s-5); font-weight: 600; cursor: pointer; list-style: none; }
.nx-q summary::-webkit-details-marker { display: none; }
.nx-q summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.25rem; flex: none; }
.nx-q[open] summary::after { content: "\2212"; }
.nx-q p { padding: 0 var(--s-5) var(--s-5); color: var(--ink-2); max-width: 60ch; }

.nx-final__in > * + * { margin-top: var(--s-5); }
.nx-final .nx-h2 { margin-bottom: 0; }

/* Long CTA labels: base .btn is nowrap; here they wrap so a 375 px screen never scrolls sideways. */
.nx-hero .btn, .nx-final .btn { white-space: normal; text-align: left; height: auto; padding-block: var(--s-3); }

/* Agenda escalonada (peluquerías, estética): una profesional, varias clientas solapadas. scripts/nichos/build.py#timeline genera
   el HTML; cada tramo se coloca con clases s<inicio> d<duración> sobre 24 columnas de 5 minutos (sin style="": la CSP lo prohíbe). */
.nx-agenda__in { display: grid; gap: var(--s-7); align-items: start; }
@media (min-width: 1000px) { .nx-agenda__in { grid-template-columns: 5fr 6fr; } }
.nx-agenda .nx-h2, .nx-promos .nx-h2 { margin-bottom: var(--s-5); }
.nx-agenda__text > .kicker, .nx-promos .kicker { margin-bottom: var(--s-3); }
.nx-points { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.nx-points li { padding-left: var(--s-4); border-left: 2px solid var(--solved); }
.nx-points p { color: var(--ink-2); }

.nx-tl { border: 1px solid var(--rule); border-radius: var(--r-l); padding: var(--s-5); background: var(--paper); box-shadow: var(--shadow-1); min-width: 0; }
.nx-tl__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-5); }
.nx-tl__who { font-weight: 600; }
.nx-tl__scale, .nx-tl__track { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); }
.nx-tl__scale { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); margin-bottom: var(--s-3); }
.nx-tl__scale span { grid-column-end: span 6; border-left: 1px solid var(--rule); padding-left: 4px; }
.nx-tl__rows { display: grid; gap: var(--s-4); }
.nx-tl__label { font-size: .95rem; margin-bottom: var(--s-2); display: flex; flex-wrap: wrap; gap: 0 var(--s-2); align-items: baseline; }
.nx-tl__in { font-family: var(--f-mono); font-size: .75rem; color: var(--ink-2); }
.nx-tl__track { height: 28px; border-radius: var(--r-xs); background: var(--surface);
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--rule) calc(25% - 1px) 25%); }
.nx-tl__seg { grid-row: 1; border-radius: var(--r-xs); min-width: 0; }
.nx-tl__seg--manos { background: var(--solved); }
.nx-tl__seg--espera { background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--solved) 55%, transparent) 0 3px, transparent 3px 7px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--solved) 60%, transparent); }
.nx-tl__row--you { padding-top: var(--s-4); border-top: 1px dashed var(--rule); }
.nx-tl__row--you .nx-tl__seg--manos { background: var(--ink); }
.nx-tl__legend { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); font-size: .9rem; color: var(--ink-2); }
.nx-tl__legend li { display: flex; align-items: center; gap: var(--s-2); }
.nx-tl__key { display: inline-block; width: 28px; height: 14px; border-radius: var(--r-xs); flex: none; }
.nx-tl__sum { margin-top: var(--s-4); font-weight: 600; }
.nx-tl .s0{grid-column-start:1} .nx-tl .s1{grid-column-start:2} .nx-tl .s2{grid-column-start:3} .nx-tl .s3{grid-column-start:4} .nx-tl .s4{grid-column-start:5} .nx-tl .s5{grid-column-start:6} .nx-tl .s6{grid-column-start:7} .nx-tl .s7{grid-column-start:8} .nx-tl .s8{grid-column-start:9} .nx-tl .s9{grid-column-start:10} .nx-tl .s10{grid-column-start:11} .nx-tl .s11{grid-column-start:12} .nx-tl .s12{grid-column-start:13} .nx-tl .s13{grid-column-start:14} .nx-tl .s14{grid-column-start:15} .nx-tl .s15{grid-column-start:16} .nx-tl .s16{grid-column-start:17} .nx-tl .s17{grid-column-start:18} .nx-tl .s18{grid-column-start:19} .nx-tl .s19{grid-column-start:20} .nx-tl .s20{grid-column-start:21} .nx-tl .s21{grid-column-start:22} .nx-tl .s22{grid-column-start:23} .nx-tl .s23{grid-column-start:24}
.nx-tl .d1{grid-column-end:span 1} .nx-tl .d2{grid-column-end:span 2} .nx-tl .d3{grid-column-end:span 3} .nx-tl .d4{grid-column-end:span 4} .nx-tl .d5{grid-column-end:span 5} .nx-tl .d6{grid-column-end:span 6} .nx-tl .d7{grid-column-end:span 7} .nx-tl .d8{grid-column-end:span 8} .nx-tl .d9{grid-column-end:span 9} .nx-tl .d10{grid-column-end:span 10} .nx-tl .d11{grid-column-end:span 11} .nx-tl .d12{grid-column-end:span 12} .nx-tl .d13{grid-column-end:span 13} .nx-tl .d14{grid-column-end:span 14} .nx-tl .d15{grid-column-end:span 15} .nx-tl .d16{grid-column-end:span 16} .nx-tl .d17{grid-column-end:span 17} .nx-tl .d18{grid-column-end:span 18} .nx-tl .d19{grid-column-end:span 19} .nx-tl .d20{grid-column-end:span 20} .nx-tl .d21{grid-column-end:span 21} .nx-tl .d22{grid-column-end:span 22} .nx-tl .d23{grid-column-end:span 23} .nx-tl .d24{grid-column-end:span 24}

/* Promociones: el mismo hilo que el ejemplo de conversación, con el móvil a la izquierda en escritorio. */
@media (min-width: 900px) { .nx-chat--flip > figure { order: -1; } }
.nx-thread--promo { background: var(--paper); }
.nx-thread__note { margin-top: var(--s-4); font-size: .85rem; color: var(--ink-2); }
