/* ==========================================================================
   8888 HOME — Sección de renta en la ficha de México (components/rental_application.php)
   Reutiliza el lenguaje visual de la ficha (css/model.css): tipografía global GalanoGrotesqueLight,
   tinta #111, fondos #EAEAEA/#fff, botones de píldora, campos del formulario de contacto.
   Todo está acotado a .rental-process para no alterar otras secciones.
   ========================================================================== */

.rental-process {
  --rp-ink: #111111;
  --rp-ink-soft: rgba(17, 17, 17, 0.7);
  --rp-label: #555555;
  --rp-line: rgba(0, 0, 0, 0.1);
  --rp-surface: #ffffff;
  --rp-tint: #f4f4f4;
  --rp-field-bg: #f9f9f9;
  --rp-field-line: #e8e8e8;
  --rp-alert: #ff0010;      /* rojo del sitio (build/buttons.css), solo como indicador */
  --rp-alert-text: #a3000b; /* mismo tono, oscurecido para texto legible */
  --rp-secure: #1a6b3f;     /* verde del aviso "Sitio seguro": 5.9:1 sobre su fondo */
  --rp-secure-bg: #eef6f1;
  --rp-secure-line: #cfe5d8;
  padding: 64px 0 72px;
  color: var(--rp-ink);
}
.rental-process *,
.rental-process *::before,
.rental-process *::after { box-sizing: border-box; }
.rental-process [hidden] { display: none !important; }
.rental-process p { margin: 0 0 10px; }
.rental-process p:last-child { margin-bottom: 0; }
.rental-process h2,
.rental-process h3 { color: var(--rp-ink); letter-spacing: normal; text-transform: none; }
.rental-process :focus-visible { outline: 2px solid var(--rp-ink); outline-offset: 3px; }
.rental-process [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

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

/* ---------- Encabezado ---------- */
.rp-head { max-width: 720px; margin: 0 0 32px; }
.rp-title { font-size: 24px; font-weight: 600; line-height: 1.25; margin: 0 0 10px; }
.rp-intro { font-size: 15px; line-height: 1.7; color: var(--rp-ink-soft); }

/* ---------- Pasos ---------- */
/* Cinco pasos: en una fila desde 1280 px; de 640 a 1279 px en dos columnas, con el quinto a lo ancho. */
.rp-steps {
  list-style: none; margin: 0 0 40px; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px;
}
.rp-step { border-top: 1px solid var(--rp-line); padding-top: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.rp-step-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rp-ink); color: #fff; font-size: 14px; font-weight: 600; line-height: 1;
}
.rp-step-title { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 0 0 6px; }
.rp-step-body { min-width: 0; }
.rp-step-body p { font-size: 14px; line-height: 1.6; color: var(--rp-ink-soft); }

/* ---------- Desplegables ---------- */
.rp-more { margin-top: 10px; }
.rp-more summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px;
  font-size: 14px; font-weight: 600; cursor: pointer; list-style: none;
  text-decoration: underline; text-underline-offset: 3px;
}
.rp-more summary::-webkit-details-marker { display: none; }
.rp-more summary::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.rp-more[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.rp-more > p,
.rp-more > ul { margin-top: 8px; }

/* ---------- Ingresos y pagos ---------- */
.rp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 24px; }
.rp-fact { background: var(--rp-surface); border-radius: 18px; padding: 24px; min-width: 0; }
.rp-fact-title { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0 0 10px; }
.rp-fact p,
.rp-fact li { font-size: 14px; line-height: 1.6; }
.rp-income-amount { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: var(--rp-tint); font-size: 15px !important; }
.rp-pay-list { margin: 8px 0 10px; padding-left: 18px; display: grid; gap: 8px; }
.rp-note { font-size: 13px !important; line-height: 1.55; color: var(--rp-ink-soft); }
.rp-note--key { color: var(--rp-ink); font-weight: 600; margin-top: 12px !important; }

