/* Asistencia de Visas HN — resultado + calendario, animación de pago y recibo */

/* =========================================================
   Precalificador: botón "Saltar y agendar"
   ========================================================= */
.js .btn-skip { display: none; }
.js .quiz-nav.is-contact .btn-skip { display: inline-flex; }
.quiz-nav.is-contact .quiz-lock { display: none; }
.skip-hint {
  display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border-radius: 10px;
  background: var(--gold-50); border: 1px dashed #e2cfa6; font-size: .86rem; color: var(--ink); line-height: 1.4;
}
.skip-hint .icon { color: var(--gold-700); margin-top: 1px; }
@media (max-width: 640px) {
  .quiz-nav.is-contact [data-prev] { display: none; }
  .quiz-nav.is-contact .btn-skip { flex: 1; padding-left: .6em; padding-right: .6em; }
}

/* =========================================================
   Resultado + agenda en la misma pantalla
   ========================================================= */
.booking-wrap { max-width: 1000px; }
.result-booking { padding: 26px; }
@media (min-width: 760px) { .result-booking { padding: 34px 38px; } }
.result-head { display: grid; gap: 18px; align-items: center; text-align: center; }
@media (min-width: 700px) { .result-head { grid-template-columns: 170px 1fr; text-align: left; gap: 30px; } }
.gauge-sm { width: 150px; height: 150px; margin: 0 auto; }
.gauge-sm .gauge-label b { font-size: 2.4rem; }
.result-copy h1 { font-size: clamp(1.35rem, 3.4vw, 1.85rem); margin: 10px 0 8px; }
.result-copy p { margin: 0 0 6px; }
.band-revision { background: var(--warn-bg); color: var(--warn); }
.band-sin { background: #eef0f4; color: #475069; }
.result-disclaimer { text-align: center; margin: 22px 0 0; border-top: 1px solid var(--line); padding-top: 16px; }

.booker-heading { display: flex; gap: 14px; align-items: center; margin: 26px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.booker-heading .step-dot { width: 44px; height: 44px; flex: none; background: var(--navy-800); color: var(--gold-400); border: 0; }
.booker-heading h2, .booker-h1 { font-family: var(--display); font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 0 0 2px; }
.booker-heading p { margin: 0; }

/* =========================================================
   Calendario
   ========================================================= */
.booker-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .booker-grid { grid-template-columns: 1.15fr 1fr; gap: 26px; } }
.cal { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #fff; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font-family: var(--display); font-size: 1.12rem; color: var(--navy-800); }
.cal-nav { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--navy-800); transition: background .15s, border-color .15s; }
.cal-nav:hover:not(:disabled) { border-color: var(--gold-500); background: var(--gold-50); }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-dow, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow span { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 4px 0; }
.cal-day {
  position: relative; aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent;
  font: inherit; font-weight: 600; font-size: .92rem; color: #b4b8c2; cursor: default;
  transition: background .15s, color .15s, transform .15s;
}
.cal-day.has-slots { color: var(--navy-800); cursor: pointer; background: #f7f3ea; }
.cal-day.has-slots::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold-600); }
.cal-day.has-slots:hover { background: var(--gold-50); transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px var(--gold-500); }
.cal-day.is-today { box-shadow: inset 0 0 0 1.5px var(--navy-600); }
.cal-day.is-selected { background: var(--navy-800) !important; color: #fff; box-shadow: 0 8px 16px -10px rgba(11,22,40,.8); }
.cal-day.is-selected::after { background: var(--gold-400); }
.cal-legend { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: .76rem; color: var(--muted); }
.cal-legend i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-600); }

.slot-panel { min-width: 0; }
.slot-title { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--navy-800); margin: 4px 0 12px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.slot-btn {
  padding: 12px 8px; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--navy-800);
  animation: rise .35s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 30ms);
  transition: border-color .15s, background .15s, transform .15s;
}
.slot-btn:hover { border-color: var(--gold-500); background: var(--gold-50); transform: translateY(-1px); }
.slot-btn.is-selected { background: var(--gold-500); border-color: var(--gold-600); color: var(--navy-900); box-shadow: 0 10px 20px -12px rgba(165,123,46,.9); }

