/* ============================================================
   assets/calc-propietario/calc-flotante.20261106.css · OC-54 · Calculadora de arriendo en ventana flotante
   Prefijo .chcf-. Móvil primero (hoja inferior a pantalla casi completa); en escritorio, ventana centrada.
   WCAG 2.2 AA: contraste ≥ 4,5:1, objetivos ≥ 44 px, foco visible, respeta «reducir movimiento».
   Colores de marca: azul #0369A1 / #075985, ámbar #FBBF24, pizarra #0F172A.
   ============================================================ */
html.chcf-bloqueo { overflow: hidden; }

/* Tarjeta corta en la página */
.chcf-tarjeta { background: #F1F5F9; padding: 32px 16px; font-family: Inter, system-ui, sans-serif; color: #0F172A; }
.chcf-tarjeta *, .chcf-dialogo *, .chcf-flotante * { box-sizing: border-box; }
.chcf-tarjeta-cont { max-width: 880px; margin: 0 auto; display: grid; gap: 16px; align-items: center; padding: 22px 20px;
  background: linear-gradient(135deg, #075985 0%, #0369A1 100%); color: #fff; border-radius: 20px;
  box-shadow: 0 12px 32px rgba(3, 105, 161, .25); }
.chcf-tarjeta-icono { display: none; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, .15);
  align-items: center; justify-content: center; }
.chcf-tarjeta-icono svg { width: 28px; height: 28px; }
.chcf-etiqueta { display: inline-block; margin: 0 0 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16);
  font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: #fff; }
.chcf-tarjeta-h2 { margin: 0 0 6px; font-size: 1.35rem; line-height: 1.25; font-weight: 800; color: #fff; }
.chcf-tarjeta-p { margin: 0; font-size: .95rem; line-height: 1.5; color: #E0F2FE; }
.chcf-btn { min-height: 48px; padding: 12px 22px; border: 0; border-radius: 12px; background: #FBBF24; color: #0F172A;
  font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; width: 100%; box-shadow: 0 4px 14px rgba(15, 23, 42, .18); }
.chcf-btn:hover { background: #F59E0B; }
.chcf-btn:focus-visible { outline: 3px solid #FBBF24; outline-offset: 3px; }   /* ámbar sobre la tarjeta azul */
.chcf-flotante:focus-visible, .chcf-cerrar:focus-visible, .chcf-sec:focus-visible { outline: 3px solid #0369A1; outline-offset: 3px; }   /* QA MEDIA-2: azul sobre blanco */
@media (min-width: 760px) {
  .chcf-tarjeta { padding: 40px 16px; }
  .chcf-tarjeta-cont { grid-template-columns: auto 1fr auto; padding: 26px 28px; gap: 22px; }
  .chcf-tarjeta-icono { display: flex; }
  .chcf-tarjeta-h2 { font-size: 1.6rem; }
  .chcf-btn { width: auto; white-space: nowrap; }
}

/* Ventana */
.chcf-dialogo { width: 100%; max-width: 100%; height: fit-content; max-height: 94dvh; margin: auto 0 0; padding: 0; border: 0;
  border-radius: 20px 20px 0 0; background: #fff; color: #0F172A; font-family: Inter, system-ui, sans-serif;
  box-shadow: 0 -10px 40px rgba(15, 23, 42, .25); overflow: hidden; display: none; flex-direction: column; }
.chcf-dialogo[open] { display: flex; animation: chcf-sube .28s ease-out; }
.chcf-dialogo::backdrop { background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); }
@keyframes chcf-sube { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 760px) {
  .chcf-dialogo { width: min(640px, calc(100% - 32px)); height: fit-content; max-height: min(88vh, 860px); margin: auto; border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .35); }
  @keyframes chcf-sube { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .chcf-dialogo[open] { animation: none; } }
.chcf-cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 6px 20px; flex: 0 0 auto; }
.chcf-paso { margin: 0; font-size: .85rem; font-weight: 700; color: #075985; }
.chcf-cerrar { width: 44px; height: 44px; border: 0; border-radius: 999px; background: #F1F5F9; color: #0F172A; font-size: 1.6rem; line-height: 1;
  cursor: pointer; }
.chcf-cerrar:hover { background: #E2E8F0; }
.chcf-progreso { height: 4px; background: #E2E8F0; flex: 0 0 auto; }
.chcf-progreso span { display: block; height: 100%; width: 25%; background: #0369A1; transition: width .25s ease; }

/* La sección de la calculadora dentro de la ventana: sin el marco de página */
.chcf-dialogo .chcp.chcf-en-dialogo { padding: 0; background: #fff; overflow-y: auto; scroll-padding-bottom: 96px;   /* QA ALTA-2 */
  -webkit-overflow-scrolling: touch; flex: 1 1 auto; }
.chcf-dialogo .chcp-cont { max-width: none; border: 0; border-radius: 0; box-shadow: none; padding: 16px 20px 28px; }
.chcf-dialogo .chcp-etiqueta { display: none; }
.chcf-dialogo .chcp-h2 { font-size: 1.3rem; }
.chcf-dialogo .chcp-intro { font-size: .92rem; margin-bottom: 14px; }
.chcf-grupo { border: 0; margin: 0; padding: 0; min-width: 0; }
.chcf-grupo[hidden] { display: none; }
.chcf-leyenda { padding: 0; margin: 0 0 12px; font-size: 1.05rem; font-weight: 800; color: #0F172A; }
.chcf-nav { display: flex; gap: 10px; margin-top: 18px; position: sticky; bottom: 0; z-index: 1; padding: 12px 0 4px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 14px); }
.chcf-avanzado .chcp-intro, .chcf-avanzado .chcp-req { display: none; }
.chcf-nav > * { flex: 1 1 0; margin: 0 !important; }
.chcf-nav > .chcf-sec { flex: 0 0 auto; min-width: 104px; }
.chcf-nav [hidden] { display: none !important; }
.chcf-sec { min-height: 48px; padding: 10px 18px; border: 2px solid #0369A1; border-radius: 12px; background: #fff; color: #075985;
  font: inherit; font-weight: 800; cursor: pointer; }
.chcf-sec:hover { background: #F0F9FF; }
.chcf-resumen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px;
  padding: 12px 14px; border-radius: 12px; background: #F0F9FF; border: 1px solid #BAE6FD; }
.chcf-resumen[hidden] { display: none; }
.chcf-resumen-txt { margin: 0; font-weight: 700; font-size: .95rem; }
.chcf-resumen .chcf-sec { min-height: 44px; padding: 8px 14px; font-size: .9rem; }
@media (min-width: 640px) { .chcf-dialogo .chcf-grupo .chcp-rejilla { grid-template-columns: 1fr 1fr; } }

/* Botón flotante (abajo a la izquierda; el de WhatsApp está a la derecha) */
.chcf-flotante { position: fixed; left: 16px; bottom: calc(24px + env(safe-area-inset-bottom, 0px));   /* QA BAJA-4 */
  z-index: 29; display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: #0369A1; color: #fff;
  font-family: Inter, system-ui, sans-serif; font-weight: 800; font-size: .95rem; cursor: pointer;
  box-shadow: 0 10px 28px rgba(3, 105, 161, .40); animation: chcf-aparece .25s ease-out; }
.chcf-flotante:hover { background: #075985; }
.chcf-flotante[hidden] { display: none; }
@keyframes chcf-aparece { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chcf-flotante { animation: none; } }
@media print { .chcf-flotante, .chcf-dialogo { display: none !important; } }