/* ---------- Panel de la solicitud ---------- */
.rp-app {
  background: var(--rp-surface); border-radius: 24px; padding: 32px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: 24px 48px; align-items: start;
}
.rp-app-main { min-width: 0; }
.rp-app-main > p,
.rp-app-main li { font-size: 14px; line-height: 1.6; }
.rp-doc { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.rp-doc-icon { flex-shrink: 0; color: var(--rp-ink); }
.rp-doc-title { font-size: 15px; font-weight: 600; margin: 0 !important; }
.rp-doc-meta { font-size: 13px; margin: 2px 0 0 !important; color: var(--rp-ink-soft); }
.rp-app-title { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
.rp-app-steps { margin: 14px 0; padding-left: 20px; display: grid; gap: 6px; }
.rp-app-steps li::marker { font-weight: 600; }
.rp-app-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 4px; }
.rp-app-actions .rp-link { justify-content: center; text-align: center; }

/* ---------- Botones y ligas ---------- */
/* build/osgo.css capitaliza todos los <button>; aquí el texto debe verse tal como está escrito. */
.rental-process button { text-transform: none; letter-spacing: normal; }
.rental-process .rp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--rp-ink);
  font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.rental-process .rp-btn--primary { background: var(--rp-ink); color: #fff; }
.rental-process .rp-btn--primary:hover { background: #333; border-color: #333; color: #fff; }
.rental-process .rp-btn--outline { background: transparent; color: var(--rp-ink); }
.rental-process .rp-btn--outline:hover { background: var(--rp-ink); color: #fff; }
.rental-process .rp-btn--small { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.rental-process .rp-btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.rental-process .rp-btn--primary[disabled],
.rental-process .rp-btn--primary[disabled]:hover { background: var(--rp-ink); border-color: var(--rp-ink); color: #fff; }
.rental-process .rp-btn--outline[disabled],
.rental-process .rp-btn--outline[disabled]:hover { background: transparent; border-color: var(--rp-ink); color: var(--rp-ink); }
.rental-process .rp-link {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--rp-ink);
  font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.rental-process p .rp-link { display: inline; min-height: 0; font-size: inherit; }
.rental-process .rp-app-actions .rp-link { display: block; min-height: 0; padding: 12px 0; text-align: center; }
.rp-link-hint { display: inline-block; font-weight: 400; color: var(--rp-ink-soft); }
/* Liga con aclaración: solo el texto principal va subrayado (no el espacio ni “(WhatsApp)”). */
.rental-process .rp-link--hinted { text-decoration: none; }
.rental-process .rp-link--hinted .rp-link-text { text-decoration: underline; text-underline-offset: 3px; }
.rental-process .rp-text-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: none;
  color: var(--rp-ink); font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.rental-process .rp-text-btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Entrega (se despliega dentro del panel) ---------- */
.rp-upload { grid-column: 1 / -1; border-top: 1px solid var(--rp-line); padding-top: 28px; }
.rp-upload-title { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0 0 8px; }
.rp-property-ref {
  display: inline-flex; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 22px !important;
  padding: 10px 14px; border-radius: 12px; background: var(--rp-tint); font-size: 14px; overflow-wrap: anywhere;
}
.rp-property-id { color: var(--rp-ink-soft); }
.rp-unavailable { padding: 16px 18px; border-radius: 14px; background: var(--rp-tint); font-size: 14px; line-height: 1.6; max-width: 720px; }

.rp-form { max-width: 820px; position: relative; }
.rp-form > .rp-field { margin-top: 22px; }
.rp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rp-field--full { grid-column: 1 / -1; }
.rp-field { min-width: 0; }
.rp-field label {
  display: block; margin-bottom: 8px; padding: 0;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rp-label);
}
/* Los dos bloques de archivos son el centro del formulario: título legible, sin mayúsculas forzadas. */
.rp-files legend { display: block; margin-bottom: 6px; padding: 0; font-size: 15px; font-weight: 600; color: var(--rp-ink); }
.rp-optional { text-transform: none; letter-spacing: normal; font-weight: 400; }
.rental-process .rp-field input,
.rental-process .rp-field textarea {
  width: 100%; margin: 0; padding: 13px 16px; border: 1.5px solid var(--rp-field-line); border-radius: 14px;
  background: var(--rp-field-bg); color: var(--rp-ink); font-size: 16px; line-height: 1.4;
  transition: border-color 0.2s ease, background-color 0.2s ease; resize: vertical;
}
.rental-process .rp-field input:focus,
.rental-process .rp-field textarea:focus { outline: none; border-color: var(--rp-ink); background: #fff; box-shadow: 0 0 0 1px var(--rp-ink); }
.rental-process .rp-field input[aria-invalid="true"] { border-color: var(--rp-alert-text); }
.rp-hint { font-size: 13px !important; line-height: 1.5; color: var(--rp-ink-soft); margin: 0 !important; }
.rp-error { margin: 6px 0 0 !important; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--rp-alert-text); }

.rp-files { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; position: relative; }
.rp-files .rp-hint { margin-bottom: 10px !important; }
.rp-drop {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px;
  border: 1.5px dashed rgba(0, 0, 0, 0.25); border-radius: 16px; background: #fafafa;
}
.rp-drop.is-dragover { border-color: var(--rp-ink); background: #f1f1f1; }
.rp-drop-hint { display: none; font-size: 14px; color: var(--rp-ink-soft); }
@media (hover: hover) and (pointer: fine) { .rp-drop-hint { display: inline; } }
.rp-file-input {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  opacity: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); border: 0;
}
.rp-file-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.rp-file-list:empty { display: none; }
.rp-file-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px;
  border: 1px solid var(--rp-line); border-radius: 14px; background: #fff;
}
.rp-file-icon { flex-shrink: 0; color: var(--rp-ink); }
.rp-file-info { flex: 1 1 auto; min-width: 0; }
.rp-file-name { margin: 0 !important; font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.rp-file-size { margin: 2px 0 0 !important; font-size: 13px; color: var(--rp-ink-soft); }
.rp-file-actions { display: flex; flex-shrink: 0; gap: 2px; }

.rp-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.rp-submit .rp-hint { flex: 1 1 240px; }
.rp-progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; }
.rp-progress progress {
  flex: 1 1 auto; height: 6px; border: 0; border-radius: 999px; overflow: hidden;
  -webkit-appearance: none; appearance: none; background: var(--rp-field-line); color: var(--rp-ink);
}
.rp-progress progress::-webkit-progress-bar { background: var(--rp-field-line); border-radius: 999px; }
.rp-progress progress::-webkit-progress-value { background: var(--rp-ink); border-radius: 999px; }
.rp-progress progress::-moz-progress-bar { background: var(--rp-ink); border-radius: 999px; }
.rp-alert {
  margin-top: 16px; padding: 14px 16px; border-radius: 14px; border-left: 4px solid var(--rp-alert);
  background: var(--rp-field-bg); font-size: 14px; line-height: 1.55;
}
.rp-alert .rp-btn { margin-top: 10px; }
.rp-success { padding: 20px 22px; border-radius: 16px; background: var(--rp-tint); max-width: 820px; }
.rp-success-title { font-size: 17px; font-weight: 600; line-height: 1.45; margin-bottom: 8px !important; }
.rp-success-ref { font-size: 15px; }
.rp-success-ref strong { white-space: nowrap; }
.rp-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Cierre ---------- */
.rp-foot { margin-top: 20px; display: grid; gap: 4px; font-size: 14px; line-height: 1.6; color: var(--rp-ink-soft); }
.rental-process .rp-foot .rp-link { padding: 10px 0; } /* área táctil cómoda sin alterar el renglón */

/* ---------- Responsivo ---------- */
@media (max-width: 1279px) {
  .rp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; }
  .rp-step:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .rp-facts { grid-template-columns: 1fr; }
  .rp-app { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; border-radius: 22px; gap: 20px; }
  .rp-app-actions { padding-top: 0; }
}
@media (max-width: 639px) {
  .rental-process { padding: 40px 0 48px; }
  .rp-head { margin-bottom: 20px; }
  .rp-title { font-size: 22px; }
  .rp-steps { grid-template-columns: 1fr; gap: 0; margin-bottom: 28px; }
  .rp-step { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px 0; }
  .rp-step:last-child { border-bottom: 1px solid var(--rp-line); }
  .rp-step-title { margin-bottom: 4px; }
  .rp-more summary { min-height: 44px; }
  .rp-fact { padding: 20px 18px; }
  .rp-app { padding: 22px 16px; }
  .rp-fields { grid-template-columns: 1fr; }
  .rental-process .rp-app-actions .rp-btn,
  .rental-process .rp-submit .rp-btn { width: 100%; }
  .rp-drop { padding: 14px; }
  .rp-drop .rp-btn { width: 100%; }
}
@media (max-width: 479px) {
  /* En celular el nombre del archivo ocupa su renglón y las acciones bajan, para no partirlo en pedazos. */
  .rp-file-item { flex-wrap: wrap; }
  .rp-file-actions { width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .rental-process * { transition: none !important; }
}

/* ==========================================================================
   Solicitud en línea (RentalApplicationForm::render): se abre dentro del panel,
   una sección a la vez; las secciones terminadas se pliegan en una línea de resumen.
   ========================================================================== */
.rp-actions-or { margin: 6px 0 -4px !important; font-size: 13px; color: var(--rp-ink-soft); text-align: center; }

.rp-online { grid-column: 1 / -1; min-width: 0; border-top: 1px solid var(--rp-line); padding-top: 28px; }
.rp-online-head { margin-bottom: 18px; }
.rp-online-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rp-online-title { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0; }
.rp-online-intro,
.rp-online-save { font-size: 14px; line-height: 1.6; color: var(--rp-ink-soft); max-width: 760px; }
.rp-online-save { color: var(--rp-ink); }
.rp-online-progress { display: flex; align-items: center; gap: 14px; margin-top: 14px; max-width: 520px; }
.rp-online-progress-text { font-size: 13px; font-weight: 600; white-space: nowrap; }
.rp-online-bar { flex: 1 1 auto; height: 4px; border-radius: 999px; background: var(--rp-field-line); overflow: hidden; }
.rp-online-bar span { display: block; height: 100%; width: 0; background: var(--rp-ink); transition: width 0.3s ease; }

/* Acordeón de secciones */
.rp-acc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rp-line); }
.rp-acc-item { border-bottom: 1px solid var(--rp-line); }
.rp-acc-h { margin: 0; font-size: inherit; font-weight: inherit; min-width: 0; }
.rental-process .rp-acc-head {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 4px; min-height: 64px;
  background: none; border: 0; color: var(--rp-ink); text-align: left; cursor: pointer; font: inherit;
}
.rp-acc-num {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--rp-ink); font-size: 13px; font-weight: 600; line-height: 1;
}
.rp-acc-item[data-state="done"] .rp-acc-num { background: var(--rp-ink); color: #fff; }
.rp-acc-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rp-acc-title { font-size: 16px; font-weight: 600; line-height: 1.3; }
.rp-acc-summary { font-size: 13px; line-height: 1.4; color: var(--rp-ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-acc-summary:empty { display: none; }
.rp-acc-state { flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--rp-ink-soft); }
.rp-acc-item[data-state="done"] .rp-acc-state { color: var(--rp-ink); }
.rp-acc-item[data-state="error"] .rp-acc-state { color: var(--rp-alert-text); }
.rp-acc-chevron { flex-shrink: 0; transition: transform 0.2s ease; }
.rp-acc-head[aria-expanded="true"] .rp-acc-chevron { transform: rotate(180deg); }
.rp-acc-head[aria-expanded="true"] .rp-acc-summary,
.rp-acc-head[aria-expanded="true"] .rp-acc-state { display: none; }
.rp-acc-body { padding: 4px 4px 28px 48px; }
.rp-acc-sections { font-size: 12px !important; color: var(--rp-ink-soft); margin-bottom: 14px !important; }
.rp-acc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.rp-acc-error { flex-basis: 100%; margin: 0 !important; font-size: 13px; font-weight: 600; color: var(--rp-alert-text); }

/* Rejilla de campos */
.rp-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px 16px; max-width: 900px; }
.rp-w-full { grid-column: span 12; }
.rp-w-half { grid-column: span 6; }
.rp-w-third { grid-column: span 4; }
.rp-w-quarter { grid-column: span 3; }
.rp-grid .rp-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.rp-label {
  display: block; margin: 0 0 8px; padding: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--rp-label);
}
.rp-label .rp-optional { text-transform: none; letter-spacing: normal; font-weight: 400; }
.rental-process .rp-grid input[type="text"],
.rental-process .rp-grid input[type="email"],
.rental-process .rp-grid input[type="tel"],
.rental-process .rp-grid input[type="date"],
.rental-process .rp-grid select,
.rental-process .rp-grid textarea {
  width: 100%; margin: 0; padding: 13px 16px; border: 1.5px solid var(--rp-field-line); border-radius: 14px;
  background: var(--rp-field-bg); color: var(--rp-ink); font-size: 16px; line-height: 1.4; min-height: 50px;
  transition: border-color 0.2s ease, background-color 0.2s ease; -webkit-appearance: none; appearance: none;
}
.rental-process .rp-grid select {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.rental-process .rp-grid textarea { resize: vertical; min-height: 80px; }
.rental-process .rp-grid input:focus,
.rental-process .rp-grid select:focus,
.rental-process .rp-grid textarea:focus { outline: none; border-color: var(--rp-ink); background-color: #fff; box-shadow: 0 0 0 1px var(--rp-ink); }
.rental-process .rp-grid [aria-invalid="true"] { border-color: var(--rp-alert-text); }
.rp-grid .rp-hint { margin-top: 6px !important; }
.rp-money { position: relative; }
.rp-money > span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--rp-ink-soft); pointer-events: none; }
.rental-process .rp-money input[type="text"] { padding-left: 32px; }

