/* Home v4 (13 Nov 2026, lib/pages/home.js): Linktree's style, our colours. Kept from v3.1: the search box and its full-screen layer
   (assets/hs-search.js, Spotify's iOS search) and the browse tiles. New below: the hero's claim field and rail, the colour blocks in the
   approved padel palette (BRAND v3.2), and Linktree's motion. Phone first, 390 px. */
.hs { --hs-line: #C8CCC4; --hs-wash: #ECECE4; overflow-x: clip; }
.hs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.hs-hero { position: relative; }

/* ---------- the search box (kept from v3.1) ---------- */
.hs-q { position: relative; display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; }
.hs-q__box { position: relative; display: flex; align-items: center; gap: 6px; height: 64px; padding: 7px 7px 7px 48px; }
/* the box's look lives on its own layer, so the layer can morph (FLIP) while the words inside keep their shape */
.hs-q__bg { position: absolute; inset: 0; border: 2px solid var(--ink); border-radius: 999px; background: #FFFFFF; box-shadow: 0 10px 30px -18px rgba(16,22,28,.45); transition: box-shadow .16s ease; }
.hs-q__box:focus-within .hs-q__bg { box-shadow: 0 0 0 4px rgba(255,90,31,.25), 0 10px 30px -18px rgba(16,22,28,.45); }
.hs-q__bg, .hs-q__box svg, .hs-q input, .hs-q button { transform-origin: 0 0; }
.hs-q__box svg { position: absolute; z-index: 1; left: 17px; top: calc(50% - 11px); color: var(--ink); }
.hs-q input { position: relative; z-index: 1; flex: 1; min-width: 0; height: 50px; padding: 0; border: 0; outline: 0; background: transparent; font: 500 17px/1 var(--text); color: var(--ink); -webkit-appearance: none; appearance: none; border-radius: 0; }
.hs-q input::placeholder { color: #6B757E; }
.hs-q input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hs-q button[type="submit"] { position: relative; z-index: 1; flex: none; height: 50px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--orange); color: var(--ink); font: 900 19px/1 var(--head); text-transform: uppercase; letter-spacing: .02em; cursor: pointer; transition: transform .12s var(--ease-out), background-color .15s, opacity .12s ease, visibility 0s; }
.hs-q button[type="submit"]:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .hs-q button[type="submit"]:hover { background: #FF6A33; } }
@media (max-width: 420px) { .hs-q__box { gap: 4px; padding-left: 40px; } .hs-q__box svg { left: 13px; } .hs-q button[type="submit"] { padding: 0 13px; font-size: 18px; } .hs-q input::placeholder { font-size: 14.5px; } }

/* the instant results, under the box (a pointer, before the layer opens: only "nobody by that name" ever shows here) */
.hs-list { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; max-height: min(64vh, 480px); overflow: auto; overscroll-behavior: contain; padding: 6px;
  background: #FFFFFF; border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: 0 24px 48px -20px rgba(16,22,28,.4); }
.hs-g__h { margin: 10px 10px 4px; font: 600 12px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.hs-o { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color .12s ease; }
.hs-o[aria-selected="true"] { background: var(--hs-wash); box-shadow: inset 3px 0 0 var(--ink); }
.hs-o:active { background: var(--hs-wash); }
@media (hover: hover) and (pointer: fine) { .hs-o:hover { background: var(--hs-wash); } }
.hs-o__av, .hs-o__lg, .hs-o__ic { flex: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: var(--hs-wash); display: grid; place-items: center; }
.hs-o__av.is-club { border-radius: 10px; object-fit: contain; background: #FFFFFF; border: 1px solid var(--rule); }
.hs-o__av.is-mono { background: var(--ink); color: #FFFFFF; font: 900 16px/1 var(--head); }
.hs-o__lg { border-radius: 10px; background: #FFFFFF; border: 1px solid var(--rule); padding: 6px; }
.hs-o__lg.is-dark { background: var(--ink); border-color: var(--ink); }
.hs-o__lg img { width: 100%; height: 100%; object-fit: contain; }
.hs-o__ic { border-radius: 10px; color: var(--ink); }
.hs-o__t { flex: 1; min-width: 0; display: grid; }
.hs-o__n { font: 600 16px/1.25 var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-o__t small { font: 400 13.5px/1.3 var(--text); color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-o__rk { flex: none; display: grid; justify-items: center; min-width: 44px; padding: 4px 6px; border-radius: 8px; background: var(--ink); color: #FFFFFF; font: 900 18px/1 var(--head); }
.hs-o__rk small { font: 600 9px/1.2 var(--text); letter-spacing: .1em; opacity: .75; }
.hs-o--all { justify-content: center; min-height: 48px; margin-top: 4px; border-top: 1px solid var(--rule); border-radius: 0 0 12px 12px; font: 600 15px/1.3 var(--text); }
.hs-none { margin: 0; padding: 14px 12px; font: 400 15px/1.4 var(--text); color: var(--soft); }

/* ---------- the search layer (assets/hs-search.js; the owner's reference is Spotify's iOS search, 12 Nov 2026) ----------
   The box rises to the very top and grows, «Cancelar» slides in on its right, the page dims under an INK material: ink is the brand's
   own dark (the «¿Eres tú?» band), the white box and the photos pop on it, and it reads as a different place, not a dropdown.
   (data-tone="paper" is the light variant, kept for comparison.) Everything here is the END state; the script measures before and after
   and animates transform/opacity only (FLIP). */
.hs-scrim, .hs-x, .hs-idle { display: none; }
.hs-q { --ov: rgba(16,22,28,.94); --ov-fg: #FFFFFF; --ov-soft: rgba(255,255,255,.64); --ov-row: rgba(255,255,255,.08); --ov-line: rgba(255,255,255,.16); }
.hs-q[data-tone="paper"] { --ov: rgba(247,247,243,.93); --ov-fg: var(--ink); --ov-soft: var(--soft); --ov-row: var(--hs-wash); --ov-line: var(--rule); }
html.hs-up .hs-hero { z-index: 1000; }
html.hs-lock, html.hs-lock body { overflow: hidden; }
.hs-q.is-closing .hs-scrim, .hs-q.is-open .hs-scrim { display: block; position: fixed; inset: 0; z-index: 0; background: var(--ov);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.hs-q.is-open { position: fixed; z-index: 1000; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr); align-content: start; column-gap: 4px; color: var(--ov-fg);
  padding: calc(env(safe-area-inset-top) + 10px) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); }
.hs-q.is-open .hs-q__box { z-index: 1; height: 58px; padding-left: 48px; }
.hs-q.is-open .hs-q__bg { border-color: #FFFFFF; box-shadow: none; }
.hs-q[data-tone="paper"].is-open .hs-q__bg { border-color: var(--ink); }
.hs-q.is-open .hs-q__box svg { left: 17px; }
.hs-q.is-open input { font-size: 20px; }
/* on a phone the keyboard's own Search key submits: the box gives its room to the words */
.hs-q.is-open button[type="submit"] { position: absolute; right: 5px; top: 4px; opacity: 0; visibility: hidden; transition: opacity .12s ease, visibility 0s .12s; }
.hs-q.is-open .hs-x { position: relative; z-index: 1; display: block; align-self: center; min-height: 44px; padding: 0 4px 0 12px; border: 0; background: none; color: var(--ov-fg);
  font: 600 16px/1 var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: opacity .12s ease; }
.hs-x:active { opacity: .6; }
.hs-q.is-open .hs-list, .hs-q.is-open .hs-idle:not([hidden]) { position: relative; z-index: 1; grid-column: 1 / -1; grid-row: 2; display: block; top: auto; left: auto; right: auto;
  max-height: none; margin: 10px calc(-1 * max(12px, env(safe-area-inset-right))) 0 calc(-1 * max(12px, env(safe-area-inset-left))); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 0 max(12px, env(safe-area-inset-right)) calc(env(safe-area-inset-bottom) + 28px) max(12px, env(safe-area-inset-left)); background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.hs-q.is-open .hs-list[hidden] { display: none; }
/* the completions: a magnifier, the words, ↖ to put them in the box */
.hs-s { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 4px 0 8px; border-radius: 12px; color: var(--ov-fg); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.hs-s__i { flex: none; display: grid; place-items: center; width: 24px; color: var(--ov-soft); }
.hs-s__t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 17px/1.2 var(--text); }
.hs-fill { flex: none; display: grid; place-items: center; width: 44px; height: 44px; color: var(--ov-soft); border-radius: 50%; }
.hs-s[aria-selected="true"], .hs-s:active { background: var(--ov-row); }
.hs-done { padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--ov-line); }
/* the rich rows: round for a person, square for a club or a brand; the name, and what it is in grey */
.hs-q.is-open .hs-o { min-height: 72px; gap: 14px; padding: 8px; border-radius: 12px; color: var(--ov-fg); }
.hs-q.is-open .hs-o[aria-selected="true"] { background: var(--ov-row); box-shadow: none; }
.hs-q.is-open .hs-o:active { background: var(--ov-row); }
@media (hover: hover) and (pointer: fine) { .hs-q.is-open .hs-o:hover, .hs-s:hover { background: var(--ov-row); } }
.hs-q.is-open .hs-o__av, .hs-q.is-open .hs-o__lg, .hs-q.is-open .hs-o__ic { width: 56px; height: 56px; }
.hs-q.is-open .hs-o__lg, .hs-q.is-open .hs-o__av.is-club, .hs-q.is-open .hs-o__ic, .hs-o__lg.is-mono { border-radius: 8px; }
.hs-q.is-open .hs-o__lg { padding: 9px; border: 0; }
.hs-q.is-open .hs-o__ic { background: var(--orange); color: var(--ink); }
.hs-q.is-open .hs-o__av.is-mono { font-size: 20px; background: #FFFFFF; color: var(--ink); }
.hs-q[data-tone="paper"].is-open .hs-o__av.is-mono { background: var(--ink); color: #FFFFFF; }
.hs-o__lg.is-mono { display: grid; place-items: center; background: #FFFFFF; color: var(--ink); font: 900 18px/1 var(--head); }
.hs-q.is-open .hs-o__n { font: 900 24px/1 var(--head); text-transform: uppercase; letter-spacing: .01em; padding-top: 2px; }
.hs-q.is-open .hs-o__t small { margin-top: 4px; font-size: 14px; color: var(--ov-soft); }
.hs-q.is-open .hs-o--all { min-height: 52px; margin: 16px 0 0; border: 1.5px solid var(--ov-fg); border-radius: 999px; background: transparent; color: var(--ov-fg); font: 600 16px/1.3 var(--text); }
.hs-q.is-open .hs-none { padding: 22px 8px; font-size: 16px; color: var(--ov-soft); }
/* before typing: recent searches (an × per row, «Borrar…»), or three tries */
.hs-ih { margin: 6px 8px 6px; font: 900 22px/1 var(--head); text-transform: uppercase; color: var(--ov-fg); }
.hs-rec { list-style: none; margin: 0; padding: 0; }
.hs-rec li { display: flex; align-items: center; }
.hs-rec .hs-o { flex: 1; min-width: 0; }
.hs-rm, .hs-clear, .hs-tryb { -webkit-tap-highlight-color: transparent; cursor: pointer; }
.hs-rm { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ov-soft); }
.hs-clear { display: block; margin: 14px auto 0; min-height: 44px; padding: 0 20px; border: 1.5px solid var(--ov-fg); border-radius: 999px; background: none; color: var(--ov-fg); font: 600 15px/1 var(--text); }
.hs-try { margin: 10px 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; font: 500 16px/1.4 var(--text); color: var(--ov-soft); }
.hs-try span { margin-right: 4px; }
.hs-try i { font-style: normal; color: var(--ov-soft); }
.hs-tryb { min-height: 40px; padding: 0 12px; border: 1px solid var(--ov-line); border-radius: 999px; background: none; color: var(--ov-fg); font: 600 15px/1 var(--text); }
@media (min-width: 700px) {
  .hs-q.is-open { padding: calc(env(safe-area-inset-top) + 28px) max(24px, calc(50% - 380px)) 0; column-gap: 12px; }
  .hs-q.is-open .hs-q__box { height: 72px; padding-left: 58px; }
  .hs-q.is-open .hs-q__box svg { left: 22px; }
  .hs-q.is-open input { font-size: 24px; }
  .hs-q.is-open button[type="submit"] { position: relative; right: auto; top: auto; opacity: 1; visibility: visible; height: 58px; }
  .hs-q.is-open .hs-list, .hs-q.is-open .hs-idle:not([hidden]) { margin: 18px -24px 0; padding: 0 24px 40px; }
  .hs-q.is-open .hs-o { min-height: 84px; padding: 10px 12px; }
  .hs-q.is-open .hs-o__av, .hs-q.is-open .hs-o__lg, .hs-q.is-open .hs-o__ic { width: 64px; height: 64px; }
  .hs-q.is-open .hs-o__n { font-size: 30px; }
}
@media (prefers-reduced-transparency: reduce) { .hs-q.is-open .hs-scrim, .hs-q.is-closing .hs-scrim { background: var(--ink); -webkit-backdrop-filter: none; backdrop-filter: none; } .hs-q[data-tone="paper"] .hs-scrim { background: var(--bg) !important; } }

/* ---------- the browse tiles (Spotify's «Explorar»): brand colours only, the label top-left, a real photo or logo tilted in the corner ---------- */
.hs-chips { grid-area: chips; position: relative; width: 100%; max-width: 980px; margin: 14px auto 0; }
.hs-tiles2 { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; }
.hs-tl { position: relative; display: block; height: 96px; overflow: hidden; padding: 12px 12px 0; border-radius: 14px; color: #FFFFFF; text-align: left; text-decoration: none; cursor: pointer;
  list-style: none; -webkit-tap-highlight-color: transparent; transition: transform .16s var(--ease-out); }
.hs-tl:active { transform: scale(.97); }
.hs-tl::-webkit-details-marker { display: none; }
.hs-tl.t-ink { background: var(--ink); }
.hs-tl.t-deep { background: var(--orange-deep); }
.hs-tl.t-soft { background: var(--soft); }
.hs-tl.t-wash { background: var(--orange-wash); color: var(--ink); }
.hs-tl__l { position: relative; z-index: 1; display: block; max-width: 70%; font: 900 22px/.95 var(--head); text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.hs-tl__l i { display: block; margin-top: 4px; font: 600 12.5px/1 var(--text); font-style: normal; letter-spacing: 0; opacity: .8; font-variant-numeric: tabular-nums; }
.hs-tl__a { position: absolute; right: -12px; bottom: -8px; width: 70px; height: 70px; object-fit: cover; border-radius: 6px; transform: rotate(25deg); box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); background: #FFFFFF; }
.hs-tl__a.is-sq { object-fit: contain; padding: 6px; }
span.hs-tl__a.is-lg { display: grid; place-items: center; padding: 10px; }
span.hs-tl__a.is-lg.is-dark { background: var(--ink); }
span.hs-tl__a.is-lg img { width: 100%; height: 100%; object-fit: contain; }
@media (hover: hover) and (pointer: fine) { .hs-tl:hover .hs-tl__a { transform: rotate(18deg) translate(-3px, -3px); } .hs-tl__a { transition: transform .2s var(--ease-out); } }
.hs-pop details[open] > .hs-tl { box-shadow: inset 0 0 0 2px var(--orange); }
@media (min-width: 900px) { .hs-tiles2 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .hs-tl { height: 112px; padding: 14px 14px 0; } .hs-tl__l { font-size: 25px; } .hs-tl__a { width: 84px; height: 84px; } }

/* the lists the Brands and Lessons tiles open (<details>, no JavaScript) */
.hs-pop { position: static; }
.hs-pop details { height: 100%; }
.hs-pop__b { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; margin: 0 auto; max-width: 560px; padding: 14px; text-align: left;
  background: #FFFFFF; border: 1.5px solid var(--ink); border-radius: 18px; box-shadow: 0 24px 48px -20px rgba(16,22,28,.4); }
.hs-pop__b p { margin: 0 0 10px; font: 700 12px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-deep); }
.hs-pop__b ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.hs-pop__b a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 6px; border: 1px solid var(--hs-line); border-radius: 999px; color: var(--ink); text-decoration: none; font: 500 14.5px/1.2 var(--text); }
.hs-pop--n .hs-pop__b a { padding-left: 14px; }
.hs-pop__b a i { font-style: normal; color: var(--soft); font-weight: 600; }
.hs-lg { width: 28px; height: 28px; border-radius: 50%; background: #FFFFFF; border: 1px solid var(--rule); display: grid; place-items: center; padding: 4px; }
.hs-lg.is-dark { background: var(--ink); border-color: var(--ink); }
.hs-lg img { width: 100%; height: 100%; object-fit: contain; }


/* =====================================================================================================================================
   HOME v4 (owner, 13 Nov 2026): Linktree's style, our colours. The palette of the section panels (BRAND v3.2, owner-approved):
   pista azul, verde pista, tierra batida, noche, crema, pelota; the hero stays on paper and ink; the orange is the ONE action (the claim
   button). Corners 32–48 px on cards and panels, pill buttons. Motion: transform and opacity only; nothing moves with reduced motion.
   ===================================================================================================================================== */
.h4 { --azul: #1B57B5; --verde: #0F4D35; --tierra: #7A2E17; --tierra-2: #5E2311; --noche: #10161C; --crema: #F2EBDD; --pelota: #DFF24A; --melo: #FFE3D3;
  --r-card: 32px; --r-panel: 36px; --spring: cubic-bezier(.32, .72, 0, 1); }

/* ---------- the panels ---------- */
.hb { position: relative; --fg: var(--ink); --fg-2: var(--soft); --acc: var(--ink); background: var(--bg); color: var(--fg); }
.hb[data-tone="crema"] { background: var(--crema); --fg-2: #4C5560; }
.hb[data-tone="tierra"] { background: var(--tierra); --fg: var(--melo); --fg-2: rgba(255, 227, 211, .82); --acc: var(--melo); }
.hb[data-tone="azul"] { background: var(--azul); --fg: #FFFFFF; --fg-2: rgba(255, 255, 255, .86); --acc: var(--pelota); }
.hb[data-tone="verde"] { background: var(--verde); --fg: #FFFFFF; --fg-2: rgba(255, 255, 255, .84); --acc: var(--pelota); }
.hb[data-tone="pelota"] { background: var(--pelota); --fg: var(--verde); --fg-2: #1F3A2E; --acc: var(--verde); }
.hb[data-tone="noche"] { background: var(--noche); --fg: #FFFFFF; --fg-2: rgba(255, 255, 255, .74); --acc: var(--pelota); }
.h4 > .hb:not(.hs-hero) { margin: 8px 8px 0; border-radius: var(--r-panel); overflow: clip; }
.h4 > .hb:last-child { margin-bottom: 8px; }
.hb__in { max-width: 1180px; margin: 0 auto; padding: 56px 20px 60px; display: grid; gap: 34px; align-items: center; }
.hb__txt { text-align: center; }
.hb__h { margin: 0 auto; max-width: 16ch; font: 900 clamp(44px, 12.4vw, 92px)/.94 var(--head); text-transform: uppercase; letter-spacing: .003em; color: var(--acc); text-wrap: balance; }
.hb[data-tone="papel"] .hb__h, .hb[data-tone="crema"] .hb__h { color: var(--ink); }
.hb__p { max-width: 36ch; margin: 16px auto 0; font: 500 17px/1.45 var(--text); color: var(--fg-2); text-wrap: pretty; }
.hb__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; margin-top: 24px; padding: 0 24px; border-radius: 999px; background: var(--fg); color: var(--bg);
  font: 600 16px/1 var(--text); text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform .16s var(--ease-out), opacity .16s ease; }
.hb[data-tone="azul"] .hb__btn, .hb[data-tone="verde"] .hb__btn, .hb[data-tone="noche"] .hb__btn { background: #FFFFFF; color: var(--ink); }
.hb[data-tone="crema"] .hb__btn, .hb[data-tone="papel"] .hb__btn { background: var(--ink); color: #FFFFFF; }
.hb[data-tone="tierra"] .hb__btn { background: var(--melo); color: var(--tierra); }
.hb__btn svg { width: 18px; height: 18px; }
.hb__btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .hb__btn:hover { opacity: .9; } }
.hb--band .hb__in { padding-block: 44px 48px; }
.hb--band .hb__h { font-size: clamp(42px, 11vw, 80px); }
.hb[data-tone="pelota"] .hb__p { max-width: 46ch; font-weight: 600; color: var(--fg-2); }

/* ---------- the hero: paper and ink, the orange «Gratis.», the claim field, «Búscate», the rail ---------- */
.hs-hero { z-index: 5; padding: 0 0 26px; }
.hs-hero__in { max-width: 760px; margin: 0 auto; padding: 18px 16px 0; text-align: center; }
.hs-h1 { margin: 0; font: 900 clamp(54px, 15.4vw, 132px)/.86 var(--head); text-transform: uppercase; letter-spacing: .002em; color: var(--ink); text-wrap: balance; }
.hs-h1 em { font-style: normal; color: var(--orange); }
.hs-sub { max-width: 32ch; margin: 14px auto 0; font: 500 17.5px/1.42 var(--text); color: var(--soft); text-wrap: balance; }

/* the ONE field (owner, 13 Nov 2026: «dos buscadores no tiene sentido»): «Escribe tu nombre» + the orange «Empezar»; it opens the layer
   (assets/hs-search.js, data-mode="me"): «¿Eres tú?» + the matching pages, then «Crear courtduty.com/@… gratis →» */
.hs-find { margin: 22px auto 0; max-width: 560px; }
.hs-qwrap { max-width: 560px; margin: 0 auto; }
.hs-hero .hs-q__box { height: 62px; padding: 6px 6px 6px 48px; }
.hs-hero .hs-q__bg { border-width: 1.5px; }
.hs-hero .hs-q input { height: 50px; font-size: 17.5px; font-weight: 600; }
.hs-hero .hs-q input::placeholder { font-weight: 500; }
.hs-hero .hs-q button[type="submit"] { height: 50px; padding: 0 22px; font-size: 21px; }
.hs-help { margin: 10px 4px 0; font: 500 14.5px/1.4 var(--text); color: var(--soft); text-wrap: balance; }
.hs-q.is-open .hs-o--new { margin-top: 10px; box-shadow: inset 0 0 0 1.5px var(--ov-line); }
.hs-q.is-open .hs-o--new .hs-o__ic { background: var(--orange); color: var(--ink); font: 900 30px/1 var(--head); display: grid; place-items: center; }
.hs-q.is-open .hs-o--new .hs-o__n { text-transform: none; font: 700 17px/1.25 var(--text); white-space: normal; overflow-wrap: anywhere; }
.hs-q.is-open .hs-ih + .hs-rows { margin-bottom: 4px; }

/* ---------- the rail: ONE card for everyone (owner, 13 Nov 2026: «todas las cards iguales»): a 4:5 photo card, 32 px corners, the
   white address pill, one line under it. 240 x 300 so a 500 px photo is never upscaled more than 1.2x on a 2x screen (lib/homedata.js
   RAIL_MIN). A tap opens the page viewer (.hv below). ---------- */
/* since 13 Nov 2026 its own section further down, «Así queda tu página.» (#hp-rail), plain links */
.hr { margin-top: 0; padding-block: 0; }
.hb--rail { padding-block: 0 48px; }
.h4 > .hb--rail .hb__in { display: block; min-height: 0; padding-block: 48px 24px; }
.hr__t { list-style: none; display: flex; gap: 12px; margin: 0; padding: 4px 16px 6px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hr__t::-webkit-scrollbar { display: none; }
.hr__i { flex: 0 0 240px; scroll-snap-align: start; }
.hr__c { position: relative; display: block; width: 240px; height: 300px; overflow: hidden; border-radius: var(--r-card); background: var(--crema); color: var(--ink); text-decoration: none;
  -webkit-tap-highlight-color: transparent; transform: translateZ(0); transition: transform .2s var(--ease-out); }
.hr__c:active { transform: scale(.97); }
.hr__c:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.hr__c > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hr__c::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(16, 22, 28, .06); pointer-events: none; }
.t-azul { background-color: var(--azul); } .t-tierra { background-color: var(--tierra); } .t-verde { background-color: var(--verde); } .t-pelota { background-color: var(--pelota); } .t-noche { background-color: var(--noche); }
.hr__pill { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 24px); padding: 9px 13px 9px 11px; border-radius: 999px;
  background: #FFFFFF; color: var(--ink); font: 600 13px/1 var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 18px -8px rgba(16, 22, 28, .45); }
.hr__pill i { flex: none; width: 10px; height: 10px; border-radius: 2px; background: var(--orange); }
.hr__cap { display: grid; gap: 2px; width: 240px; margin: 10px 0 0; padding-inline: 4px; text-align: left; box-sizing: border-box; }
.hr__cap b, .hr__cap span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hr__cap b { font: 600 14.5px/1.3 var(--text); color: var(--ink); }
.hr__cap span { font: 500 13px/1.3 var(--text); color: var(--soft); }
@media (hover: hover) and (pointer: fine) { .hr__c:hover { transform: translateY(-4px); } }

/* ---------- the page viewer (assets/home-viewer.js): the real pages over the home, ‹ › to see them all ----------
   Ink glass over the home; each page is a tall card with 40 px corners (BRAND §8: never a drawn phone); the neighbours wait at the
   sides (on a desktop they peek, smaller and dimmed); one orange action, «Crea la tuya gratis». Motion: transform and opacity only,
   iOS's curve; with reduced motion nothing slides. */
html.hv-lock, html.hv-lock body { overflow: hidden; }
.hv { --cw: calc(100vw - 16px); --ink-h: #10161C; position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #FFFFFF; overflow: hidden; font-family: var(--text); }
.hv[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.hv::backdrop { background: rgba(10, 13, 16, .95); -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1); opacity: 0; transition: opacity .24s ease; }
.hv.is-on::backdrop { opacity: 1; }
.hv__bar { display: flex; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 8px 10px 12px; opacity: 0; transition: opacity .22s ease; }
.hv.is-on .hv__bar, .hv.is-on .hv__nav { opacity: 1; }
.hv__t { display: none; flex: none; max-width: none; margin: 0; font: inherit; text-transform: none; letter-spacing: normal; line-height: 1; }
.hv__pill { position: static; max-width: none; min-height: 40px; box-sizing: border-box; padding-inline: 14px 16px; font-size: 14px; box-shadow: none; }
.hv__full { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #FFFFFF;
  font: 600 14px/1 var(--text); text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: background-color .15s ease; }
.hv__full svg { flex: none; opacity: .8; }
.hv__x, .hv__arr { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12);
  color: #FFFFFF; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .14s var(--ease-out), background-color .15s ease; }
.hv__arr { width: 52px; height: 52px; margin: 0; }
.hv__x:active, .hv__arr:active, .hv__cta:active { transform: scale(.94); }
.hv :focus-visible { outline: 2.5px solid #FFFFFF; outline-offset: 3px; }
.hv__stage { position: relative; min-height: 0; opacity: 0; transform: translateY(28px) scale(.96); transition: opacity .26s ease, transform .46s var(--spring); }
.hv.is-on .hv__stage { opacity: 1; transform: none; }
.hv.is-out .hv__stage { opacity: 0; transform: translateY(18px) scale(.97); transition-duration: .18s; }
.hv.is-out::backdrop { opacity: 0; transition-duration: .18s; }
.hv__track { position: absolute; inset: 0; }
.hv__s { position: absolute; top: 0; bottom: 0; left: 50%; width: var(--cw); margin-left: calc(var(--cw) / -2); transition: transform .42s var(--spring), opacity .3s ease; will-change: transform; }
.hv__s:not(.is-cur) { opacity: .3; cursor: pointer; }
.hv__s.is-far { opacity: 0; visibility: hidden; transition: transform .42s var(--spring), opacity .3s ease, visibility 0s .3s; }
.hv__track.is-drag .hv__s { transition: none; }
.hv__card { position: absolute; inset: 0; overflow: hidden; border-radius: 40px; background: #0D1013; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); isolation: isolate; }
.hv__card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; opacity: 0; transition: opacity .28s ease; color-scheme: normal; }
.hv__s:not(.is-cur) iframe { pointer-events: none; }
.hv__s.is-ready iframe { opacity: 1; }
/* the scroll cue (owner, 13 Nov 2026): a soft fade at the foot of the page on screen and a white «Desliza ↓» pill; never orange.
   Shown only on the centre page, only when it is taller than its frame, until the visitor has scrolled once (assets/home-viewer.js) */
.hv__cue { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center; height: 128px; padding-bottom: 18px;
  box-sizing: border-box; background: linear-gradient(to top, rgba(13, 16, 19, .9), rgba(13, 16, 19, .55) 45%, rgba(13, 16, 19, 0)); pointer-events: none;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .28s ease, transform .36s var(--spring), visibility 0s .36s; }
.hv__s.is-cur.is-ready.has-cue .hv__cue { opacity: 1; visibility: visible; transform: none; transition: opacity .36s ease .25s, transform .5s var(--spring) .25s, visibility 0s; }
.hv__cue button { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 15px 0 11px; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .95); color: var(--ink); font: 600 13.5px/1 var(--text); letter-spacing: .01em; cursor: pointer; box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .7); }
.hv__cue svg { flex: none; animation: hv-nudge 1.5s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes hv-nudge { 0%, 100% { transform: translateY(-1.5px); } 50% { transform: translateY(2.5px); } }
/* the skeleton: the person's own photo and name, the shape of the B page (poster, name, chips, buttons) until the page is there */
.hv__sk { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: 0 0 20px; transition: opacity .3s ease .1s; }
.hv__s.is-ready .hv__sk { opacity: 0; }
.hv__sk img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 22%; }
.hv__sk.is-club img { box-sizing: border-box; padding: 18% 20%; object-fit: contain; background: #FFFFFF; }
/* the row under the viewer waits while it is open */
html.hv-lock .hm__t { animation-play-state: paused; }
.hv__sk b { margin: 6px 20px 2px; font: 900 40px/.95 var(--head); text-transform: uppercase; color: #FFFFFF; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hv__sk i { display: block; height: 56px; margin: 0 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); }
.hv__sk i:first-of-type { height: 30px; width: 58%; border-radius: 999px; }
/* the waits (speed pass, 17 Nov 2026): the viewer's placeholder buttons breathe a light sweep until the page is there, and the search's
   first answers come as three skeleton rows (assets/hs-search.js SK) in the answers' own shape. Still with reduced motion. */
.hv__sk i { position: relative; overflow: hidden; }
.hv__sk i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0, rgba(255, 255, 255, .09) 50%, transparent 100%); transform: translateX(-100%); animation: cd-sweep 1.4s cubic-bezier(.65, 0, .35, 1) infinite; }
.hv__s.is-ready .hv__sk i::after { animation: none; }
.hs-o--sk { pointer-events: none; }
.hs-o--sk .hs-o__av.cd-sk { height: auto; aspect-ratio: 1; border-radius: 50%; opacity: .45; }
.hs-o--sk .hs-o__t { gap: 8px; }
.hs-o--sk .hs-o__t .cd-sk { height: 16px; width: 62%; }
.hs-o--sk .hs-o__t .cd-sk + .cd-sk { height: 12px; width: 42%; }
.hs-o--sk:nth-child(2) .hs-o__t .cd-sk { width: 48%; }
.hs-o--sk:nth-child(2) .hs-o__t .cd-sk + .cd-sk { width: 56%; }
.hs-o--sk:nth-child(3) .hs-o__t .cd-sk:first-child { width: 70%; }
@media (prefers-reduced-motion: reduce) { .hv__sk i::after { animation: none; } }
.hv__nav { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 12px max(12px, env(safe-area-inset-bottom)); opacity: 0; transition: opacity .22s ease; }
.hv__cta { flex: 0 1 260px; display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--orange); color: var(--ink);
  font: 900 20px/1 var(--head); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; transition: transform .14s var(--ease-out), background-color .15s ease; }
@media (hover: hover) and (pointer: fine) {
  .hv__x:hover, .hv__arr:hover, .hv__full:hover { background: rgba(255, 255, 255, .2); }
  .hv__cta:hover { background: #FF6A33; }
  .hv__s:not(.is-cur):hover { opacity: .5; }
}
@media (min-width: 700px) {
  /* «ver todo el Linktree» (owner, 13 Nov 2026): on a desktop the page is drawn at a phone's 390-wide layout scaled to .86, so far more
     of it shows at once, still readable; the frame takes the height the bar and the buttons leave */
  .hv { --cw: 372px; --sc: .86; }
  .hv__card iframe { width: calc(100% / var(--sc)); height: calc(100% / var(--sc)); transform: scale(var(--sc)); transform-origin: 0 0; }
  .hv__bar { padding: 16px 20px 14px 24px; gap: 10px; }
  .hv__t { display: block; }
  /* «Ver página completa» sits next to the ×, so nothing in the bar ever touches the centre page */
  .hv__full { margin-left: auto; }
  .hv__x { margin-left: 0; }
  .hv__x { width: 48px; height: 48px; }
  .hv__nav { gap: 14px; padding: 16px 16px 22px; }
  .hv__arr { width: 56px; height: 56px; }
}
@media (min-width: 700px) and (min-height: 1000px) { .hv__stage { max-height: 960px; } }
/* wide screens: the bar sits in the corners, off the page, so the page takes the whole height above the buttons */
@media (min-width: 1100px) {
  .hv[open] { grid-template-rows: 18px minmax(0, 1fr) auto; }
  .hv__bar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; pointer-events: none; }
  .hv__bar > * { pointer-events: auto; }
  .hv__stage { grid-row: 2; } .hv__nav { grid-row: 3; padding-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .hv__stage, .hv.is-on .hv__stage, .hv.is-out .hv__stage { transform: none; transition: opacity .15s ease; }
  .hv__s, .hv__s.is-far { transition: opacity .15s ease, visibility 0s; }
  .hv__s:not(.is-cur) { opacity: 0; visibility: hidden; }
  .hv__cue svg { animation: none; transform: translateY(1px); }
  .hv__cue, .hv__s.is-cur.is-ready.has-cue .hv__cue { transform: none; transition: opacity .2s ease, visibility 0s; }
}

/* ---------- 1. «Todo tu pádel en un link»: the page as a tall card, tiles floating around it ---------- */
.hl { position: relative; width: min(74vw, 300px); margin: 6px auto 0; }
.hl__card { display: block; aspect-ratio: 390 / 690; overflow: hidden; border-radius: 40px; background: var(--noche); box-shadow: 0 30px 60px -30px rgba(16, 22, 28, .55);
  transition: transform .2s var(--ease-out); }
.hl__card img { display: block; width: 100%; height: auto; }
.hl__card:active { transform: scale(.98); }
.hf { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; border-radius: 20px; box-shadow: 0 16px 34px -16px rgba(16, 22, 28, .55); }
.hf--rank { left: -9%; top: 16%; display: grid; gap: 2px; padding: 12px 16px 13px; background: var(--azul); color: #FFFFFF; }
.hf--rank small { font: 600 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; opacity: .86; }
.hf--rank b { font: 900 40px/.9 var(--head); color: var(--pelota); }
.hf--rank em { font: 500 11.5px/1 var(--text); font-style: normal; opacity: .8; }
.hf--win { right: -10%; top: 52%; display: grid; gap: 8px; padding: 12px 14px 14px; background: var(--noche); color: #FFFFFF; }
.hf--win small { font: 600 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--pelota); }
.hf--win > span { display: flex; gap: 8px; }
.hf--win img { width: 84px; height: 34px; padding: 5px 8px; border-radius: 10px; background: #FFFFFF; object-fit: contain; }
.hf--brand { left: -6%; bottom: 9%; width: 108px; height: 64px; justify-content: center; padding: 12px; background: #FFFFFF; }
.hf--brand.is-dark { background: var(--noche); }
.hf--brand img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- 2. «Ponla en tu bio y compártela»: a bio, a chat and a QR, around the pill ---------- */
.hsh { position: relative; height: 380px; max-width: 420px; margin: 0 auto; width: 100%; }
.hsh__t { position: absolute; display: flex; gap: 10px; border-radius: 22px; background: #FFFFFF; color: var(--ink); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .55); }
.hsh__bio { left: 0; top: 0; width: 74%; padding: 14px; align-items: center; rotate: -3deg; }
.hsh__av { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--crema); color: var(--tierra); font: 900 18px/1 var(--head); box-shadow: inset 0 0 0 2px var(--tierra); }
.hsh__bio b { display: block; font: 700 15px/1.2 var(--text); }
.hsh__bio small { display: block; font: 400 13px/1.3 var(--text); color: var(--soft); }
.hsh__bio em { display: block; margin-top: 3px; font: 600 13px/1.3 var(--text); font-style: normal; color: #1D4E9E; }
.hsh__wa { right: 0; top: 118px; max-width: 70%; padding: 12px 14px; display: block; background: #D9FDD3; border-radius: 18px 18px 4px 18px; font: 500 14.5px/1.35 var(--text); rotate: 2deg; }
.hsh__wa u { color: #1D4E9E; text-underline-offset: 2px; }
.hsh__qr { left: 6%; bottom: 0; width: 46%; padding: 12px; display: grid; justify-items: center; gap: 6px; rotate: -4deg; }
.hsh__qr img { width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.hsh__qr small { font: 600 11.5px/1.25 var(--text); text-align: center; color: var(--soft); }
.hsh__pill { position: absolute; right: 2%; bottom: 52px; }
.hsh__pill .hr__pill { position: static; max-width: none; padding: 12px 16px 12px 13px; font-size: 14.5px; box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .6); }
/* «Un link en tu bio. No cuatro.» with a real bio (lib/bioproof.js, 15 Nov 2026): the capture leads, big and readable, slightly tilted like
   the old tiles; the WhatsApp bubble and the QR follow, smaller, in the flow (no fixed height); the «four links → one» row under the words */
.hsh--proof { height: auto; max-width: 460px; display: flex; flex-direction: column; gap: 22px; }
.hsh__proof { rotate: 0deg; }
@media (min-width: 900px) { .hsh__proof { rotate: -1.5deg; } }
.hsh__proof .bp__cap { color: var(--s-fg2, var(--fg-2)); }
.hsh__proof .bp__ig { color: var(--s-fg, var(--fg)); }
.hsh--proof .hsh__more { display: flex; align-items: center; justify-content: center; gap: 14px; padding-inline: 4px; }
.hsh--proof .hsh__t { position: static; }
.hsh--proof .hsh__wa { max-width: 64%; font-size: 13.5px; }
.hsh--proof .hsh__wa u { white-space: nowrap; }
.hsh--proof .hsh__qr { width: 30%; flex: none; rotate: 3deg; padding: 9px; }
.hsh--proof .hsh__qr small { font-size: 10.5px; }
.hsh__four { margin: 20px 0 0; }
.hsh__four > span { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 6px; }
.hsh__four s { padding: 6px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; font: 600 13.5px/1 var(--text); opacity: .62; text-decoration-thickness: 2px; }
.hsh__four i { font: 700 18px/1 var(--text); font-style: normal; margin-inline: 2px; }
.hsh__four b { padding: 7px 13px; border-radius: 999px; background: #FFFFFF; color: var(--ink); box-shadow: 0 0 0 3px #FF5A1F; font: 800 14px/1 var(--text); }
@media (min-width: 900px) { .hsh__four > span { justify-content: flex-start; } }

/* ---------- 3. «Mira quién te visita»: four tiles, Linktree's grid, OUR metrics, labelled «Ejemplo» ---------- */
.hkg { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 460px; margin: 0 auto; width: 100%; }
.hk__ex { position: absolute; z-index: 2; left: 50%; top: -14px; transform: translateX(-50%); margin: 0; padding: 6px 12px; border-radius: 999px; background: #FFFFFF; color: var(--ink);
  font: 700 11.5px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.hk { position: relative; display: grid; align-content: end; gap: 6px; min-height: 150px; padding: 16px; border-radius: 26px; overflow: hidden; }
.hk b { font: 900 46px/.9 var(--head); font-variant-numeric: tabular-nums; }
.hk span { font: 600 13px/1.25 var(--text); }
.hk--visits { grid-column: 1 / -1; min-height: 170px; background: var(--noche); color: #FFFFFF; }
.hk--visits b { color: var(--pelota); font-size: 62px; }
.hk__sp { position: absolute; right: 16px; top: 18px; width: 46%; height: auto; color: var(--pelota); }
.hk--ask { background: var(--pelota); color: var(--verde); }
.hk--ask i { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--verde); color: var(--pelota); }
.hk--ig { background: var(--crema); color: var(--ink); }
.hk--city { grid-column: 1 / -1; min-height: 120px; background: var(--tierra); color: var(--melo); }

/* ---------- 4. «Ya están en Court Duty»: the word that changes, the counts, the endless row that turns ---------- */
.hb--stack .hb__in { grid-template-columns: minmax(0, 1fr); }
.hw { display: block; color: var(--azul); }
.hw__w { display: inline-block; transition: transform .26s var(--spring), opacity .2s ease; }
.hw__w.is-out { transform: translateY(-.35em); opacity: 0; }
.hw__w.is-in { transform: translateY(.35em); opacity: 0; transition: none; }
.hw__n { margin: 16px 0 0; font: 600 16px/1.3 var(--text); color: var(--soft); font-variant-numeric: tabular-nums; text-wrap: balance; } /* 17 Nov 2026: «… ya tienen página» never leaves «página» alone */
#hp-who .hb__in { padding-inline: 0; }
/* «Ya están» right under the hero (13 Nov 2026): it continues the hero on the same paper, so its row reaches the first screen */
.hs-hero + #hp-who { margin-top: 0; padding-block: 0; }
.hs-hero + #hp-who .hb__in { padding-top: 4px; padding-bottom: 40px; gap: 22px; }
.hs-hero + #hp-who .hb__h { font-size: clamp(36px, 10vw, 72px); }
.hs-hero + #hp-who .hw__n { margin-top: 10px; font-size: 15px; }
@media (min-width: 900px) { .h4 > .hs-hero + #hp-who .hb__h { max-width: none; font-size: 60px; } .hs-hero + #hp-who .hb__in { gap: 18px; } }
#hp-who .hb__vis { width: 100%; }
.hm { overflow: hidden; padding: 6px 0 10px; }
.hm__t { list-style: none; display: flex; gap: 12px; width: max-content; margin: 0; padding: 0 6px; }
.hm__c { display: block; width: 160px; height: 200px; perspective: 1000px; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.hm__in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 700ms cubic-bezier(.433, .217, .355, 1); }
.hm__f, .hm__back { position: absolute; inset: 0; overflow: hidden; border-radius: var(--r-card); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.hm__f { background: var(--crema); }
.hm__f img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.hm__f::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(16, 22, 28, .07); pointer-events: none; }
/* a club or an academy: its logo contained in a fixed box on a white tile (lib/homedata.js logoOk: never blown up) */
.hm__f.is-logo { background: #FFFFFF; }
.hm__lg { position: absolute; left: 17%; right: 17%; top: 16%; height: 46%; display: grid; place-items: center; }
.hm__lg img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.hm__back { display: grid; place-items: center; transform: rotateY(180deg); background: var(--ink); }
.hm__back .hr__pill { position: static; }
.hm__f .hr__pill { font-size: 11.5px; padding: 7px 10px 7px 9px; left: 8px; bottom: 8px; max-width: calc(100% - 16px); }
@media (hover: hover) and (pointer: fine) {
  .hm__f .hr__pill { opacity: 0; }
  .hm__c:hover .hm__in, .hm__c:focus-visible .hm__in { transform: rotateY(180deg); }
  .hm:hover .hm__t, .hm:focus-within .hm__t { animation-play-state: paused; }
}
.hm__c:active .hm__in { transform: scale(.97); }

/* ---------- 5. «Elige tu estilo»: the themes as tall page cards ---------- */
#hp-styles .hb__in { padding-inline: 0; }
#hp-styles .hb__txt { padding-inline: 20px; }
.htl { list-style: none; display: flex; gap: 14px; margin: 0; padding: 4px 20px 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; }
.htl::-webkit-scrollbar { display: none; }
.ht { flex: 0 0 min(52vw, 220px); scroll-snap-align: start; }
.ht__a { display: grid; gap: 4px; color: var(--ink); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.ht__f { position: relative; display: block; aspect-ratio: 390 / 760; overflow: hidden; border-radius: 40px; margin-bottom: 8px; box-shadow: 0 20px 40px -24px rgba(16, 22, 28, .55);
  transition: transform .2s var(--ease-out); }
.ht__a:active .ht__f { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .ht__a:hover .ht__f { transform: translateY(-4px); } }
.ht__f img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.ht__n { font: 900 26px/1 var(--head); text-transform: uppercase; }
.ht__d { font: 500 14px/1.35 var(--text); color: var(--soft); }
/* the drawing until the theme's own preview exists: the page's shape in the theme's colours (an avatar, a name, three buttons) */
.ht__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 30% 12% 0; --b: #FFFFFF; --t: var(--ink); --bt: #FFFFFF; --bb: transparent; }
.ht__ph i { width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--t); opacity: .9; box-shadow: 0 0 0 4px var(--b); }
.ht__ph b { width: 66%; height: 16px; margin: 4px 0 10px; border-radius: 6px; background: var(--t); }
.ht__ph s { width: 100%; height: 34px; border-radius: 999px; background: var(--bt); box-shadow: inset 0 0 0 1.5px var(--bb); }
[data-template="pista-azul"] .ht__ph { background: var(--azul) linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, .55) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); --b: var(--azul); --t: #FFFFFF; }
[data-template="tierra-batida"] .ht__ph { background: var(--tierra); --b: var(--tierra); --t: var(--melo); --bt: var(--melo); }
[data-template="tierra-batida"] .ht__ph s { border-radius: 6px; box-shadow: 4px 4px 0 var(--noche); }
[data-template="verde-pista"] .ht__ph { background: var(--verde); --b: var(--verde); --t: var(--pelota); --bt: var(--pelota); }
[data-template="noche"] .ht__ph { background: radial-gradient(120% 60% at 50% 0, #2A3440, var(--noche) 62%); --b: var(--noche); --t: #FFFFFF; --bt: transparent; --bb: var(--pelota); }
[data-template="clasica"] .ht__ph { background: var(--bg); --b: var(--bg); --t: var(--ink); --bb: var(--rule); }
[data-template="clasica"] .ht__ph s:first-of-type { background: var(--orange); box-shadow: none; }
[data-template="clasica"] .ht__ph s { border-radius: 14px; }
[data-template="patrocinio"] .ht__ph { background: linear-gradient(var(--noche) 0 30%, #FFFFFF 30%); --b: #FFFFFF; --t: var(--ink); --bt: var(--noche); }
[data-template="patrocinio"] .ht__ph s { border-radius: 12px; }
[data-template="patrocinio"] .ht__ph s:last-of-type { background: #FFFFFF; box-shadow: inset 0 0 0 1.5px var(--rule); }

/* ---------- 6. «Y busca a cualquiera»: the browse tiles in the panel palette ---------- */
#hp-find .hs-chips { max-width: 980px; margin: 0 auto; }
#hp-find .hs-tl.t-ink { background: var(--noche); }
#hp-find .hs-tl.t-deep { background: var(--tierra); }
#hp-find .hs-tl.t-soft { background: var(--azul); }
#hp-find .hs-tl.t-wash { background: var(--crema); color: var(--ink); }
#hp-find .hs-tl { border-radius: 22px; }
#hp-find .hb__btn svg { width: 18px; height: 18px; }

/* ---------- 8. the questions ---------- */
.hql { display: grid; gap: 8px; max-width: 760px; margin: 0 auto; width: 100%; }
.hq { border-radius: 24px; background: var(--tierra-2); color: var(--melo); }
.hq summary { position: relative; display: block; min-height: 60px; padding: 19px 56px 19px 22px; font: 600 16.5px/1.35 var(--text); color: var(--melo); cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.hq summary::-webkit-details-marker { display: none; }
.hq__i { position: absolute; right: 20px; top: 50%; width: 14px; height: 14px; margin-top: -9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease-out); }
.hq[open] .hq__i { transform: translateY(5px) rotate(225deg); }
.hq p { margin: 0; padding: 0 22px 20px; font: 400 16px/1.5 var(--text); color: rgba(255, 227, 211, .86); }
.hq .lnk { color: var(--melo); text-decoration: underline; }

/* ---------- 9. the last band: the same field, as a button that opens it ---------- */
.hs-fake { display: flex; align-items: center; gap: 8px; max-width: 560px; margin: 26px auto 0; padding: 5px 5px 5px 18px; min-height: 58px; border-radius: 999px; background: #FFFFFF; color: #6B757E;
  text-decoration: none; text-align: left; -webkit-tap-highlight-color: transparent; transition: transform .14s var(--ease-out); }
.hs-fake span { flex: 1; display: flex; align-items: center; gap: 10px; font: 500 16.5px/1 var(--text); }
.hs-fake span svg { color: var(--ink); }
.hs-fake b { display: grid; place-items: center; height: 48px; padding: 0 22px; border-radius: 999px; background: var(--orange); color: var(--ink); font: 900 20px/1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.hs-fake:active { transform: scale(.98); }
.hb[data-tone="noche"] .hb__p { color: var(--fg-2); }

/* ---------- wide screens: words on one side, the visual on the other (Linktree's split), alternating ---------- */
@media (min-width: 900px) {
  .h4 > .hb:not(.hs-hero) { margin: 12px 16px 0; border-radius: 48px; }
  .h4 > .hb:last-child { margin-bottom: 16px; }
  .hb__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding: 96px 56px; min-height: 640px; }
  .hb__txt { text-align: left; }
  .hb:not(.hb--stack):not(.hb--band) .hb__h { margin-left: 0; }
  .hb__p { margin-left: 0; font-size: 19px; }
  .hb__h { font-size: clamp(64px, 6.6vw, 104px); }
  #hp-share .hb__txt, #hp-styles .hb__txt { order: 2; }
  .hb--stack .hb__in, .hb--band .hb__in { min-height: 0; }
  .hb--stack .hb__txt, .hb--band .hb__txt { text-align: center; }
  .hb--stack .hb__p, .hb--band .hb__p { margin-inline: auto; }
  .hb--band .hb__in { grid-template-columns: minmax(0, 1fr); padding: 72px 56px 80px; }
  #hp-styles .hb__txt { order: 0; }
  #hp-who .hb__in, #hp-styles .hb__in { padding-inline: 0; }
  .htl { justify-content: safe center; padding-inline: 40px; } /* safe: eleven cards overflow; plain center hid the first ones off the left edge (17 Nov 2026) */
  .ht { flex-basis: 200px; }
  .hm__c { width: 192px; height: 240px; }
  .hs-hero__in { padding-top: 34px; max-width: 980px; }
  .hs-sub { font-size: 20px; }
  .hs-find, .hs-qwrap { max-width: 620px; }
  .hr__t { padding-inline: max(24px, calc(50% - 640px)); scroll-padding-inline: max(24px, calc(50% - 640px)); gap: 16px; }
  .hl { width: 320px; }
  .hsh:not(.hsh--proof) { height: 420px; } /* not the proof stack: its height is its content (25 Nov 2026: a fixed 420 px let the bubble and QR spill onto the bio wall) */
  .hkg { max-width: 520px; }
}

/* ---------- motion (Linktree's real motion) ----------
   the endless row drifts on its own (paused off screen, on hover and on focus); the visuals rise a little as they come in on scroll
   (CSS scroll timelines, longhands only: the `animation` shorthand resets the duration to 0s and freezes a scroll animation); the tiles
   around the page float at different speeds. Headings never move. Nothing of this with reduced motion. */
@keyframes hm-drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hp-rise { from { opacity: 0; transform: translateY(28px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hf-up { from { transform: translateY(26px); } to { transform: translateY(-26px); } }
@keyframes hf-down { from { transform: translateY(-18px); } to { transform: translateY(18px); } }
@media (prefers-reduced-motion: no-preference) {
  .hm__t { animation-name: hm-drift; animation-duration: 70s; animation-timing-function: linear; animation-iteration-count: infinite; }
  .hm__t.is-off { animation-play-state: paused; }
  @supports (animation-timeline: view()) {
    .hb__vis { animation-name: hp-rise; animation-duration: auto; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: view(); animation-range: entry 5% entry 40%; }
    .hf--rank, .hsh__bio, .hk--ask { animation-name: hf-up; animation-duration: auto; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .hf--win, .hf--brand, .hsh__wa, .hk--ig { animation-name: hf-down; animation-duration: auto; animation-timing-function: linear; animation-fill-mode: both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hm { overflow-x: auto; }
  .hm__in, .hw__w, .hr__c, .ht__f, .hb__btn, .hs-fake, .hq__i { transition: none; }
  .hm__c:hover .hm__in, .hm__c:focus-visible .hm__in { transform: none; }
  .hm__f .hr__pill { opacity: 1; }
  .hr__c:hover, .ht__a:hover .ht__f { transform: none; }
}

/* the browse panel's pop-overs (Marcas, Clases cerca de ti) must not be cut by the panel's rounded clip (owner, 13 Nov 2026: "esto está roto") */
.h4 > #hp-find { overflow: visible; z-index: 3; }
.h4 > #hp-find .hs-pop__b { box-shadow: 0 18px 40px -18px rgba(16, 22, 28, .55); max-height: min(60vh, 420px); overflow: auto; overscroll-behavior: contain; }

/* =====================================================================================================================================
   COLOUR DIRECTIONS ON TRIAL (13 Nov 2026; owner: «los colores son bastante copia de Linktree… hazlo más nuestro»). Not live: only
   `?pal=a|b|c` sets <div class="h4" data-pal> (lib/pages/home.js); without it nothing below applies. Draft rules + contrast table:
   team/design/2026-11-13-palettes.md. Same layout, copy and motion; the hero stays paper and ink; the orange stays the ONE action
   (the hero's «Empezar» and its twin in the last band): no panel, tile or button below is ever orange.
   How it works: each palette re-maps the panel tokens (so the tiles inside follow), then gives every section a SURFACE
   (--s-bg background, --s-fg text, --s-fg2 body, --s-acc headline, --s-btn/--s-btnfg the quiet white or ink pill).
   ===================================================================================================================================== */
.h4[data-pal] > .hb:not(.hs-hero) { background: var(--s-bg, var(--bg)); color: var(--s-fg); --fg: var(--s-fg); --fg-2: var(--s-fg2); --acc: var(--s-acc); }
.h4[data-pal] > .hb:not(.hs-hero) .hb__h { color: var(--s-acc); }
.h4[data-pal] > .hb:not(.hs-hero) .hb__p, .h4[data-pal] > .hb:not(.hs-hero) .hw__n { color: var(--s-fg2); }
.h4[data-pal] > .hb:not(.hs-hero) .hb__btn { background: var(--s-btn); color: var(--s-btnfg); }
/* the themes in «Elige tu estilo» are real page themes: they keep their own colours whatever the palette */
.h4[data-pal] #hp-styles .ht__a { color: var(--s-fg); }
.h4[data-pal] #hp-styles .ht__d { color: var(--s-fg2); }
.h4[data-pal] .htl { --pelota: #DFF24A; --azul: #1B57B5; --verde: #0F4D35; --tierra: #7A2E17; --noche: #10161C; --crema: #F2EBDD; --melo: #FFE3D3; }
/* the people («Ya están en Court Duty») stay on paper in every direction: the photos are the colour there */
.h4[data-pal] > #hp-who { --s-bg: var(--bg); --s-fg: var(--ink); --s-fg2: var(--soft); --s-acc: var(--ink); --s-btn: var(--ink); --s-btnfg: #FFFFFF; }

/* ---------- A · «Pista»: the court itself. Court blue in two depths, the glass walls, the white lines; pelota only on numbers ----------
   Rule: ONE colour family (blue) + glass + paper. The blue panels carry the court's own lines (the service line + the centre «T», white
   at 22 %), the glass panels a cold sheen. Headlines white on blue, ink on glass; pelota only for big numbers and the free band's
   headline (the ball on the court). */
.h4[data-pal="a"] { --azul: #1D4FA6; --verde: #0D2B5E; --tierra: #0D2B5E; --tierra-2: #FFFFFF; --crema: #E4ECF2; --melo: #FFFFFF;
  --pa-pista: #1D4FA6; --pa-fondo: #0D2B5E; --pa-cristal: #E4ECF2; --pa-linea: rgba(255, 255, 255, .22); }
.h4[data-pal="a"] > :is(#hp-link, #hp-styles, #hp-faq) { --s-bg: linear-gradient(160deg, #F2F7FB 0%, #E2EBF3 46%, #D6E2EC 100%); --s-fg: var(--ink); --s-fg2: #44505C; --s-acc: var(--ink);
  --s-btn: var(--ink); --s-btnfg: #FFFFFF; box-shadow: inset 0 1px 0 #FFFFFF, inset 0 0 0 1px rgba(29, 79, 166, .10); }
.h4[data-pal="a"] > :is(#hp-share, #hp-free) { --pa-c: var(--pa-pista); }
.h4[data-pal="a"] > :is(#hp-stats, #hp-find) { --pa-c: var(--pa-fondo); }
.h4[data-pal="a"] > #hp-end { --pa-c: var(--noche); --pa-linea: rgba(255, 255, 255, .13); }
.h4[data-pal="a"] > :is(#hp-share, #hp-free, #hp-stats, #hp-find, #hp-end) { --s-bg: var(--pa-c);
  --s-fg: #FFFFFF; --s-fg2: rgba(255, 255, 255, .86); --s-acc: #FFFFFF; --s-btn: #FFFFFF; --s-btnfg: var(--ink); }
/* the court's lines, never across the words: the boundary drawn 14 px inside the panel, and the centre marks on both baselines */
.h4[data-pal="a"] > :is(#hp-share, #hp-free, #hp-stats, #hp-find, #hp-end)::before { content: ""; position: absolute; inset: 14px; z-index: 0; pointer-events: none;
  border: 2px solid var(--pa-linea); border-radius: calc(var(--r-panel) - 14px);
  background: linear-gradient(var(--pa-linea), var(--pa-linea)) 50% 0 / 2px 22px no-repeat, linear-gradient(var(--pa-linea), var(--pa-linea)) 50% 100% / 2px 22px no-repeat; }
.h4[data-pal="a"] > .hb > .hb__in { position: relative; z-index: 1; }
@media (min-width: 900px) { .h4[data-pal="a"] > :is(#hp-share, #hp-free, #hp-stats, #hp-find, #hp-end)::before { inset: 20px; border-radius: 28px; } }
.h4[data-pal="a"] > #hp-free { --s-acc: var(--pelota); }
.h4[data-pal="a"] .hw { color: var(--pa-pista); }
.h4[data-pal="a"] .hk--city { background: var(--pa-pista); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.h4[data-pal="a"] .hk--visits { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.h4[data-pal="a"] .hk--ask { color: var(--pa-fondo); }
.h4[data-pal="a"] #hp-find .hs-tl.t-deep { background: #2F6BD0; }
.h4[data-pal="a"] #hp-find .hs-tl.t-soft { background: var(--pa-pista); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.h4[data-pal="a"] #hp-find .hs-tl.t-ink { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.h4[data-pal="a"] .hq { background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 0 rgba(13, 43, 94, .08); }
.h4[data-pal="a"] .hq summary, .h4[data-pal="a"] .hq .lnk { color: var(--ink); }
.h4[data-pal="a"] .hq__i { color: var(--pa-pista); }
.h4[data-pal="a"] .hq p { color: #44505C; }
.h4[data-pal="a"] .hsh__av { color: var(--pa-pista); box-shadow: inset 0 0 0 2px var(--pa-pista); }

/* ---------- B · «Focos»: a match at night. Night and night turf under floodlights, the glass catching the light, the ball ----------
   Rule: after the paper hero the lights come on: dark panels, each lit by ONE floodlight from a corner (a soft radial glow, alternating
   left / right: the approved Night floodlight), tiles graphite with a 1 px glass edge, headlines pelota on night and white on turf.
   Two paper breaths (the people, the questions) and ONE pelota band (the ball) so the dark never feels heavy. */
.h4[data-pal="b"] { --azul: #24313D; --verde: #0F3B2B; --tierra: #24313D; --tierra-2: #10161C; --crema: #EEF0EA; --melo: #FFFFFF;
  --pb-noche: #10161C; --pb-cesped: #0F3B2B; --pb-grafito: #24313D; --pb-borde: rgba(255, 255, 255, .14); }
.h4[data-pal="b"] > :is(#hp-link, #hp-stats, #hp-find, #hp-end) { --pb-c: var(--pb-noche); --s-acc: var(--pelota); --pb-luz: rgba(236, 244, 255, .17); }
.h4[data-pal="b"] > :is(#hp-share, #hp-styles) { --pb-c: var(--pb-cesped); --s-acc: #FFFFFF; --pb-luz: rgba(223, 242, 74, .11); }
.h4[data-pal="b"] > :is(#hp-link, #hp-stats, #hp-find, #hp-end, #hp-share, #hp-styles) { --pb-at: 12% -8%;
  --s-bg: radial-gradient(70% 60% at var(--pb-at), var(--pb-luz), transparent 70%), var(--pb-c);
  --s-fg: #FFFFFF; --s-fg2: rgba(255, 255, 255, .78); --s-btn: #FFFFFF; --s-btnfg: var(--ink); }
.h4[data-pal="b"] > :is(#hp-share, #hp-find) { --pb-at: 88% -8%; }
.h4[data-pal="b"] > :is(#hp-stats, #hp-end) { --pb-at: 50% -14%; }
.h4[data-pal="b"] > #hp-free { --s-bg: var(--pelota); --s-fg: var(--ink); --s-fg2: #1E262E; --s-acc: var(--ink); --s-btn: var(--ink); --s-btnfg: #FFFFFF; }
.h4[data-pal="b"] > #hp-faq { --s-bg: var(--bg); --s-fg: var(--ink); --s-fg2: var(--soft); --s-acc: var(--ink); --s-btn: var(--ink); --s-btnfg: #FFFFFF; box-shadow: inset 0 0 0 1px var(--rule); }
.h4[data-pal="b"] .hw { color: var(--pb-cesped); }
.h4[data-pal="b"] :is(.hk--visits, .hk--city, .hf--rank, .hf--win) { box-shadow: inset 0 0 0 1px var(--pb-borde), 0 16px 34px -16px rgba(0, 0, 0, .7); }
.h4[data-pal="b"] .hk--city { color: #FFFFFF; }
.h4[data-pal="b"] .hk--ask { color: var(--ink); }
.h4[data-pal="b"] .hk--ask i { background: var(--ink); }
.h4[data-pal="b"] .hl__card { box-shadow: 0 0 0 1px var(--pb-borde), 0 30px 60px -24px rgba(0, 0, 0, .8); }
.h4[data-pal="b"] #hp-find .hs-tl.t-ink { background: var(--pb-grafito); box-shadow: inset 0 0 0 1px var(--pb-borde); }
.h4[data-pal="b"] #hp-find .hs-tl.t-deep { background: var(--pb-cesped); box-shadow: inset 0 0 0 1px var(--pb-borde); }
.h4[data-pal="b"] #hp-find .hs-tl.t-soft { background: var(--pelota); color: var(--ink); }
.h4[data-pal="b"] #hp-find .hs-tl.t-wash { background: #EEF0EA; }
.h4[data-pal="b"] .hq { background: var(--pb-noche); color: #FFFFFF; }
.h4[data-pal="b"] .hq summary, .h4[data-pal="b"] .hq .lnk { color: #FFFFFF; }
.h4[data-pal="b"] .hq__i { color: var(--pelota); }
.h4[data-pal="b"] .hq p { color: rgba(255, 255, 255, .8); }
.h4[data-pal="b"] .hsh__av { color: var(--pb-cesped); box-shadow: inset 0 0 0 2px var(--pb-cesped); }

/* ---------- C · «Atardecer»: a match from late afternoon into the night. Sand, clay, dusk, night, then the floodlights ----------
   Rule: the colour is a STORY told down the page, not a set of blocks: each panel is a vertical gradient that ends where the next one
   starts (sand → clay → wine → dusk → night), so the run reads as one sky. The people stay on paper. When it is dark the lights come
   on: the free band is pelota, and the last band keeps the day's last ember low in the sky. */
.h4[data-pal="c"] { --azul: #2E2A4F; --verde: #2E2A4F; --tierra: #9A3F25; --tierra-2: #242A37; --crema: #EFE3CF; --melo: #FFE3D3;
  --pc-arena: #EFE3CF; --pc-arena-2: #E8D2B4; --pc-arcilla: #9A3F25; --pc-arcilla-2: #7E3220; --pc-vino: #6E2D3A; --pc-ocaso: #3A2D52; --pc-ocaso-2: #2E2A4F;
  --pc-azul-noche: #1C2238; --pc-noche: #10161C; }
.h4[data-pal="c"] > #hp-link { --s-bg: linear-gradient(180deg, var(--pc-arena), var(--pc-arena-2)); --s-fg: var(--ink); --s-fg2: #4A4237; --s-acc: var(--ink); --s-btn: var(--ink); --s-btnfg: #FFFFFF; }
.h4[data-pal="c"] > #hp-share { --s-bg: linear-gradient(180deg, var(--pc-arcilla), var(--pc-arcilla-2)); --s-fg: var(--melo); --s-fg2: rgba(255, 227, 211, .92); --s-acc: var(--melo); --s-btn: var(--melo); --s-btnfg: var(--pc-arcilla-2); }
.h4[data-pal="c"] > #hp-stats { --s-bg: linear-gradient(180deg, var(--pc-vino), var(--pc-ocaso)); }
.h4[data-pal="c"] > #hp-styles { --s-bg: linear-gradient(180deg, var(--pc-ocaso), var(--pc-ocaso-2) 55%, var(--pc-azul-noche)); }
.h4[data-pal="c"] > #hp-find { --s-bg: linear-gradient(180deg, var(--pc-azul-noche), var(--pc-noche)); }
.h4[data-pal="c"] > #hp-faq { --s-bg: #171D2B; }
.h4[data-pal="c"] > #hp-end { --s-bg: radial-gradient(90% 55% at 50% 118%, rgba(154, 63, 37, .6), rgba(110, 45, 58, .25) 45%, transparent 75%), var(--pc-noche); }
.h4[data-pal="c"] > :is(#hp-stats, #hp-styles, #hp-find, #hp-faq, #hp-end) { --s-fg: #FFFFFF; --s-fg2: rgba(255, 255, 255, .8); --s-acc: #FFFFFF; --s-btn: #FFFFFF; --s-btnfg: var(--ink); }
.h4[data-pal="c"] > :is(#hp-find, #hp-end) { --s-acc: var(--pelota); }
.h4[data-pal="c"] > #hp-free { --s-bg: var(--pelota); --s-fg: var(--ink); --s-fg2: #1E262E; --s-acc: var(--ink); --s-btn: var(--ink); --s-btnfg: #FFFFFF; }
.h4[data-pal="c"] .hw { color: var(--pc-arcilla-2); }
.h4[data-pal="c"] .hk--ask { color: var(--pc-ocaso-2); }
.h4[data-pal="c"] .hk--ask i { background: var(--pc-ocaso-2); }
.h4[data-pal="c"] :is(.hk--visits, .hf--win) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 16px 34px -16px rgba(0, 0, 0, .6); }
.h4[data-pal="c"] #hp-find .hs-tl.t-ink { background: var(--pc-ocaso-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.h4[data-pal="c"] #hp-find .hs-tl.t-deep { background: var(--pc-arcilla); }
.h4[data-pal="c"] #hp-find .hs-tl.t-soft { background: var(--pc-vino); }
.h4[data-pal="c"] #hp-find .hs-tl.t-wash { background: var(--pc-arena); }
.h4[data-pal="c"] .hq { background: #242A37; color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.h4[data-pal="c"] .hq summary, .h4[data-pal="c"] .hq .lnk { color: #FFFFFF; }
.h4[data-pal="c"] .hq__i { color: var(--pc-arena); }
.h4[data-pal="c"] .hq p { color: rgba(255, 255, 255, .8); }
.h4[data-pal="c"] .hsh__av { color: var(--pc-arcilla-2); box-shadow: inset 0 0 0 2px var(--pc-arcilla-2); }

/* ---------- D · «Pista naranja» (owner, 13 Nov 2026: «como la A pero con un palette de nuestra marca; el azul nunca lo hemos usado») ----------
   A's idea in OUR colours: paper, orange wash, ink, and the court of our pages' orange band, burnt (teja #B83A0A, our deep orange) so
   it never reads as the action orange (1.85 : 1 apart). Rule: one warm family down the page (wash → teja court → ink court →
   paper → wash → ink court → teja court → wash → ink court); the court panels carry the white lines (boundary 14–20 px inside, centre
   marks on both baselines, never across words); headlines white on courts, ink on wash; pelota only on numbers and «Gratis. De
   verdad.» (the ball on the clay). Buttons on courts are white, on wash ink: the orange stays the one action. No blue anywhere. */
.h4[data-pal="d"] { --azul: #10161C; --verde: #10161C; --tierra: #B83A0A; --tierra-2: #FFFFFF; --crema: #FFEFE7; --melo: #FFFFFF;
  --pd-lavado: #FFEFE7; --pd-teja: #B83A0A; --pd-noche: #10161C; --pd-grafito: #222B35; --pd-pizarra: #56616B; --pd-linea: rgba(255, 255, 255, .3); }
.h4[data-pal="d"] > :is(#hp-link, #hp-styles, #hp-faq) { --s-bg: var(--pd-lavado); --s-fg: var(--ink); --s-fg2: #4A535C; --s-acc: var(--ink); --s-btn: var(--ink); --s-btnfg: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(184, 58, 10, .10); }
.h4[data-pal="d"] > :is(#hp-share, #hp-free) { --pd-c: var(--pd-teja); }
.h4[data-pal="d"] > :is(#hp-stats, #hp-find, #hp-end) { --pd-c: var(--pd-noche); --pd-linea: rgba(255, 255, 255, .16); }
.h4[data-pal="d"] > :is(#hp-share, #hp-free, #hp-stats, #hp-find, #hp-end) { --s-bg: var(--pd-c);
  --s-fg: #FFFFFF; --s-fg2: rgba(255, 255, 255, .9); --s-acc: #FFFFFF; --s-btn: #FFFFFF; --s-btnfg: var(--ink); }
.h4[data-pal="d"] > :is(#hp-stats, #hp-find, #hp-end) { --s-fg2: rgba(255, 255, 255, .8); }
.h4[data-pal="d"] > #hp-free { --s-acc: var(--pelota); --s-fg2: #FFFFFF; }
.h4[data-pal="d"] > :is(#hp-share, #hp-free, #hp-stats, #hp-find, #hp-end)::before { content: ""; position: absolute; inset: 14px; z-index: 0; pointer-events: none;
  border: 2px solid var(--pd-linea); border-radius: calc(var(--r-panel) - 14px);
  background: linear-gradient(var(--pd-linea), var(--pd-linea)) 50% 0 / 2px 22px no-repeat, linear-gradient(var(--pd-linea), var(--pd-linea)) 50% 100% / 2px 22px no-repeat; }
.h4[data-pal="d"] > .hb > .hb__in { position: relative; z-index: 1; }
@media (min-width: 900px) { .h4[data-pal="d"] > :is(#hp-share, #hp-free, #hp-stats, #hp-find, #hp-end)::before { inset: 20px; border-radius: 28px; } }
.h4[data-pal="d"] .hw { color: var(--pd-teja); }
.h4[data-pal="d"] .hk--visits { background: var(--pd-grafito); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.h4[data-pal="d"] .hk--ask { color: var(--ink); }
.h4[data-pal="d"] .hk--ask i { background: var(--ink); }
.h4[data-pal="d"] .hk--city { color: #FFFFFF; }
.h4[data-pal="d"] .hf--rank { box-shadow: 0 16px 34px -16px rgba(16, 22, 28, .6); }
.h4[data-pal="d"] #hp-find .hs-tl.t-ink { background: var(--pd-grafito); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.h4[data-pal="d"] #hp-find .hs-tl.t-deep { background: var(--pd-teja); }
.h4[data-pal="d"] #hp-find .hs-tl.t-soft { background: var(--pd-pizarra); }
.h4[data-pal="d"] #hp-find .hs-tl.t-wash { background: var(--pd-lavado); }
.h4[data-pal="d"] .hq { background: #FFFFFF; color: var(--ink); box-shadow: 0 1px 0 rgba(184, 58, 10, .08); }
.h4[data-pal="d"] .hq summary, .h4[data-pal="d"] .hq .lnk { color: var(--ink); }
.h4[data-pal="d"] .hq__i { color: var(--pd-teja); }
.h4[data-pal="d"] .hq p { color: #4A535C; }
.h4[data-pal="d"] .hsh__av { color: var(--pd-teja); box-shadow: inset 0 0 0 2px var(--pd-teja); }
/* no blue anywhere in D: the link in the bio and the chat bubble take the teja too */
.h4[data-pal="d"] :is(.hsh__bio em, .hsh__wa u) { color: var(--pd-teja); }

/* ---------- E · «Blanco y negro» (owner, 13 Nov 2026: «juega con blancos y negros, incluso un color que no sea de pádel… algo chulo») ----------
   Editorial: true white, paper, a warm grey, near-black, our orange as the ONE action and ONE accent, lila #CBBEF7 (lavender pairs
   with orange: 1.82 : 1 apart, so they never read as one colour, and both sit well on near-black). Rule: black-and-white does the work
   (white panels with a hairline, black panels, a grey breath); the lila is used sparingly and confidently: big numbers on black, one
   tile per group, the free band, and a highlighter behind the word that changes. No court lines, no gradients: type, space, hairlines. */
.h4[data-pal="e"] { --azul: #111214; --verde: #111214; --tierra: #111214; --tierra-2: #FFFFFF; --crema: #ECECE7; --melo: #FFFFFF; --pelota: #CBBEF7;
  --pe-blanco: #FFFFFF; --pe-gris: #ECECE7; --pe-negro: #111214; --pe-grafito: #3A3D42; --pe-lila: #CBBEF7; --pe-texto: #5C5F66; --pe-raya: rgba(17, 18, 20, .12); }
.h4[data-pal="e"] > :is(#hp-link, #hp-find) { --s-bg: var(--pe-blanco); box-shadow: inset 0 0 0 1px var(--pe-raya); }
.h4[data-pal="e"] > :is(#hp-stats, #hp-faq) { --s-bg: var(--pe-gris); }
.h4[data-pal="e"] > :is(#hp-link, #hp-find, #hp-stats, #hp-faq) { --s-fg: var(--pe-negro); --s-fg2: var(--pe-texto); --s-acc: var(--pe-negro); --s-btn: var(--pe-negro); --s-btnfg: #FFFFFF; }
.h4[data-pal="e"] > :is(#hp-share, #hp-styles, #hp-end) { --s-bg: var(--pe-negro); --s-fg: #FFFFFF; --s-fg2: rgba(255, 255, 255, .74); --s-acc: #FFFFFF; --s-btn: #FFFFFF; --s-btnfg: var(--pe-negro); }
.h4[data-pal="e"] > #hp-free { --s-bg: var(--pe-lila); --s-fg: var(--pe-negro); --s-fg2: #2A2633; --s-acc: var(--pe-negro); --s-btn: var(--pe-negro); --s-btnfg: #FFFFFF; }
.h4[data-pal="e"] .hw { color: var(--pe-negro); }
.h4[data-pal="e"] .hw__w { padding: 0 .1em; background: var(--pe-lila); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h4[data-pal="e"] .hk--ask { color: var(--pe-negro); }
.h4[data-pal="e"] .hk--ask i { background: var(--pe-negro); color: var(--pe-lila); }
.h4[data-pal="e"] .hk--ig { background: var(--pe-blanco); }
.h4[data-pal="e"] .hk--city { background: var(--pe-blanco); color: var(--pe-negro); box-shadow: inset 0 0 0 1px var(--pe-raya); }
.h4[data-pal="e"] .hf--brand:not(.is-dark), .h4[data-pal="e"] .hf--win img { box-shadow: inset 0 0 0 1px var(--pe-raya); }
.h4[data-pal="e"] .hl__card { box-shadow: 0 30px 60px -30px rgba(17, 18, 20, .6); }
.h4[data-pal="e"] #hp-find .hs-tl.t-ink { background: var(--pe-negro); }
.h4[data-pal="e"] #hp-find .hs-tl.t-deep { background: var(--pe-lila); color: var(--pe-negro); }
.h4[data-pal="e"] #hp-find .hs-tl.t-soft { background: var(--pe-grafito); }
.h4[data-pal="e"] #hp-find .hs-tl.t-wash { background: var(--pe-gris); color: var(--pe-negro); }
.h4[data-pal="e"] .hq { background: var(--pe-blanco); color: var(--pe-negro); }
.h4[data-pal="e"] .hq summary, .h4[data-pal="e"] .hq .lnk { color: var(--pe-negro); }
.h4[data-pal="e"] .hq__i { color: var(--pe-negro); }
.h4[data-pal="e"] .hq p { color: var(--pe-texto); }
.h4[data-pal="e"] .hsh__av { background: var(--pe-lila); color: var(--pe-negro); box-shadow: none; }
.h4[data-pal="e"] :is(.hsh__bio em, .hsh__wa u) { color: var(--pe-negro); }
