/* Asistente de reserva, calendario y confirmación de cita. Se carga solo en /agendar y /cita/... */
/* Asistente de reserva */
.wiz-sec { padding: 28px 0 90px; }
.wrap-wiz { width: min(680px, 100% - 32px); }
.wiz-head { text-align: center; margin-bottom: 22px; }
.wiz-head h1 { font-size: clamp(2.2rem, 8vw, 3.2rem); }
.wiz-head p { color: var(--muted); margin-top: 8px; }
.steps { display: flex; justify-content: center; gap: 8px; margin: 0 0 22px; }
.steps li { display: flex; align-items: center; gap: 8px; color: #8a93a4; font-weight: 700; font-size: .92rem; flex: 1; justify-content: center; padding: 8px 4px; border-bottom: 3px solid var(--line); }
.steps .n { width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.steps li.on { color: var(--navy); border-color: var(--gold); }
.steps li.on .n { background: var(--navy); }
.steps li.done { color: var(--navy); border-color: var(--navy); }
.steps li.done .n { background: var(--gold); color: var(--navy-900); }
.wiz { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px 14px; box-shadow: var(--shadow); }
.step h2 { font-size: 1.9rem; margin-bottom: 18px; }
.step-sub { color: var(--muted); margin: -8px 0 16px; font-size: .98rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.choices { display: grid; gap: 12px; }
.choice { display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'radio body' '. price'; align-items: center; gap: 4px 14px; border: 2px solid var(--line); border-radius: 16px; padding: 16px 16px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--gold); }
.choice input { grid-area: radio; appearance: none; width: 24px; height: 24px; border: 2px solid #b7bfce; border-radius: 50%; display: grid; place-items: center; margin: 0; flex: none; }
.choice input::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); transform: scale(0); transition: transform .15s; }
.choice input:checked::after { transform: scale(1); }
.choice:has(input:checked) { border-color: var(--navy); background: #F6F8FC; box-shadow: 0 0 0 3px rgba(15, 42, 79, .08); }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice-body { grid-area: body; }
.choice-body strong { display: block; font-size: 1.12rem; color: var(--navy); }
.choice-body small { display: block; color: var(--muted); font-size: .9rem; line-height: 1.35; margin-top: 2px; }
.choice-price { grid-area: price; font-weight: 700; color: var(--gold-text); font-size: .95rem; line-height: 1.25; }
.choice-emerg { border-style: dashed; border-color: #E8B7B0; background: #FFFAF9; }
.choice-emerg:has(input:checked) { border-color: var(--danger); background: #FFF5F3; box-shadow: 0 0 0 3px rgba(179, 38, 30, .1); }
.choice-emerg .choice-price { color: var(--danger); }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.field input[type=text], .field input[type=tel], .field input[type=date], .field input[type=time], .field textarea { width: 100%; font: inherit; font-size: 1.05rem; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); min-height: 54px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(15, 42, 79, .1); }
.field.has-err input, .field.has-err textarea { border-color: var(--danger); }
.hint { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.err { color: var(--danger); font-size: .92rem; font-weight: 600; margin-top: 6px; }
#err1, #err2, #err3 { margin: 14px 0 0; padding: 12px 14px; background: #FFF5F3; border-radius: 10px; }
.seg { display: grid; gap: 10px; }
.seg label { margin: 0; font-weight: 600; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; text-align: center; color: var(--ink); min-height: 54px; display: grid; place-items: center; }
.seg input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400 !important; font-size: .95rem; cursor: pointer; }
.check input { width: 24px; height: 24px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.summary { background: var(--ivory); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 20px; display: grid; gap: 4px; }
.summary strong { color: var(--navy); }
.wiz-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 26px; flex-wrap: wrap; }
.wiz-nav .btn-gold { flex: 1; min-width: 180px; }
.wiz-help { text-align: center; margin-top: 18px; color: var(--muted); font-size: .95rem; }
.alert { background: #FFF8E6; border: 1px solid #E8D49A; border-radius: 12px; padding: 14px 16px; margin: 14px 0; }

/* Calendario */
.cal { border: 1px solid var(--line); border-radius: 16px; padding: 12px 10px; background: #fff; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h3 { font-size: 1.5rem; text-transform: capitalize; }
.cal-nav { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-nav:not(:disabled):hover { border-color: var(--gold); }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow span { text-align: center; font-size: .8rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal-day { aspect-ratio: 1; min-height: 0; width: 100%; border: 0; border-radius: 12px; background: transparent; font: 600 1.05rem var(--sans); color: #aab1bf; display: grid; place-items: center; position: relative; cursor: default; padding: 0; }
.cal-day.free { background: var(--ivory-2); color: var(--navy); cursor: pointer; }
.cal-day.free::after { content: ''; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-600); }
.cal-day.free:hover { background: #ebe3d0; }
.cal-day.sel { background: var(--navy); color: #fff; }
.cal-day.sel::after { background: var(--gold); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--gold); }
.cal-day:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.cal-empty { margin-top: 12px; color: var(--muted); }
.slots { margin-top: 20px; }
.slots h3 { font-size: 1.5rem; margin-bottom: 10px; }
.slots h4 { margin: 14px 0 8px; font: 700 .82rem var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--gold-text); }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.slot { min-height: 52px; border: 2px solid var(--line); background: #fff; border-radius: 12px; font: 700 1.08rem var(--sans); color: var(--navy); cursor: pointer; }
.slot:hover { border-color: var(--gold); }
.slot.sel { background: var(--navy); border-color: var(--navy); color: #fff; }
.slots-none { color: var(--muted); padding: 10px 0; }
.emerg > p { margin: 14px 0 18px; color: var(--ink); }

/* Confirmación */
.conf-sec { padding: 30px 0 90px; }
.wrap-conf { width: min(560px, 100% - 32px); }
.conf-head { text-align: center; margin-bottom: 22px; }
.conf-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--navy); color: var(--gold); display: inline-grid; place-items: center; margin-bottom: 14px; }
.conf-ico .ic { width: 36px; height: 36px; }
.conf-head.is-cancel .conf-ico { background: #8a93a4; color: #fff; }
.conf-head h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
.conf-head p { color: var(--muted); margin-top: 10px; }
.ticket { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.ticket-code { background: var(--navy); color: #fff; text-align: center; padding: 18px 12px; }
.ticket-code small { display: block; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; font-weight: 700; }
.ticket-code strong { font-family: var(--serif); font-size: 2.6rem; letter-spacing: .08em; font-weight: 600; }
.ticket dl { margin: 0; padding: 8px 20px 14px; }
.ticket dl > div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.ticket dl > div:last-child { border: 0; }
.ticket dt { color: var(--muted); font-size: .95rem; }
.ticket dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }
.ticket .como { color: var(--gold-text); display: inline-flex; gap: 6px; align-items: center; font-size: .92rem; margin-top: 4px; }
.conf-actions { display: grid; gap: 12px; margin-top: 22px; }
.bring { margin-top: 26px; background: var(--ivory-2); border-radius: 16px; padding: 18px 20px; }
.bring h2 { font-size: 1.5rem; margin-bottom: 8px; }
.bring li { padding-left: 22px; position: relative; margin: 6px 0; }
.bring li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.conf .urgent { margin-top: 22px; }
.conf-foot { text-align: center; margin-top: 24px; }
.conf-foot a { color: var(--muted); }

.wiz-avatar { display: block; width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; border: 2px solid var(--gold); padding: 3px; background: #fff; box-shadow: 0 10px 24px rgba(15, 42, 79, .18); }
.wiz-avatar picture, .wiz-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; }
body.wizard, body.conf { background-color: var(--ivory); background-image: var(--tex); }
.wiz-head h1 { font-size: clamp(2.6rem, 9vw, 3.8rem); }
.step h2 { font-size: 2.1rem; }
.ticket-code strong { font-family: var(--serif); }
.conf-head h1 { font-size: clamp(2.4rem, 8vw, 3.4rem); }

/* Aviso al consultorio: acción principal de la confirmación */
.send-box { background: #fff; border: 2px solid var(--gold); border-radius: 22px; padding: 24px 22px 22px; margin: 0 0 22px; box-shadow: 0 18px 40px rgba(15, 42, 79, .12); text-align: center; position: relative; }
.send-box > .send-kicker { display: inline-block; background: var(--navy); color: var(--gold-light); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; padding: 5px 14px; border-radius: 99px; margin-bottom: 10px; }
.send-box h2 { font-size: clamp(1.9rem, 6.4vw, 2.5rem); line-height: 1.04; margin-bottom: 10px; }
.send-box > p { color: var(--muted); font-size: 1.02rem; }
.send-box .btn-xl { margin-top: 18px; }
.send-note { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.btn-xl { min-height: 72px; font-size: 1.22rem; padding: 18px 22px; line-height: 1.15; text-align: center; }
.btn-xl .ic { width: 1.5em; height: 1.5em; }
.send-emerg { border-color: var(--danger); background: #FFF6F4; }
.send-emerg h2 { color: var(--danger); font-size: clamp(1.7rem, 5.6vw, 2.2rem); }
.send-emerg > p { color: #5A1B16; font-weight: 600; }
.privacy { background: var(--ivory-2); border-left: 4px solid var(--gold); border-radius: 10px; padding: 10px 14px; margin: 0 0 18px; font-size: .92rem; color: var(--muted); }

/* Anticipo del 50% (2026-11-11) */
.anticipo-note { margin: 12px 0 14px; padding: 12px 14px; border-radius: 12px; background: #fbf5e8; border: 1px solid var(--gold); color: var(--navy); font-size: .95rem; line-height: 1.45; }
.pay-box .pay-qr { margin: 16px auto 4px; text-align: center; }
.pay-box .pay-qr img { width: 240px; max-width: 70%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.pay-box .pay-qr figcaption { margin-top: 8px; font-size: .92rem; color: var(--muted); }
.pay-steps { list-style: decimal outside; text-align: left; margin: 14px auto 0; padding-left: 1.6em; max-width: 30em; color: var(--ink, #1c2a3f); font-size: .98rem; line-height: 1.5; }
.pay-steps li { margin: 4px 0; }