/* Opciones de una sola elección (píldoras) y casillas */
.rp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-pill { position: relative; display: inline-flex; cursor: pointer; margin: 0; }
.rp-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.rp-pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--rp-field-line); background: var(--rp-field-bg); font-size: 15px; line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.rp-pill:hover span { border-color: var(--rp-ink); }
.rp-pill input:checked + span { background: var(--rp-ink); border-color: var(--rp-ink); color: #fff; }
.rp-pill input:focus-visible + span { outline: 2px solid var(--rp-ink); outline-offset: 2px; }
.rp-choice[aria-invalid="true"] .rp-pill span { border-color: var(--rp-alert-text); }
.rp-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; line-height: 1.45; margin: 0; padding: 4px 0; }
.rp-check input { width: 20px; height: 20px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--rp-ink); cursor: pointer; }
.rp-checks-list { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* Subtítulos, filas de tabla y textos oficiales */
.rp-subhead { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--rp-line); }
.rp-subhead-title { font-size: 15px; font-weight: 600; margin: 0 0 2px !important; }
.rp-row { padding: 16px; border-radius: 16px; background: var(--rp-tint); }
.rp-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rp-row-title { font-size: 13px; font-weight: 600; margin: 0 !important; }
.rp-row-head .rp-text-btn { min-height: 36px; }
.rp-row-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px 12px; }
.rental-process .rp-row .rp-grid input,
.rental-process .rp-row input[type="text"],
.rental-process .rp-row input[type="tel"] { background-color: #fff; }
.rp-add-row { margin-top: -6px; }
.rp-legal { padding: 16px 18px; border-radius: 14px; background: var(--rp-tint); }
.rp-legal-title { font-size: 13px; font-weight: 600; margin: 0 0 6px !important; }
.rp-legal-text { font-size: 13px !important; line-height: 1.6; color: var(--rp-ink-soft); overflow-wrap: anywhere; }

/* Documentos por tipo */
.rp-docs { display: grid; gap: 12px; }

/* Aviso "Sitio seguro" en las áreas de carga (solo visible por HTTPS; lo muestra rental-application.js). */
.rp-secure {
  min-width: 0; padding: 14px 16px; border: 1px solid var(--rp-secure-line); border-radius: 14px;
  background: var(--rp-secure-bg); color: var(--rp-ink);
}
.rp-form > .rp-secure { margin-top: 22px; }
.rental-process .rp-secure-title {
  display: flex; align-items: center; gap: 12px; margin: 0;
  font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--rp-secure);
}
.rp-secure-icon { flex: 0 0 auto; width: 26px; height: 26px; color: var(--rp-secure); }
.rental-process .rp-secure-text {
  margin: 2px 0 0; padding-left: 38px; /* alineado con el título, a la derecha del escudo */
  font-size: 14px; line-height: 1.55; color: var(--rp-ink); overflow-wrap: break-word;
}
.rental-process .rp-secure-text .rp-link { color: var(--rp-secure); font-weight: 600; }
.rp-docslot { padding: 16px; border: 1px solid var(--rp-line); border-radius: 16px; background: #fff; }
.rp-docslot-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rp-docslot-label { font-size: 15px; font-weight: 600; line-height: 1.35; margin: 0 !important; }
.rp-docslot-tag { flex-shrink: 0; font-size: 12px; color: var(--rp-ink-soft); padding: 3px 10px; border-radius: 999px; background: var(--rp-tint); }
.rp-docslot-tag--req { color: var(--rp-ink); font-weight: 600; }
.rp-docslot .rp-hint { margin: 4px 0 10px !important; }
.rp-docslot .rp-file-list { margin: 0 0 10px; }
.rp-docslot[data-full="1"] [data-rp-doc-pick] { display: none; }
.rp-docslot[aria-invalid="true"] { border-color: var(--rp-alert-text); }

/* Firma */
.rp-sign-pad {
  position: relative; height: 190px; border: 1.5px dashed rgba(0, 0, 0, 0.3); border-radius: 16px; background: #fff;
  touch-action: none; overflow: hidden;
}
.rp-sign-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.rp-sign-placeholder {
  position: absolute; left: 0; right: 0; top: 42%; text-align: center; font-size: 15px; color: rgba(17, 17, 17, 0.4);
  pointer-events: none; padding: 0 16px;
}
.rp-sign-line { position: absolute; left: 24px; right: 24px; bottom: 44px; border-bottom: 1px solid rgba(0, 0, 0, 0.35); pointer-events: none; }
.rp-sign-pad.has-ink .rp-sign-placeholder { display: none; }
.rp-sign[aria-invalid="true"] .rp-sign-pad { border-color: var(--rp-alert-text); }
.rp-sign-actions { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; }

/* Envío, estado del guardado y cierre */
.rp-online-submit .rp-hint { flex: 1 1 260px; }
.rp-online-submit .rp-progress,
.rp-online-submit .rp-alert { flex-basis: 100%; }
.rp-online-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; margin-top: 16px; }
.rp-online-status { margin: 0 !important; font-size: 13px; color: var(--rp-ink-soft); min-height: 20px; }
.rp-online .rp-success { margin-top: 18px; }

