/* R-83: «Entrar» / «Mi panel» in the header and the «Empezar con HolaDuo» sheet.
   Shared by / and /agencias; uses each page's own tokens (--card, --ink, --accent…). */
.nav .nav-signin { gap: 8px; color: var(--ink); background: var(--card); border: 1.5px solid var(--ink); padding-left: 14px; }
.nav .nav-signin:hover { background: var(--ink); color: var(--paper); transform: translateY(-1px); }
.nav .nav-signin svg { flex: none; }
.in-only { display: none !important; }
html.signed-in .in-only { display: block !important; }
html.signed-in .out-only { display: none !important; }

.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.acct-btn:hover, .acct-btn[aria-expanded="true"] { background: var(--paper-deep); }
.acct-btn:focus-visible, .acct-menu a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.acct-av { width: 36px; height: 36px; border-radius: 50%; background: var(--sage-ink); color: #fff; display: grid; place-items: center; }
.acct-txt { display: grid; text-align: left; line-height: 1.1; }
.acct-txt b { font-size: .92rem; }
.acct-txt small { font-size: .74rem; color: var(--muted); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; padding: 8px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(34, 53, 44, .45); display: grid; gap: 2px; z-index: 40; }
.acct-menu[hidden] { display: none; }
.acct-who { margin: 0 0 6px; padding: 8px 12px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 2px; }
.acct-who b { font-size: .92rem; }
.acct-who span { font-size: .8rem; color: var(--muted); }
.nav .acct-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 8px 12px; border-radius: 10px; font: 650 .95rem/1.2 var(--sans); color: var(--ink); text-decoration: none; }
.nav .acct-menu a.acct-go { background: var(--accent); color: #fff; }
.nav .acct-menu a.acct-go:hover { background: var(--accent-strong); color: #fff; }
.nav .acct-menu a.acct-out:hover { background: var(--paper-deep); color: var(--ink); }

.start-band { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 26px 30px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px -40px rgba(34, 53, 44, .5); }
.start-band h3 { margin: 0 0 6px; font: 400 1.6rem/1.15 var(--serif); }
.start-band p { margin: 0; color: var(--ink-soft); }
.faq-cta { margin: 14px 0 0; }
.faq-cta .btn { min-height: 46px; padding: 10px 20px; font-size: .95rem; }

@media (max-width: 760px) {
  .nav { gap: 8px; }
  .nav .nav-signin { display: inline-flex; min-height: 40px; padding: 7px 14px 7px 11px; margin: 0; }
  .nav .nav-start { display: inline-flex; min-height: 40px; padding: 8px 14px; }
  html.signed-in .nav .acct { display: block !important; }
  .acct-txt small { display: none; }
  .acct-btn { min-height: 42px; }
  .acct-av { width: 32px; height: 32px; }
  .start-band { padding: 22px 20px; }
  .start-band .btn { width: 100%; }
}
@media (max-width: 370px) { .nav .nav-start { display: none; } }
/* A signed-in visitor is already a customer: no «Empezar» tab. */
@media (max-width: 760px) { html.signed-in .tabbar-start { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* The sheet */
.hs { border: 0; padding: 0; margin: auto; width: min(540px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(20, 30, 25, .55); font-family: var(--sans); overflow: auto; }
.hs::backdrop { background: rgba(24, 32, 28, .5); }
.hs[open] { animation: hs-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes hs-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.hs-in { padding: 26px 28px 24px; display: grid; gap: 18px; }
.hs-grab { display: none; width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 2px; }
@media (max-width: 600px) {
  .hs { width: 100vw; max-width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .hs[open] { animation: hs-up .4s cubic-bezier(.2, .8, .2, 1); }
  @keyframes hs-up { from { transform: translateY(100%); } }
  .hs-in { padding: 14px 18px calc(20px + env(safe-area-inset-bottom)); }
  .hs-grab { display: block; }
}
@media (prefers-reduced-motion: reduce) { .hs[open] { animation: none; } }
.hs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hs-eyebrow { margin: 0 0 6px; font: 700 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.hs h2 { margin: 0; font: 400 clamp(1.7rem, 4vw, 2.1rem)/1.08 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.hs h2:focus { outline: none; }
.hs-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.hs-x:hover { border-color: var(--ink); }
.hs-lead { margin: -6px 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.hs-lead b { color: var(--ink); }
.hs form { display: grid; gap: 14px; }
.hs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .hs-row { grid-template-columns: 1fr; } }
.hs-f { display: grid; gap: 6px; min-width: 0; align-content: start; }
.hs-f label, .hs-legend { font-weight: 650; font-size: .9rem; }
.hs-f label small, .hs-legend small { font-weight: 500; color: var(--muted); }
.hs-f input, .hs-f textarea { width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 500 1rem/1.3 var(--sans); }
.hs-f input::placeholder, .hs-f textarea::placeholder { color: var(--muted); opacity: .7; }
.hs-f textarea { min-height: 84px; resize: vertical; }
.hs-f input:focus, .hs-f textarea:focus { outline: 3px solid var(--accent-soft); outline-offset: 0; border-color: var(--accent); }
.hs-f input[aria-invalid="true"] { border-color: #b3261e; }
.hs-err { color: #b3261e; font-size: .84rem; font-weight: 600; }
.hs-hint { color: var(--muted); font-size: .82rem; }
.hs fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-chips label { position: relative; }
.hs-chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.hs-chips span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .9rem; font-weight: 600; color: var(--ink-soft); }
.hs-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--card); }
.hs-chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.hs-more summary { cursor: pointer; font-weight: 650; font-size: .9rem; color: var(--ink-soft); }
.hs-more .hs-f { margin-top: 10px; }
.hs-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hs-go { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; padding: 12px 22px; box-sizing: border-box; text-align: center; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: 700 1.04rem/1.2 var(--sans); cursor: pointer; text-decoration: none; }
.hs-go:hover { background: var(--accent-strong); }
.hs-go:disabled { opacity: .7; cursor: default; }
.hs-go:focus-visible, .hs-sec:focus-visible, .hs-x:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.hs-fine { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.5; text-align: center; }
.hs-fine a { color: inherit; }
.hs-fine .hs-mail { user-select: all; font-weight: 650; color: var(--ink); }
.hs-check { width: 56px; height: 56px; border-radius: 50%; background: var(--sage); color: var(--sage-ink); display: grid; place-items: center; }
.hs-steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
.hs-steps li { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 0 14px; padding-bottom: 16px; counter-increment: s; }
.hs-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-deep); color: var(--ink); font-weight: 700; font-size: .92rem; grid-row: span 2; }
.hs-steps li:first-child::before { background: var(--accent); color: #fff; }
.hs-steps li:not(:last-child)::after { content: ""; position: absolute; left: 16.5px; top: 38px; bottom: 2px; width: 1.5px; background: var(--line); }
.hs-steps b { display: block; font-size: 1rem; }
.hs-steps b em { font-style: normal; font-weight: 600; font-size: .78rem; color: var(--accent); margin-left: 6px; }
.hs-steps span { color: var(--ink-soft); font-size: .92rem; line-height: 1.45; }
.hs-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.hs-acts > * { flex: 1 1 200px; }
.hs-sec { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 700 .98rem/1.2 var(--sans); cursor: pointer; }
.hs-sec:hover { border-color: var(--ink); }