.booker-foot {
  display: grid; gap: 12px; align-items: center; margin-top: 20px; padding: 16px 18px; border-radius: 16px;
  background: var(--ivory); border: 1px solid var(--line);
}
@media (min-width: 760px) { .booker-foot { grid-template-columns: 1fr auto auto; gap: 22px; } }
.booker-choice small, .booker-total small { display: block; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.booker-choice b { display: block; color: var(--muted); font-weight: 600; transition: color .2s; }
.booker-choice b.is-set { color: var(--navy-800); font-size: 1.05rem; animation: fade .4s ease both; }
.booker-choice b.is-error { color: var(--err); }
.booker-total b { font-family: var(--display); font-size: 1.45rem; color: var(--navy-800); }
.booker-note { text-align: center; margin: 10px 0 0; }
@media (max-width: 759px) { .booker-foot .btn { width: 100%; } }

/* =========================================================
   Animación de procesamiento del pago
   ========================================================= */
.pay-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(11,22,40,.72); backdrop-filter: blur(6px); animation: fade .25s ease both;
}
.pay-modal {
  width: 100%; max-width: 380px; background: #fff; border-radius: 22px; padding: 28px 26px 24px; text-align: center;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); animation: rise .45s cubic-bezier(.2,.7,.2,1) both;
}
.pay-anim { position: relative; width: 150px; height: 96px; margin: 0 auto 20px; }
.pay-card {
  position: absolute; inset: 0; border-radius: 12px; background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  box-shadow: 0 16px 28px -14px rgba(11,22,40,.8); overflow: hidden; animation: card-float 1.6s ease-in-out infinite;
}
.pay-card::before { content: ""; position: absolute; left: 14px; top: 16px; width: 28px; height: 20px; border-radius: 4px; background: linear-gradient(135deg, #e6c77f, #b98b37); }
.pay-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-100%); animation: card-scan 1.3s ease-in-out infinite;
}
.pay-card i { position: absolute; left: 14px; right: 14px; bottom: 16px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.35); }
@keyframes card-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
@keyframes card-scan { to { transform: translateX(100%); } }
.pay-done {
  position: absolute; inset: -8px 21px; margin: auto; width: 96px; height: 96px; border-radius: 50%;
  background: var(--ok); display: grid; place-items: center; transform: scale(0);
}
.pay-done svg { width: 50px; height: 50px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; }
.pay-overlay.is-done .pay-card { animation: none; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s; }
.pay-overlay.is-done .pay-done { animation: pop .5s cubic-bezier(.3,1.6,.5,1) forwards; }
.pay-overlay.is-done .pay-done svg { animation: draw .5s .3s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pay-modal h3 { font-family: var(--display); font-size: 1.25rem; margin: 0 0 14px; }
.pay-steps { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: 10px; }
.pay-steps li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: #a2a7b3; transition: color .3s; }
.pay-steps li::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid #d9d4c7; box-sizing: border-box;
  transition: background .3s, border-color .3s;
}
.pay-steps li.is-active { color: var(--navy-800); font-weight: 600; }
.pay-steps li.is-active::before { border-color: var(--gold-500); border-top-color: transparent; animation: spin .8s linear infinite; }
.pay-steps li.is-done { color: var(--ok); }
.pay-steps li.is-done::before { background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat; border-color: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-overlay.is-error .pay-card { animation: shake .45s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* =========================================================
   Recibo de pago
   ========================================================= */
.confirm-wrap { max-width: 760px; }
.confirm-banner { text-align: center; margin-bottom: 22px; }
.confirm-banner .ticket-check { margin: 0 auto 12px; position: static; }
.confirm-banner h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: 4px; }
.confirm-banner p { color: var(--muted); margin: 0; }

.receipt {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); animation: rise .6s .1s cubic-bezier(.2,.7,.2,1) both;
}
.receipt::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--gold-600), var(--gold-400), var(--gold-600)); }
.receipt-top { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 28px 28px 20px; border-bottom: 1px dashed var(--line); }
.receipt-brand { display: flex; gap: 14px; align-items: center; }
.receipt-brand img { width: 74px; height: 74px; object-fit: contain; }
.receipt-brand b { display: block; font-family: var(--display); color: var(--gold-700); font-size: 1.15rem; line-height: 1.15; }
.receipt-brand small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.receipt-meta { text-align: right; }
.receipt-meta .doc { font-family: var(--display); font-size: 1.25rem; color: var(--navy-800); letter-spacing: .04em; }
.receipt-meta dl { margin: 6px 0 0; display: grid; grid-template-columns: auto auto; gap: 2px 12px; font-size: .84rem; justify-content: end; }
.receipt-meta dt { color: var(--muted); }
.receipt-meta dd { margin: 0; font-weight: 600; color: var(--navy-800); }
@media (max-width: 560px) { .receipt-meta { text-align: left; } .receipt-meta dl { justify-content: start; } }