@media (max-width: 899px) {
  .rp-w-quarter { grid-column: span 6; }
  .rp-w-third { grid-column: span 6; }
  .rp-acc-body { padding-left: 4px; }
}
@media (max-width: 639px) {
  .rp-online { padding-top: 22px; }
  .rp-grid, .rp-row-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rp-w-full, .rp-w-half, .rp-w-third, .rp-w-quarter { grid-column: 1 / -1; }
  .rental-process .rp-acc-head { gap: 12px; padding: 14px 0; }
  .rp-acc-state { display: none; }
  .rp-acc-body { padding: 0 0 24px; }
  .rp-row { padding: 14px; }
  .rp-sign-pad { height: 170px; }
  .rental-process .rp-acc-actions .rp-btn { width: 100%; }
  .rp-online-foot { flex-direction: column; align-items: flex-start; }
  .rental-process .rp-secure-text { margin-top: 8px; padding-left: 0; } /* en celular el texto usa todo el ancho */
}

/* ---------- Tarjeta para "Mi cuenta" (components/rental_application_account.php) ---------- */
.rental-process.rp-account { padding: 0; margin: 0 0 24px; }
.rp-account-card { background: var(--rp-surface); border-radius: 20px; padding: 24px; }
.rp-account-title { font-size: 18px; font-weight: 600; margin: 0 0 12px; }
.rp-account-draft { display: grid; gap: 12px; justify-items: start; margin-bottom: 8px; }
.rp-account-draft p { font-size: 14px; line-height: 1.6; margin: 0 !important; }
.rp-account-draft .rp-online-bar { display: block; width: 100%; max-width: 420px; }
.rp-account-subtitle { font-size: 15px; font-weight: 600; margin: 18px 0 8px; }
.rp-account-list { list-style: none; margin: 0 0 10px; padding: 0; border-top: 1px solid var(--rp-line); }
.rp-account-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 0; border-bottom: 1px solid var(--rp-line); font-size: 14px; }
.rp-account-meta { color: var(--rp-ink-soft); font-size: 13px; }
.rp-account-status { margin-left: auto; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--rp-tint); }

