/* GENERADO por build_assets.py desde src/css/. No editar este archivo. */
    {
      % raw %
    }

    :root {
      --bg: #F1EEE7;
      --surface: #FAF9F6;
      --surface-t: rgba(250, 249, 246, 0);
      --card: #FFFFFF;
      --tint: #F5F3ED;
      --ink: #183050;
      --muted: #5B6B80;
      --hair: rgba(24, 48, 80, .13);
      --hair-2: rgba(24, 48, 80, .07);
      --primary: #0B72A8;
      --on-primary: #FFFFFF;
      --link: #0B72A8;
      --cyan: #00A9E0;
      --cyan-t: #E6F6FC;
      --cyan-m: #BDE7F6;
      --mint: #2E9E6B;
      --mint-t: #E3F5EC;
      --mint-d: #1E6B48;
      --mint-r1: rgba(46, 158, 107, .09);
      --mint-r2: rgba(46, 158, 107, .17);
      --sand-t: #FBF1DE;
      --sand-b: #EFDDB8;
      --sand-ink: #7A4E00;
      --sand-icon: #B26A00;
      --danger: #B4443A;
      --on-danger: #FFFFFF;
      --danger-t: #FBECEA;
      --chip-off: #EFEDE7;
      --sky-top: rgba(0, 169, 224, .18);
      --sky-mid: rgba(0, 169, 224, .07);
      --shadow: 0 1px 2px rgba(24, 48, 80, .06), 0 10px 26px rgba(24, 48, 80, .08);
      --shadow-lg: 0 2px 4px rgba(24, 48, 80, .06), 0 28px 70px rgba(24, 48, 80, .18);
      --glow: 0 8px 20px rgba(11, 114, 168, .30);
      --font-ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
      --font-head: 'Outfit', 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    }

    * {
      box-sizing: border-box
    }

    html {
      -webkit-text-size-adjust: 100%;
      overflow-x: hidden
    }

    body {
      margin: 0;
      background: var(--surface);
      color: var(--ink);
      font: 400 16px/1.45 var(--font-ui);
      -webkit-font-smoothing: antialiased;
      min-height: 100vh;
      overflow-x: hidden
    }

    /* overflow-x:hidden en html Y body convierte al body en un contenedor de scroll que nunca se desplaza, y entonces
   position:sticky (la barra "Continuar") queda pegada al body y no a la pantalla: solo se veía al final de la lista.
   overflow-x:clip recorta igual pero NO crea contenedor de scroll. Los navegadores sin soporte conservan el hidden de arriba. */
    @supports (overflow-x:clip) {
      body {
        overflow-x: clip
      }
    }

    .wash {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 30%, transparent 58%)
    }

    /* Íconos de salud muy tenues sobre el fondo (decorativos; el contenido va encima en .app). */
    .wash::after {
      content: "";
      position: absolute;
      inset: 0;
      background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22320%22 height=%22320%22 viewBox=%220 0 320 320%22 fill=%22none%22 stroke=%22%230B72A8%22 stroke-width=%221.5%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22 opacity=%22.11%22%3E%3Cg transform=%22translate(18 22) rotate(-8 12 12) scale(1.15)%22%3E%3Cpath d=%22M9 3h6v6h6v6h-6v6H9v-6H3V9h6z%22/%3E%3C/g%3E%3Cg transform=%22translate(118 70) rotate(10 12 12) scale(1.2)%22%3E%3Cpath d=%22M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z%22/%3E%3C/g%3E%3Cg transform=%22translate(226 18) rotate(8 12 12) scale(1.2)%22%3E%3Cpath d=%22M11 2v2%22/%3E%3Cpath d=%22M5 2v2%22/%3E%3Cpath d=%22M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1%22/%3E%3Cpath d=%22M8 15a6 6 0 0 0 12 0v-3%22/%3E%3Ccircle cx=%2220%22 cy=%2210%22 r=%222%22/%3E%3C/g%3E%3Cg transform=%22translate(270 120) rotate(-12 12 12) scale(1.1)%22%3E%3Cpath d=%22M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z%22/%3E%3C/g%3E%3Cg transform=%22translate(40 130) rotate(18 12 12) scale(1.15)%22%3E%3Cpath d=%22m10.5 20.5 10-10a4.95 4.95 0 1 0-7-7l-10 10a4.95 4.95 0 1 0 7 7Z%22/%3E%3Cpath d=%22m8.5 8.5 7 7%22/%3E%3C/g%3E%3Cg transform=%22translate(150 160) rotate(-4 12 12) scale(1.35)%22%3E%3Cpath d=%22M22 12h-4l-3 9L9 3l-3 9H2%22/%3E%3C/g%3E%3Cg transform=%22translate(34 238) rotate(-10 12 12) scale(1.15)%22%3E%3Cpath d=%22M7 3C4.8 3 3 4.8 3 7.2c0 3 1.5 4.3 2 7 .4 2 .5 6 2 6 1.3 0 1.2-3.5 2.2-5 .4-.6 1.3-.6 1.6 0 1 1.5.9 5 2.2 5 1.5 0 1.6-4 2-6 .5-2.7 2-4 2-7C17 4.8 15.200 3 13 3c-1.200 0-2 .6-3 .6S8.200 3 7 3z%22 transform=%22translate(2 0)%22/%3E%3C/g%3E%3Cg transform=%22translate(120 262) rotate(12 12 12) scale(1.15)%22%3E%3Cpath d=%22M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z%22/%3E%3C/g%3E%3Cg transform=%22translate(212 232) rotate(-6 12 12) scale(1.15)%22%3E%3Cpath d=%22m18 2 4 4%22/%3E%3Cpath d=%22m17 7 3-3%22/%3E%3Cpath d=%22M19 9 8.7 19.3c-1 1-2.5 1-3.4 0l-.6-.6c-1-1-1-2.5 0-3.4L15 5%22/%3E%3Cpath d=%22m9 11 4 4%22/%3E%3Cpath d=%22m5 19-3 3%22/%3E%3Cpath d=%22m14 4 6 6%22/%3E%3C/g%3E%3Cg transform=%22translate(270 270) rotate(9 12 12) scale(1.1)%22%3E%3Cpath d=%22M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z%22/%3E%3Cpath d=%22M9 12l2 2 4-4%22/%3E%3C/g%3E%3Cg transform=%22translate(196 112) rotate(14 12 12) scale(0.85)%22%3E%3Cpath d=%22M9 3h6v6h6v6h-6v6H9v-6H3V9h6z%22/%3E%3C/g%3E%3Cg transform=%22translate(92 196) rotate(8 12 12) scale(0.85)%22%3E%3Cpath d=%22M12 22a7 7 0 0 0 7-7c0-2-1-3.9-3-5.5s-3.5-4-4-6.5c-.5 2.5-2 4.9-4 6.5C6 11.1 5 13 5 15a7 7 0 0 0 7 7z%22/%3E%3C/g%3E%3C/svg%3E");
      background-size: 320px 320px;
      background-repeat: repeat
    }

    .app {
      position: relative;
      z-index: 1
    }

    button {
      font: inherit;
      color: inherit
    }

    :focus-visible {
      outline: 3px solid var(--cyan);
      outline-offset: 2px
    }

    .ic {
      display: inline-flex;
      flex: none;
      line-height: 0
    }

    h1,
    h2,
    h3,
    p {
      margin: 0
    }

    .sr {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap
    }

    /* ───────── app ───────── */
    .app {
      max-width: 1120px;
      margin: 0 auto
    }

    .inner {
      --gx: 36px;
      padding-inline: var(--gx);
      padding-bottom: 36px
    }

    .hdr {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      align-items: center;
      min-height: 76px;
      margin-inline: calc(var(--gx) * -1);
      padding-inline: var(--gx);
      border-bottom: 1px solid var(--hair-2)
    }

    .logo {
      grid-column: 1;
      justify-self: start;
      display: inline-flex;
      align-items: center;
      background: transparent;
      padding: 0
    }

    .logo img {
      height: 56px;
      width: auto;
      display: block
    }

    .stepper {
      grid-column: 2;
      display: flex;
      align-items: center;
      gap: 10px
    }

    .st {
      display: flex;
      align-items: center;
      gap: 10px;
      background: none;
      border: 0;
      padding: 0;
      font: 600 16px var(--font-head);
      color: var(--muted);
      cursor: default;
      min-height: 44px
    }

    .st .dot {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      border: 1.5px solid var(--hair);
      background: var(--card);
      color: var(--muted)
    }

    .st.is-active {
      color: var(--ink);
      font-weight: 700
    }

    .st.is-active .dot {
      background: var(--primary);
      border-color: var(--primary);
      color: var(--on-primary)
    }

    .st.is-done {
      color: var(--ink);
      cursor: pointer
    }

    .st.is-done .dot {
      background: var(--cyan-t);
      border-color: var(--cyan-m);
      color: var(--link)
    }

    .st-line {
      width: 36px;
      height: 2px;
      border-radius: 2px;
      background: var(--hair);
      transform-origin: left
    }

    .st-line.is-done {
      background: var(--cyan-m)
    }

    .mstep {
      display: none;
      grid-column: 3;
      justify-self: end;
      height: 32px;
      padding: 0 14px;
      border-radius: 16px;
      background: var(--cyan-t);
      color: var(--link);
      font: 700 14px var(--font-ui);
      align-items: center
    }

    .mstep.is-done {
      background: var(--mint-t);
      color: var(--mint-d)
    }

    .pulse {
      display: none;
      position: relative;
      height: 28px;
      margin-top: 14px
    }

    .pl-track {
      position: absolute;
      left: 0;
      right: 0;
      top: 12px;
      height: 3px;
      border-radius: 2px;
      background: var(--hair)
    }

    .pl-fill {
      position: absolute;
      left: 0;
      top: 12px;
      height: 3px;
      border-radius: 2px;
      background: var(--cyan);
      width: var(--p)
    }

    .pl-beat {
      position: absolute;
      top: 0;
      left: max(0px, calc(var(--p) - 58px));
      color: var(--cyan);
      line-height: 0
    }

    .pl-dot {
      position: absolute;
      top: 6px;
      left: calc(var(--p) - 8px);
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: var(--primary);
      box-shadow: 0 0 0 3px var(--surface)
    }

    .pl-end {
      position: absolute;
      top: 2px;
      left: calc(var(--p) - 12px);
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--mint);
      color: #fff;
      display: grid;
      place-items: center
    }

    .hero {
      padding-top: 30px
    }

    .hero h1 {
      font: 700 38px/1.1 var(--font-head);
      letter-spacing: -.012em;
      text-wrap: balance
    }

    .lead {
      margin-top: 8px;
      font-size: 17.5px;
      line-height: 1.4;
      color: var(--muted)
    }

    .sec-h {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin: 28px 0 12px
    }

    .sec-h h2 {
      font: 700 20px/1.2 var(--font-head)
    }

    .arrows {
      display: flex;
      gap: 8px
    }

    .round {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1px solid var(--hair);
      background: var(--card);
      color: var(--ink);
      display: grid;
      place-items: center;
      cursor: pointer
    }

    .carousel {
      display: flex;
      gap: 16px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      padding: 14px 14px 40px;   /* aire para que la sombra y el realce de la tarjeta no se recorten (overflow) */
      margin: -14px -14px -24px;
      scroll-padding-inline: 14px;
      scrollbar-width: none
    }

    .carousel::-webkit-scrollbar {
      display: none
    }

    .ccard {
      scroll-snap-align: start;
      flex: 0 0 calc((100% - 32px) / 3);
      min-width: 250px;
      background: var(--card);
      border: 1px solid var(--hair);
      border-radius: 20px;
      padding: 12px 16px;   /* más compacta (30-nov): antes 16px 20px */
      box-shadow: 0 1px 2px rgba(24, 48, 80, .05), 0 8px 20px rgba(24, 48, 80, .06);
      display: flex;
      flex-direction: column;
      text-align: left
    }

    .ccard .ccat {
      font-size: 13px;
      font-weight: 600;
      line-height: 1.25;
      color: var(--muted);
      overflow-wrap: break-word
    }

    .ccard h3 {
      font: 700 17px/1.25 var(--font-head);
      margin-top: 2px;
      overflow-wrap: break-word;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden
    }

    .ccard .lbl {
      font-size: 13px;
      color: var(--muted);
      margin-top: 2px
    }

    .ccard .when {
      display: flex;
      align-items: center;
      gap: 8px;
      font: 700 20px/1.3 var(--font-head)
    }

    .ccard .when .ic {
      color: var(--sand-icon)
    }

    .ccard .row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-top: auto;
      padding-top: 8px
    }

    /* si un vecino tiene nombre de 2 líneas, los botones quedan alineados abajo */
    .ccard .suc {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      color: var(--muted);
      min-width: 0
    }

    .btn-sm {
      height: 44px;
      padding: 0 18px;
      border-radius: 22px;
      background: var(--primary);
      color: var(--on-primary);
      border: 0;
      font: 700 15.5px var(--font-head);
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      white-space: nowrap
    }

    .panel {
      position: relative;
      display: grid;
      grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) minmax(260px, 340px);
      background: var(--card);
      border: 1px solid var(--hair);
      border-radius: 28px;
      box-shadow: var(--shadow);
      margin-top: 6px
    }

    .col {
      display: flex;
      flex-direction: column;
      min-width: 0
    }

    .col:nth-child(2) {
      background: var(--tint);
      border-radius: 28px 0 0 28px
    }

    .col:nth-child(4) {
      background: var(--tint);
      border-radius: 0 28px 28px 0
    }

    .col+.col {
      border-left: 1px solid var(--hair-2)
    }

    .col-h {
      display: flex;
      align-items: center;
      gap: 12px;
      height: 60px;
      padding: 0 24px;
      font: 700 18px var(--font-head);
      border-bottom: 1px solid var(--hair-2);
      white-space: nowrap
    }

    .col-h .n {
      flex: none;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: var(--chip-off);
      color: var(--muted);
      display: grid;
      place-items: center;
      font: 700 15px var(--font-head)
    }

    .col-h.is-active .n,
    .col-h.is-done .n {
      background: var(--primary);
      color: var(--on-primary)
    }

    .col-b {
      padding: 22px 24px 26px;
      display: flex;
      flex-direction: column;
      gap: 12px
    }

    .panel-progress {
      position: absolute;
      left: 0;
      top: 59px;
      height: 3px;
      border-radius: 0 2px 2px 0;
      background: var(--cyan);
      transition: width .35s ease;
      z-index: 2
    }

    .panel[data-step="2"] .panel-progress {
      width: 46%
    }

    .panel[data-step="3"] .panel-progress {
      width: 82%
    }

    .panel[data-step="4"] .panel-progress {
      width: 100%
    }

    .opts {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px
    }

    .opts.sucopts {
      grid-template-columns: minmax(0, 1fr)
    }

    @media (max-width:640px) {
      .opts {
        grid-template-columns: minmax(0, 1fr)
      }
    }

    .opt-row {
      display: flex;
      align-items: center;
      gap: 12px;
      width: 100%;
      min-height: 68px;
      padding: 0 14px;
      border-radius: 18px;
      background: var(--card);
      border: 1.5px solid var(--hair);
      text-align: left;
      color: var(--ink);
      cursor: pointer
    }

    .opt-row .ob {
      width: 40px;
      height: 40px;
      border-radius: 14px;
      background: var(--cyan-t);
      color: var(--link);
      display: grid;
      place-items: center;
      flex: none
    }

    .opt-row .ot {
      display: flex;
      flex-direction: column;
      min-width: 0
    }

    .opt-row .t {
      font: 700 17px/22px var(--font-head)
    }

    .opt-row .s {
      font-size: 14px;
      line-height: 18px;
      color: var(--muted)
    }

    .opt-row[aria-checked="true"],
    .opt-row[aria-pressed="true"] {
      border: 2px solid var(--cyan);
      background: var(--cyan-t)
    }

    .opt-row[aria-checked="true"] .ob,
    .opt-row[aria-pressed="true"] .ob {
      background: var(--primary);
      color: var(--on-primary)
    }

    .suc-row[aria-pressed="true"]>.ic {
      color: var(--link)
    }

    .field {
      position: relative
    }

    .select {
      width: 100%;
      min-height: 58px;
      border-radius: 16px;
      background: var(--card);
      border: 1.5px solid var(--hair);
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 16px;
      text-align: left;
      color: var(--ink);
      cursor: pointer
    }

    .select>.ic:first-child {
      color: var(--muted)
    }

    .select .txt {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column
    }

    .select .fl {
      font-size: 14px;
      line-height: 16px;
      color: var(--muted)
    }

    .select .fv {
      font: 700 17px/22px var(--font-head);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis
    }

    .select .fv.ph {
      font: 400 17px/22px var(--font-ui);
      color: var(--muted)
    }

    .select[aria-expanded="true"] {
      border: 2px solid var(--cyan);
      box-shadow: 0 0 0 4px var(--cyan-t)
    }

    .field.is-disabled .select {
      opacity: .5;
      cursor: not-allowed
    }

    .pop {
      position: absolute;
      left: 0;
      right: 0;
      top: calc(100% + 6px);
      z-index: 30;
      background: var(--card);
      border: 1px solid var(--hair);
      border-radius: 18px;
      box-shadow: var(--shadow-lg);
      padding: 8px
    }

    .pop .filter {
      display: flex;
      align-items: center;
      gap: 10px;
      height: 46px;
      border: 2px solid var(--primary);
      border-radius: 12px;
      padding: 0 12px;
      color: var(--muted)
    }

    .pop input {
      flex: 1;
      min-width: 0;
      border: 0;
      outline: 0;
      background: transparent;
      font: inherit;
      font-size: 17px;
      color: var(--ink)
    }

    .pop .count {
      padding: 8px 10px 4px;
      font-size: 14px;
      color: var(--muted)
    }

    .pop ul {
      list-style: none;
      margin: 0;
      padding: 0;
      max-height: 224px;
      overflow: auto
    }

    .pop .empty {
      padding: 12px;
      color: var(--muted)
    }

    .opt {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      width: 100%;
      min-height: 44px;
      padding: 4px 12px;
      border-radius: 12px;
      border: 0;
      background: none;
      color: var(--ink);
      font-size: 17px;
      text-align: left;
      cursor: pointer
    }

    .opt small {
      display: block;
      font-size: 14px;
      color: var(--muted)
    }

    .opt:hover,
    .opt:focus-visible {
      background: var(--cyan-t)
    }

    .opt[aria-selected="true"] {
      background: var(--cyan-t);
      font-weight: 700
    }

    .opt .ic {
      color: var(--link)
    }

    .segc {
      display: flex;
      padding: 4px;
      border-radius: 24px;
      background: var(--chip-off);
      height: 48px
    }

    .segc button {
      flex: 1;
      border: 0;
      background: none;
      border-radius: 20px;
      font: 700 15.5px var(--font-head);
      color: var(--muted);
      cursor: pointer
    }

    .segc button[aria-pressed="true"] {
      background: var(--primary);
      color: var(--on-primary)
    }

    .lab {
      font-weight: 700;
      font-size: 14px;
      margin-top: 4px
    }

    .input {
      display: flex;
      align-items: center;
      gap: 12px;
      min-height: 54px;
      border-radius: 16px;
      border: 1.5px solid var(--hair);
      background: var(--card);
      padding: 0 16px;
      color: var(--muted)
    }

    .input input,
    .input select {
      flex: 1;
      min-width: 0;
      border: 0;
      outline: 0;
      background: transparent;
      font: inherit;
      font-size: 17px;
      color: var(--ink);
      min-height: 50px
    }

    .input:focus-within {
      border: 2px solid var(--cyan);
      box-shadow: 0 0 0 4px var(--cyan-t)
    }

    /* país del teléfono: se ve solo "CL +56 ▾"; el <select> nativo (con los nombres completos) va encima, invisible, y recibe el toque */
    .paiswrap {
      position: relative;
      flex: none;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding-right: 12px;
      border-right: 1px solid var(--hair);
      color: var(--ink);
      font-weight: 700;
      font-size: 15.5px;
      white-space: nowrap
    }

    .paiswrap .ic {
      color: var(--muted)
    }

    .input .paiswrap select.pais {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      min-height: 0;
      opacity: 0;
      cursor: pointer;
      font-size: 16px
    }

    .input.is-ok {
      border-color: var(--mint)
    }

    .input.is-bad {
      border-color: var(--danger)
    }

    .input .okdot {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: var(--mint);
      color: #fff;
      display: grid;
      place-items: center;
      flex: none
    }

    .hint {
      font-size: 14px;
      line-height: 1.35;
      color: var(--muted);
      min-height: 20px
    }

    .aviso-contacto {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      margin: 6px 0 0;
      padding: 11px 13px;
      border-radius: 12px;
      background: var(--cyan-t);
      border: 1px solid var(--cyan-m);
      font-size: 14px;
      line-height: 1.4;
      font-weight: 600;
      color: var(--ink)
    }

    .aviso-contacto svg {
      flex: none;
      margin-top: 1px;
      color: var(--primary)
    }

    .hint.is-ok {
      color: var(--mint-d);
      font-weight: 600
    }

    .hint.is-bad {
      color: var(--danger);
      font-weight: 600
    }

    .hint.is-need {
      color: var(--link);
      font-weight: 600
    }

    .linkbtn {
      background: none;
      border: 0;
      padding: 0;
      min-height: 32px;
      color: var(--link);
      font: 700 14px var(--font-ui);
      cursor: pointer;
      text-decoration: underline;
      text-underline-offset: 3px;
      text-align: left
    }

    .cta {
      height: 54px;
      border-radius: 27px;
      border: 0;
      background: var(--primary);
      color: var(--on-primary);
      font: 700 17.5px var(--font-head);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      cursor: pointer;
      box-shadow: var(--glow);
      width: 100%;
      padding: 0 24px
    }

    .cta:disabled {
      opacity: .42;
      box-shadow: none;
      cursor: not-allowed
    }

    .spin {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 3px solid rgba(255, 255, 255, .4);
      border-top-color: #fff;
      animation: spin .8s linear infinite
    }

    /* ───────── resultados ───────── */
    .rtop {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      padding-top: 28px
    }

    .rtop h1 {
      font: 700 34px/1.1 var(--font-head);
      letter-spacing: -.01em
    }

    .chips {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 12px
    }

    .chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 36px;
      padding: 0 14px;
      border-radius: 18px;
      background: var(--card);
      border: 1px solid var(--hair);
      font-size: 15px;
      font-weight: 600
    }

    .chip .ic {
      color: var(--link)
    }

    .daybar {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 4px 2px 10px;
      margin-top: 18px;
      scrollbar-width: none
    }

    .daybar::-webkit-scrollbar {
      display: none
    }

    .daybar-row {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 18px
    }

    .daybar-row .daybar {
      flex: 1;
      min-width: 0;
      margin-top: 0
    }

    .daybar-arrows {
      flex: none
    }

    /* en celular se ocultan con la misma regla .arrows{display:none} del carrusel (línea ~320): mismo criterio en toda la app */
    .day {
      flex: none;
      min-height: 44px;
      padding: 0 16px;
      border-radius: 22px;
      background: var(--card);
      border: 1px solid var(--hair);
      font: 700 15px var(--font-head);
      color: var(--ink);
      cursor: pointer
    }

    .day[aria-pressed="true"] {
      background: var(--primary);
      border-color: var(--primary);
      color: var(--on-primary)
    }

    .daybar-mes {
      flex: none;
      display: flex;
      align-items: center;
      padding: 0 10px 0 2px;
      font: 700 12px var(--font-head);
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .03em;
      border-right: 1px solid var(--hair)
    }

    .sortl {
      display: flex;
      align-items: center;
      gap: 8px;
      margin: 6px 0 14px;
      font-size: 14px;
      color: var(--muted)
    }

    .indic {
      margin-top: 18px;
      border-radius: 18px;
      background: #FFF8E6;
      border: 2px solid #F5B301;
      text-align: left;
      overflow: hidden
    }

    .indic-h {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 18px;
      background: #F5B301;
      color: #3D2600
    }

    .indic-h h2 {
      font: 800 18px/1.2 var(--font-head);
      color: #3D2600
    }

    .indic-t {
      margin: 0;
      padding: 14px 18px 16px;
      font-size: 16px;
      line-height: 1.55;
      color: var(--ink);
      white-space: pre-line
    }

    .box .indic {
      margin-top: 0
    }

    .modal-ind {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom))
    }

    .dlg-indic {
      display: flex;
      flex-direction: column;
      max-height: 100%;
      padding: 0;
      overflow: hidden;
      border: 3px solid #F5B301
    }

    .dlg-indic-h {
      flex: none;
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 18px 22px;
      background: #F5B301;
      color: #3D2600
    }

    .dlg-indic-ic {
      flex: none;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: #fff;
      color: #B26A00;
      display: grid;
      place-items: center
    }

    .dlg-indic-h h2 {
      font: 800 22px/1.15 var(--font-head);
      color: #3D2600
    }

    .dialog .dlg-indic-ex {
      margin-top: 2px;
      font-weight: 700;
      color: #5E3B00
    }

    .dlg-indic-b {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      overscroll-behavior: contain;
      padding: 18px 22px;
      background: #FFF8E6
    }

    .dlg-indic-b:focus-visible {
      outline: 3px solid #8F5400;
      outline-offset: -3px
    }

    .dlg-indic-f {
      flex: none;
      padding: 12px 22px 18px;
      background: #FFF8E6;
      border-top: 1px solid #EFDDB8;
      box-shadow: 0 -8px 14px -10px rgba(61, 38, 0, .35)
    }

    .dialog .dlg-indic-mas {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin: 0 0 10px;
      font-size: 14px;
      font-weight: 700;
      color: #8F5400
    }

    .dlg-indic.hay-mas .dlg-indic-mas {
      display: flex
    }

    .indic-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 12px
    }

    .indic-list li {
      position: relative;
      padding-left: 28px;
      font-size: 17px;
      line-height: 1.45;
      color: var(--ink)
    }

    .indic-list li::before {
      content: "";
      position: absolute;
      left: 3px;
      top: .5em;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #F5B301;
      border: 2px solid #B26A00;
      box-sizing: border-box
    }

    .btn-warn {
      display: block;
      width: 100%;
      height: 52px;
      border-radius: 26px;
      border: 0;
      background: #8F5400;
      color: #fff;
      font: 700 17px var(--font-head);
      cursor: pointer
    }

    .btn-warn:active {
      transform: scale(.98)
    }

    @media (max-height:520px) {
      .dlg-indic-h {
        padding: 10px 18px
      }

      .dlg-indic-ic {
        width: 36px;
        height: 36px
      }

      .dlg-indic-h h2 {
        font-size: 18px
      }

      .dlg-indic-b {
        padding: 12px 18px
      }

      .indic-list {
        gap: 8px
      }

      .indic-list li {
        font-size: 16px
      }

      .dlg-indic-f {
        padding: 10px 18px 12px
      }

      .btn-warn {
        height: 46px
      }
    }

    .notice {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      padding: 14px 16px;
      border-radius: 16px;
      margin-top: 18px;
      background: var(--sand-t);
      border: 1px solid var(--sand-b);
      color: var(--ink);
      font-size: 15.5px
    }

    .notice .ic {
      color: var(--sand-icon);
      margin-top: 2px
    }

    .notice.is-info {
      background: var(--cyan-t);
      border-color: var(--cyan-m)
    }

    .notice.is-info .ic {
      color: var(--link)
    }

    .notice .x {
      margin-left: auto;
      background: none;
      border: 0;
      width: 36px;
      height: 36px;
      margin-block: -8px;
      margin-right: -8px;
      color: var(--muted);
      cursor: pointer;
      display: grid;
      place-items: center;
      flex: none
    }

    .rlist {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      align-items: start
    }

    .rcard {
      background: var(--card);
      border: 1px solid var(--hair);
      border-radius: 22px;
      padding: 18px;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      gap: 14px
    }

    .rh {
      display: flex;
      align-items: center;
      gap: 16px
    }

    .rh .who {
      min-width: 0
    }

    .pn {
      font: 700 18px/1.2 var(--font-head)
    }

    .meta {
      font-size: 14px;
      color: var(--muted);
      margin-top: 2px
    }

    .av {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      background: var(--primary);
      color: #fff;
      display: grid;
      place-items: center;
      font: 700 18px var(--font-head);
      flex: none;
      position: relative;
      overflow: hidden
    }

    .av::after {
      content: "";
      position: absolute;
      left: 5px;
      top: 4px;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .17)
    }

    .av span {
      position: relative
    }

    /* fotos de los profesionales: un poco más grandes donde se elige la hora (las originales son de ~128px: 64px es lo máximo que se ve nítido en pantallas 2x),
   con un anillo blanco fino y una sombra suave para darles presencia sin recargar.
   margin:4px = lo que ocupa el anillo hacia afuera: así queda alineado con el borde del contenido y el texto conserva su aire */
    .rh .av {
      width: 64px;
      height: 64px;
      margin: 4px;
      box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--hair), 0 6px 14px rgba(24, 48, 80, .14)
    }

    .who2 .av {
      width: 60px;
      height: 60px;
      margin: 4px;
      box-shadow: 0 0 0 3px var(--card), 0 0 0 4px var(--hair), 0 5px 12px rgba(24, 48, 80, .12)
    }

    .slots {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 8px
    }

    .slots.open {
      max-height: 336px;
      overflow-y: auto;
      padding-right: 4px;
      scroll-behavior: smooth
    }

    .slots.one {
      grid-template-columns: minmax(0, 1fr)
    }

    .slots.one .slot {
      flex-direction: row;
      gap: 8px;
      min-height: 52px
    }

    .slots.one .slot b::after {
      content: "·";
      margin-left: 8px
    }

    .slot {
      min-height: 56px;
      border-radius: 14px;
      border: 1px solid var(--hair);
      background: var(--card);
      color: var(--ink);
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 4px
    }

    .slot b {
      font-weight: 400;
      font-size: 14px;
      color: var(--muted);
      line-height: 18px
    }

    .slot em {
      font: 700 18px/24px var(--font-head);
      font-style: normal
    }

    .slot[aria-pressed="true"] {
      background: var(--primary);
      border-color: var(--primary);
      box-shadow: var(--glow)
    }

    .slot[aria-pressed="true"] b,
    .slot[aria-pressed="true"] em {
      color: #fff
    }

    .more {
      align-self: flex-start
    }

    .empty-card {
      background: var(--card);
      border: 1px dashed var(--hair);
      border-radius: 22px;
      padding: 34px 24px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px
    }

    .empty-card .ic {
      color: var(--muted)
    }

    .empty-card h3 {
      font: 700 20px var(--font-head)
    }

    .loader {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      padding: 34px 0 8px;
      color: var(--muted)
    }

    .loader svg {
      max-width: 100%
    }

    .lb {
      fill: none;
      stroke: var(--hair);
      stroke-width: 3;
      stroke-linecap: round;
      stroke-linejoin: round
    }

    .lm {
      fill: none;
      stroke: var(--cyan);
      stroke-width: 3;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 22 78;
      animation: trav 1.4s linear infinite
    }

    .skgrid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      width: 100%;
      margin-top: 14px
    }

    .sk {
      position: relative;
      overflow: hidden;
      border-radius: 22px;
      height: 150px;
      background: var(--card);
      border: 1px solid var(--hair)
    }

    .sk::after {
      content: "";
      position: absolute;
      inset: 0;
      transform: translateX(-100%);
      background: linear-gradient(90deg, transparent, var(--hair-2), transparent);
      animation: sh 1.4s infinite
    }

    .bar {
      position: sticky;
      bottom: 0;
      z-index: 20;
      margin-top: 18px;
      margin-inline: calc(var(--gx) * -1);
      padding: 30px var(--gx) max(16px, env(safe-area-inset-bottom));
      background: linear-gradient(to bottom, var(--surface-t), var(--surface) 26px)
    }

    .bar-in {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      background: var(--card);
      border: 1px solid var(--hair);
      border-radius: 24px;
      padding: 12px 12px 12px 22px;
      box-shadow: var(--shadow-lg)
    }

    .bar-in .sel {
      min-width: 0;
      font-size: 15.5px
    }

    .bar-in .sel b {
      display: block;
      font: 700 18px/1.25 var(--font-head)
    }

    .bar-in .sel span {
      color: var(--muted)
    }

    .bar-in .cta {
      width: auto;
      min-width: 210px
    }

    /* ───────── confirmación ───────── */
    .ctop {
      padding-top: 26px
    }

    .back {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 40px;
      padding: 0 16px;
      border-radius: 20px;
      background: var(--cyan-t);
      border: 1.5px solid var(--cyan-m);
      color: var(--link);
      font: 700 15px var(--font-ui);
      cursor: pointer;
      transition: background-color .16s ease, border-color .16s ease
    }

    .back:hover {
      background: var(--cyan-m);
      border-color: var(--link)
    }

    .ctop h1 {
      font: 700 34px/1.1 var(--font-head);
      letter-spacing: -.01em;
      margin-top: 4px
    }

    .cgrid {
      display: grid;
      grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
      gap: 24px;
      align-items: start;
      margin-top: 22px
    }

    .box {
      background: var(--card);
      border: 1px solid var(--hair);
      border-radius: 24px;
      padding: 22px;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      gap: 14px
    }

    .box h2 {
      font: 700 19px/1.2 var(--font-head)
    }

    .bigdt {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 12px
    }

    .bigdt .d {
      font: 700 30px/1.05 var(--font-head)
    }

    .bigdt .m {
      font-size: 15px;
      color: var(--muted);
      margin-top: 4px
    }

    .bigdt .t {
      font: 700 46px/1 var(--font-head);
      color: var(--link);
      text-align: right
    }

    .bigdt .t small {
      display: block;
      font: 400 14px var(--font-ui);
      color: var(--muted);
      margin-top: 2px
    }

    .hr {
      height: 1px;
      background: var(--hair-2)
    }

    .who2 {
      display: flex;
      align-items: center;
      gap: 12px
    }

    .found {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 14px;
      border-radius: 14px;
      background: var(--mint-t);
      color: var(--mint-d);
      font-weight: 700;
      font-size: 15px
    }

    .fgrid {
      display: flex;
      flex-direction: column;
      gap: 6px
    }

    .err {
      font-size: 14px;
      color: var(--danger);
      font-weight: 600
    }

    .skline {
      height: 18px;
      border-radius: 9px;
      background: var(--hair-2);
      position: relative;
      overflow: hidden
    }

    .skline::after {
      content: "";
      position: absolute;
      inset: 0;
      transform: translateX(-100%);
      background: linear-gradient(90deg, transparent, var(--hair), transparent);
      animation: sh 1.4s infinite
    }

    /* ───────── listo ───────── */
    .done {
      max-width: 520px;
      margin: 0 auto;
      padding-top: 26px;
      text-align: center
    }

    .okmark {
      position: relative;
      width: 132px;
      height: 132px;
      margin: 6px auto 4px;
      animation: pop .55s cubic-bezier(.2, .9, .3, 1.2) both
    }

    .okmark i {
      position: absolute;
      border-radius: 50%
    }

    .okmark .r1 {
      inset: 0;
      background: var(--mint-r1)
    }

    .okmark .r2 {
      inset: 14px;
      background: var(--mint-r2)
    }

    .okmark .r3 {
      inset: 28px;
      background: var(--mint);
      color: #fff;
      display: grid;
      place-items: center
    }

    .done h1 {
      font: 700 32px/1.1 var(--font-head);
      margin-top: 10px
    }

    .done .lead {
      margin-top: 6px
    }

    .ticket {
      position: relative;
      text-align: left;
      background: var(--card);
      border: 1px solid var(--hair);
      border-radius: 26px;
      box-shadow: var(--shadow);
      padding: 22px;
      margin-top: 24px
    }

    .perf {
      position: relative;
      margin: 18px -22px;
      border-top: 2px dotted var(--hair)
    }

    .perf::before,
    .perf::after {
      content: "";
      position: absolute;
      top: -14px;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: var(--surface)
    }

    .perf::before {
      left: -14px
    }

    .perf::after {
      right: -14px
    }

    .code-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px
    }

    .code-row .k {
      font-size: 14px;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--muted)
    }

    .code {
      font: 700 34px/1.1 var(--font-head);
      letter-spacing: .1em;
      margin-top: 4px;
      font-variant-numeric: tabular-nums
    }

    .copy {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      border: 0;
      background: var(--cyan-t);
      color: var(--link);
      display: grid;
      place-items: center;
      cursor: pointer;
      flex: none
    }

    .done-act {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      margin-top: 22px
    }

    .done-act .cta {
      max-width: 420px
    }

    .cta.is-ok {
      background: var(--mint);
      box-shadow: none
    }

    .btn-quiet {
      background: none;
      border: 0;
      min-height: 44px;
      padding: 0 12px;
      font: 700 15.5px var(--font-ui);
      color: var(--danger);
      cursor: pointer
    }

    .btn-quiet:disabled { opacity: .6; cursor: wait }
    .btn-quiet .spin { display: inline-block; width: 16px; height: 16px; border-width: 2.5px; vertical-align: -3px;
      border-color: rgba(180, 35, 24, .25); border-top-color: var(--danger) }

    .btn-quiet.is-plain {
      color: var(--link)
    }

    /* ───────── modal y avisos ───────── */
    .modal {
      position: fixed;
      inset: 0;
      display: grid;
      place-items: center;
      background: rgba(10, 20, 34, .5);
      z-index: 100;
      padding: 16px;
      grid-template-columns: minmax(0, 1fr);   /* sin esto el contenido ancho (un select) ensancha la columna y el cuadro se sale de la pantalla */
      overflow-y: auto
    }

    .dialog {
      justify-self: center;
      max-width: 100%;
      width: min(420px, 100%);
      background: var(--card);
      border-radius: 24px;
      padding: 24px;
      box-shadow: var(--shadow-lg)
    }

    .dialog h2 {
      font: 700 22px/1.2 var(--font-head)
    }

    .dialog p {
      margin-top: 8px;
      color: var(--muted)
    }

    .dlg-act {
      display: flex;
      gap: 10px;
      justify-content: flex-end;
      margin-top: 20px;
      flex-wrap: wrap
    }

    /* modales de confirmación con dos botones del mismo ancho, lado a lado (apilados en pantallas angostas) */
    .dialog.dlg-wide {
      width: min(520px, 100%)
    }

    .dlg-act.dos {
      flex-wrap: wrap
    }

    /* cada botón mide lo que pide su texto (sin recortarlo); si no caben lado a lado, pasan a otra línea */
    .dlg-act.dos > button {
      flex: 1 1 auto;
      min-width: max-content;
      white-space: nowrap;
      justify-content: center
    }

    @media (max-width: 440px) {
      .dlg-act.dos {
        flex-direction: column-reverse
      }

      .dlg-act.dos > button {
        min-height: 48px;
        font-size: 16px
      }
    }

    .dialog select,
    .dialog .input {
      max-width: 100%;
      min-width: 0
    }

    .btn-danger {
      height: 48px;
      border-radius: 24px;
      border: 0;
      background: var(--danger);
      color: var(--on-danger);
      font: 700 16px var(--font-head);
      padding: 0 22px;
      cursor: pointer
    }

    .toasts {
      position: fixed;
      left: 50%;
      bottom: calc(20px + env(safe-area-inset-bottom, 0px));
      transform: translateX(-50%);
      z-index: 120;
      display: flex;
      flex-direction: column;
      gap: 8px;
      align-items: center;
      pointer-events: none;
      width: max-content;
      max-width: calc(100vw - 32px)
    }

    .toast {
      background: var(--ink);
      color: var(--bg);
      padding: 12px 18px;
      border-radius: 14px;
      font-weight: 600;
      box-shadow: var(--shadow-lg);
      animation: rise .3s ease both
    }

    .toast.is-out {
      animation: rise .3s ease reverse both;   /* la misma animación de entrada, al revés */
      pointer-events: none
    }

    .toast.is-danger {
      background: var(--danger);
      color: var(--on-danger);
      pointer-events: auto;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 14px
    }

    .toast.is-danger .ic {
      flex: none
    }

    .toast-x {
      display: flex;
      flex: none;
      opacity: .8
    }

    @keyframes spin {
      to {
        transform: rotate(360deg)
      }
    }

    @keyframes sh {
      to {
        transform: translateX(100%)
      }
    }

    @keyframes trav {
      from {
        stroke-dashoffset: 100
      }

      to {
        stroke-dashoffset: 0
      }
    }

    @keyframes pop {
      0% {
        transform: scale(.6);
        opacity: 0
      }

      70% {
        transform: scale(1.06)
      }

      100% {
        transform: scale(1);
        opacity: 1
      }
    }

    @keyframes rise {
      from {
        transform: translateY(10px);
        opacity: 0
      }

      to {
        transform: none;
        opacity: 1
      }
    }

    /* ───────── versión celular (según el ancho de la app, no de la ventana) ───────── */
    @media (max-width: 780px) {
      .inner {
        --gx: 20px
      }

      .hdr {
        grid-template-columns: 1fr auto;
        min-height: 72px
      }

      .stepper {
        display: none
      }

      .mstep {
        display: flex;
        grid-column: 2
      }

      .pulse {
        display: block
      }

      .hero {
        padding-top: 20px
      }

      .hero h1 {
        font-size: 28px
      }

      .lead {
        font-size: 16px
      }

      .sec-h {
        margin-top: 22px
      }

      .arrows {
        display: none
      }

      .carousel {
        margin-inline: calc(var(--gx) * -1);
        padding-inline: var(--gx);
        scroll-padding-inline: var(--gx);
        gap: 12px
      }

      .ccard,
      .carousel .skc {
        flex: 0 0 262px;
        min-width: 0
      }

      .panel {
        display: flex;
        flex-direction: column;
        gap: 22px;
        border: 0;
        box-shadow: none;
        background: transparent;
        border-radius: 0;
        margin-top: 22px
      }

      .panel-progress {
        display: none
      }

      .col:nth-child(2),
      .col:nth-child(4) {
        background: transparent;
        border-radius: 0
      }

      .col+.col {
        border-left: 0
      }

      .col-h {
        height: auto;
        padding: 0;
        border: 0;
        font-size: 17px
      }

      .col-b {
        padding: 12px 0 0
      }

      .rtop h1,
      .ctop h1 {
        font-size: 28px
      }

      .rlist,
      .skgrid {
        grid-template-columns: minmax(0, 1fr)
      }

      .cgrid {
        grid-template-columns: minmax(0, 1fr)
      }

      /* con 1fr a secas la columna crecía al ancho del contenido y la tarjeta salía cortada a la derecha */
      .bar-in {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 10px
      }

      .bar-in .cta {
        width: 100%;
        min-width: 0
      }

      .bigdt {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px
      }

      .bigdt .t {
        text-align: left;
        font-size: 36px
      }
    }

    @media (prefers-reduced-motion: reduce) {

      *,
      *::before,
      *::after {
        animation: none !important;
        transition: none !important
      }
    }


    /* ───────── transición entre pasos del asistente ───────── */
    .app {
      position: relative
    }

    .vt-out-fwd,
    .vt-out-back {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      pointer-events: none
    }

    .vt-out-fwd {
      animation: vtOutFwd .22s ease forwards
    }

    .vt-out-back {
      animation: vtOutBack .22s ease forwards
    }

    .vt-in-fwd {
      animation: vtInFwd .3s cubic-bezier(.22, .8, .25, 1) both
    }

    .vt-in-back {
      animation: vtInBack .3s cubic-bezier(.22, .8, .25, 1) both
    }

    @keyframes vtOutFwd {
      to {
        opacity: 0;
        transform: translateX(-14px)
      }
    }

    @keyframes vtOutBack {
      to {
        opacity: 0;
        transform: translateX(14px)
      }
    }

    @keyframes vtInFwd {
      from {
        opacity: 0;
        transform: translateX(14px)
      }
    }

    @keyframes vtInBack {
      from {
        opacity: 0;
        transform: translateX(-14px)
      }
    }

    /* ───────── buscador protagonista ───────── */
    .searchsec {
      margin-top: 22px
    }

    .searchfield {
      position: relative;
      height: 58px;
      border-radius: 29px;
      background: var(--card);
      border: 2px solid var(--hair);
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 18px;
      box-shadow: var(--shadow)
    }

    .searchfield:focus-within {
      border-color: var(--cyan);
      box-shadow: 0 0 0 4px var(--cyan-t)
    }

    .searchfield .ic {
      color: var(--muted)
    }

    .searchbox {
      flex: 1;
      min-width: 0;
      border: 0;
      outline: 0;
      background: transparent;
      font: inherit;
      font-size: 17px;
      color: var(--ink)
    }

    .searchbox::placeholder {
      color: var(--muted)
    }

    .qclear {
      flex: none;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 0;
      background: var(--chip-off);
      color: var(--muted);
      display: grid;
      place-items: center;
      cursor: pointer
    }

    .searchpop {
      left: 0;
      right: 0;
      top: calc(100% + 8px)
    }

    .qopt small {
      color: var(--muted)
    }

    .qbadge {
      flex: none;
      font-size: 12px;
      font-weight: 700;
      color: var(--link);
      background: var(--cyan-t);
      border-radius: 10px;
      padding: 3px 9px;
      text-transform: uppercase;
      letter-spacing: .02em
    }

    /* ───────── categorías orientadas al paciente ───────── */
    .sec-title {
      font: 700 20px/1.2 var(--font-head);
      margin: 28px 0 12px
    }

    .catgrid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px
    }

    .catcard {
      text-align: left;
      background: var(--card);
      border: 1.5px solid var(--hair);
      border-radius: 20px;
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      cursor: pointer;
      box-shadow: var(--shadow)
    }

    .catcard .ic {
      color: var(--link)
    }

    .catlabel {
      font: 700 16px/1.25 var(--font-head)
    }

    .catdesc {
      font-size: 13.5px;
      line-height: 1.35;
      color: var(--muted)
    }

    .skc.catskc {
      height: 112px;
      min-width: 0;
      border-radius: 20px
    }

    /* ───────── pasos de atención / sucursal / identificación ───────── */
    .boxh {
      font: 700 19px/1.2 var(--font-head)
    }

    .crumb {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap
    }

    .boxk {
      font-size: 13px;
      font-weight: 700;
      letter-spacing: .04em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 4px
    }

    .empty-acts {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
      margin-top: 6px
    }

    .infolink {
      align-self: flex-start;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      min-height: 36px;
      padding: 0;
      background: none;
      border: 0;
      color: var(--link);
      font: 700 14px var(--font-ui);
      cursor: pointer
    }

    .modal-sheet {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom))
    }

    .dlg-sheet {
      display: flex;
      flex-direction: column;
      width: min(520px, 100%);
      max-height: 100%;
      padding: 0;
      overflow: hidden
    }

    .dlg-sheet-h {
      flex: none;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px 12px 16px 20px;
      border-bottom: 1px solid var(--hair)
    }

    .dlg-sheet-h .wh {
      flex: 1;
      min-width: 0
    }

    .dlg-sheet-x {
      flex: none;
      width: 44px;
      height: 44px;
      border: 0;
      border-radius: 50%;
      background: none;
      color: var(--muted);
      display: grid;
      place-items: center;
      cursor: pointer
    }

    .dlg-sheet-b {
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto;
      overscroll-behavior: contain;
      padding: 18px 20px 22px;
      display: flex;
      flex-direction: column;
      gap: 14px
    }

    .dialog .dlg-sheet-b p {
      margin: 0;
      font-size: 16px;
      line-height: 1.5;
      color: var(--ink)
    }

    /* "tarjetas" dentro de la ficha del profesional (Edad de atención / Lugar de atención / Información
   adicional) — mismos tokens de color y radios que el resto de la app, nada nuevo. */
    .infocard {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 14px;
      border-radius: 16px;
      background: var(--card);
      border: 1px solid var(--hair)
    }

    .infocard .ob {
      width: 40px;
      height: 40px;
      border-radius: 14px;
      background: var(--cyan-t);
      color: var(--link);
      display: grid;
      place-items: center;
      flex: none
    }

    .infocard .ic-b {
      min-width: 0
    }

    .infocard .ic-t {
      font-size: 13px;
      font-weight: 700;
      color: var(--muted);
      margin-bottom: 2px
    }

    .infocard .ic-v {
      font-size: 15px;
      line-height: 1.4;
      color: var(--ink)
    }

    .infocard .ic-v .ic-sub {
      font-size: 14px;
      color: var(--muted);
      margin-top: 2px
    }

    .dlg-sheet-b:focus-visible {
      outline: 3px solid var(--cyan);
      outline-offset: -3px
    }

    @media (max-width:640px) {
      .modal-sheet {
        align-items: flex-end;
        padding: 0
      }

      .dlg-sheet {
        width: 100%;
        max-height: 88%;
        border-radius: 24px 24px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
        animation: sheetUp .28s cubic-bezier(.2, .8, .2, 1) both
      }
    }

    @keyframes sheetUp {
      from {
        transform: translateY(28px);
        opacity: 0
      }

      to {
        transform: none;
        opacity: 1
      }
    }

    /* Las tarjetas de pasos consecutivas (atención elegida → dónde → quién) no tenían separación y se veían pegadas. */
    .inner > .box + .box {
      margin-top: 14px
    }

    .stepbox-h {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px
    }

    .stepbox-k {
      font-size: 13px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: .04em
    }

    .stepbox-hora {
      align-self: flex-start;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 9px 14px;
      border-radius: 14px;
      background: var(--cyan-t);
      border: 1px solid var(--cyan-m);
      font-size: 15px;
      color: var(--ink)
    }

    .stepbox-hora .ic {
      color: var(--link)
    }

    .stepbox-h > div:first-child {
      min-width: 0;
      flex: 1 1 auto
    }

    .stepbox-v {
      font: 700 18px/1.3 var(--font-head);
      margin-top: 2px;
      overflow-wrap: anywhere
    }

    /* ───────── observaciones del profesional (resumen corto + detalle expandible) ───────── */
    .cmtwrap {
      display: flex;
      flex-direction: column;
      gap: 6px
    }

    /* texto del profesional en la tarjeta (completo, también se ve en el modal) */
    .cmt-info {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      margin-top: 4px;
      padding: 10px 12px;
      background: var(--cyan-t);
      border: 1px solid var(--cyan-m);
      border-radius: 12px;
      color: var(--ink)
    }

    .cmt-info svg {
      flex: none;
      margin-top: 1px;
      color: var(--primary)
    }

    .cmt-info span {
      font: 600 14px/1.45 var(--font-ui);
      overflow-wrap: anywhere
    }

    .details.inline {
      max-width: none;
      margin: 0
    }

    .details.inline summary {
      min-height: 36px;
      font-size: 14px
    }

    .details.inline .box {
      margin-top: 8px;
      padding: 14px 16px
    }

    .infobox p {
      font-size: 14px;
      line-height: 1.5;
      color: var(--ink);
      white-space: pre-line;
      margin: 0
    }

    /* ───────── ver más horarios ───────── */
    .more {
      align-self: flex-start;
      background: none;
      border: 0;
      padding: 0;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 1px;
      min-height: 32px
    }

    .morecount {
      font-size: 12.5px;
      color: var(--muted)
    }

    /* ───────── añadidos de la versión real ───────── */
    .avimg {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: 50% 18%;
      border-radius: 50%;
      z-index: 1
    }

    /* las fotos son retratos: se encuadra hacia arriba para que la cara quede dentro del círculo */
    .cmt {
      margin-top: 2px;
      font-size: 14px;
      font-weight: 700;
      color: var(--sand-ink);
      line-height: 1.3
    }

    .addr {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 14px;
      color: var(--muted)
    }

    .errnote {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      padding: 14px 16px;
      border-radius: 16px;
      margin-top: 18px;
      background: var(--danger-t);
      border: 1px solid var(--danger);
      color: var(--ink);
      font-size: 15.5px
    }

    .errnote .ic {
      color: var(--danger);
      margin-top: 2px
    }

    .errnote .acts {
      display: flex;
      flex-wrap: wrap;
      gap: 6px 16px;
      margin-top: 6px
    }

    .skc {
      flex: 0 0 calc((100% - 40px) / 3);
      min-width: 250px;
      height: 158px;
      border-radius: 22px;
      background: var(--card);
      border: 1px solid var(--hair);
      box-shadow: var(--shadow);
      position: relative;
      overflow: hidden
    }

    .skc {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 18px
    }

    .skc .skecg {
      display: block;
      width: 100%
    }

    .skc .skecg svg {
      display: block;
      width: 100%;
      height: auto
    }

    .skc .lb,
    .skc .lm {
      stroke-width: 4
    }

    .hint-card {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px 18px;
      border-radius: 20px;
      background: var(--card);
      border: 1px dashed var(--hair);
      color: var(--muted)
    }

    .hint-card .ic {
      color: var(--link)
    }

    .dl {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      gap: 6px 16px;
      margin: 0;
      font-size: 15px
    }

    .dl dt {
      color: var(--muted)
    }

    .dl dd {
      margin: 0;
      font-weight: 600;
      word-break: break-word
    }

    .details {
      max-width: 520px;
      margin: 18px auto 0;
      text-align: left
    }

    .details summary {
      cursor: pointer;
      min-height: 44px;
      display: flex;
      align-items: center;
      font-weight: 700;
      color: var(--link)
    }

    .details .box {
      margin-top: 6px
    }

    .field.is-loading .select {
      opacity: .7
    }

    @media (min-width:781px) {
      .carousel .skc:nth-child(n+4) {
        display: block
      }
    }

    /* ───────── escritorio compacto (3-oct): en pantallas de baja resolución (ej.
   1366×768) todo se veía demasiado grande — el único ajuste que había para
   >780px era puramente de ancho, nunca de tamaño. Mismo criterio en toda la
   pantalla: letras y relleno un poco más chicos, y el grid de categorías pasa
   de 3 a 4 columnas (menos scroll vertical, igual de legible). */
    @media (min-width:781px) {
      .inner {
        --gx: 28px
      }

      .hero h1 {
        font-size: 30px
      }

      .rtop h1,
      .ctop h1 {
        font-size: 28px
      }

      .lead {
        font-size: 16px
      }

      .sec-title,
      .sec-h h2 {
        font-size: 18px
      }

      .catgrid {
        grid-template-columns: repeat(4, minmax(0, 1fr))
      }

      .catcard {
        padding: 14px
      }

      .catlabel {
        font-size: 15px
      }
    }

    .nojs {
      max-width: 560px;
      margin: 40px auto;
      padding: 20px;
      text-align: center;
      color: var(--ink)
    }

    .btn-ghost {
      height: 44px;
      border-radius: 22px;
      border: 1.5px solid var(--hair);
      background: var(--card);
      color: var(--ink);
      font: 700 15px var(--font-head);
      padding: 0 20px;
      cursor: pointer
    }

    /* ───────── indicador de pasos de escritorio: mismo criterio que el pulso móvil,
   se dibuja solo cuando el paso realmente cambia ───────── */
    .stepper.step-in .st-line.is-done {
      animation: lineFillIn .45s cubic-bezier(.3, .7, .3, 1) both
    }

    @keyframes lineFillIn {
      from {
        transform: scaleX(0);
        background: var(--hair)
      }

      to {
        transform: scaleX(1);
        background: var(--cyan-m)
      }
    }

    .stepper.step-in .st.is-active .dot,
    .stepper.step-in .st.is-done .dot {
      animation: dotPopIn .4s cubic-bezier(.34, 1.4, .64, 1) both
    }

    @keyframes dotPopIn {
      from {
        transform: scale(.6)
      }

      to {
        transform: scale(1)
      }
    }

    /* ───────── dinamismo (22-sep): toque, entradas, pulso progresivo ───────── */

    /* 1) Retroalimentación al tocar — hoy casi no existía ningún :active/transition */
    .cta,
    .btn-sm,
    .btn-ghost,
    .btn-quiet,
    .btn-danger,
    .slot,
    .day,
    .opt-row,
    .opt,
    .catcard,
    .ccard,
    .rcard,
    .round,
    .select,
    .copy,
    .qclear,
    .more,
    summary,
    .chip,
    .qopt,
    .st:not(:disabled),
    .linkbtn {
      transition: transform .12s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease;
      -webkit-tap-highlight-color: transparent;
    }

    .cta:active,
    .btn-sm:active,
    .btn-ghost:active,
    .btn-danger:active,
    .round:active,
    .copy:active,
    .qclear:active {
      transform: scale(.96)
    }

    .slot:active,
    .day:active,
    .opt-row:active,
    .catcard:active,
    .ccard:active,
    .rcard:active,
    .select:active,
    .opt:active,
    .chip:active,
    .qopt:active {
      transform: scale(.98)
    }

    .st:not(:disabled):active .dot {
      transform: scale(.9)
    }

    @media (hover:hover) {

      /* elevaciones más lentas/suaves que el resto (que sigue rápido para el tacto en celular) */
      .ccard,
      .catcard,
      .rcard,
      .opt-row {
        transition-duration: .32s;
        transition-timing-function: cubic-bezier(.2, .8, .2, 1)
      }

      .cta:not(:disabled):hover {
        filter: brightness(1.06)
      }

      .btn-sm:hover,
      .round:hover,
      .day:not([aria-pressed="true"]):hover,
      .select:not([aria-expanded="true"]):hover {
        border-color: var(--cyan-m)
      }

      .ccard:hover,
      .catcard:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: var(--shadow-lg);
        border-color: var(--cyan-m)
      }

      /* pantalla de horas: el efecto va en cada HORA (bien visible) y la tarjeta del profesional apenas reacciona */
      .slot {
        transition-duration: .2s;
        transition-timing-function: cubic-bezier(.2, .8, .2, 1)
      }

      .rcard:hover {
        box-shadow: 0 1px 2px rgba(24, 48, 80, .06), 0 14px 34px rgba(24, 48, 80, .11)
      }

      .slot:not([aria-pressed="true"]):hover {
        transform: translateY(-3px);
        background: var(--cyan-t);
        border-color: var(--cyan);
        box-shadow: 0 8px 18px rgba(0, 169, 224, .24)
      }

      .slot:not([aria-pressed="true"]):hover em {
        color: var(--link)
      }

      .slot:not([aria-pressed="true"]):hover:active {
        transform: scale(.98);
        box-shadow: none
      }

      .slot[aria-pressed="true"]:hover {
        transform: translateY(-1px)
      }

      .opt-row:not([aria-checked="true"]):not([aria-pressed="true"]):hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
        border-color: var(--cyan-m)
      }
    }

    /* 2) Entradas con gracia — el desplegable del buscador/combos, y las categorías en cascada */
    .pop {
      animation: popIn .16s cubic-bezier(.2, .8, .2, 1) both
    }

    @keyframes popIn {
      from {
        opacity: 0;
        transform: translateY(-6px) scale(.98)
      }

      to {
        opacity: 1;
        transform: none
      }
    }

    .catcard {
      animation: catIn .32s cubic-bezier(.2, .8, .2, 1) both
    }

    .catcard:nth-child(1) {
      animation-delay: 0ms
    }

    .catcard:nth-child(2) {
      animation-delay: 25ms
    }

    .catcard:nth-child(3) {
      animation-delay: 50ms
    }

    .catcard:nth-child(4) {
      animation-delay: 75ms
    }

    .catcard:nth-child(5) {
      animation-delay: 100ms
    }

    .catcard:nth-child(6) {
      animation-delay: 125ms
    }

    .catcard:nth-child(7) {
      animation-delay: 150ms
    }

    .catcard:nth-child(8) {
      animation-delay: 175ms
    }

    .catcard:nth-child(9) {
      animation-delay: 200ms
    }

    .catcard:nth-child(10) {
      animation-delay: 225ms
    }

    .catcard:nth-child(11) {
      animation-delay: 250ms
    }

    .catcard:nth-child(12) {
      animation-delay: 275ms
    }

    @keyframes catIn {
      from {
        opacity: 0;
        transform: translateY(8px)
      }

      to {
        opacity: 1;
        transform: none
      }
    }

    /* 3) "Ver información" — el alto se anima por JS (Element.animate); esto evita que se vea
   el contenido recortado feo mientras crece */
    .details .box {
      overflow: hidden
    }

    /* 4) Pulso progresivo — solo se anima en cambios de paso reales (clase .pulse-in),
   nunca en un redibujado dentro del mismo paso (evita que "vuelva a dibujarse" al tipear) */
    .pulse-in .pl-fill {
      animation: pulseFillIn .55s cubic-bezier(.25, .8, .3, 1) both
    }

    @keyframes pulseFillIn {
      from {
        width: 0
      }

      to {
        width: var(--p)
      }
    }

    .pulse-in .pl-beat {
      animation: pulseBeatIn .55s cubic-bezier(.25, .8, .3, 1) both
    }

    @keyframes pulseBeatIn {
      from {
        left: 0;
        opacity: 0
      }

      to {
        left: max(0px, calc(var(--p) - 58px));
        opacity: 1
      }
    }

    .pulse-in .pl-dot {
      animation: pulseDotIn .55s cubic-bezier(.25, .8, .3, 1) both
    }

    @keyframes pulseDotIn {
      from {
        left: 0
      }

      to {
        left: calc(var(--p) - 8px)
      }
    }

    .pulse-in .pl-end {
      animation: pulseEndIn .55s cubic-bezier(.25, .8, .3, 1) both
    }

    @keyframes pulseEndIn {
      from {
        left: 0;
        transform: scale(.5);
        opacity: 0
      }

      to {
        left: calc(var(--p) - 12px);
        transform: none;
        opacity: 1
      }
    }

    /* ───────── correcciones tras revisar en un celular real (22-sep) ───────── */
    @media (max-width: 780px) {
      .catgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
      }
    }

    .ccard .row {
      flex-direction: column;
      align-items: stretch
    }

    .ccard .suc {
      white-space: normal
    }

    .ccard .btn-sm {
      width: 100%;
      justify-content: center;
      padding-inline: 14px;
      height: 38px;           /* más compacta (30-nov): antes 44px */
      font-size: 14.5px
    }

    /* "Ver disponibilidad" es más largo: sin relleno de más en pantallas de 320px */

      {
      % endraw %
    }

    .dental-info {
      padding: 20px;
      border: 1px solid var(--hair);
      border-radius: 20px;
      background: var(--wash, #eef8fb);
      display: grid;
      gap: 12px
    }

    .dental-info p {
      margin: 0;
      color: var(--muted);
      line-height: 1.5
    }

    .dental-info .cta {
      width: fit-content;
      max-width: 100%;
      height: auto;
      min-height: 48px;
      padding: 12px 20px;
      text-decoration: none;
      text-align: center;
      font-size: 16px
    }

    .cancel-entry {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px 12px;
      color: var(--muted);
      font-size: 15px
    }

    .cancel-modal {
      grid-template-columns: minmax(0, 1fr);
      padding: 16px
    }

    .cancel-dialog {
      max-height: calc(100vh - 32px);
      max-height: calc(100dvh - 32px);
      overflow-y: auto;
      overscroll-behavior: contain;
      display: grid;
      gap: 16px;
      width: min(520px, 100%);
      min-width: 0;
      justify-self: center
    }

    .cancel-dialog>* {
      min-width: 0
    }

    .cancel-dialog p {
      overflow-wrap: anywhere
    }

    .cancel-dialog .cta {
      font-size: 16px
    }

    .cancel-dialog .dlg-act {
      display: flex;
      flex-wrap: wrap;
      gap: 10px
    }

    .cancel-dialog .btn-danger {
      height: auto;
      min-height: 44px;
      padding: 12px 20px
    }

    @media(max-width:600px) {
      .cancel-modal {
        padding: 12px
      }

      .cancel-dialog {
        padding: 22px 20px;
        border-radius: 22px;
        gap: 14px;
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px)
      }

      .cancel-dialog h2 {
        font-size: 22px
      }

      .cancel-dialog p {
        font-size: 15px;
        line-height: 1.5;
        margin-top: 0
      }

      .cancel-dialog .dl {
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
        font-size: 15px
      }

      .cancel-dialog .dl dt {
        font-size: 13px
      }

      .cancel-dialog .dl dd {
        margin: 0 0 10px;
        overflow-wrap: anywhere
      }

      .cancel-dialog .dlg-act {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin-top: 4px
      }

      .cancel-dialog .dlg-act button {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        height: auto;
        white-space: normal;
        padding: 12px 14px
      }
    }

    /* Celular (30-nov): se ocultan la frase bajo el título y «¿Ya tienes una hora agendada?» para dejar el buscador más arriba.
       El enlace «Confirmar o anular una hora» se conserva. */
    @media (max-width: 780px) {
      .hero .lead {
        display: none
      }

      .cancel-entry > span:first-child {
        display: none
      }
    }