.receipt-body { padding: 22px 28px; }
.receipt-parties { display: grid; gap: 16px; margin-bottom: 18px; }
@media (min-width: 560px) { .receipt-parties { grid-template-columns: 1fr 1fr; } }
.receipt-parties small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--gold-700); margin-bottom: 4px; }
.receipt-parties p { margin: 0; font-size: .92rem; line-height: 1.5; }
.receipt-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.receipt-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line); }
.receipt-table td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.receipt-table td:last-child, .receipt-table th:last-child { text-align: right; white-space: nowrap; }
.receipt-table small { display: block; color: var(--muted); }
.receipt-total { display: flex; justify-content: flex-end; margin-top: 14px; }
.receipt-total dl { margin: 0; min-width: 240px; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; font-size: .92rem; }
.receipt-total dt { color: var(--muted); }
.receipt-total dd { margin: 0; text-align: right; }
.receipt-total .grand dt, .receipt-total .grand dd { font-weight: 700; color: var(--navy-800); font-size: 1.1rem; border-top: 2px solid var(--navy-800); padding-top: 8px; }
.receipt-total .grand dd { font-family: var(--display); font-size: 1.35rem; }
.receipt-pay { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--ivory); font-size: .86rem; }
.receipt-pay span { color: var(--muted); }
.receipt-pay b { color: var(--navy-800); }
.receipt-stamp {
  position: absolute; right: 26px; top: 128px; transform: rotate(-12deg);
  border: 3px solid var(--ok); color: var(--ok); border-radius: 10px; padding: 4px 14px;
  font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: .12em; opacity: .85;
  animation: stamp .5s .7s cubic-bezier(.3,1.6,.5,1) both;
}
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(2.2); } to { opacity: .85; transform: rotate(-12deg) scale(1); } }
@media (max-width: 560px) { .receipt-stamp { top: auto; bottom: 150px; right: 18px; font-size: 1.1rem; } }
.receipt-foot { padding: 14px 28px 20px; font-size: .78rem; color: var(--muted); border-top: 1px dashed var(--line); text-align: center; }

.visit-card { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow-sm); animation: rise .6s .2s cubic-bezier(.2,.7,.2,1) both; }
.visit-card h2 { font-family: var(--font); font-size: 1.05rem; margin-bottom: 12px; }
.visit-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .visit-grid { grid-template-columns: 1fr 1fr; } }
.visit-actions { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 560px) { .visit-actions { grid-template-columns: repeat(3, 1fr); } }

@media print {
  body { background: #fff !important; }
  .site-header, .site-footer, .wa-float, .progress-steps, .confirm-banner, .visit-card, .confetti, .no-print { display: none !important; }
  .flow { padding: 0 !important; min-height: 0; }
  .receipt { box-shadow: none; border-color: #ccc; animation: none; }
  .receipt-stamp { animation: none; opacity: .85; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.disclaimer .admin-link { color: rgba(255,255,255,.7); text-decoration: underline; text-underline-offset: 3px; }
.disclaimer .admin-link:hover { color: var(--gold-400); }

.receipt-total .grand-dt, .receipt-total .grand-dd { font-weight: 700; color: var(--navy-800); border-top: 2px solid var(--navy-800); padding-top: 8px; margin-top: 4px; }
.receipt-total .grand-dd { font-family: var(--display); font-size: 1.35rem; }
.receipt-total .grand-dt { font-size: 1.05rem; align-self: end; }

/* Sello junto al total, sin tapar el encabezado */
.receipt-stamp { top: auto; bottom: 178px; left: 34px; right: auto; }
@media (max-width: 560px) { .receipt-stamp { bottom: 196px; left: 22px; font-size: 1.05rem; } }

@media (max-height: 700px) { .skip-hint { display: none; } }
