/* Registro de huéspedes. Todo va dentro de .pcr para no chocar con el tema de WordPress. */
.pcr, .pcr * { box-sizing: border-box; }
.pcr {
  --navy: #5e1f55; --navy-dark: #431540; --gold: #c39a4a; --bg: #faf6f9; --panel: #ffffff;
  --muted: #6e5d6c; --line: #e6dce5; --danger: #b3261e; --ok: #1d7a46;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--navy); background: var(--bg); line-height: 1.45; font-size: 17px;
  width: 100%; min-height: 100vh; padding: 16px 0 40px;
  -webkit-tap-highlight-color: transparent;
}
.pcr .wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.pcr .top { display: flex; align-items: center; gap: 14px; padding: 4px 0 16px; }
.pcr .top img { width: 64px; height: auto; display: block; }
.pcr .top .hotel { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.pcr .top .back { margin-left: auto; flex: none; padding: 9px 16px; border: 2px solid var(--navy); border-radius: 999px; font-size: 14.5px; font-weight: 700; color: var(--navy); text-decoration: none; background: #fff; }
.pcr .top .back:hover { background: var(--navy); color: #fff; }
.pcr .card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 4px 18px rgba(94,31,85,.08); }
.pcr h1 { margin: 0 0 6px; font-size: clamp(26px, 5vw, 36px); line-height: 1.1; font-weight: 800; letter-spacing: -.01em; color: var(--navy); }
.pcr h2 { margin: 22px 0 10px; font-size: 19px; font-weight: 800; color: var(--navy); }
.pcr .lead { margin: 0 0 18px; color: var(--muted); font-size: 17px; }

/* Pasos */
.pcr .steps { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.pcr .steps li { flex: 1; font-size: 13px; font-weight: 700; color: var(--muted); border-top: 4px solid var(--line); padding-top: 6px; }
.pcr .steps li.on { color: var(--navy); border-top-color: var(--gold); }
.pcr .steps li.done { color: var(--navy); border-top-color: var(--navy); }

/* Campos */
.pcr label.f { display: block; margin: 0 0 14px; font-weight: 700; font-size: 15px; }
.pcr label.f small { font-weight: 500; color: var(--muted); }
.pcr input[type=text], .pcr input[type=tel], .pcr input[type=email], .pcr input[type=date], .pcr select {
  display: block; width: 100%; margin-top: 6px; min-height: 54px; padding: 10px 14px; font: inherit; font-size: 18px;
  color: var(--navy-dark); background: #f6eff5; border: 2px solid #c9aec5; border-radius: 12px; outline: none;
  box-shadow: inset 0 2px 4px rgba(94,31,85,.10); transition: border-color .15s, box-shadow .15s, background .15s;
}
.pcr input::placeholder { color: #8d7a8b; }
.pcr input:focus, .pcr select:focus { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(195,154,74,.45); }
.pcr .row { display: flex; gap: 12px; }
.pcr .row > * { min-width: 0; }
.pcr .phone-row { display: flex; gap: 10px; }
.pcr .phone-row select { width: 136px; flex: none; font-size: 14px; padding: 10px 6px; text-overflow: ellipsis; }
.pcr .phone-row input { flex: 1; }
.pcr .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Botones */
.pcr .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 0 26px; border: 0; border-radius: 14px; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; background: var(--navy); color: #fff; }
.pcr .btn:disabled { opacity: .45; cursor: not-allowed; }
.pcr .btn.gold { background: var(--gold); color: var(--navy-dark); }
.pcr .btn.ghost { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.pcr .btn.small { min-height: 44px; font-size: 15px; padding: 0 16px; }
.pcr .btn.block { width: 100%; }
.pcr .actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.pcr .actions .btn { flex: 1 1 160px; }
.pcr button:focus-visible, .pcr a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Reglamento */
.pcr .terms { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.pcr .term { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pcr .term .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy-dark); font-weight: 800; display: grid; place-items: center; }
.pcr .term h3 { margin: 2px 0 4px; font-size: 17px; font-weight: 800; color: var(--navy); }
.pcr .term p { margin: 0; font-size: 15.5px; color: #34446a; }
.pcr .accept { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; margin-bottom: 10px; cursor: pointer; font-size: 16px; font-weight: 600; background: #fff; }
.pcr .accept input { flex: none; width: 26px; height: 26px; margin: 1px 0 0; accent-color: var(--navy); }
.pcr .accept.on { border-color: var(--navy); background: #f6eff5; }
.pcr .accept a { color: var(--navy); }

/* Identificación */
.pcr .idbox { border: 2px dashed var(--line); border-radius: 14px; padding: 12px; margin-bottom: 14px; background: #fdfbfd; }
.pcr .idbox .t { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.pcr .idbox .t small { font-weight: 500; color: var(--muted); }
.pcr .idbox img { display: block; max-width: 100%; max-height: 220px; border-radius: 10px; margin: 0 0 10px; border: 1px solid var(--line); }
.pcr .idbox input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pcr .comp { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: #fff; }
.pcr .comp .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 800; }

/* Firma */
.pcr .sigwrap { position: relative; border: 2px solid var(--navy); border-radius: 14px; background: #fff; overflow: hidden; }
.pcr .sigwrap canvas { display: block; width: 100%; height: 220px; touch-action: none; cursor: crosshair; }
.pcr .sigwrap .hint { position: absolute; left: 14px; bottom: 10px; color: #bfa8bb; font-size: 14px; pointer-events: none; }
.pcr .sigline { position: absolute; left: 14px; right: 14px; bottom: 36px; border-top: 1px solid var(--line); pointer-events: none; }

/* Mensajes */
.pcr .err { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #fdecea; color: var(--danger); font-weight: 600; font-size: 15.5px; }
.pcr .big { text-align: center; padding: 20px 6px; }
.pcr .big .tick { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 48px; display: grid; place-items: center; margin: 0 auto 16px; }
.pcr .spin { width: 22px; height: 22px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: pcrspin .8s linear infinite; }
@keyframes pcrspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pcr .spin { animation: none; } }
@media (max-width: 520px) {
  .pcr .row { flex-direction: column; gap: 0; }
  .pcr .card { padding: 16px; }
  .pcr .phone-row select { width: 120px; font-size: 13.5px; }
}

.pcr .hotel-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.pcr .sede-label { margin: 18px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6e5d6c; }
.pcr .hotel-pick { justify-content: center; }