/* ───────── reglas de reserva (diálogos) ───────── */
.resv {
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
  display: grid;
  gap: 2px
}

.resv-f {
  font: 700 15.5px var(--font-head)
}

.resv-l {
  color: var(--muted);
  font-size: 14px
}

.resv-wrap .resv-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px
}

/* ───────── encabezado en celular: solo el logo, centrado y sin etiquetas ─────────
   "Paso X de 3" deja de verse (el pulso de abajo ya muestra el avance) pero se conserva para lectores de pantalla. */
@media (max-width: 780px) {
  .hdr {
    grid-template-columns: 1fr;
    justify-items: center
  }

  .logo {
    grid-column: 1;
    justify-self: center
  }

  .mstep {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0
  }
}

/* ───────── indicador de pasos en celular: círculos con icono, nombre debajo y líneas entre pasos ───────── */
@media (max-width: 780px) {
  .hdr {
    row-gap: 8px;
    padding-bottom: 12px
  }

  .stepper {
    display: flex;
    grid-column: 1;
    width: 100%;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0
  }

  .st {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-height: 0;
    font-size: 15px;
    flex: 0 0 auto
  }

  .st-line {
    flex: 1 1 0;
    width: auto;
    min-width: 12px;
    margin: 19px 8px 0
  }
}

