/* Registro v2 (etapa 4) — registro de una pantalla y boton de Google. Movil primero. */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.rg-body { font-family: 'Inter', system-ui, sans-serif; background: linear-gradient(135deg, #0D0D0D 0%, #1a1a1a 100%); color: #f1f5f9; min-height: 100vh; display: flex; flex-direction: column; }
.rg-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.rg-logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.rg-logo img { width: 34px; height: 34px; border-radius: 10px; }
.rg-header a.rg-link { color: #F26522; text-decoration: none; font-weight: 600; font-size: .95rem; }
.rg-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 8px 16px 40px; }
.rg-card { width: 100%; max-width: 460px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; padding: 26px 20px 24px; backdrop-filter: blur(10px); }
.rg-title { margin: 0 0 6px; font-size: 1.6rem; font-weight: 700; line-height: 1.15; }
.rg-sub { margin: 0 0 20px; color: #a0a4b8; font-size: .95rem; }
.google-btn { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: center; gap: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.18); background: #fff; color: #1f2937; font: 600 1rem 'Inter', system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.google-btn img { width: 22px; height: 22px; }
.google-btn:hover { background: #f3f4f6; }
.rg-inapp { display: none; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(245,158,11,.14); color: #fbbf24; font-size: .88rem; line-height: 1.4; }
.rg-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #6b7280; font-size: .85rem; }
.rg-sep::before, .rg-sep::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.12); }
.rg-form { display: grid; grid-template-columns: 1fr; gap: 14px; }
.rg-field { display: flex; flex-direction: column; gap: 6px; }
.rg-field > span { font-size: .85rem; color: #a0a4b8; }
.rg-field small { font-size: .78rem; color: #6b7280; }
.rg-field input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; font-size: 1rem; font-family: inherit; }
.rg-field input:focus { outline: none; border-color: #F26522; box-shadow: 0 0 0 3px rgba(242,101,34,.25); }
.rg-field input.rg-invalid { border-color: #ef4444; }
.rg-field input[type="date"] { color-scheme: dark; }
/* Selector de fecha: boton naranja grande y visible; el indicador nativo (invisible) queda encima para abrir el calendario. */
.rg-date { position: relative; display: block; }
.rg-date input { padding-right: 62px; }
.rg-date input::-webkit-calendar-picker-indicator { position: absolute; right: 0; top: 0; width: 62px; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.rg-date-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #F26522, #d9480f); color: #fff; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; pointer-events: none; box-shadow: 0 4px 12px rgba(242,101,34,.35); }
.rg-err { display: none; color: #f87171; font-size: .82rem; }
.rg-err.show { display: block; }
.rg-pass { position: relative; }
.rg-pass input { padding-right: 48px; }
.rg-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: none; background: transparent; color: #a0a4b8; cursor: pointer; font-size: 1rem; }
.rg-terms { display: flex; align-items: flex-start; gap: 12px; font-size: .92rem; line-height: 1.45; color: #d1d5db; cursor: pointer; }
.rg-terms input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: #F26522; flex: 0 0 auto; }
.rg-terms a { color: #F26522; text-decoration: none; font-weight: 600; }
.rg-btn { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; border: none; background: linear-gradient(135deg, #F26522, #d9480f); color: #fff; font: 700 1.05rem 'Inter', system-ui, sans-serif; cursor: pointer; margin-top: 4px; }
.rg-btn[disabled] { opacity: .6; cursor: wait; }
.rg-status { display: none; padding: 10px 12px; border-radius: 10px; font-size: .9rem; line-height: 1.4; }
.rg-status.show { display: block; }
.rg-status.err { background: rgba(239,68,68,.14); color: #f87171; }
.rg-status.ok { background: rgba(16,185,129,.14); color: #34d399; }
.rg-status.info { background: rgba(37,99,235,.14); color: #93c5fd; }
.rg-foot { margin: 18px 0 0; text-align: center; color: #a0a4b8; font-size: .92rem; }
.rg-foot a { color: #F26522; text-decoration: none; font-weight: 600; }
/* Modo "Completa tu registro" */
.rg-card.complete .rg-only-new { display: none; }
.rg-who { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: .92rem; }
.rg-who i { color: #F26522; }
/* Ventana de textos legales */
.rg-overlay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); }
.rg-overlay.show { display: flex; }
.rg-modal { width: 100%; max-width: 560px; max-height: 88vh; display: flex; flex-direction: column; background: #15161c; border: 1px solid rgba(255,255,255,.12); border-radius: 22px 22px 0 0; }
.rg-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; }
.rg-modal-head h2 { margin: 0; font-size: 1.15rem; }
.rg-close { width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.rg-modal-body { overflow: auto; padding: 0 20px 20px; color: #d1d5db; font-size: .93rem; line-height: 1.55; }
.rg-modal-body p { margin: 0 0 12px; white-space: pre-line; }
.rg-modal-meta { color: #6b7280; font-size: .8rem; margin-bottom: 12px; }
@media (min-width: 768px) {
    .rg-main { align-items: center; }
    .rg-card { padding: 32px 30px 28px; }
    .rg-form.two { grid-template-columns: 1fr 1fr; }
    .rg-form.two .rg-full { grid-column: 1 / -1; }
    .rg-overlay { align-items: center; padding: 20px; }
    .rg-modal { border-radius: 22px; }
}