/* Casillas y opciones dentro de .rp-field: el estilo de etiqueta de campo (mayúsculas, 12 px) y las reglas
   globales del sitio (que ocultan las casillas) no aplican aquí. */
.rental-process .rp-field label.rp-check {
  display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 4px 0;
  font-size: 15px; font-weight: 400; line-height: 1.45; letter-spacing: normal; text-transform: none; color: var(--rp-ink); cursor: pointer;
}
.rental-process .rp-field .rp-check input[type="checkbox"] {
  display: inline-block !important; position: static; opacity: 1; visibility: visible;
  width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; border: 0; flex-shrink: 0;
  -webkit-appearance: auto; appearance: auto; accent-color: var(--rp-ink); cursor: pointer;
}
.rental-process .rp-field label.rp-pill {
  display: inline-flex; margin: 0; padding: 0; font-size: 15px; font-weight: 400; letter-spacing: normal; text-transform: none; color: var(--rp-ink);
}
.rental-process .rp-field .rp-pill input[type="radio"] {
  position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; border: 0;
}
.rp-docs-more { margin-top: 2px; }
.rp-docs-more > .rp-docs { margin-top: 12px; }

/* ---------- Parte 1: agendar una visita · Parte 2: solicitud de renta (RentalVisit) ---------- */
.rp-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0 0 24px; }
.rp-path {
  background: var(--rp-surface); border-radius: 18px; padding: 24px; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.rp-path-title { font-size: 18px; font-weight: 600; line-height: 1.3; margin: 0; }
.rp-path-text { flex: 1 1 auto; font-size: 14px; line-height: 1.6; color: var(--rp-ink-soft); margin: 0 !important; }
.rp-visit { background: var(--rp-surface); border-radius: 24px; padding: 28px 32px; margin: 0 0 40px; min-width: 0; }
.rp-visit .rp-property-ref { margin-top: 6px; }
.rp-equal {
  max-width: 900px; margin: 4px 0 22px !important; padding: 12px 14px; border-radius: 12px;
  background: var(--rp-tint); font-size: 13px; line-height: 1.55; color: var(--rp-ink);
}
.rp-visit-form .rp-grid { margin-bottom: 18px; }
.rp-visit-privacy { max-width: 900px; margin: 0 0 16px !important; }
.rp-visit-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.rp-visit-submit .rp-hint { margin: 0 !important; }
.rp-visit-form .rp-alert { margin-top: 14px; max-width: 900px; }
.rp-visit-next { display: grid; gap: 10px; justify-items: start; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rp-line); }
.rp-visit-next p { font-size: 14px; line-height: 1.6; }
.rp-equal-note { margin-top: 12px !important; }
@media (max-width: 899px) {
  .rp-visit { padding: 24px 20px; border-radius: 22px; }
}
@media (max-width: 639px) {
  .rp-paths { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 20px; }
  .rp-path { padding: 20px 18px; }
  .rp-visit { padding: 22px 16px; margin-bottom: 28px; }
  .rental-process .rp-path .rp-btn,
  .rental-process .rp-visit-submit .rp-btn,
  .rental-process .rp-visit-next .rp-btn { width: 100%; }
}
.rp-visit-calendar { font-size: 14px; line-height: 1.6; }