@media (max-width: 400px) {
  .st {
    font-size: 13.5px
  }

  .st-line {
    margin-inline: 6px
  }
}


/* ───────── tira de días: conteo de horas, días apagados, bordes que se desvanecen y calendario ───────── */
.daybar {
  --fl: 0px;
  --fr: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%)
}

.day {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1.15;
  padding: 6px 16px
}

.day-n {
  font: 500 11.5px var(--font-ui);
  opacity: .75
}

.day.is-off {
  opacity: .45;
  background: transparent;
  border-style: dashed;
  cursor: default
}

.cal-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 14px;
  border-radius: 22px;
  border: 1px solid var(--hair);
  background: var(--card);
  color: var(--ink);
  font: 700 14px var(--font-head);
  cursor: pointer
}

.cal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px
}

.cal-h .round:disabled {
  opacity: .35;
  cursor: default
}

.cal-g {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 10px
}

.cal-w {
  text-align: center;
  font: 700 12px var(--font-head);
  color: var(--muted)
}

.cal-d {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: var(--card);
  color: var(--ink);
  font: 700 15px var(--font-head);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  cursor: pointer
}

.cal-d small {
  font: 500 10px var(--font-ui);
  opacity: .75
}

.cal-d.is-sel {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary)
}

.cal-d.is-off {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  opacity: .5;
  cursor: default
}

