/* =============================================================================
   Kit CEN + Acompañamiento · pantallas (v1.67.1) · estilos
   =============================================================================
   Diseño aprobado: vista previa de Cowork «Kit CEN y acompañamiento» (artefacto Pbe63qEthjw6ZmCoDLSLf6).
   Todo con el prefijo kit- para no tocar nada de lo demás. Los colores y las formas son los de la vista previa
   (arena, naranja de la marca, verde, ocre y azul suave). La app va siempre en claro.
   ============================================================================= */
.kit-oculto { display: none !important; }

/* Pastillas de estado */
.kit-pil { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 99px; white-space: nowrap; line-height: 1.5; }
.kit-pil.ok { background: #e7f4ec; color: #2f7a4f; }
.kit-pil.pend { background: #fff4d8; color: #7a5208; }
.kit-pil.hoy { background: #bd5518; color: #fff; }
.kit-pil.gris { background: #f1eee8; color: #66625f; }
.kit-pil.azul { background: #e8edf6; color: #3f5a8c; }
.kit-pil.mal { background: #f8e7e3; color: #a3362a; }
button.kit-pil { border: 0; cursor: pointer; min-height: 32px; padding: 4px 12px; font-size: 12px; }
button.kit-pil.hoy:hover { background: #a24814; }

/* Etiqueta «KIT · fase 2» */
.kit-etq { display: inline-block; font-size: 11px; font-weight: 800; background: #fff4d8; color: #7a5208; border: 1px solid #e7aa2d; border-radius: 6px; padding: 0 6px; line-height: 1.6; white-space: nowrap; }
.kit-cita-fila { border-left: 4px solid #bd5518; }
.kit-incluida { display: block; font-size: 11.5px; color: #66625f; margin-top: 2px; }

/* Botones (los mismos tamaños de la vista previa; 44 px de alto para el dedo) */
.kit-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; background: #bd5518; color: #fff; border: 1.5px solid #bd5518; border-radius: 12px; padding: 10px 16px; min-height: 44px; font-weight: 800; font-size: 14px; cursor: pointer; font-family: inherit; line-height: 1.2; }
.kit-btn:hover { background: #a24814; border-color: #a24814; }
.kit-btn.sec { background: #fff; color: #2b2b2b; border-color: #e8e4de; }
.kit-btn.sec:hover { background: #fffdf8; border-color: #d6cfc4; }
.kit-btn.peligro { background: #fff; color: #a3362a; border-color: #ecc4bc; }
.kit-btn.grande { width: 100%; }
.kit-btn.peq { padding: 7px 12px; font-size: 13px; border-radius: 9px; min-height: 40px; }
.kit-btn[disabled] { opacity: .55; cursor: not-allowed; }
.kit-botones { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-btn:focus-visible, .kit-op:focus-within, .kit-metodo:focus-within { outline: 3px solid #e7aa2d; outline-offset: 2px; }

/* Tarjetas (ficha, portal) */
.kit-tarjeta { background: #fff; border: 1px solid #e8e4de; border-radius: 14px; padding: 14px 16px; display: grid; gap: 10px; color: #2b2b2b; }
.kit-tarjeta h4 { margin: 0; font-family: 'Fredoka', 'Nunito', ui-rounded, system-ui, sans-serif; font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.kit-tarjeta p { margin: 0; color: #66625f; font-size: 13.5px; line-height: 1.45; }
.kit-tarjeta.ocre { background: #fff4d8; border-color: #e7aa2d; }
.kit-tarjeta.ok { background: #e7f4ec; border-color: #2f7a4f; }
.kit-tarjeta.ok h4 { color: #2f7a4f; }
.kit-cabecera { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }

/* Listas de filas con raya fina */
.kit-lista { display: grid; gap: 0; }
.kit-lista > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #e8e4de; font-size: 13.5px; }
.kit-lista > div:last-child { border-bottom: 0; }
.kit-lista .izq { display: grid; min-width: 0; }
.kit-lista small { color: #66625f; font-size: 12px; }
.kit-lista b.num, .kit-num { font-variant-numeric: tabular-nums; }
.kit-lista .atrasado small { color: #a3362a; font-weight: 700; }

/* Fases con su punto y la barra de avance */
.kit-progreso { height: 8px; background: #f1eee8; border-radius: 99px; overflow: hidden; }
.kit-progreso i { display: block; height: 100%; background: #2f7a4f; border-radius: 99px; }
.kit-fases { display: grid; gap: 7px; }
.kit-fases > div { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13.5px; }
.kit-punto { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #e8e4de; background: #fff; }
.kit-punto.ok { background: #2f7a4f; border-color: #2f7a4f; }
.kit-punto.ya { border-color: #bd5518; background: #fff4d8; }

/* Cuenta atrás */
.kit-cuenta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 800; color: #bd5518; font-size: 13.5px; }
.kit-reloj { font-variant-numeric: tabular-nums; background: #fff; border: 1px solid #e7aa2d; border-radius: 8px; padding: 2px 8px; }

/* Opciones de pago (dos botones, mismo total) */
.kit-op { display: grid; gap: 4px; border: 1.5px solid #e8e4de; border-radius: 12px; padding: 11px 12px; background: #fff; cursor: pointer; text-align: left; font-family: inherit; color: #2b2b2b; width: 100%; }
.kit-op.sel { border-color: #bd5518; box-shadow: 0 0 0 3px #fff4d8; }
.kit-op .linea1 { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; font-size: 14px; }
.kit-op p { color: #66625f; font-size: 13px; margin: 0; }
.kit-check { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #66625f; line-height: 1.4; }
.kit-check input { accent-color: #bd5518; margin-top: 3px; width: 18px; height: 18px; flex: none; }
.kit-check-grande { min-height: 44px; align-items: center; }
.kit-condiciones { border: 1px solid #e8e4de; border-radius: 10px; padding: 8px 12px; background: #fffdf8; font-size: 12.5px; color: #4b4743; }
.kit-condiciones summary { cursor: pointer; font-weight: 800; color: #bd5518; min-height: 32px; display: flex; align-items: center; }
.kit-condiciones div { white-space: pre-wrap; margin-top: 6px; max-height: 220px; overflow: auto; }

/* Formas de cobrar en el centro */
.kit-metodos { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.kit-metodo { border: 1.5px solid #e8e4de; border-radius: 10px; padding: 9px; text-align: center; font-weight: 800; font-size: 13px; background: #fff; cursor: pointer; min-height: 44px; display: grid; place-items: center; position: relative; }
.kit-metodo input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.kit-metodo:has(input:checked) { border-color: #bd5518; background: #fff4d8; }

/* Avisos de color suave */
.kit-aviso { background: #e8edf6; color: #3f5a8c; border-radius: 10px; padding: 9px 11px; font-size: 13px; line-height: 1.4; }
.kit-aviso.mal { background: #f8e7e3; color: #a3362a; }
.kit-aviso.pend { background: #fff4d8; color: #6b470c; }

/* La hoja (ventana) donde viven todas las pantallas nuevas */
.kit-hoja { position: fixed; inset: 0; z-index: 78; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 12px; }
.kit-hoja-caja { background: #fff; border-radius: 18px; box-shadow: 0 12px 34px rgba(30, 20, 10, .28); width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; display: grid; gap: 12px; padding: 18px; color: #2b2b2b; align-content: start; }
.kit-hoja-caja.ancha { max-width: 760px; }
.kit-hoja-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.kit-hoja-cab h3 { margin: 0; font-family: 'Fredoka', 'Nunito', ui-rounded, system-ui, sans-serif; font-weight: 600; font-size: 18px; line-height: 1.25; }
.kit-hoja-cab small { display: block; color: #66625f; font-size: 12.5px; font-weight: 600; }
.kit-cerrar { border: 0; background: none; font-size: 26px; line-height: 1; color: #94a3b8; cursor: pointer; min-width: 44px; min-height: 44px; }
.kit-cerrar:hover { color: #475569; }
.kit-pie { color: #66625f; font-size: 12.5px; }
@media (max-width: 640px) {
  .kit-hoja { align-items: flex-end; padding: 0; }
  .kit-hoja-caja { border-radius: 20px 20px 0 0; max-height: 94vh; padding: 16px 16px max(20px, env(safe-area-inset-bottom)); }
}

/* Cobros › Kits */
.kit-resumen { display: flex; flex-wrap: wrap; gap: 8px; }
.kit-resumen .kit-pil { font-size: 13px; padding: 4px 12px; }
.kit-seccion-tit { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #66625f; margin: 6px 0 0; }
.kit-fila { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid #f1eee8; flex-wrap: wrap; }
.kit-fila .izq { display: grid; min-width: 0; font-size: 13px; }
.kit-fila small { color: #66625f; font-size: 11.5px; }
.kit-fila .der { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.kit-fila.clic { cursor: pointer; }
.kit-fila.clic:hover { background: #fffdf8; }

/* Editor del producto «kit» */
.kit-editor { display: grid; gap: 14px; }
.kit-editor fieldset { border: 1px solid #e8e4de; border-radius: 12px; padding: 12px 14px 14px; display: grid; gap: 10px; background: #fff; margin: 0; min-width: 0; }
.kit-editor legend { font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #66625f; padding: 0 6px; }
.kit-editor label.kit-campo { display: grid; gap: 4px; font-size: 12px; font-weight: 800; color: #2b2b2b; }
.kit-editor label.kit-campo small { font-weight: 600; color: #66625f; font-size: 11.5px; }
.kit-editor input[type="text"], .kit-editor input[type="number"], .kit-editor select, .kit-editor textarea { background: #fff; border: 1px solid #e8e4de; border-radius: 12px; padding: 0 12px; min-height: 44px; font-size: 14px; width: 100%; font-weight: 500; font-family: inherit; }
.kit-editor textarea { padding: 10px 12px; min-height: 120px; }
.kit-rejilla { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.kit-pieza { display: grid; gap: 8px; border: 1px solid #e8e4de; border-radius: 12px; padding: 10px 12px; background: #fffdf8; }
.kit-pieza-fila { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr) 90px; gap: 8px; align-items: end; }
@media (max-width: 640px) { .kit-pieza-fila { grid-template-columns: 1fr 1fr; } .kit-pieza-fila > :nth-child(2) { grid-column: 1 / -1; order: -1; } }
.kit-pieza-pie { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.kit-calculo { background: #fff4d8; border: 1px solid #e7aa2d; border-radius: 12px; padding: 10px 14px; font-size: 13.5px; display: grid; gap: 3px; }
.kit-calculo b { font-family: 'Fredoka', 'Nunito', ui-rounded, system-ui, sans-serif; font-weight: 600; font-size: 15.5px; }
.kit-mini { font-size: 11.5px; color: #66625f; }
.kit-insignia { font-size: 10px; font-weight: 800; background: #fff4d8; color: #7a5208; border: 1px solid #e7aa2d; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }

/* Citar: banda del kit dentro de la ventana de la cita */
.kit-banda { background: #fff4d8; border: 1px solid #e7aa2d; border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; font-size: 13px; }
.kit-banda b { font-size: 14px; }

/* Finalizar sesión: casilla «Proponer kit» */
.kit-proponer { display: flex; align-items: flex-start; gap: 10px; background: #fff4d8; border: 1px solid #e7aa2d; border-radius: 12px; padding: 10px 12px; font-size: 12px; color: #4b3a10; }
.kit-proponer input { accent-color: #bd5518; width: 20px; height: 20px; margin-top: 2px; flex: none; }
.kit-proponer b { display: block; font-size: 13px; color: #2b2b2b; }

/* Lista de familias: «Kit» y «Pago pendiente» */
.kit-lf { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; white-space: nowrap; background: #fff4d8; color: #7a5208; border: 1px solid #e7aa2d; }
.kit-lf.pago { background: #f8e7e3; color: #a3362a; border-color: #ecc4bc; }

/* Portal de familias: «Vuestro kit» y «Cómo prepararla» */
.kit-pf .kit-tarjeta { border-radius: 16px; }
.kit-pf .kit-btn { border-radius: 999px; min-height: 48px; font-size: 1rem; }
.kit-pf .kit-btn.peq { min-height: 44px; font-size: .9rem; padding: 6px 16px; white-space: nowrap; }
.kit-pf-prepara { display: grid; gap: 8px; margin-top: .6rem; background: #fff8e6; border: 1px solid #f0dfae; border-radius: 14px; padding: 12px 14px; }
.kit-pf-prepara p { margin: 0; color: #2b2b2b; font-size: .95rem; line-height: 1.45; }
.kit-pf-prepara h4 { margin: 0; font-family: 'Fredoka', 'Nunito', ui-rounded, system-ui, sans-serif; font-weight: 600; font-size: 1.05rem; }
.kit-pf-pago { margin-top: .6rem; }
.kit-pf-pago .kit-tarjeta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; }
.kit-pf-pago p { margin: 0; color: #2b2b2b; font-size: .95rem; line-height: 1.45; }

@media (prefers-reduced-motion: no-preference) { .kit-op, .kit-metodo, .kit-btn { transition: border-color .15s, background .15s; } }