/* Plegado: "Cómo funciona la renta" */
/* La sección muestra de entrada solo las dos tarjetas (visita y solicitud); lo demás se abre con este renglón. */
.rental-process .rp-expand { margin-top: 20px; }
.rental-process .rp-expand-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; padding: 18px 24px; border-radius: 18px; background: var(--rp-surface);
  cursor: pointer; list-style: none;
}
.rental-process .rp-expand-summary::-webkit-details-marker { display: none; }
.rental-process .rp-expand-summary::marker { content: ''; }
.rental-process .rp-expand-summary:focus-visible { outline: 2px solid var(--rp-ink); outline-offset: 3px; }
.rental-process .rp-expand-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rental-process .rp-expand-title { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--rp-ink); }
.rental-process .rp-expand-hint { font-size: 14px; line-height: 1.5; color: var(--rp-ink-soft); }
.rental-process .rp-expand-action {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--rp-ink); text-decoration: underline; text-underline-offset: 3px;
}
.rental-process .rp-expand-action::after {
  content: ''; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
.rental-process .rp-expand[open] > .rp-expand-summary .rp-expand-action::after { transform: translateY(2px) rotate(-135deg); }
.rental-process .rp-expand-hide { display: none; }
.rental-process .rp-expand[open] > .rp-expand-summary .rp-expand-show { display: none; }
.rental-process .rp-expand[open] > .rp-expand-summary .rp-expand-hide { display: inline; }
.rental-process .rp-expand-body { padding-top: 8px; }
@media (max-width: 639px) {
  .rental-process .rp-expand-summary { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .rental-process .rp-expand-action::after { transition: none; }
}