/* al cambiar de día, la lista de horas entra deslizándose desde el lado del cambio */
.rlist.slide-fwd {
  animation: diaFwd .24s cubic-bezier(.2, .8, .2, 1)
}

.rlist.slide-back {
  animation: diaBack .24s cubic-bezier(.2, .8, .2, 1)
}

@keyframes diaFwd {
  from {
    opacity: 0;
    transform: translateX(24px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes diaBack {
  from {
    opacity: 0;
    transform: translateX(-24px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@media (max-width: 780px) {
  /* en celular la tira ocupa todo el ancho y el botón Calendario va debajo, a la derecha */
  .daybar-row {
    flex-wrap: wrap;
    row-gap: 2px
  }

  .daybar-row .daybar {
    flex: 1 1 100%
  }

  .cal-btn {
    margin-left: auto
  }
}


/* ───────── selector de día en celular: date picker ───────── */
.daypick {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 18px
}

.daypick .round:disabled {
  opacity: .35;
  cursor: default
}

.daypick-f {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--hair);
  border-radius: 26px;
  background: var(--card);
  color: var(--link);
  cursor: pointer;
  font: inherit;
  text-align: left
}

.daypick-t {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2
}

.daypick-t b {
  font: 700 15px var(--font-head);
  color: var(--ink)
}

.daypick-t small {
  font: 500 12px var(--font-ui);
  color: var(--muted)
}

@media (max-width: 780px) {
  .daypick {
    display: flex
  }

  .daybar-row {
    display: none
  }
}

/* Fecha de nacimiento de una ficha existente: solo lectura */
.input.is-ro { background: #eef2f5; border-color: #d5dde3; cursor: not-allowed; }
.input.is-ro input { color: #51606c; -webkit-text-fill-color: #51606c; cursor: not-allowed; pointer-events: none; opacity: 1; }
.input.is-ro input::-webkit-calendar-picker-indicator { display: none; }

/* Resultado de confirmar / anular una hora (ventana de la portada) */
.cancel-dialog.is-ok,
.cancel-dialog.is-off { text-align: center; justify-items: center }
.cancel-dialog.is-ok .cta,
.cancel-dialog.is-off .cta { width: 100% }
.cancel-dialog .cancel-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center }
.cancel-dialog.is-ok .cancel-ic { background: var(--mint-t); color: var(--mint) }
.cancel-dialog.is-off .cancel-ic { background: var(--danger-t); color: var(--danger) }
.cancel-dialog.is-ok h2 { color: #1E6B48 }
.cancel-dialog.is-off h2 { color: var(--danger) }
.cancel-dialog.is-ok p b,
.cancel-dialog.is-off p b { color: var(--ink); letter-spacing: .04em }

/* Tarjeta con los datos de la hora (ventana "Confirmar o anular tu hora") */
.rc { border: 1px solid #DCE6EE; border-radius: 18px; padding: 16px; background: linear-gradient(180deg, #F4F9FC, #FFFFFF) }
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap }
.rc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; font-size: 13px; font-weight: 700 }
.rc-chip.is-res { background: #E3F1FA; color: #0B72A8 }
.rc-chip.is-ok { background: var(--mint-t); color: #1E6B48 }
.rc-cod { font-size: 13px; color: var(--muted) }
.rc-cod b { color: var(--ink); letter-spacing: .05em; font-size: 14px }
.rc-when { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 14px }
.rc-d { font-size: 22px; font-weight: 800; color: var(--ink); line-height: 1.1 }
.rc-m { font-size: 17px; font-weight: 700; color: #0B72A8; margin-top: 3px }
.rc-t { font-size: 36px; font-weight: 800; color: #0B72A8; line-height: 1; white-space: nowrap }
.rc-t small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 4px }
.rc-hr { height: 1px; background: #E3EBF1; margin: 14px 0 }
.rc .who2 .pn { font-weight: 700; color: var(--ink) }
.rc .who2 .meta { font-size: 14px; color: var(--muted) }
.rc-loc { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 14px }
.rc-loc .ic { margin-top: 1px; flex: none }
.rc-loc b { display: block; color: var(--ink); font-size: 15px; font-weight: 700 }

/* Acciones de la ventana: apiladas y a todo el ancho también en pantallas grandes */
.cancel-dialog .dlg-act { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 4px }
.cancel-dialog .dlg-act button { width: 100% }
.cancel-dialog .dlg-act .linkbtn { width: auto; justify-self: center; min-height: 0; text-align: center }

.resv-dir { display: flex; align-items: center; gap: 6px }
.resv-dir .ic { flex: none }

/* Avisos de reglas de reserva: mismo estilo que "Confirmar o anular tu hora" (icono de color, tarjeta de la hora, botones a todo el ancho) */
.dlg-rico { text-align: center }
.dlg-rico .dlg-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 2px auto 4px }
.dlg-ic.is-warn { background: #FFF1D0; color: #B26A00 }
.dlg-ic.is-info { background: #E3F1FA; color: #0B72A8 }
.dlg-ic.is-danger { background: var(--danger-t); color: var(--danger) }
.dlg-ic.is-ok { background: var(--mint-t); color: var(--mint) }
.dlg-rico h2 { margin-bottom: 4px }
.dlg-rico .rc, .dlg-rico .cmt-info { text-align: left }
.dlg-rico .resv-wrap { display: grid; gap: 10px; margin-top: 14px }
.dlg-rico .rc { margin-top: 14px }
.dlg-rico .resv-wrap .rc { margin-top: 0 }
.dlg-rico .dlg-act { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px }
.dlg-rico .dlg-act button, .dlg-rico .resv-btn { width: 100%; min-height: 48px; height: auto; white-space: normal }
.dlg-rico .btn-danger { height: auto; padding: 12px 20px }

/* Resultado de anular / confirmar: tarjeta de la hora y nota */
.cancel-dialog.is-ok .rc, .cancel-dialog.is-off .rc { text-align: left; width: 100% }
.rc-chip.is-off { background: var(--danger-t); color: var(--danger) }
.rc.is-anulada { background: #FCF6F5; border-color: #F0D9D6 }
.rc.is-anulada .rc-d, .rc.is-anulada .rc-m, .rc.is-anulada .rc-t { color: #8C7A77; text-decoration: line-through; text-decoration-thickness: 2px }
.rc.is-anulada .rc-t small { text-decoration: none }
.rc.is-anulada .who2, .rc.is-anulada .rc-loc { opacity: .75 }
.cancel-nota { display: flex; align-items: flex-start; gap: 8px; justify-content: center; text-align: left; font-size: 14px; color: var(--muted) }
.cancel-nota .ic { flex: none; margin-top: 2px }
.cancel-dialog.is-ok .btn-ghost, .cancel-dialog.is-off .btn-ghost { width: 100% }

/* Aviso mientras se cargan las fechas siguientes (la búsqueda ya mostró los próximos 7 días) */
.mas-fechas {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 2px 4px;
  font-size: 14px;
  color: var(--muted);
}

.mf-spin {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  opacity: .65;
  animation: spin .8s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .mf-spin { animation-duration: 2.4s; }
}



/* Ventanas de confirmación con dos botones (Cambiar esta hora / Anular): apilados, del mismo ancho; la acción principal arriba */
.dlg-apilado .dlg-act { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px }
.dlg-apilado .dlg-act button { width: 100%; min-width: 0; min-height: 48px; height: auto; white-space: normal; padding: 12px 20px }
/* ───────── entrada de "Horas más próximas": cada tarjeta se anima al entrar en pantalla ───────── */
@keyframes ccardIn {
  from { opacity: 0; transform: translateY(18px) scale(.97) }
  to { opacity: 1; transform: none }
}
.carousel .ccard.rv { opacity: 0 }
.carousel .ccard.rv.in {
  opacity: 1;
  animation: ccardIn .55s cubic-bezier(.22, 1, .36, 1) backwards
}
@media (prefers-reduced-motion: reduce) {
  .carousel .ccard.rv { opacity: 1 }
}

/* el realce de la tarjeta usa una sombra que cabe en el aire del carrusel (la grande se cortaba y dejaba una franja gris) */
.carousel .ccard:hover { box-shadow: 0 12px 26px rgba(24, 48, 80, .14) }
