/* ============================================================
   pro.css — Perfil para profesionales (v9.0)
   Lo usan la página /pro (pro.html, js/pro.js) y, en la app normal, lo que ve
   el cliente de un profesional (js/pro-cliente.js): el aviso para aceptar, el
   botón PRO y la página de su profesional con el chat.
   Todo va con prefijo "pf-" para no chocar con nada de styles.css.
   ============================================================ */

/* ── Piezas HUD (la estética de los meal box: cuadrícula, corchetes, láser) ── */
.pf-hud { position: relative; border: 1px solid rgba(255,255,255,.08); border-radius: 6px;
  background:
    linear-gradient(rgba(var(--brand-a-rgb),.07) 1px, transparent 1px) 0 0 / 100% 8px,
    linear-gradient(90deg, rgba(var(--brand-a-rgb),.07) 1px, transparent 1px) 0 0 / 8px 100%,
    linear-gradient(135deg, rgba(255,107,53,.08), rgba(168,85,247,.10)), #1c1c36; }
.pf-hud::before { content: ""; position: absolute; inset: -1px; border-radius: 6px; pointer-events: none; --L: 16px; --T: 3px;
  background:
    linear-gradient(var(--brand-a), var(--brand-a)) top left / var(--L) var(--T) no-repeat,
    linear-gradient(var(--brand-a), var(--brand-a)) top left / var(--T) calc(var(--L) - 2px) no-repeat,
    linear-gradient(var(--brand-m), var(--brand-m)) top right / var(--L) var(--T) no-repeat,
    linear-gradient(var(--brand-m), var(--brand-m)) top right / var(--T) calc(var(--L) - 2px) no-repeat,
    linear-gradient(var(--brand-m), var(--brand-m)) bottom left / var(--L) var(--T) no-repeat,
    linear-gradient(var(--brand-m), var(--brand-m)) bottom left / var(--T) calc(var(--L) - 2px) no-repeat,
    linear-gradient(var(--brand-b), var(--brand-b)) bottom right / var(--L) var(--T) no-repeat,
    linear-gradient(var(--brand-b), var(--brand-b)) bottom right / var(--T) calc(var(--L) - 2px) no-repeat;
  filter: drop-shadow(0 0 4px rgba(var(--brand-a-rgb),.5)); }
.pf-ven.pf-hud::before { inset: 0; }
.pf-hud.pf-dim { background: #14142a; border-color: rgba(255,255,255,.07); }
.pf-hud.pf-dim::before { opacity: .35; }
.pf-laser { position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; pointer-events: none; background: #fff;
  box-shadow: 0 0 10px 3px var(--brand-b), 0 0 22px 6px rgba(var(--brand-a-rgb),.45); animation: pfLaser 2.6s ease-in-out infinite; }
@keyframes pfLaser { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 2px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pf-laser { animation: none; opacity: 0; } }

.pf-btn { height: 40px; padding: 0 14px; border: 0; border-radius: 8px; cursor: pointer; white-space: nowrap;
  background: linear-gradient(135deg, var(--brand-a), var(--brand-m) var(--brand-mp), var(--brand-b)); color: #14141f;
  font: 900 12px system-ui, sans-serif; letter-spacing: 1px; box-shadow: 0 0 14px rgba(var(--brand-a-rgb),.45); }
.pf-btn:disabled { opacity: .5; cursor: default; }
.pf-btn.pf-sec { background: #151832; color: #e9ebff; border: 1px solid #262a4a; box-shadow: none; }
.pf-btn.pf-peligro { background: rgba(231,76,60,.14); color: #f87171; border: 1px solid rgba(248,113,113,.35); box-shadow: none; }

.pf-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 4px; background: rgba(255,255,255,.06);
  font: 800 10px ui-monospace, Consolas, monospace; letter-spacing: .5px; color: #c4c9da; white-space: nowrap; }
.pf-chip.ok { color: #4ade80; background: rgba(74,222,128,.1); }
.pf-chip.mid { color: #fbbf24; background: rgba(251,191,36,.1); }
.pf-chip.bad { color: #f87171; background: rgba(248,113,113,.1); }
.pf-chip.azul, .pf-azul { color: #22d3ee; background: rgba(34,211,238,.15); }
.pf-azul { padding: 3px 9px; border-radius: 5px; font: 900 11px ui-monospace, Consolas, monospace; letter-spacing: .5px; }

/* Cápsula azul PRO (junto al nombre) */
.pf-tag { padding: 2px 6px; border-radius: 4px; background: rgba(34,211,238,.15); color: #22d3ee; font: 900 9px ui-monospace, Consolas, monospace; letter-spacing: 1px; }

/* ── Ventanas (aviso, añadir cliente, chat…) ── */
.pf-velo { position: fixed; inset: 0; z-index: 20000; display: none; place-items: center; padding: 16px; background: rgba(3,3,10,.78);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.pf-velo.open { display: grid; }
.pf-ven { width: min(420px, 100%); max-height: 88vh; overflow: auto; padding: 18px 16px 16px; font-family: system-ui, sans-serif; color: #e5e5f5; }
.pf-ven h3 { margin: 0 0 6px; font: 900 17px system-ui, sans-serif; color: #fff; }
.pf-ven p { margin: 0 0 10px; font: 600 13px/1.45 system-ui, sans-serif; color: #c4c9da; }
.pf-ven ul { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 6px; }
.pf-ven li { display: flex; gap: 8px; font: 700 12.5px/1.35 system-ui, sans-serif; color: #e5e5f5; }
.pf-ven li span { width: 20px; flex: none; text-align: center; }
.pf-ven .pf-nota { font-size: 11.5px; color: #8a8fb5; border-top: 1px dashed rgba(255,255,255,.12); padding-top: 9px; }
.pf-ven .pf-nota a { color: #c4b5fd; }
.pf-acc { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }
.pf-x { position: absolute; top: 8px; right: 8px; z-index: 4; width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); color: #ddd; font-size: 14px; cursor: pointer; }
.pf-quien { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; padding: 10px; border-radius: 8px; background: #0b0b14; }
.pf-av { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #22d3ee, #c084fc); color: #14141f; font: 900 15px system-ui, sans-serif; }
.pf-quien b { display: block; font: 900 14px system-ui, sans-serif; color: #fff; }
.pf-quien small { font: 700 11px system-ui, sans-serif; color: #22d3ee; }
.pf-campo-in { width: 100%; height: 40px; box-sizing: border-box; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: #0b0b14; color: #fff; font: 700 14px system-ui, sans-serif; }
/* Sugerencias de usuarios al añadir un cliente (js/pro.js). */
.pf-sug { margin-top: 6px; max-height: 240px; overflow-y: auto; border: 1px solid rgba(var(--brand-a-rgb), .3); border-radius: 8px; background: #0b0b14; }
.pf-sug button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-bottom: 1px solid rgba(255,255,255,.05); background: none; color: #d4d4e4; font: 700 13.5px system-ui, sans-serif; text-align: left; cursor: pointer; }
.pf-sug button:last-child { border-bottom: 0; }
.pf-sug button:hover, .pf-sug button:focus-visible { background: rgba(var(--brand-a-rgb), .12); }
.pf-sug button b { color: var(--brand-a); font-weight: 900; }
.pf-sug-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-sug-av { width: 26px; height: 26px; flex: none; border-radius: 6px; display: grid; place-items: center; color: #14141f; font: 900 10px system-ui, sans-serif; }
/* Añadir cliente por email: el campo con su botón BUSCAR y la cuenta encontrada, que se selecciona. */
.pf-add-busca { display: flex; gap: 8px; }.pf-add-busca input { flex: 1; min-width: 0; }
.pf-add-busca .pf-btn { flex: none; }
/* BUSCAR se enciende con el color del tema en cuanto hay algo escrito. */
.pf-add-busca .pf-btn.pf-sec.listo { border: 0; color: #14141f; background: linear-gradient(135deg, var(--brand-a), var(--brand-m) var(--brand-mp), var(--brand-b)); box-shadow: 0 0 14px rgba(var(--brand-a-rgb),.45); }
.pf-sug .pf-add-res { padding: 10px 12px; }
.pf-add-res .pf-sug-av { width: 34px; height: 34px; border-radius: 50%; font-size: 12px; }
.pf-add-res .pf-sug-n b { display: block; color: #fff; font-size: 14.5px; }
.pf-add-res .pf-sug-n small { display: block; font: 700 11px system-ui, sans-serif; color: #9a9ab5; }
.pf-add-res em { margin-left: auto; flex: none; font-style: normal; font: 800 11px system-ui, sans-serif; color: var(--brand-a); }
.pf-add-res.on { background: rgba(var(--brand-a-rgb), .16); box-shadow: inset 0 0 0 1.5px var(--brand-a); border-radius: 8px; }
.pf-add-res.on em { color: #4ade80; }
.pf-err { min-height: 16px; margin-top: 6px; font: 700 12px system-ui, sans-serif; color: #f87171; }

/* ── Chat ── */
.pf-chat { display: flex; flex-direction: column; gap: 8px; padding: 10px; min-height: 120px; max-height: 46vh; overflow: auto; }
.pf-bur { max-width: 80%; padding: 8px 11px; border-radius: 12px; font: 600 13px/1.4 system-ui, sans-serif; overflow-wrap: anywhere; white-space: pre-wrap; }
.pf-bur.el { align-self: flex-start; background: #262647; color: #e5e5f5; border-top-left-radius: 3px; }
.pf-bur.yo { align-self: flex-end; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); color: #14141f; border-top-right-radius: 3px; }
.pf-bur small { display: block; margin-top: 3px; font-size: 10px; opacity: .7; }
.pf-chat-vacio { margin: auto; text-align: center; font: 700 12px system-ui, sans-serif; color: #7c7c98; }
.pf-chat-in { display: flex; gap: 8px; padding: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.pf-chat-in input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: #0b0b14; color: #fff; font: 600 13px system-ui, sans-serif; }
.pf-chat-tope { padding: 0 10px 8px; font: 700 10.5px system-ui, sans-serif; color: #7c7c98; text-align: right; }

/* ── Botón PRO del cliente: mismo círculo que ADMIN, "P" azul y "RO" morado ── */
.pf-fab { left: calc(50% - 34px); }
.pf-fab .pf-fab-t { font: 900 19px/1 system-ui, sans-serif; color: #c084fc; text-shadow: 0 0 8px rgba(192,132,252,.8); }
.pf-fab .pf-fab-t b { color: #22d3ee; text-shadow: 0 0 8px rgba(34,211,238,.9); }
.pf-fab .fab-label { background: linear-gradient(135deg, #7dd3fc, #c79bff); -webkit-background-clip: text; background-clip: text; }
.pf-fab-n { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 10px; display: none; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fed7aa, #ea580c); color: #fff; font: 900 11px system-ui, sans-serif; box-shadow: 0 0 8px #fb923c; }
.pf-fab-n.on { display: grid; }
/* Dieta nueva: la manzana con un 1 dentro, arriba a la izquierda del botón PRO. */
.pf-fab-dieta { position: absolute; top: -9px; left: -7px; z-index: 2; width: 28px; height: 28px; display: none; place-items: center; pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(74,222,128,.75)); animation: pfManzana 1.6s ease-in-out infinite; }
.pf-fab-dieta.on { display: grid; }
.pf-fab-dieta i { grid-area: 1 / 1; font-size: 25px; line-height: 1; font-style: normal; }
.pf-fab-dieta b { grid-area: 1 / 1; margin-top: 4px; font: 900 12px/1 system-ui, sans-serif; color: #fff; text-shadow: 0 0 2px #14532d, 0 0 3px #14532d, 0 1px 2px #052e16; }
@keyframes pfManzana { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .pf-fab-dieta { animation: none; } }
/* MI DIETA, en el panel "Tu profesional" */
.pf-dieta-b { display: flex; align-items: center; gap: 10px; width: 100%; margin: 2px 0 10px; padding: 10px; border-radius: 8px; cursor: pointer; text-align: left; color: #ececf5;
  background: linear-gradient(135deg, rgba(74,222,128,.14), rgba(34,211,238,.10)); border: 1px solid rgba(74,222,128,.45); font-family: system-ui, sans-serif; }
.pf-dieta-b .ic { font-size: 22px; }
.pf-dieta-b b { display: block; font: 900 12px ui-monospace, Consolas, monospace; letter-spacing: 1px; }
.pf-dieta-b small { color: #9a9ab5; font: 700 11px system-ui, sans-serif; }
.pf-dieta-nueva { margin-left: auto; padding: 2px 7px; border-radius: 4px; font: 900 9.5px ui-monospace, Consolas, monospace; letter-spacing: .8px; color: #0b0b14; background: #4ade80; }
/* La dieta (lo que ve el cliente) */
.pf-dieta-de { margin: -2px 0 10px; font: 700 11px ui-monospace, Consolas, monospace; color: #7c7c98; }
.pf-dieta-k { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 6px; margin-bottom: 10px; }
.pf-dieta-k div { padding: 8px 4px; text-align: center; border-radius: 6px; background: #07070e; border: 1px solid rgba(255,255,255,.08); }
.pf-dieta-k b { display: block; font: 900 15px system-ui, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.pf-dieta-k small { font: 800 9px ui-monospace, Consolas, monospace; letter-spacing: .8px; color: #7c7c98; }
.pf-dieta-m { margin-bottom: 7px; padding: 9px 10px; border-radius: 6px; background: #0e0e18; border: 1px solid rgba(255,255,255,.08); }
.pf-dieta-m h6 { display: flex; margin: 0 0 4px; font: 900 10.5px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: var(--brand-a); }
.pf-dieta-m h6 em { margin-left: auto; font-style: normal; color: #4ade80; }
.pf-dieta-m p, .pf-dieta-n p { margin: 0; font: 600 13px/1.45 system-ui, sans-serif; color: #d9dbe8; white-space: pre-line; overflow-wrap: anywhere; }
.pf-dieta-m.cambio { border-color: rgba(74,222,128,.55); box-shadow: inset 3px 0 0 #4ade80; }
.pf-dieta-n { margin-top: 4px; padding: 9px 10px; border-radius: 6px; background: rgba(var(--brand-a-rgb), .08); border: 1px dashed rgba(var(--brand-a-rgb), .4); }
.pf-dieta-n b { display: block; margin-bottom: 4px; font: 900 10.5px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: #ececf5; }
#pfDieta, #pfDietaV, #pfDieta > .pf-ven, #pfDietaV > .pf-ven, #pfAddV > .pf-ven { overflow-x: hidden; }
/* Objetivos del día con el color de cada macro (cliente) */
.pf-dieta-k .k b { color: #fff; } .pf-dieta-k .p b { color: #f7c948; } .pf-dieta-k .c b { color: #60a5fa; } .pf-dieta-k .g b { color: #fb923c; }
/* La línea del día (cliente): un punto por momento, con su emoji y su color, y sus opciones de lado. */
.pf-tl { position: relative; padding-left: 40px; margin-top: 4px; }
.pf-tl::before { content: ''; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(#fbbf24, #4ade80, #fb923c, #f472b6, #818cf8); }
.pf-tl-m { position: relative; margin-bottom: 14px; }
.pf-tl-nodo { position: absolute; left: -40px; top: -3px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: #0b0b14;
  border: 2px solid var(--mc); box-shadow: 0 0 10px color-mix(in srgb, var(--mc) 60%, transparent); }
.pf-tl-m.cambio .pf-tl-nodo::after { content: ''; position: absolute; right: -3px; top: -3px; width: 10px; height: 10px; border-radius: 50%; background: #4ade80; border: 2px solid #0b0b14; box-shadow: 0 0 8px #4ade80; }
.pf-tl-t { display: flex; align-items: baseline; gap: 8px; }
.pf-tl-t b { font: 900 12px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: var(--mc); }
.pf-tl-t small { font: 800 10.5px ui-monospace, Consolas, monospace; color: var(--mc); opacity: .8; }
.pf-tl-ops { display: flex; gap: 7px; overflow-x: auto; padding: 7px 0 3px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.pf-tl-ops::-webkit-scrollbar { display: none; }
.pf-tl-op { position: relative; flex: none; width: 205px; max-width: 78%; padding: 10px 11px 9px; border-radius: 12px; scroll-snap-align: start; box-sizing: border-box;
  background: linear-gradient(135deg, color-mix(in srgb, var(--mc) 12%, #0e0e18), #0e0e18 75%); border: 1px solid color-mix(in srgb, var(--mc) 35%, transparent); }
.pf-tl-op.uno { width: 100%; max-width: none; }
.pf-tl-op span { display: block; font: 650 13px/1.35 system-ui, sans-serif; color: #e4e6f0; overflow-wrap: anywhere; }
.pf-tl-op u { display: inline-block; margin-top: 7px; padding: 2px 8px; border-radius: 999px; text-decoration: none; font: 800 10.5px system-ui, sans-serif; color: #f7c948; background: rgba(247,201,72,.12); }
.pf-tl-op em { display: inline-block; margin-bottom: 5px; padding: 1px 6px; border-radius: 4px; font: 900 9px ui-monospace, Consolas, monospace; letter-spacing: .8px; font-style: normal; color: #0b0b14; background: #4ade80; }
/* Editor (profesional): acordeón por momento, con sus opciones y sus kcal. */
.pfd-comidas { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.pfd-acc { border-radius: 12px; border: 1px solid color-mix(in srgb, var(--mc) 32%, transparent); overflow: hidden; }
.pfd-acc-h { width: 100%; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 0; cursor: pointer; text-align: left; color: #ececf5; background: color-mix(in srgb, var(--mc) 12%, #0e0e18); }
.pfd-acc-h .pfd-e { font-size: 18px; line-height: 1; }
.pfd-acc-h b { font: 900 11.5px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: var(--mc); }
.pfd-acc-h small { margin-left: auto; font: 800 10.5px ui-monospace, Consolas, monospace; color: var(--mc); opacity: .85; }
.pfd-acc-h i { font-style: normal; color: var(--mc); transition: transform .15s; }
.pfd-acc.open .pfd-acc-h i { transform: rotate(180deg); }
.pfd-acc-b { padding: 10px 10px 8px; }
.pfd-op { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.pfd-op .pfd-n { flex: none; width: 16px; text-align: center; font: 900 11px ui-monospace, Consolas, monospace; color: var(--mc); }
.pfd-op input { min-width: 0; height: 34px; box-sizing: border-box; }
.pfd-op input[data-t] { flex: 1; }
.pfd-op .pfd-k { flex: none; width: 62px; text-align: center; color: #f7c948; }
.pfd-x { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(248,113,113,.35); background: rgba(231,76,60,.12); color: #f87171; cursor: pointer; }
.pfd-add { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer; border: 1.5px dashed color-mix(in srgb, var(--mc) 60%, transparent); background: transparent; color: var(--mc); font: 900 10.5px ui-monospace, Consolas, monospace; letter-spacing: .6px; }
/* Editor de la dieta (profesional) */
.pfd-sec { margin: 12px 0 6px; font: 900 10px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: #9a9ab5; text-transform: uppercase; }
.pfd-objs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pfd-objs label { display: flex; flex-direction: column; gap: 4px; min-width: 0; font: 800 9px ui-monospace, Consolas, monospace; letter-spacing: .8px; color: #7c7c98; text-transform: uppercase; }
.pfd-objs input { width: 100%; min-width: 0; height: 34px; box-sizing: border-box; }
@media (max-width: 420px) { .pfd-objs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pfd-meal { margin-top: 8px; }
.pfd-meal b { display: block; margin-bottom: 4px; font: 900 10.5px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: var(--brand-a); }
.pfd-meal textarea { display: block; width: 100%; box-sizing: border-box; min-height: 58px; resize: vertical; font: 600 13px/1.4 system-ui, sans-serif; }
.pfd-pie { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pfd-pie small { font: 700 11px ui-monospace, Consolas, monospace; color: #7c7c98; }
/* ASIGNAR PLANTILLA, junto a GUARDAR, y la lista de plantillas para elegir. */
.pfd-pie .pfd-asigpl { color: #a5f3fc; background: rgba(34,211,238,.1); border: 1.5px solid rgba(34,211,238,.6); box-shadow: none; }
.pfd-asig-sub { display: block; margin-top: 3px; font: 800 10px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: #22d3ee; }
.pfd-asig-l { display: grid; gap: 10px; margin-top: 12px; }
.pfd-asig-pl.armada { border-color: #fbbf24; box-shadow: 0 0 12px rgba(251,191,36,.45); }
.pfd-asig-pl.armada small { color: #fbbf24; font-weight: 900; }
/* La misma onda que MUNDO y RETOS (styles.css, .mr-fab y mrOnda), con sus
   mismos colores: los del tema. */
.pf-fab::before, .pf-fab::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--brand-a); opacity: 0; animation: mrOnda 3s ease-out infinite; }
.pf-fab::after { border-color: var(--brand-b); animation-delay: 1.5s; }
@media (prefers-reduced-motion: reduce) { .pf-fab::before, .pf-fab::after { animation: none; opacity: 0; } }
/* Sin Premium (ni periodo gratis vigente), apagado: sin onda y en gris. */
.pf-fab.pf-off { opacity: .45; filter: grayscale(.85); animation: none; }
.pf-fab.pf-off::before, .pf-fab.pf-off::after { animation: none; opacity: 0; }
/* Como el de admin: no se ve sobre el chat ni la zona social. */
body:has(#socialPanel.active) .pf-fab { display: none; }

/* ── Admin: switch del permiso de profesional (js/admin.js, renderProTable) ── */
.adm-pro-sw { position: relative; width: 38px; height: 22px; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: #24243a; cursor: pointer; vertical-align: middle; transition: background .2s, border-color .2s; }
.adm-pro-sw i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #8a8aa0; transition: left .2s, background .2s; }
.adm-pro-sw.on { background: rgba(34,211,238,.25); border-color: #22d3ee; box-shadow: 0 0 8px rgba(34,211,238,.4); }
.adm-pro-sw.on i { left: 18px; background: #22d3ee; }
.adm-pro-sw:disabled { opacity: .5; cursor: default; }
/* El de los filtros del profesional, en el color del tema. */
.pf-fil .adm-pro-sw.on { background: rgba(var(--brand-a-rgb), .25); border-color: var(--brand-a); box-shadow: 0 0 8px rgba(var(--brand-a-rgb), .4); }
.pf-fil .adm-pro-sw.on i { background: var(--brand-a); }
.adm-pro-tel { width: 120px; height: 26px; padding: 0 7px; box-sizing: border-box; border-radius: 6px; border: 1px solid rgba(255,255,255,.14); background: #0b0b14; color: #fff; font: 700 11.5px ui-monospace, Consolas, monospace; }
.adm-pro-tel:focus { outline: none; border-color: #22d3ee; box-shadow: 0 0 6px rgba(34,211,238,.4); }

/* ── Filtros de la lista de clientes y etiquetas (js/pro.js) ── */
.pf-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 4px; padding: 8px 10px; border-radius: 8px; background: #0b0b14; border: 1px solid rgba(255,255,255,.08); }
/* "FILTROS", en pequeño, para que se sepa qué es; y una raya entre los dos filtros. */
.pf-fil-t { flex-basis: 100%; margin-bottom: -2px; font: 900 8.5px ui-monospace, Consolas, monospace; letter-spacing: 1.6px; color: #7c7c98; }
.pf-fil + .pf-fil { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.12); }
/* La flecha de desplegar, en la casilla de color de la izquierda, bajo las iniciales,
   del color de la casilla. */
.pf-ini.pf-ini-chev { width: 46px; flex-direction: column; gap: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 6px 0; }
.pf-ini-chev .pf-chevw { position: static; }
.pf-ini-chev .dacc-chev { width: 24px; height: 24px; background: rgba(255,255,255,.3); border: 1px solid rgba(0,0,0,.22); box-shadow: none; }
.pf-ini-chev .dacc-chev path { stroke: #14141f; }
.pf-ini-chev:active .pf-chevw { transform: scale(.82); }
.pf-ini-chev:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* Días bien / mal y el peso, a la derecha del nombre, antes del sobre. */
.pf-l1 { flex-wrap: wrap; }
.pf-bal { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.pf-bal b { font: 900 12.5px ui-monospace, Consolas, monospace; }
.pf-bok { color: #4ade80; text-shadow: 0 0 6px rgba(74,222,128,.4); }
.pf-bko { color: #f87171; }
.pf-bal .res-status.dacc-cap { font-size: 11px; padding: 2px 6px; white-space: nowrap; }
.pf-l1 .pf-bal + .pf-msg { margin-left: 12px; }
/* Avatar redondo de cada cliente, como el de los rivales (styles.css, .friend-avatar), con su bolita verde
   que respira (dos anillos que salen de ella, faPulso). */
.pf-avr { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font: 800 12px system-ui, sans-serif; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45);
  background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); box-shadow: 0 0 0 2px rgba(11,11,20,.55), 0 0 8px rgba(var(--brand-a-rgb), .45); }
/* Bolita verde fija, sin halo ni pulso. */
.pf-avr i { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; box-sizing: border-box; border-radius: 50%; border: 2px solid #191922; background: #2ecc71; }
/* El punto del avatar, siempre verde (no dice si el cliente está conectado). */
.pf-avr.quieto i { background: #2ecc71; }
.pf-fil { display: inline-flex; align-items: center; gap: 8px; font: 800 11px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: #c4c9da; text-transform: uppercase; }
.pf-fil .pf-sel { height: 32px; max-width: 46vw; text-transform: none; letter-spacing: 0; }
/* La etiqueta: una cápsula como la de PRO, con su color. */
.pf-etq { display: inline-flex; align-items: center; margin-left: auto; padding: 3px 9px; border-radius: 4px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.07); border: 1px solid color-mix(in srgb, var(--ec, #22d3ee) 55%, transparent);
  background: color-mix(in srgb, var(--ec, #22d3ee) 16%, transparent); color: var(--ec, #22d3ee); font: 900 10px ui-monospace, Consolas, monospace; letter-spacing: .8px; text-transform: uppercase; cursor: pointer; white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.pf-etq.nueva { --ec: #9a9ab5; border-style: dashed; text-transform: none; letter-spacing: 0; font-weight: 800; }
.pf-etq:active { transform: scale(.94); }
.pf-etq.sel { box-shadow: 0 0 0 2px #0b0b14, 0 0 0 3px var(--ec); }
.pf-etq-lista { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.pf-etq-lista .pf-etq { margin-left: 0; max-width: 100%; font-size: 11px; padding: 5px 11px; }
.pf-etq-nueva { display: flex; gap: 8px; }
/* Colores para la etiqueta nueva. */
.pf-etq-cols { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.pf-etq-cols small { flex-basis: 100%; font: 900 9px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: #9a9ab5; text-transform: uppercase; }
.pf-etq-col { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid rgba(0,0,0,.35); background: var(--ec); cursor: pointer; box-shadow: 0 0 8px color-mix(in srgb, var(--ec) 45%, transparent); }
.pf-etq-col.sel { box-shadow: 0 0 0 2px #0b0b14, 0 0 0 4px #fff, 0 0 12px var(--ec); }
.pf-etq-col:active { transform: scale(.9); }
.pf-etq-nueva .pf-campo-in { flex: 1; min-width: 0; }
/* Desplegable del filtro Etiqueta (filtra, crea y borra etiquetas). */
.pf-fil-etq { position: relative; }
/* ── Cabecera del panel: «Tus clientes» con su + y su resumen, alta por email, buscador y filtros ── */
.pf-cl-cab { position: relative; margin-top: 6px; padding: 14px 14px 8px 16px; border-radius: 16px; border: 2px solid #22d3ee;
  background: radial-gradient(120% 140% at 15% 0%, #155e75 0%, #08202c 45%, #061018 100%);
  box-shadow: 0 0 18px rgba(34,211,238,.45), inset 0 0 24px rgba(34,211,238,.12); }
/* El aro que se expande, como el del + y la medalla PRO. */
.pf-cl-cab::before { content: ""; position: absolute; inset: -6px; border-radius: 20px; border: 2px solid rgba(34,211,238,.55); animation: pfAroCab 2.6s ease-out infinite; pointer-events: none; }
@keyframes pfAroCab { 0% { transform: scale(.98); opacity: .8; } 100% { transform: scale(1.05); opacity: 0; } }
/* Líneas finas de pantalla. */
.pf-cl-cab::after { content: ""; position: absolute; inset: 0; border-radius: 14px; pointer-events: none; background: linear-gradient(rgba(34,211,238,.07) 1px, transparent 1px) 0 0 / 100% 7px; }
.pf-cl-f { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.pf-cl-tx { flex: 1; min-width: 0; }
.pf-sinc { display: inline-flex; align-items: center; gap: 6px; font: 900 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1.6px; color: #4ade80; }
.pf-sinc i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; animation: pfLate 1.2s ease-in-out infinite; }
@keyframes pfLate { 50% { transform: scale(1.5); opacity: .5; } }
.pf-cl-tx h2 { margin: 5px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 900 21px/1.1 system-ui, sans-serif; letter-spacing: -.3px; color: #fff; }
.pf-cl-tx h2 b { color: #22d3ee; text-shadow: 0 0 10px rgba(34,211,238,.7); }
.pf-cl-tx .pf-cl-sub { margin: 4px 0 0; }
.pf-cl-tx .pf-cl-sub > b { color: #fff; }
/* El pulso que recorre la cabecera. */
.pf-ecg { position: relative; z-index: 1; display: block; width: 100%; height: 34px; margin-top: 4px; }
.pf-ecg path { fill: none; stroke: #22d3ee; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(34,211,238,.9)); stroke-dasharray: 520; animation: pfEcg 2.8s linear infinite; }
@keyframes pfEcg { from { stroke-dashoffset: 520; } to { stroke-dashoffset: -520; } }
/* La frase motivadora, pequeñita (cambia cada poco). */
.pf-frase { position: relative; z-index: 1; margin: 2px 0 0; min-height: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
  font: 800 10px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .3px; color: #7fa7b5; transition: opacity .5s ease; }
.pf-frase em { font-style: normal; color: #22d3ee; }
.pf-frase.fuera { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .pf-cl-cab::before, .pf-sinc i, .pf-ecg path { animation: none; } .pf-ecg path { stroke-dasharray: none; } }
/* ── Fila cerrada del cliente, con la misma forma y tamaño que la de un pendiente ──
   Izquierda: nombre y email; debajo, «Activo: …». Derecha: días, peso y chat a la altura del nombre (si no
   caben, bajan) y la etiqueta a la altura de «Activo». Nunca más ancha que el móvil. */
.pf-lista > * { min-width: 0; }
.pf-row { min-width: 0; }
.pf-row .pf-name { font: 900 16px/1.15 system-ui, sans-serif; }
.pf-mail { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 10.5px/1.25 ui-monospace, Consolas, monospace; color: #22d3ee; }
.pf-k { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; row-gap: 6px; align-items: start; }
.pf-k-n { grid-column: 1; grid-row: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-k-n .pf-name { min-width: 0; }
.pf-k-d { grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; max-width: min(190px, 48vw); }
.pf-k-d .pf-bal { margin-left: 0; }
.pf-k-d .pf-msg { margin-left: 0; }
.pf-k-d .res-status.pf-k1-peso { flex: none; font-size: 10.5px; padding: 2px 6px; white-space: nowrap; }
.pf-k-a { grid-column: 1; grid-row: 2; min-width: 0; display: flex; gap: 6px; align-self: center; }
.pf-k-a .pf-chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-k-e { grid-column: 2; grid-row: 2; justify-self: end; align-self: center; min-width: 0; }
.pf-k-e .pf-etq { margin-left: 0; max-width: min(150px, 40vw); }
/* Pendientes y rechazados: el email bajo el nombre. */
.pf-l1 .pf-mail { flex-basis: 100%; margin-top: -4px; }
/* La pestaña de color: del mismo ancho que la de un pendiente, con el avatar (punto verde) y la flecha. */
.pf-ini.pf-ini-chev { width: 38px; gap: 4px; padding: 5px 0; }
.pf-ini-chev .pf-avr { width: 28px; height: 28px; }
.pf-ini-chev .dacc-chev { width: 22px; height: 22px; }
/* Huecos libres hasta 5 clientes: cajas apagadas y vacías, del mismo tamaño que una con datos. */
.pf-hueco { opacity: .8; pointer-events: none; }
.pf-hueco .pf-ini { box-sizing: border-box; background: #2b2b3d; border: 1.5px dashed rgba(255,255,255,.22); }
.pf-hueco .pf-box { cursor: default; background: #232333; border: 1.5px dashed rgba(255,255,255,.2); }
.pf-hueco .pf-box::before { opacity: .25; }
.pf-hueco .pf-k { visibility: hidden; }
/* El cliente que acaba de llegar: su caja se enciende. */
.pf-box.pf-enciende { animation: pfEnciende 2.4s ease-out both; }
@keyframes pfEnciende { 0% { box-shadow: 0 0 0 2px #22d3ee, 0 0 26px rgba(34,211,238,.85); } 100% { box-shadow: none; } }
/* ── Botones flotantes del profesional: DIETAS (derecha) y AGENDA (izquierda) ──
   Como los de la app (COMUNIDAD): flotan y llevan su etiqueta debajo; en color PRO y con la onda que sale
   hacia fuera, como la del botón de retos. */
.pf-flot { position: fixed; bottom: calc(36px + env(safe-area-inset-bottom, 0px)); z-index: 9000; width: 68px; height: 68px; padding: 0; border-radius: 50%; cursor: pointer; overflow: visible;
  border: 2.5px solid #22d3ee; background: radial-gradient(circle at 35% 30%, #155e75, #071a24); box-shadow: 0 0 16px rgba(34,211,238,.55), 0 6px 18px rgba(0,0,0,.55);
  --press: 1; animation: pfFlota 3.4s ease-in-out infinite; }
.pf-flot-der { right: calc(16px + env(safe-area-inset-right, 0px)); }
.pf-flot-izq { left: calc(16px + env(safe-area-inset-left, 0px)); width: 62px; height: 62px; }
.pf-flot:active { --press: .9; }
@keyframes pfFlota { 0%, 100% { transform: translateY(0) scale(var(--press)); } 50% { transform: translateY(-5px) scale(var(--press)); } }
/* La onda hacia fuera (dos, desfasadas). */
.pf-flot::before, .pf-flot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none; border: 2px solid #22d3ee; opacity: 0; animation: pfOnda 3s ease-out infinite; }
.pf-flot::after { border-color: #67e8f9; animation-delay: 1.5s; }
@keyframes pfOnda { from { transform: scale(1); opacity: .55; } to { transform: scale(1.5); opacity: 0; } }
.pf-flot-ic { position: absolute; inset: 0; margin: auto; width: 29px; height: 29px; }
.pf-flot-izq .pf-flot-ic { fill: none; stroke: #e9fbff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(34,211,238,.9)); }
/* DIETAS: la manzana verde neón, con ondas de radar verdes por dentro. */
.pf-flot-der .pf-manz { width: 35px; height: 35px; fill: none; stroke: #39ff88; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(57,255,136,.95)) drop-shadow(0 0 8px rgba(57,255,136,.6)); }
.pf-flot-der .pf-manz .hoja { fill: rgba(57,255,136,.25); }
.pf-flot-radar { position: absolute; inset: 6px; border-radius: 50%; border: 2px solid rgba(57,255,136,.6); animation: pfRadarV 2.2s ease-out infinite; pointer-events: none; }
.pf-flot-radar + .pf-flot-radar { animation-delay: 1.1s; }
@keyframes pfRadarV { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.1); opacity: 0; } }
.pf-flot-lb { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 5px; white-space: nowrap; pointer-events: none;
  font: 800 11px system-ui, sans-serif; letter-spacing: 1px; background: linear-gradient(135deg, #67e8f9, #39ff88); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Que el final de la lista no quede debajo de los botones. */
#pfMain .pf-body { padding-bottom: 110px; }
@media (prefers-reduced-motion: reduce) { .pf-flot, .pf-flot::before, .pf-flot::after, .pf-flot-radar { animation: none; } .pf-flot::before, .pf-flot::after { opacity: 0; } }
/* El punto verde del sobre (mensaje nuevo del cliente): con el pulso del punto verde de los amigos del panel de
   retos (faPulso, styles.css): dos anillos que salen de él, uno tras otro. */
.pf-msg.nuevo, .pf-fv-b.pf-fv-msg { color: #4ade80; background: rgba(74,222,128,.12); box-shadow: inset 0 0 0 1px rgba(74,222,128,.35); }
.pf-fv-b.pf-fv-msg { border-color: rgba(74,222,128,.45); }
.pf-msg.nuevo svg, .pf-fv-msg svg { filter: drop-shadow(0 0 4px rgba(74,222,128,.6)); }
.pf-msg.nuevo::before { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; box-sizing: border-box; border-radius: 50%;
  border: 2px solid #4ade80; animation: faPulso 2.6s ease-out infinite; pointer-events: none; }
.pf-msg.nuevo::after { animation: pfMsgHalo 2.6s ease-out 1.3s infinite; }
@keyframes pfMsgHalo { 0% { box-shadow: 0 0 6px #4ade80, 0 0 0 0 rgba(74,222,128,.9); } 100% { box-shadow: 0 0 6px #4ade80, 0 0 0 9px rgba(74,222,128,0); } }
@media (prefers-reduced-motion: reduce) { .pf-msg.nuevo::before { animation: none; opacity: 0; } .pf-msg.nuevo::after { animation: none; } }
/* El radar del buscador (el del panel de comidas del mundo, en pequeño). */
@media (prefers-reduced-motion: reduce) { .pf-box.pf-enciende { animation: none; } }
/* El +: cuadrado, con los colores de la medalla PRO y un aro cuadrado que se expande. */
.pf-cl-mas { position: relative; z-index: 1; width: 44px; height: 44px; flex: none; padding: 0; border-radius: 12px; cursor: pointer; color: #fff;
  background: radial-gradient(circle at 35% 30%, #155e75, #071a24); border: 2px solid #22d3ee; box-shadow: 0 0 12px rgba(34,211,238,.6); }
.pf-cl-mas span { display: block; font: 900 26px/1 system-ui, sans-serif; transition: transform .2s ease; }
.pf-cl-mas[aria-expanded="true"] span { transform: rotate(45deg); }
.pf-cl-mas::before { content: ""; position: absolute; inset: -6px; border-radius: 16px; border: 2px solid rgba(34,211,238,.7); animation: pfAro 1.8s ease-out infinite; pointer-events: none; }
.pf-cl-mas:active { filter: brightness(1.2); }
.pf-cl-sub { margin: -2px 0 0 2px; font: 700 12.5px/1.3 system-ui, sans-serif; color: #9a9ab5; }
.pf-cl-sub b { font-weight: 900; color: #fff; }
.pf-cl-sub .v, .pf-cl-sub .v b { color: #4ade80; } .pf-cl-sub .a, .pf-cl-sub .a b { color: #fbbf24; }
.pf-cl-raya { height: 2px; margin-top: -4px; border-radius: 1px; background: linear-gradient(90deg, var(--brand-a), var(--brand-b) 45%, transparent); }
/* El alta por email (la abre el +) */
.pf-ven.pf-alta { display: grid; gap: 10px; }
.pf-ven.pf-alta h3 { margin: 0; padding-right: 36px; }
.pf-alta-n { margin: 0; font: 700 12px/1.4 system-ui, sans-serif; color: #c4c9da; }
.pf-alta-n b { color: #22d3ee; }
.pf-alta-f { display: flex; gap: 8px; }
.pf-alta-f .pf-campo-in { flex: 1; min-width: 0; }
.pf-alta-f .pf-btn { flex: none; transition: background .2s, box-shadow .2s; }
/* AÑADIR siempre encendido; verde en cuanto el email está completo. */
.pf-alta-f .pf-btn.listo { background: linear-gradient(135deg, #4ade80, #22c55e); box-shadow: 0 0 16px rgba(74,222,128,.6); }
.pf-alta-h { min-height: 14px; font: 700 11px/1.3 system-ui, sans-serif; color: #6a6a85; }
.pf-alta-h.ok { color: #4ade80; } .pf-alta-h.mal { color: #f87171; }
/* Buscador: una caja normal con su lupa, y al lado el botón de filtros */
.pf-bus-f { display: flex; gap: 8px; }
.pf-busca { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; box-sizing: border-box; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: #121226; cursor: text; }
.pf-busca:focus-within { border-color: rgba(var(--brand-a-rgb), .85); box-shadow: 0 0 0 3px rgba(var(--brand-a-rgb), .15); }
.pf-busca svg { width: 16px; height: 16px; flex: none; stroke: var(--brand-a); fill: none; stroke-width: 2.4; stroke-linecap: round; }
.pf-busca input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: 700 14px system-ui, sans-serif; }
.pf-busca input::placeholder { color: #7c7c98; }
.pf-busca .cnt { font: 900 11px ui-monospace, Consolas, monospace; color: var(--brand-b); }
.pf-busca .x { border: 0; background: rgba(255,255,255,.08); color: #bbb; width: 22px; height: 22px; border-radius: 5px; cursor: pointer; }
.pf-fbtn { position: relative; width: 42px; height: 42px; flex: none; padding: 0; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: #121226; display: grid; place-items: center; cursor: pointer; }
.pf-fbtn svg { width: 19px; height: 19px; stroke: var(--brand-a); fill: none; stroke-width: 2.4; stroke-linecap: round; }
.pf-fbtn.on { border-color: rgba(var(--brand-a-rgb), .85); background: rgba(var(--brand-a-rgb), .12); }
.pf-fbtn i { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--brand-b); color: #14141f; font: 900 10.5px/18px system-ui, sans-serif; text-align: center; font-style: normal; }
.pf-fbtn i:empty { display: none; }
/* Los filtros puestos, en una línea (se quitan con un toque) */
.pf-fact { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-top: -2px; }
.pf-fact::-webkit-scrollbar { display: none; }
.pf-fact:empty { display: none; }
.pf-fchip { --ec: #9a9ab5; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; max-width: 100%; padding: 0 11px; box-sizing: border-box; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ec) 45%, transparent); background: #14142a; color: #d6d6e8; font: 800 12px system-ui, sans-serif; white-space: nowrap; cursor: pointer; }
.pf-fchip span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pf-fchip i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ec); }
.pf-fchip b { font: 900 10.5px ui-monospace, Consolas, monospace; color: #9a9ab5; }
.pf-fchip.sel { border-color: var(--ec); background: color-mix(in srgb, var(--ec) 20%, #14142a); color: #fff; }
.pf-fchip.sel b { color: #fff; }
.pf-fchip.sin { border-style: dashed; }
.pf-fchip.nueva { --ec: #4ade80; border-style: dashed; border-color: rgba(74,222,128,.6); color: #4ade80; background: rgba(74,222,128,.08); font-weight: 900; }
.pf-fchip svg { width: 12px; height: 12px; stroke: var(--brand-a); fill: none; stroke-width: 2.4; stroke-linecap: round; }
.pf-fchip:active { transform: scale(.94); }
/* La hoja de filtros (sale desde abajo) */
.pf-velo.pf-hoja { place-items: end center; padding: 0; }
.pf-velo.pf-hoja > .pf-ven { width: min(560px, 100%); max-height: 82vh; border-radius: 18px 18px 0 0; padding: 16px 16px 20px; display: grid; gap: 12px; animation: pfHojaSube .25s ease both; }
@keyframes pfHojaSube { from { transform: translateY(40px); opacity: 0; } }
.pf-hoja h3 { display: flex; align-items: center; margin: 0; padding-right: 36px; }
.pf-hoja h3 button { margin-left: auto; border: 0; background: none; color: var(--brand-a); font: 800 12px system-ui, sans-serif; cursor: pointer; }
.pf-hoja-sw { display: flex; align-items: center; gap: 10px; font: 800 13.5px system-ui, sans-serif; color: #e5e5f5; cursor: pointer; }
.pf-hoja-sw .adm-pro-sw.on { background: rgba(74,222,128,.3); border-color: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,.4); }
.pf-hoja-sw .adm-pro-sw.on i { background: #4ade80; }
.pf-hoja-t { font: 900 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1.3px; color: #9a9ab5; }
.pf-hoja-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 3px; border-radius: 9px; background: #0b0b18; border: 1px solid rgba(255,255,255,.09); }
.pf-hoja-seg button { height: 32px; padding: 0 4px; border: 0; border-radius: 6px; background: none; color: #9a9ab5; font: 800 11.5px system-ui, sans-serif; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-hoja-seg button.sel { background: rgba(var(--brand-a-rgb), .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(var(--brand-a-rgb), .7); }
.pf-hoja-etq { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-hoja .pf-ver { height: 44px; width: 100%; font-size: 13px; }
/* El gestor de etiquetas (+ Etiqueta) */
.pf-etq-gest { display: grid; gap: 6px; margin: 4px 0 12px; }
.pf-etq-gest .pf-dd-fila .pf-etq { margin-left: 0; flex: 1; min-width: 0; justify-content: flex-start; font-size: 11px; padding: 6px 11px; }
.pf-etq-gest .pf-vacio { padding: 10px; }
/* En el color del tema (--brand-a), como el resto de la página. */
.pf-sel.pf-dd { display: inline-flex; align-items: center; gap: 7px; min-width: 120px; cursor: pointer; text-align: left;
  color: var(--brand-a); border-color: rgba(var(--brand-a-rgb), .45); box-shadow: 0 0 10px rgba(var(--brand-a-rgb), .15); }
.pf-dd span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-dd-fl { font-size: 11px; opacity: .8; transition: transform .15s ease; }
.pf-dd[aria-expanded="true"] .pf-dd-fl { transform: rotate(180deg); }
.pf-dd-pt { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ec); box-shadow: 0 0 6px var(--ec); }
.pf-dd-panel { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: min(300px, 86vw); max-height: 420px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 10px; background: #0b0b14; border: 1px solid rgba(var(--brand-a-rgb), .45);
  box-shadow: 0 12px 30px rgba(0,0,0,.6), 0 0 14px rgba(var(--brand-a-rgb), .18); text-transform: none; letter-spacing: 0; }
.pf-dd-op { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: 7px;
  background: transparent; color: #e6e9f2; font: 700 13px system-ui, sans-serif; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-dd-op:hover { background: rgba(255,255,255,.05); }
.pf-dd-op.sel { background: rgba(var(--brand-a-rgb), .12); border-color: rgba(var(--brand-a-rgb), .45); color: var(--brand-a); }
.pf-dd-fila { display: flex; align-items: center; gap: 6px; }
.pf-dd-nueva { margin-top: 6px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); }
.pf-dd-nueva .pf-etq-cols { margin-top: 10px; gap: 5px; justify-content: space-between; }
.pf-dd-nueva .pf-etq-col { width: 22px; height: 22px; }
.pf-dd-nueva .pf-err:empty { display: none; }
.pf-etq.pf-etq-no { --ec: #9a9ab5; border-style: dashed; }

/* Página de su profesional (cliente): el vídeo animado de arriba. */
/* El vídeo trae el fondo negro: "screen" lo funde con el panel oscuro y no se ve el recuadro. */
.pf-pag-video { display: block; width: auto; max-width: 70%; height: 120px; margin: 0 auto 6px; object-fit: contain; pointer-events: none; mix-blend-mode: screen; }
/* Panel "Tu profesional": el vídeo (lienzo sin fondo) se apoya sobre el borde
   de arriba del panel, en la parte derecha (bottom: 100% = su base justo en el
   borde). El panel no recorta para que asome; el scroll va en .pf-pag-in. Se
   deja hueco arriba para que no se corte. */
#pfPag { padding-top: 150px; }
#pfPag > .pf-ven { overflow: visible; max-height: none; display: flex; flex-direction: column; }
.pf-pag-in { max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.pf-pag-in::-webkit-scrollbar { display: none; }   /* que la barra no tape la ✕ */
.pf-pag-fit { position: absolute; right: 22px; bottom: calc(100% - 2px); width: 120px; height: auto; pointer-events: none; z-index: 2; }
/* Página de su profesional (cliente): permitir que vea sus comidas. */
.pf-perm { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: #0b0b14; border: 1px solid rgba(255,255,255,.08); cursor: pointer; }
.pf-perm > span { flex: 1; min-width: 0; }
.pf-perm b { display: block; font: 800 13px system-ui, sans-serif; color: #fff; }
.pf-perm small { display: block; margin-top: 2px; font: 600 11.5px/1.35 system-ui, sans-serif; color: #9a9ab5; }
.pf-perm .adm-pro-sw { flex: none; }
.pff-candado { color: #fbbf24; }

/* Casilla de cuenta profesional en el registro (js/modals.js): recuadro aparte
   con el color del tema y un aviso amarillo, para que solo la marque quien
   quiere de verdad una cuenta profesional. */
/* Estilo PRO, como la cabecera de la ficha del cliente: borde cian, fondo azul noche y brillo. */
.reg-consent.reg-pro, .auth-modal .reg-consent.reg-pro {
  margin: 14px 0 10px; padding: 12px 13px; border-radius: 14px;
  border: 2px solid #22d3ee; background: radial-gradient(120% 140% at 15% 0%, #155e75 0%, #08202c 45%, #061018 100%);
  box-shadow: 0 0 16px rgba(34,211,238,.35), inset 0 0 20px rgba(34,211,238,.08);
}
/* "Cuenta para" en blanco y "PROFESIONALES" en el color PRO (el cian de la medalla); el texto en blanco y las palabras clave en PRO. */
.reg-pro > span > b:first-child { display: block; color: #fff; font-size: 14px; font-weight: 900; letter-spacing: .3px; }
.reg-pro > span > b:first-child em { font-style: normal; color: #22d3ee; text-shadow: 0 0 10px rgba(34,211,238,.6); }
.reg-pro .reg-pro-av { display: block; margin-top: 6px; font-style: normal; font-size: 11.5px; line-height: 1.45; color: #e3f6fb; }
.reg-pro .reg-pro-av b { color: #22d3ee; }
.reg-pro .reg-pro-mail { display: block; margin-top: 6px; }
.reg-pro input { accent-color: #22d3ee; margin-top: 2px; width: 19px; height: 19px; flex: none; }
/* SOY (nutricionista o entrenador), bajo la casilla: sale al marcarla. */
.reg-pro-tipo { display: grid; gap: 6px; margin: -2px 0 12px; padding: 11px 13px; border-radius: 12px; border: 1.5px solid rgba(34,211,238,.55); background: #07141b; }
.reg-pro-tipo[hidden] { display: none; }
.reg-pro-tipo label { font: 900 10px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: #fff; }
.reg-pro-sel { width: 100%; height: 40px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(34,211,238,.6); background: #0b1220; color: #22d3ee; font: 800 14px system-ui, sans-serif; box-shadow: 0 0 10px rgba(34,211,238,.15); }
.reg-pro-tipo small { font: 700 11px/1.35 system-ui, sans-serif; color: #fde68a; }
/* El aviso al marcarla: estilo PRO, con el icono de atención grande. */
.pf-velo .pf-ven.pf-regpro-ven { width: min(400px, 100%); padding: 22px 18px 18px; text-align: center; border-radius: 16px; border: 2px solid #22d3ee;
  background: radial-gradient(120% 140% at 15% 0%, #155e75 0%, #08202c 45%, #061018 100%); box-shadow: 0 0 22px rgba(34,211,238,.45), 0 20px 50px rgba(0,0,0,.6); }
.pf-regpro-ic { width: 78px; height: 78px; margin: 0 auto 6px; filter: drop-shadow(0 0 10px rgba(251,191,36,.7)); animation: pfRegProLate 1.8s ease-in-out infinite; }
.pf-regpro-ic svg { display: block; width: 100%; height: 100%; }
@keyframes pfRegProLate { 50% { transform: scale(1.06); filter: drop-shadow(0 0 16px rgba(251,191,36,.95)); } }
.pf-regpro-ven h3 { margin: 0 0 10px; font: 900 20px/1.2 system-ui, sans-serif; color: #fff; }
.pf-regpro-ven p { margin: 0 0 8px; font: 600 13.5px/1.5 system-ui, sans-serif; color: #d6e8ef; }
.pf-regpro-ven p b { color: #22d3ee; }
.pf-regpro-ven .pf-regpro-q { margin-top: 12px; font-weight: 900; color: #fff; }
.pf-regpro-acc { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.pf-regpro-acc .pf-btn { height: 44px; padding: 0 16px; }
.pf-regpro-acc .pf-regpro-si { color: #fff; background: radial-gradient(circle at 35% 30%, #155e75, #071a24); border: 2px solid #22d3ee; box-shadow: 0 0 14px rgba(34,211,238,.6); }
@media (prefers-reduced-motion: reduce) { .pf-regpro-ic { animation: none; } }

/* ── Ficha del cliente (js/pro.js, abrirFicha): su mes ──
   Se despliega bajo el cliente como RESULTADOS MES en la app: .dacc-b se abre
   (grid 0fr → 1fr) y, con .vz-run, el láser baja descubriendo el contenido
   (styles.css, .dacc-visor.vz-run .dacc-laser / daccRevela). */
.pf-cli .pf-box { position: relative; }
.pf-cli .dacc-b { margin-top: 0; }
.pf-cli.open .dacc-b { grid-template-rows: 1fr; }
.pf-cli.open .dacc-in { animation: daccShow 0s .32s forwards; }
.pf-cli .dacc-in { position: relative; }
/* La flecha de RESULTADOS MES (sin su onda) y un pequeño "pulsar" al tocar. */
.pf-chevw { position: absolute; right: 10px; bottom: 10px; display: grid; transition: transform .12s ease; }
.pf-cli .pf-box:active .pf-chevw, .pf-chevw:active { transform: scale(.82); }
.pf-cli .dacc-chev { width: 26px; height: 26px; }
.pf-cli.open .dacc-chev { transform: rotate(180deg); }
.pf-cli.open .pf-box { border-color: rgba(var(--brand-a-rgb), .55); }
/* El panel, con el borde del color del tema. */
.pff-panel { margin: 8px 0 6px 46px; padding: 12px; border-radius: 6px; border: 2px solid var(--brand-a);
  background: #0b0b14; box-shadow: 0 0 0 1px rgba(var(--brand-b-rgb), .3), 0 0 22px rgba(var(--brand-a-rgb), .25); font-family: system-ui, sans-serif; color: #e5e5f5; }
.pff-panel:empty { display: none; }
@media (max-width: 480px) { .pff-panel { margin-left: 0; } }
.pff-mes { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; flex-wrap: wrap; }
.pff-mes > button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(var(--brand-a-rgb), .45); background: #14142a; color: #fff; font: 900 15px system-ui, sans-serif; cursor: pointer; }
.pff-mes > button:disabled { opacity: .3; cursor: default; }
.pff-mes b { min-width: 130px; text-align: center; font: 900 12.5px ui-monospace, Consolas, monospace; letter-spacing: 1.4px; color: #ececf5; }
.pff-acc { flex-basis: 100%; margin-left: 0; display: flex; justify-content: flex-start; gap: 8px; flex-wrap: wrap; }
.pff-acc .pf-btn { height: 34px; font-size: 11px; }
.pff-info { margin-bottom: 4px; font: 700 12px/1.45 system-ui, sans-serif; color: #9a9ab5; }
.pff-act { margin-bottom: 10px; font: 700 10.5px system-ui, sans-serif; color: #6a6a85; }
.pff-aviso { margin: 4px 0 12px; padding: 12px; border-radius: 8px; border: 1px dashed rgba(var(--brand-a-rgb), .45); background: rgba(var(--brand-a-rgb), .06); font: 700 12.5px/1.45 system-ui, sans-serif; color: #e5e5f5; }
.pff-tip { font: 700 10px system-ui, sans-serif !important; letter-spacing: 0 !important; color: #7c7c98 !important; }
/* Calendarios con el relieve de RESULTADOS MES (styles.css, .mini-cal-cell),
   más altos: el día arriba a la izquierda y, en el centro, las kcal o el deporte. */
.pff-calw { margin-bottom: 10px; }
.pff-grid { gap: 4px; }
.pff-calw .mini-cal-weekdays { gap: 4px; }
.pff-calw .mini-cal-cell.pff-d { height: auto; min-height: 56px; flex-direction: column; gap: 1px; padding: 13px 2px 4px; box-sizing: border-box; border-radius: 6px; }
.pff-calw .mini-cal-cell.empty { min-height: 0; }
/* Calendario de calorías: casillas más bajas y las kcal más grandes. */
.pff-calk .mini-cal-cell.pff-d { min-height: 42px; padding: 10px 1px 2px; }
.pff-calk .pff-d b { font-size: clamp(11.5px, 3.5vw, 16px); letter-spacing: -.3px; }
.pff-d i { position: absolute; top: 3px; left: 5px; font: 800 9.5px system-ui, sans-serif; font-style: normal; opacity: .8; }
.pff-d b { font: 900 clamp(10px, 2.9vw, 13.5px) system-ui, sans-serif; letter-spacing: -.2px; }
.pff-d span { font: 800 clamp(9px, 2.6vw, 11.5px)/1.25 system-ui, sans-serif; white-space: nowrap; }
.mini-cal-cell.pff-neu { background: #2a2a48; color: #d4d4e4; border: 1px solid rgba(255,255,255,0.12); box-shadow: inset 2px 2px 4px rgba(0,0,0,0.5); }
.mini-cal-cell.pff-fut { background: transparent; border: 1px dashed rgba(255,255,255,.07); color: #3a3a55; box-shadow: none; }
.mini-cal-cell.pff-azul { background: #0f2c45; color: #bae6fd; border: 1px solid rgba(125,211,252,0.32); box-shadow: inset 2px 2px 4px rgba(0,0,0,0.5), 0 0 8px rgba(56,189,248,.18); }
.mini-cal-cell.pff-tap { cursor: pointer; transition: transform .12s ease, filter .12s ease; }
.mini-cal-cell.pff-tap:hover { filter: brightness(1.15); }
.mini-cal-cell.pff-tap:active { transform: scale(.94); }
/* Calendario de deporte: media casilla para cada tipo, arriba la fuerza (naranja) y abajo el aeróbico (cian). */
.pff-calw .mini-cal-cell.pff-d.pff-dep { position: relative; padding: 0; overflow: hidden; background: #13131f; border: 1px solid rgba(255,255,255,.08); color: #fff; box-shadow: inset 2px 2px 4px rgba(0,0,0,.45); }
.pff-dep i { z-index: 2; }
.pff-dep .pff-h { position: absolute; left: 0; right: 0; height: 50%; display: grid; place-items: center; padding-top: 6px; box-sizing: border-box; font: 900 clamp(9.5px, 2.7vw, 12px) ui-monospace, Consolas, monospace; letter-spacing: -.3px; }
.pff-dep .pff-hf { top: 0; padding-left: 12px; } .pff-dep .pff-ha { bottom: 0; padding-top: 0; }
.pff-dep .pff-hf.on { background: linear-gradient(rgba(251,146,60,.62), rgba(251,146,60,.42)); border-bottom: 1px solid rgba(251,146,60,.8); }
.pff-dep .pff-ha.on { background: linear-gradient(rgba(34,211,238,.38), rgba(34,211,238,.52)); }
.pff-dep.pff-fut { opacity: .35; }
.pff-ley i.pff-lf { background: rgba(251,146,60,.75); } .pff-ley i.pff-la { background: rgba(34,211,238,.7); }
.pff-depres { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 9px; }
.pff-depres > div { padding: 7px 9px; border-radius: 8px; background: #07070e; border: 1px solid rgba(255,255,255,.08); }
.pff-depres small { display: block; font: 800 9px ui-monospace, Consolas, monospace; letter-spacing: 1px; text-transform: uppercase; }
.pff-depres .f small { color: #fb923c; } .pff-depres .a small { color: #22d3ee; }
.pff-depres b { font: 900 16px system-ui, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.pff-depres span { margin-left: 5px; font: 700 11px ui-monospace, Consolas, monospace; color: #9a9ab5; }
.pff-ley { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 9px; font: 700 10.5px system-ui, sans-serif; color: #9a9ab5; }
.pff-ley i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
.pff-ley i.green { background: #17512e; border: 1px solid rgba(142,255,142,.35); } .pff-ley i.red { background: #521717; border: 1px solid rgba(255,142,142,.35); }
.pff-ley i.pff-neu { background: #2a2a48; } .pff-ley i.gray { background: #1b1b30; border: 1px solid #2a2a45; }
/* Panel del día (el del "análisis profundo" de la app, styles.css .dsg-panel). */
.pff-dia-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 2px 10px; font: 800 13px system-ui, sans-serif; color: #fff; animation: dsgSube .35s ease both; }
.pff-hora { flex: none; padding: 2px 7px; border-radius: 4px; background: rgba(var(--brand-a-rgb), .16); color: var(--brand-a); font: 900 11px ui-monospace, Consolas, monospace; }
.pff-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pff-kpi { padding: 11px 12px 10px; }
.pff-kpi small { display: block; font: 800 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: #9a9ab5; text-transform: uppercase; }
.pff-kpi b { display: block; margin-top: 6px; font: 900 26px/1 system-ui, sans-serif; color: #fff; }
.pff-kpi b span { font-size: 12.5px; color: #9a9ab5; font-weight: 800; }
.pff-kpi b.pff-c-ok { color: #4ade80; }
.pff-kpi b.pff-c-pro { color: #f7c948; }
.pff-kpi b.pff-c-peso { color: #22d3ee; }
.pff-kpi em { display: inline-block; margin-top: 7px; padding: 2px 7px; border-radius: 4px; font: 800 10.5px system-ui, sans-serif; font-style: normal; }
.pff-kpi em.up { color: #4ade80; background: rgba(74,222,128,.1); }
.pff-kpi em.down { color: #f87171; background: rgba(248,113,113,.1); }
.pff-kpi em.neu { color: #c4c9da; background: rgba(255,255,255,.06); }
.pff-sec { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font: 900 10.5px ui-monospace, Consolas, monospace; letter-spacing: 1.4px; color: #ececf5; }
.pff-sec i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-a); box-shadow: 0 0 6px var(--brand-a); }
.pff-sec em { margin-left: auto; font-style: normal; color: #22d3ee; }
.pff-card { padding: 12px; margin-bottom: 10px; }
.pff-card h5 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 900 10px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: #9a9ab5; }
.pff-card h5 em { margin-left: auto; font-style: normal; font-weight: 700; color: #7c7c98; letter-spacing: .5px; }
.pff-gr { display: block; width: 100%; }
.pff-mac { display: grid; gap: 10px; }
.pff-mac .r { display: grid; grid-template-columns: minmax(70px, 100px) 1fr auto; align-items: center; gap: 10px; font: 700 12.5px system-ui, sans-serif; color: #c4c9da; }
.pff-mac .bar { height: 10px; border-radius: 5px; background: rgba(255,255,255,.07); overflow: hidden; }
.pff-mac .bar i { display: block; height: 100%; border-radius: 5px; }
.pff-mac .v { font: 800 12px ui-monospace, Consolas, monospace; color: #fff; white-space: nowrap; }
.pff-mac .v small { color: #9a9ab5; margin-left: 4px; }
.pff-tbl { width: 100%; border-collapse: collapse; font: 700 12.5px system-ui, sans-serif; }
.pff-tbl td { padding: 8px 4px; border-bottom: 1px solid rgba(255,255,255,.06); color: #c4c9da; }
.pff-tbl tr:last-child td { border-bottom: 0; }
.pff-tbl td:last-child { text-align: right; color: #fff; font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
.pff-pdf { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px; margin-bottom: 10px; }
.pff-pdf .ic { width: 44px; height: 54px; flex: none; border-radius: 6px; display: grid; place-items: center; background: linear-gradient(160deg, #f87171, #b91c1c); color: #fff; font: 900 12px system-ui, sans-serif; box-shadow: 0 6px 14px rgba(185,28,28,.35); }
.pff-pdf > div:not(.ic) { flex: 1; min-width: 160px; }
.pff-pdf b { display: block; font: 900 14px system-ui, sans-serif; color: #fff; }
.pff-pdf small { font: 700 11.5px system-ui, sans-serif; color: #9a9ab5; }
/* Notas: el botón de añadir y la lista, cada nota con su fecha y su papelera. */
.pff-nota-acc { display: flex; justify-content: flex-end; margin: 8px 0 4px; }
.pff-nota-acc .pf-btn { height: 34px; font-size: 11px; }
.pff-notas-l { display: grid; gap: 6px; margin-top: 8px; }
.pff-nota { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 8px; background: #14142a; border-left: 3px solid var(--brand-a); }
.pff-nota > div { flex: 1; min-width: 0; }
.pff-nota small { display: block; font: 800 10px ui-monospace, Consolas, monospace; letter-spacing: .5px; color: #9a9ab5; }
.pff-nota p { margin: 3px 0 0; font: 600 13px/1.45 system-ui, sans-serif; color: #e5e5f5; white-space: pre-wrap; overflow-wrap: anywhere; }
.pff-papelera { flex: none; min-width: 32px; height: 30px; padding: 0 6px; border: 1px solid rgba(248,113,113,.35); border-radius: 7px; background: rgba(231,76,60,.14); color: #f87171; display: grid; place-items: center; cursor: pointer; font: 900 10.5px system-ui, sans-serif; }
.pff-papelera svg { width: 16px; height: 16px; }
.pff-papelera.armado { background: #dc2626; color: #fff; border-color: #dc2626; }
.pff-notas textarea { width: 100%; box-sizing: border-box; min-height: 110px; padding: 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: #070710; color: #fff; font: 600 13px/1.45 system-ui, sans-serif; resize: vertical; }
.pff-fin { display: flex; justify-content: flex-end; margin-top: 6px; }

/* ── Formularios del perfil profesional ── */
/* Cada sección de las hojas de arriba (SOY, HORARIO, la vista previa…) en su caja grisácea, con el título en blanco. */
.pf-f { margin-bottom: 10px; padding: 10px 11px; border-radius: 10px; background: #22223a; border: 1px solid rgba(255,255,255,.12); }
/* Horario del chat: la semana de un vistazo (L–V a la izquierda, S y D a la derecha) y el día que se cambia. */
.pf-sem { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 6px; align-items: start; }
.pf-sem-c { display: grid; gap: 5px; }
.pf-semd { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 34px; padding: 5px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: #16162a; cursor: pointer; text-align: left; }
.pf-semd b { flex: none; width: 30px; font: 900 10px ui-monospace, Consolas, monospace; letter-spacing: .5px; color: #fff; }
.pf-semd span { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.pf-semd span i { font-style: normal; padding: 2px 6px; border-radius: 6px; background: rgba(34,211,238,.13); border: 1px solid rgba(34,211,238,.4); color: #a5f3fc; font: 800 11px ui-monospace, Consolas, monospace; white-space: nowrap; }
.pf-semd span i.no { background: none; border: 1px dashed rgba(255,255,255,.18); color: #6a6a85; }
.pf-semd.sel { border-color: #22d3ee; box-shadow: 0 0 10px rgba(34,211,238,.35); background: #0f2533; }
.pf-sem-toca { margin-top: 8px; font: 700 11.5px system-ui, sans-serif; color: #b9b9d0; }
.pf-sem-ed { margin-top: 9px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.12); }
.pf-sem-edt { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; font: 900 10px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: #22d3ee; }
.pf-sem-ed .pf-horas { margin-bottom: 6px; color: #e5e5f5; }
.pf-sem-ed .pf-horas .pf-sel { flex: 1; min-width: 0; }
.pf-sem-acc { display: flex; flex-wrap: wrap; gap: 6px; }
/* CLIENTES: el semáforo, cómo se reparte (una línea por grupo, en su color) y la barra. */
.pf-semaf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.pf-smf { padding: 8px; border-radius: 10px; background: #22223a; border: 3px solid var(--sc); box-shadow: 0 0 10px color-mix(in srgb, var(--sc) 30%, transparent); }
.pf-smf h5 { display: flex; justify-content: space-between; margin: 0 0 6px; font: 900 12px/1.4 system-ui, sans-serif; color: var(--sc); }
.pf-smf .p { display: flex; flex-wrap: wrap; gap: 4px; }
.pf-smf .p button { padding: 3px 8px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--sc) 35%, transparent); background: #0b0b14; color: #fff; font: 800 11px system-ui, sans-serif; cursor: pointer; overflow-wrap: anywhere; text-align: left; }
.pf-smf .p em { font: 700 11px system-ui, sans-serif; font-style: normal; color: #6a6a85; }
.pf-sem-ex { display: grid; gap: 6px; }
.pf-sem-ex p { margin: 0; font: 700 12px/1.4 system-ui, sans-serif; color: #e5e5f5; }
.pf-sem-ex p b { color: var(--sc); font-weight: 900; }
.pf-sem-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #0b0b14; }
.pf-sem-bar i { height: 100%; }
@media (max-width: 420px) { .pf-semaf { grid-template-columns: minmax(0, 1fr); } }
/* ANUNCIARTE EN RETAFIT (v9.3): el interruptor, el formulario de la ficha pública
   (pro_anuncios), el aviso del email y la vista previa «Así te verán». */
.pf-anun { margin-top: 10px; }
.pf-anun-f { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; font: 700 12px/1.35 system-ui, sans-serif; color: #e5e5f5; }
.pf-anun-f > span:first-of-type { flex: 1; min-width: 160px; }
.pf-anun-f .adm-pro-sw:disabled { opacity: .45; cursor: not-allowed; }
.pf-anun-f .adm-pro-sw.on { background: rgba(74,222,128,.3); border-color: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,.4); }
.pf-anun-f .adm-pro-sw.on i { background: #4ade80; }
.pf-anun-est { flex: none; padding: 3px 9px; border-radius: 999px; background: rgba(74,222,128,.14); border: 1px solid rgba(74,222,128,.55); color: #4ade80; font: 900 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1px; }
.pf-anun-form { display: grid; gap: 8px; margin-top: 10px; }
/* Radar en la pestaña PROFESIONAL (pro.html): ficha publicada, «emitiendo». En color PRO y en la esquina de
   arriba a la derecha de la pestaña (donde van los avisos de CLIENTES y AVISOS). Con la hoja abierta no sale. */
.pf-tradar { position: absolute; top: -8px; right: -7px; z-index: 3; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid #22d3ee; box-sizing: border-box; overflow: visible;
  background: radial-gradient(circle at 35% 30%, #155e75, #071a24); box-shadow: 0 0 8px rgba(34,211,238,.6); }
.pf-tradar::before { content: ""; position: absolute; inset: 1px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(34,211,238,0) 0deg, rgba(34,211,238,0) 250deg, rgba(34,211,238,.95) 360deg);
  animation: pfRadarGira 1.8s linear infinite; }
.pf-tradar i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #e9fbff; box-shadow: 0 0 4px #22d3ee; }
.pf-tradar::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid #22d3ee; opacity: 0; animation: pfRadarOnda 1.8s ease-out infinite; }
@keyframes pfRadarGira { to { transform: rotate(360deg); } }
@keyframes pfRadarOnda { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.dtab.pf-on .pf-tradar { display: none; }
@media (prefers-reduced-motion: reduce) { .pf-tradar::before, .pf-tradar::after { animation: none; } }
.pf-anun-c { display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: #22223a; }
.pf-anun-c > b { font: 900 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: #c4c4d8; }
.pf-anun-c .pf-campo-in { height: 38px; font-size: 13.5px; }
.pf-anun-c textarea.pf-campo-in { height: auto; min-height: 84px; padding: 9px 12px; resize: vertical; line-height: 1.4; font-weight: 600; }
.pf-anun-cnt { justify-self: end; font: 700 10px ui-monospace, Consolas, monospace; color: #9a9ab5; }
.pf-anun-cnt.lleno { color: #fbbf24; }
.pf-anun-seg { display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: #0b0b14; }
.pf-anun-seg button { flex: 1; min-width: 0; height: 32px; border: 0; border-radius: 7px; background: none; color: #9a9ab5; font: 800 12px system-ui, sans-serif; cursor: pointer; }
.pf-anun-seg button[aria-pressed="true"] { color: #fff; background: rgba(34,211,238,.18); box-shadow: inset 0 0 0 1.5px #22d3ee; }
.pf-anun-aviso { display: grid; gap: 8px; padding: 10px; border-radius: 10px; border: 1.5px solid #fbbf24; background: rgba(251,191,36,.08); }
.pf-anun-aviso p { margin: 0; font: 700 12px/1.4 system-ui, sans-serif; color: #fde68a; }
.pf-anun-chk { display: flex; gap: 8px; align-items: flex-start; font: 700 12px/1.35 system-ui, sans-serif; color: #fff; cursor: pointer; }
.pf-anun-chk input { width: 18px; height: 18px; margin: 0; accent-color: #4ade80; flex: none; }
.pf-anun-err { min-height: 0; font: 700 12px/1.35 system-ui, sans-serif; color: #f87171; }
.pf-anun-err:empty { display: none; }
.pf-anun-pub { width: 100%; height: 42px; }
.pf-anun-pub.verde { background: linear-gradient(135deg, #22d3ee, #4ade80); color: #062018; box-shadow: 0 0 14px rgba(74,222,128,.4); }
.pf-anun-prev { display: grid; gap: 6px; margin-top: 4px; }
.pf-anun-prev > b { font: 900 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: #c4c4d8; }
.pf-anun-nota { margin: 0; font: 600 11.5px/1.45 system-ui, sans-serif; color: #9a9ab5; }
/* La ficha pública (vista previa en /pro y ficha del directorio en la app). */
.pf-dir-pub { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1.5px solid rgba(34,211,238,.6); background: linear-gradient(160deg, #0d2a35, #0b0b18 70%); }
.pf-dir-pub h3 { margin: 0 0 4px; font: 900 16px system-ui, sans-serif; color: #fff; overflow-wrap: anywhere; }
.pf-dir-pub p { margin: 0; font: 600 12.5px/1.45 system-ui, sans-serif; color: #d4d4e4; white-space: pre-line; overflow-wrap: anywhere; }
.pf-dir-q { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pf-dir-q > div { min-width: 0; }
.pf-dir-av { width: 48px; height: 48px; color: #fff; font-size: 16px; }
.pf-dir-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.pf-dir-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; font: 900 9.5px ui-monospace, Consolas, monospace; letter-spacing: .8px; white-space: nowrap; }
.pf-dir-tag.n { color: #4ade80; background: rgba(74,222,128,.12); }
.pf-dir-tag.e { color: #fb923c; background: rgba(251,146,60,.12); }
.pf-dir-tag.o { color: #22d3ee; background: rgba(34,211,238,.12); max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pf-dir-ciu { display: block; margin-top: 4px; font: 800 12px system-ui, sans-serif; color: #e5e5f5; overflow-wrap: anywhere; }
.pf-dir-av { text-shadow: 0 1px 2px rgba(0,0,0,.45); }
.pf-dir-lbl {font: 900 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1.3px; color: #c4c4d8; }
.pf-dir-mail { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; background: #070710; border: 1px solid rgba(255,255,255,.12); }
.pf-dir-mail span { flex: 1; min-width: 0; font: 700 12.5px ui-monospace, Consolas, monospace; color: #22d3ee; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.pf-dir-mail button { flex: none; height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid #22d3ee; background: rgba(34,211,238,.1); color: #22d3ee; font: 800 11.5px system-ui, sans-serif; cursor: pointer; }
.pf-dir-ok { font: 800 11.5px system-ui, sans-serif; color: #4ade80; }
.pf-dir-ok:empty { display: none; }
/* Directorio (app normal, js/pro-cliente.js): filtros, tarjetas y ficha. */
.pf-velo .pf-ven.pf-dir-ven { width: min(460px, 100%); }
.pf-dir-ven .pf-dir-sub { margin: -2px 0 12px; font-size: 12px; color: #9a9ab5; }
.pf-dir-fil { display: flex; gap: 6px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.pf-dir-fil button { flex: none; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.14); background: #14142a; color: #b9b9d0; font: 800 12px system-ui, sans-serif; cursor: pointer; }
.pf-dir-fil button[aria-pressed="true"] { color: #fff; border-color: #4ade80; background: rgba(74,222,128,.14); }
.pf-dir-lst { display: grid; gap: 8px; }
.pf-dir-card { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 10px; border-radius: 12px; background: #1c1c33; border: 1px solid rgba(255,255,255,.08); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pf-dir-card:hover, .pf-dir-card:focus-visible { border-color: rgba(34,211,238,.55); }
.pf-dir-cb { display: grid; gap: 4px; min-width: 0; flex: 1; }
.pf-dir-cb > b { font: 900 14px system-ui, sans-serif; color: #fff; overflow-wrap: anywhere; }
.pf-dir-cb > small { font: 600 12px/1.4 system-ui, sans-serif; color: #a8a8c0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pf-dir-vol { height: 30px; padding: 0 10px; margin-bottom: 10px; border-radius: 7px; border: 1px solid rgba(255,255,255,.15); background: #14142a; color: #c4c4d8; font: 800 12px system-ui, sans-serif; cursor: pointer; }
.pf-dir-ven .pf-dir-nota, .pf-dir-ven .pf-dir-pie { margin: 12px 0 0; font-size: 12px; color: #9a9ab5; }
.pf-dir-ven .pf-dir-pie { font-size: 11px; color: #7c7c98; }
.pf-pronto { flex: none; padding: 3px 9px; border-radius: 999px; background: rgba(251,191,36,.14); border: 1px solid rgba(251,191,36,.55); color: #fbbf24; font: 900 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1px; }
.pf-f > label { display: block; margin-bottom: 8px; font: 900 10px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: #fff; }
/* Los dos horarios, del mismo fondo que su sección (solo una raya fina entre ellos). */
.pf-sheet .pf-hbloq { margin-bottom: 0; padding: 8px 0 10px; border: 0; border-radius: 0; background: none; }
.pf-sheet .pf-hbloq + .pf-hbloq { border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; }
.pf-sheet .pf-horas { color: #e5e5f5; }
/* CLIENTES y AVISOS: las mismas cajas grisáceas y textos más claros. */
.pf-sheet .adm-ut { background: #1b1b2c; }
.pf-sheet #pfAvisos { padding: 2px 10px; border-radius: 10px; background: #1b1b2c; border: 1px solid rgba(255,255,255,.1); }
.pf-sheet .pf-nt p { color: #fff; }
.pf-sheet .pf-nt small { color: #b9b9d0; }
.pf-sheet .pf-nt .ic { background: #2a2a44; }
.pf-sheet .pf-prev { padding: 10px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: #22223a; color: #fff; }
.pf-sel { height: 36px; padding: 0 10px; border-radius: 6px; border: 1px solid rgba(34,211,238,.45); background: #0b1220; color: #22d3ee; font: 800 13px system-ui, sans-serif; box-shadow: 0 0 10px rgba(34,211,238,.15); }
.pf-dias { display: flex; gap: 5px; margin-bottom: 8px; }
.pf-dias button { flex: 1; min-width: 0; height: 32px; border-radius: 6px; border: 1px solid rgba(255,255,255,.1); background: #14142a; color: #7c7c98; font: 900 11px ui-monospace, Consolas, monospace; cursor: pointer; }
.pf-dias button.on { border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.15); color: #22d3ee; box-shadow: 0 0 8px rgba(34,211,238,.3); }
.pf-horas { display: flex; align-items: center; gap: 8px; font: 700 12px system-ui, sans-serif; color: #9a9ab5; }
/* Dos horarios, cada uno con sus días y hasta dos franjas. */
.pf-hbloq { padding: 10px 10px 8px; margin-bottom: 8px; border-radius: 10px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07); }
.pf-hbt { margin-bottom: 7px; font: 900 10px ui-monospace, Consolas, monospace; letter-spacing: 1.4px; color: #22d3ee; }
.pf-hbloq .pf-horas { margin-bottom: 6px; }
.pf-hbloq .pf-horas .pf-sel { flex: 1; min-width: 0; }
.pf-hx { flex: none; width: 30px; height: 30px; padding: 0; border-radius: 8px; border: 1px solid rgba(248,113,113,.45); background: rgba(231,76,60,.1); color: #f87171; font: 900 12px system-ui, sans-serif; cursor: pointer; }
.pf-hmas { height: 28px; padding: 0 10px; border-radius: 8px; border: 1px dashed rgba(34,211,238,.5); background: rgba(34,211,238,.06); color: #a5f3fc; font: 800 11px system-ui, sans-serif; cursor: pointer; }
.pf-prev { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.1); font: 700 11.5px system-ui, sans-serif; color: #7c7c98; }

/* ══ La ficha del cliente: un panel ENCIMA, casi a pantalla completa (js/pro.js, abrirFicha) ══
   Cabecera con el marco PRO (como «Tu consulta»), pestañas segmentadas y el contenido de cada una. */
.pf-fv { position: fixed; inset: 0; z-index: 9500; display: none; }
.pf-fv.open { display: block; }
html.pf-fv-on .pf-scroll { overflow: hidden; }
.pf-fv-velo { position: absolute; inset: 0; background: rgba(3,3,10,.74); }
html.pf-fv-on .pf-flot { display: none; }
.pf-fv-hoja { position: absolute; left: 0; right: 0; bottom: 0; top: calc(14px + env(safe-area-inset-top, 0px)); width: 100%; max-width: 640px; margin: 0 auto; box-sizing: border-box;
  display: flex; flex-direction: column; overflow: hidden; border-radius: 18px 18px 0 0; background: #0d0d1a; border: 1px solid rgba(34,211,238,.35); border-bottom: 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.6); font-family: system-ui, sans-serif; color: #e5e5f5; animation: pfFvSube .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pfFvSube { from { transform: translateY(60px); } }
.pf-fv-agarre { flex: none; width: 38px; height: 4px; margin: 7px auto 0; border-radius: 2px; background: rgba(255,255,255,.22); }
/* Cabecera del cliente: el marco PRO */
.pf-fv-cab { position: relative; flex: none; display: flex; align-items: center; gap: 11px; margin: 10px 12px 0; padding: 12px; border-radius: 14px; border: 2px solid #22d3ee;
  background: radial-gradient(120% 140% at 15% 0%, #155e75 0%, #08202c 45%, #061018 100%); box-shadow: 0 0 16px rgba(34,211,238,.35); }
/* Como la cabecera de «Tu consulta»: líneas finas de pantalla por dentro y el aro cian que se expande por fuera. */
.pf-fv-cab::before { content: ""; position: absolute; inset: -6px; border-radius: 18px; border: 2px solid rgba(34,211,238,.55); animation: pfAroCab 2.6s ease-out infinite; pointer-events: none; }
.pf-fv-cab::after { content: ""; position: absolute; inset: 0; border-radius: 12px; pointer-events: none; background: linear-gradient(rgba(34,211,238,.07) 1px, transparent 1px) 0 0 / 100% 7px; }
.pf-fv-cab > .pf-avr, .pf-fv-cab > .pf-fv-quien { position: relative; z-index: 1; }
.pf-fv-cab > .pf-fv-bs { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .pf-fv-cab::before { animation: none; opacity: 0; } }
.pf-fv-cab .pf-avr { width: 46px; height: 46px; font-size: 16px; flex: none; }
.pf-fv-quien { flex: 1; min-width: 0; }
.pf-fv-quien b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 900 19px/1.15 system-ui, sans-serif; color: #fff; }
.pf-fv-quien small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 11px ui-monospace, Consolas, monospace; color: #22d3ee; }
/* El nombre y el email dejan sitio a los botones de arriba; la fila de abajo, a todo el ancho, con la etiqueta a la derecha. */
.pf-fv-quien b, .pf-fv-quien small { padding-right: 58px; }
.pf-fv-est { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.pf-fv-est .pf-etq { margin-left: auto; max-width: 100%; cursor: default; }
.pf-fv-bs { position: absolute; top: 9px; right: 26px; display: flex; gap: 6px; }
/* Diseño E: arriba avatar + nombre/correo + chat y papelera; debajo, a todo el ancho, el estado y la etiqueta juntos.
   La dieta y las notas llevan su aviso en sus pestañas. Silueta de persona de marca de agua. */
.pf-fv-cab { flex-wrap: wrap; }
.pf-fv-cab > .pf-fv-bs { position: relative; z-index: 2; top: auto; right: auto; margin-right: 12px; }
.pf-fv-cab > .pf-fv-est { position: relative; z-index: 1; order: 3; width: 100%; margin-top: 0; }
.pf-fv-cab > .pf-fv-est .pf-etq { margin-left: 0; }
.pf-fv-quien b, .pf-fv-quien small { padding-right: 0; }
.pf-fv-silu { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; pointer-events: none; }
.pf-fv-silu svg { position: absolute; right: 104px; bottom: -22px; width: 112px; height: 112px; fill: #22d3ee; opacity: .15; }
/* Pestañas Dieta y Notas con su icono y aviso */
.pf-fv-tabs button.pf-ft-ic { position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; overflow: visible; }
.pf-fv-tabs button.pf-ft-ic span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pf-fv-tabs button.pf-ft-ic svg { width: 14px; height: 14px; flex: none; }
.pf-fv-tabs button.pf-ft-die { color: #7ee04f; }
.pf-fv-tabs button.pf-ft-die svg { filter: drop-shadow(0 0 3px rgba(126,224,79,.7)); }
.pf-fv-tabs button.pf-ft-nts { color: #22d3ee; }
/* El punto de Notas: pegado a la palabra, arriba, con el mismo pulso (onda) que el del icono de notas. */
.pf-fv-tabs button.pf-ft-nts i { position: relative; flex: none; align-self: flex-start; margin: 7px 0 0 -1px; width: 8px; height: 8px; border-radius: 50%; background: #22d3ee;
  box-shadow: 0 0 6px #22d3ee; animation: pfNtsHalo 2.6s ease-out 1.3s infinite; }
.pf-fv-tabs button.pf-ft-nts i::before { content: ""; position: absolute; inset: -2px; box-sizing: border-box; border-radius: 50%; border: 2px solid #22d3ee; animation: faPulso 2.6s ease-out infinite; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .pf-fv-tabs button.pf-ft-nts i, .pf-fv-tabs button.pf-ft-nts i::before { animation: none; } }
.pf-fv-b.pf-fv-del { color: #f87171; border-color: rgba(248,113,113,.5); background: rgba(231,76,60,.1); }
.pf-fv-b.pf-fv-del.armado { width: auto; padding: 0 10px; color: #fff; background: #dc2626; border-color: #dc2626; font: 900 11px system-ui, sans-serif; box-shadow: 0 0 10px rgba(220,38,38,.5); }
.pf-fv-b.pf-mzn svg { width: 19px; height: 19px; }
/* Cerrar la ficha: botón redondo en el color PRO, montado sobre la esquina de arriba a la derecha del marco. */
.pf-fv-x { position: absolute; z-index: 3; top: -9px; right: -9px; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 2px solid #22d3ee; background: radial-gradient(circle at 35% 30%, #155e75, #071a24); color: #22d3ee; box-shadow: 0 0 10px rgba(34,211,238,.55); -webkit-tap-highlight-color: transparent; }
.pf-fv-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 3px rgba(34,211,238,.8)); }
.pf-fv-x:hover { color: #fff; }
.pf-fv-x:active { transform: scale(.92); }
.pf-fv-b { position: relative; width: 36px; height: 36px; flex: none; padding: 0; display: grid; place-items: center; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12); background: rgba(10,10,22,.7); color: #e5e5f5; font: 900 15px system-ui, sans-serif; }
.pf-fv-b svg { width: 18px; height: 18px; }
.pf-fv-b i { position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px #4ade80; }
/* El punto verde del sobre (mensaje nuevo) y el del avatar (activo): con el mismo pulso que el sobre de la
   lista (dos anillos que salen, uno tras otro). El del avatar, más metido en el círculo. */
.pf-fv-b i, .pf-fv-cab .pf-avr i { animation: pfMsgHalo 2.6s ease-out 1.3s infinite; }
.pf-fv-b i::before, .pf-fv-cab .pf-avr i::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #4ade80; animation: faPulso 2.6s ease-out infinite; pointer-events: none; }
.pf-fv-cab .pf-avr i { right: 2px; bottom: 2px; width: 12px; height: 12px; }
.pf-fv-cab .pf-avr i { background: #4ade80; }
@media (prefers-reduced-motion: reduce) { .pf-fv-b i, .pf-fv-cab .pf-avr i { animation: none; } .pf-fv-b i::before, .pf-fv-cab .pf-avr i::before { animation: none; opacity: 0; } }
/* Pestañas segmentadas: la elegida, en estilo PRO */
.pf-fv-tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 12px 12px 0; padding: 3px; border-radius: 11px; background: #08080f; border: 1px solid rgba(255,255,255,.08); }
.pf-fv-tabs button { height: 36px; min-width: 0; padding: 0 4px; border: 0; border-radius: 8px; background: none; color: #9a9ab5; font: 800 12px system-ui, sans-serif; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Las 4 pestañas de la ficha (Alimentación, Deporte, Dieta, Notas): rodeadas de una línea fina en color PRO,
   y la elegida con una onda que sale hacia fuera. */
.pf-fv .pf-fv-tabs { border: 2px solid #22d3ee; box-shadow: 0 0 8px rgba(34,211,238,.25); }   /* mismo grosor que la cabecera del cliente */
/* (la onda va en la sombra: el botón recorta su texto con overflow, y una capa por fuera no se vería) */
.pf-fv-tabs button[aria-selected="true"] { animation: pfTabOnda 2.2s ease-out infinite; }
@keyframes pfTabOnda {
  0% { box-shadow: inset 0 0 0 1.5px #22d3ee, 0 0 10px rgba(34,211,238,.35), 0 0 0 0 rgba(34,211,238,.6); }
  70%, 100% { box-shadow: inset 0 0 0 1.5px #22d3ee, 0 0 10px rgba(34,211,238,.35), 0 0 0 7px rgba(34,211,238,0); } }
@media (prefers-reduced-motion: reduce) { .pf-fv-tabs button[aria-selected="true"] { animation: none; } }
.pf-fv-tabs button[aria-selected="true"] { color: #fff; background: radial-gradient(circle at 35% 30%, #155e75, #071a24); box-shadow: inset 0 0 0 1.5px #22d3ee, 0 0 10px rgba(34,211,238,.35); }
/* El contenido: se desplaza por dentro */
.pf-fv .pf-fv-cuerpo { flex: 1; min-height: 0; overflow: auto; margin: 0; padding: 4px 12px calc(28px + env(safe-area-inset-bottom, 0px)); border: 0; border-radius: 0; background: none; box-shadow: none; overscroll-behavior: contain; }
.pf-fv .pf-fv-cuerpo:empty { display: block; }
/* Títulos de sección limpios: mayúsculas finas y una línea cian que se apaga */
.pf-fv .pff-sec { margin: 20px 0 10px; color: #c9d6e4; font-size: 10.5px; letter-spacing: 1.6px; }
.pf-fv .pff-sec i { display: none; }
.pf-fv .pff-sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(34,211,238,.5), transparent); order: 1; }
.pf-fv .pff-sec em { order: 2; margin-left: 0; color: #6a6a85; letter-spacing: .4px; }
.pf-fv .pff-mes { margin: 14px 0 12px; }
.pf-fv .pff-mes b { flex: 1; }
.pf-fv .pff-info, .pf-fv .pff-act { margin-bottom: 8px; }
/* Deporte: la pesa (fuerza, naranja) y la zapatilla (aeróbico, cian) en cada día */
.pff-kpi b.pff-c-fu { color: #fb923c; }
.pff-dep2 .pff-ics { display: flex; justify-content: center; gap: 1px; margin-top: 2px; }
.pff-ic { width: 17px; height: 17px; flex: none; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pff-pesa { stroke: #fb923c; filter: drop-shadow(0 0 3px rgba(251,146,60,.7)); }
.pff-zapa { stroke: #22d3ee; filter: drop-shadow(0 0 3px rgba(34,211,238,.7)); }
.pff-dep2.si { background: #191934; cursor: pointer; }
/* Calendario de deporte de la ficha: mismo fondo de panel (pf-hud) que Actividad y las cajas; celdas con borde visible. */
.pff-caldep.pf-hud { border-radius: 6px; }
.pff-caldep .mini-cal-cell.pff-dep2 { background: rgba(10,10,22,.55); border: 1px solid rgba(255,255,255,.2); }
.pff-caldep .mini-cal-cell.pff-dep2.si { background: rgba(25,25,52,.85); border-color: rgba(255,255,255,.28); }
/* Los minutos del día debajo de los iconos; al tocar la casilla, el detalle (abrirDiaDep). */
.pff-dep2 .pff-dmin { margin-top: 1px; font: 900 clamp(9px, 2.6vw, 11px)/1 system-ui, sans-serif; font-style: normal; color: #e5e5f5; letter-spacing: -.2px; font-variant-numeric: tabular-nums; }
.pff-dep2.si:active { transform: scale(.95); }
/* El panel del deporte de un día */
.pff-dd .dsg-ali-top { align-items: center; }
.pff-dd-ic { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.05); }
.pff-dd-fu .pff-dd-ic { background: rgba(251,146,60,.12); }
.pff-dd-ae .pff-dd-ic { background: rgba(34,211,238,.12); }
.pff-dd-ic .pff-ic { width: 19px; height: 19px; }
.pff-dd .dsg-nom small { display: block; margin-top: 3px; font: 700 11.5px system-ui, sans-serif; color: #9a9ab5; }
.pff-dd-mus { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.pff-dd-mus span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(251,146,60,.1); border: 1px solid rgba(251,146,60,.35); font: 800 11.5px system-ui, sans-serif; color: #fdba74; }
.pff-dd-mus img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: #19192c; }
.pff-ley-ic span { display: inline-flex; align-items: center; gap: 5px; }
.pff-ley-ic .pff-ic { width: 16px; height: 16px; }
/* Dieta, en lectura */
.pff-die-top { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 12px; }
.pff-die-top .ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(34,211,238,.12); font-size: 18px; }
.pff-die-top > div { flex: 1; min-width: 0; }
.pff-die-top b { display: block; font: 900 14px system-ui, sans-serif; color: #fff; }
.pff-die-top small { display: block; margin-top: 2px; font: 700 11px system-ui, sans-serif; color: #7c7c98; }
/* La manzana de la dieta (la misma de la fila del cliente), en verde manzana. */
.pff-die-top .ic.pff-die-mz { color: #7ee04f; background: rgba(126,224,79,.12); box-shadow: inset 0 0 0 1px rgba(126,224,79,.35); }
.pff-die-top .ic.pff-die-mz svg { width: 20px; height: 20px; fill: rgba(126,224,79,.3); filter: drop-shadow(0 0 4px rgba(126,224,79,.6)); }
/* En la cabecera de la plantilla, las cápsulas de sus clientes bajo «N clientes». */
.pf-dt-pcns { margin-top: 6px; }
/* EDITAR y BORRAR de la dieta del cliente, juntos a la derecha (si no caben, uno debajo del otro). */
.pff-die-bs { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 52%; }
.pff-die-x { height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid rgba(248,113,113,.5); background: rgba(231,76,60,.12); color: #f87171; font: 900 11px/1.2 system-ui, sans-serif; letter-spacing: .5px; cursor: pointer; }
.pff-die-x.armado { color: #fff; background: #dc2626; border-color: #dc2626; box-shadow: 0 0 12px rgba(220,38,38,.5); }
.pff-die-top .pf-btn { flex: none; height: 36px; color: #fff; background: radial-gradient(circle at 35% 30%, #155e75, #071a24); border: 1.5px solid #22d3ee; box-shadow: 0 0 10px rgba(34,211,238,.45); }
.pff-die-obj { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pff-die-obj div { padding: 9px 4px; border-radius: 9px; text-align: center; background: #121224; border: 1px solid rgba(255,255,255,.08); }
.pff-die-obj b { display: block; font: 900 15px system-ui, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.pff-die-obj small { font: 800 8.5px ui-monospace, Consolas, monospace; letter-spacing: .8px; color: #9a9ab5; }
.pff-die-l { display: grid; gap: 8px; }
.pff-die-m { padding: 10px 12px; border-radius: 10px; background: #121224; border: 1px solid rgba(255,255,255,.08); border-left: 3px solid var(--mc); }
.pff-die-m h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font: 900 11px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: var(--mc); }
.pff-die-m h4 span { margin-left: auto; font: 800 10px system-ui, sans-serif; letter-spacing: 0; color: #6a6a85; }
.pff-die-m p { display: flex; gap: 8px; margin: 5px 0 0; font: 700 12.5px/1.35 system-ui, sans-serif; color: #e5e5f5; }
.pff-die-m p span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pff-die-m p b { flex: none; font: 900 10.5px ui-monospace, Consolas, monospace; color: #fbbf24; }
.pff-die-n { padding: 11px 12px; font: 600 12.5px/1.45 system-ui, sans-serif; color: #e5e5f5; white-space: pre-wrap; }
/* Notas e informe */
.pf-fv .pff-notas textarea { min-height: 90px; }
@media (prefers-reduced-motion: reduce) { .pf-fv-hoja { animation: none; } }

/* Cabecera «Tu consulta»: el «2 clientes», en color PRO. */
.pf-cl-sub #pfLsN, .pf-cl-sub #pfLsT { color: #22d3ee; text-shadow: 0 0 8px rgba(34,211,238,.35); }

/* Notas: el icono junto al sobre (lista), con punto PRO y onda cuando alguna ha llegado a su fecha. */
/* La manzana de la fila: blanca sin dieta; verde manzana con dieta. */
.pf-mzn { color: #e9e9f6; }
.pf-mzn svg { width: 18px; height: 18px; }
.pf-mzn.con { color: #7ee04f; background: rgba(126,224,79,.12); box-shadow: inset 0 0 0 1px rgba(126,224,79,.35); }
.pf-mzn.con svg { fill: rgba(126,224,79,.3); filter: drop-shadow(0 0 4px rgba(126,224,79,.6)); }
/* El peso del mes, en color PRO (antes verde o rojo). */
.pf-k-d .res-status.pf-k1-peso, .pf-k-d .res-status.pf-k1-peso.ok, .pf-k-d .res-status.pf-k1-peso.bad { color: #22d3ee; background: rgba(34,211,238,.12); border-color: rgba(34,211,238,.4); }
/* Notas y sobre van juntos (si no caben, bajan los dos). */
.pf-k-bs { display: inline-flex; gap: 6px; flex: none; }
/* Fila cerrada del cliente: a la izquierda el nombre, su email entero y su actividad; a la derecha, en
   tres filas, los tres iconos, los días bien/mal con el peso, y la etiqueta. */
.pf-row .pf-k { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n i" "n d" "a e"; row-gap: 5px; }
.pf-row .pf-k-n { grid-area: n; }
.pf-row .pf-k-i { grid-area: i; justify-self: end; display: flex; }
.pf-row .pf-k-d { grid-area: d; max-width: none; justify-self: end; flex-wrap: nowrap; }
.pf-row .pf-k-a { grid-area: a; }
.pf-row .pf-k-e { grid-area: e; }
/* El email, entero: si no cabe en una línea, baja a la siguiente. */
.pf-row .pf-k-n .pf-mail { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
/* En el móvil, más estrechos para que quepan en la fila del nombre. */
@media (max-width: 480px) {
  .pf-k-d { gap: 4px; }
  .pf-k-bs { gap: 4px; }
  .pf-k-i .pf-msg { width: 29px; }
  .pf-k-d .res-status.pf-k1-peso { padding: 2px 4px; }
}
.pf-nts.aviso { color: #22d3ee; background: rgba(34,211,238,.12); box-shadow: inset 0 0 0 1px rgba(34,211,238,.35); }
.pf-fv-b.pf-fv-nts { background: rgba(34,211,238,.12); }
.pf-nts.aviso::after, .pf-fv-nts i { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: #22d3ee;
  box-shadow: 0 0 6px #22d3ee; animation: pfNtsHalo 2.6s ease-out 1.3s infinite; }
.pf-nts.aviso::before, .pf-fv-nts i::before { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; box-sizing: border-box; border-radius: 50%;
  border: 2px solid #22d3ee; animation: faPulso 2.6s ease-out infinite; pointer-events: none; }
.pf-fv-nts i::before { top: -2px; right: auto; left: -2px; width: auto; height: auto; inset: -2px; }
.pf-fv-b.pf-fv-nts { color: #22d3ee; border-color: rgba(34,211,238,.45); }
.pf-fv-b.pf-fv-nts i { width: 9px; height: 9px; animation: pfNtsHalo 2.6s ease-out 1.3s infinite; }
@keyframes pfNtsHalo { 0% { box-shadow: 0 0 6px #22d3ee, 0 0 0 0 rgba(34,211,238,.9); } 100% { box-shadow: 0 0 6px #22d3ee, 0 0 0 9px rgba(34,211,238,0); } }
@media (prefers-reduced-motion: reduce) { .pf-nts.aviso::before, .pf-fv-nts i::before { animation: none; opacity: 0; } .pf-nts.aviso::after, .pf-fv-b.pf-fv-nts i { animation: none; } }
/* Con el aviso de notas son tres botones arriba: el nombre deja más sitio. */
.pf-fv-quien.pf-fv-q3 b, .pf-fv-quien.pf-fv-q3 small { padding-right: 100px; }
/* El icono de notas en AVISOS */
.pf-nt-nota { display: grid; place-items: center; color: #22d3ee; }
.pf-nt-nota svg { width: 17px; height: 17px; }

/* Cada nota: su check (color del tema, el tick en verde), su fecha de aviso y su papelera. */
.pff-nota { align-items: center; }
.pff-chk { flex: none; width: 24px; height: 24px; padding: 0; border-radius: 7px; cursor: pointer; display: grid; place-items: center;
  border: 2px solid var(--brand-a); background: rgba(255,255,255,.03); color: transparent; }
.pff-chk svg { width: 15px; height: 15px; }
.pff-chk:hover { color: rgba(74,222,128,.45); }
.pff-chk.on { color: #4ade80; background: rgba(74,222,128,.08); }
.pff-chk.on svg { filter: drop-shadow(0 0 4px rgba(74,222,128,.6)); }
.pff-nota.hecha { border-left-color: #4ade80; opacity: .78; }
.pff-nota.hecha p { text-decoration: line-through; text-decoration-color: rgba(229,229,245,.4); color: #b8b8cc; }
.pff-nota.venc { border-left-color: #22d3ee; box-shadow: inset 0 0 0 1px rgba(34,211,238,.25); }
.pff-nf { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.06); color: #c9d6e4; }
.pff-nf svg { width: 11px; height: 11px; }
.pff-nf.venc { background: rgba(34,211,238,.16); color: #22d3ee; }
.pff-cal { position: relative; flex: none; display: inline-flex; }
.pff-cal input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.pff-calb { min-width: 32px; height: 30px; padding: 0 7px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 7px; cursor: pointer;
  border: 1px solid rgba(34,211,238,.3); background: rgba(34,211,238,.08); color: #9fdbe8; font: 800 11px system-ui, sans-serif; }
.pff-calb svg { width: 16px; height: 16px; }
.pff-calb b:empty { display: none; }
.pff-cal.con .pff-calb { color: #22d3ee; border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.15); }
/* «Notas completadas»: plegada, en verde, con la flecha verde que la abre. */
.pff-sec.pff-sec-ok { width: 100%; padding: 4px 0; border: 0; background: none; cursor: pointer; text-align: left; color: #4ade80; font-family: inherit; }
.pf-fv .pff-sec.pff-sec-ok { color: #4ade80; }
.pf-fv .pff-sec.pff-sec-ok::after { background: linear-gradient(90deg, rgba(74,222,128,.5), transparent); }
.pff-sec-ok b { font-weight: 900; color: #86efac; }
.pff-flecha { order: 3; flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-left: 6px; border-radius: 7px; border: 1px solid rgba(74,222,128,.45); background: rgba(74,222,128,.1); }
.pff-flecha svg { width: 11px; height: 8px; fill: none; stroke: #4ade80; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.abierto > .pff-sec-ok .pff-flecha svg { transform: rotate(180deg); }
.pff-nota-acc { align-items: center; gap: 8px; }
.pff-nota-acc .pff-calb { height: 34px; }

/* ══ AGENDA (js/pro.js, abrirAgenda): la hoja de la ficha con un mes de puntos y el panel del día ══ */
/* El botón flotante: a la izquierda, notas de clientes de hoy (ámbar, con número); a la derecha, la bolita PRO si hay avisos propios hoy. */
.pf-ag-bi, .pf-ag-bd { position: absolute; top: -5px; min-width: 22px; height: 22px; padding: 0 5px; box-sizing: border-box; border-radius: 11px; display: grid; place-items: center;
  font: 900 11.5px/1 system-ui, sans-serif; pointer-events: none; z-index: 2; }
.pf-ag-bi { left: -6px; background: #fbbf24; color: #1a1205; box-shadow: 0 0 0 2px #071a24, 0 0 10px rgba(251,191,36,.7); }
.pf-ag-bd { right: -6px; width: 22px; min-width: 0; padding: 0; border-radius: 50%; background: #0b2430; color: #22d3ee; border: 1.5px solid #22d3ee; box-shadow: 0 0 0 2px #071a24, 0 0 10px rgba(34,211,238,.7);
  font: 900 7px/1 ui-monospace, Consolas, monospace; }
.pf-ag-bi[hidden], .pf-ag-bd[hidden] { display: none; }
/* Cabecera con el marco PRO (como la de la ficha) */
.pf-ag-cab { position: relative; flex: none; display: flex; align-items: center; gap: 10px; margin: 10px 12px 0; padding: 11px 12px; border-radius: 14px; border: 2px solid #22d3ee;
  background: radial-gradient(120% 140% at 15% 0%, #155e75 0%, #08202c 45%, #061018 100%); box-shadow: 0 0 16px rgba(34,211,238,.35); }
.pf-ag-cab::after { content: ""; position: absolute; inset: 0; border-radius: 12px; pointer-events: none; background: linear-gradient(rgba(34,211,238,.07) 1px, transparent 1px) 0 0 / 100% 7px; }
/* AGENDA: réplica del botón flotante (con ondas y etiqueta) + calendario gigante de marca de agua. */
.pf-ag-cab:has(.pf-ag-flot) { padding: 12px 12px 22px; }
.pf-ag-agua { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; pointer-events: none; color: #22d3ee; }
.pf-ag-agua svg { position: absolute; right: 44px; top: 50%; width: 130px; height: 130px; transform: translateY(-50%) rotate(-12deg); opacity: .13; }
.pf-ag-flot { position: relative; z-index: 1; flex: none; width: 60px; height: 60px; box-sizing: border-box; border-radius: 50%; border: 2.5px solid #22d3ee;
  background: radial-gradient(circle at 35% 30%, #155e75, #071a24); box-shadow: 0 0 16px rgba(34,211,238,.55); }
.pf-ag-flot::before, .pf-ag-flot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; pointer-events: none; border: 2px solid #22d3ee; opacity: 0; animation: pfOnda 3s ease-out infinite; }
.pf-ag-flot::after { border-color: #67e8f9; animation-delay: 1.5s; }
.pf-ag-flot .pf-flot-ic { fill: none; stroke: #e9fbff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(34,211,238,.9)); }
.pf-ag-flb { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 3px; white-space: nowrap; text-transform: uppercase;
  font: 800 9.5px system-ui, sans-serif; letter-spacing: 1px; background: linear-gradient(135deg, #67e8f9, #39ff88); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-ag-cab h3 { padding-right: 14px; }
/* DIETAS: lo mismo con la manzana verde neón y su radar. */
.pf-dt-flot { width: 62px; height: 62px; }
.pf-dt-flot .pf-manz { position: absolute; inset: 0; margin: auto; width: 33px; height: 33px; fill: none; stroke: #39ff88; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(57,255,136,.95)) drop-shadow(0 0 8px rgba(57,255,136,.6)); }
.pf-dt-flot .pf-manz .hoja, .pf-dt-agua .hoja { fill: rgba(57,255,136,.25); }
.pf-dt-agua { color: #39ff88; }
/* Fondo y subtítulo verdes (como la demo); el borde y la ✕ siguen en color PRO. */
.pf-ag-cab.pf-dt-cab { background: linear-gradient(135deg, rgba(126,224,79,.2), rgba(126,224,79,.04)), radial-gradient(120% 140% at 15% 0%, #1d4a1f 0%, #0d1f0e 45%, #081008 100%); }
.pf-ag-cab.pf-dt-cab::after { background: linear-gradient(rgba(126,224,79,.07) 1px, transparent 1px) 0 0 / 100% 7px; }
.pf-ag-cab.pf-dt-cab h3 small { color: #7ee04f; }
.pf-dt-agua svg { inset: auto; right: 44px; top: 50%; margin: 0; width: 130px; height: 130px; filter: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .12; }
@media (prefers-reduced-motion: reduce) { .pf-ag-flot::before, .pf-ag-flot::after { animation: none; opacity: 0; } }
/* Filtro «Todos» de la agenda: verde, para que se note que es especial. */
.pf-ag-chip.solo { --c: #4ade80; color: #4ade80; border-color: rgba(74,222,128,.55); background: rgba(74,222,128,.08); }
.pf-ag-ic { position: relative; z-index: 1; width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; border: 1px solid rgba(34,211,238,.6); color: #22d3ee; background: rgba(34,211,238,.1); }
.pf-ag-ic svg { width: 19px; height: 19px; }
.pf-ag-cab h3 { position: relative; z-index: 1; flex: 1; min-width: 0; margin: 0; font: 900 17px/1.1 system-ui, sans-serif; letter-spacing: .5px; color: #fff; }
.pf-ag-cab h3 small { display: block; margin-top: 3px; font: 800 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1.3px; color: #22d3ee; }
.pf-ag-cab .pf-fv-b { z-index: 2; }
.pf-ag-cuerpo { flex: 1; min-height: 0; overflow: auto; padding: 12px 12px 24px; display: grid; gap: 12px; align-content: start; }
.pf-ag-mes { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pf-ag-mes b { font: 900 13px ui-monospace, Consolas, monospace; letter-spacing: 1.6px; color: #fff; }
.pf-ag-mes button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,.1); background: #14142a; color: #fff; font: 900 16px system-ui, sans-serif; cursor: pointer; }
/* Filtro: chips con avatar */
.pf-ag-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; min-height: 32px; }
.pf-ag-chips::-webkit-scrollbar { display: none; }
.pf-ag-chips.para { flex-wrap: wrap; overflow: visible; }
.pf-ag-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px 0 4px; border-radius: 15px; border: 1px solid rgba(255,255,255,.1); background: #14142a; color: #9a9ab5; font: 800 11.5px system-ui, sans-serif; cursor: pointer; }
.pf-ag-chip.solo { padding: 0 12px; }
.pf-ag-chip[aria-pressed="true"] { color: #fff; border-color: var(--c, #22d3ee); background: color-mix(in srgb, var(--c, #22d3ee) 18%, #14142a); box-shadow: 0 0 10px color-mix(in srgb, var(--c, #22d3ee) 35%, transparent); }
.pf-ag-av { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 900 9px system-ui, sans-serif; color: #0b0b14; background: var(--c); }
.pf-ag-av.yo { background: #0b2430; color: #22d3ee; border: 1.5px solid #22d3ee; font: 900 7px ui-monospace, Consolas, monospace; }
/* El mes: un punto por nota (hueco si está hecha) y el punto PRO con onda si algo ya toca */
.pf-ag-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.pf-ag-cal .d { font: 800 9.5px ui-monospace, Consolas, monospace; color: #6a6a85; text-align: center; }
.pf-ag-cal .c { position: relative; min-width: 0; aspect-ratio: 1; max-height: 62px; border: 0; border-radius: 9px; padding: 5px 2px 4px; background: #2a2a40; color: #d4d4e4; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; font: 900 11px system-ui, sans-serif; }
.pf-ag-cal .c.x { background: transparent; cursor: default; }
.pf-ag-cal .c.hoy { box-shadow: inset 0 0 0 2px #22d3ee; color: #fff; }
/* Día ya pasado (o hoy) sin nada pendiente: verde como el filtro «Todos». Los que tienen trabajo siguen grises. */
.pf-ag-cal .c.ok { background: rgba(74,222,128,.22); color: #c9f7d8; box-shadow: inset 0 0 0 1px rgba(74,222,128,.45); }
.pf-ag-cal .c.ok.hoy { box-shadow: inset 0 0 0 2px #22d3ee; }
.pf-ag-cal .c.sel { background: #34405a; box-shadow: inset 0 0 0 2px #fff; }
.pf-ag-cal .c.hoy.sel { box-shadow: inset 0 0 0 2px #22d3ee, 0 0 0 2px #fff; }
.pf-ag-cal .pts { display: flex; align-items: center; justify-content: center; }
.pf-ag-cal .pts i { width: 15px; height: 15px; flex: none; box-sizing: border-box; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #0b0b14;
  font: 900 8px/1 system-ui, sans-serif; font-style: normal; box-shadow: 0 0 0 1.5px #2a2a40; }
.pf-ag-cal .pts i + i { margin-left: -4px; }
.pf-ag-cal .pts i.yo { background: #0b2430; color: #22d3ee; border: 1.2px solid #22d3ee; font: 900 4.6px ui-monospace, Consolas, monospace; letter-spacing: -.2px; }
.pf-ag-cal .pts i.hecha { opacity: .45; }
.pf-ag-cal .pts em { margin-left: 1px; font: 900 9px ui-monospace, Consolas, monospace; font-style: normal; color: #c4c4d8; }
.pf-ag-cal .onda { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 6px #22d3ee; }
.pf-ag-cal .onda::before { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #22d3ee; animation: faPulso 2.4s ease-out infinite; }
.pf-ag-ley { display: flex; gap: 12px; flex-wrap: wrap; font: 700 10.5px system-ui, sans-serif; color: #9a9ab5; }
.pf-ag-ley span { display: inline-flex; align-items: center; gap: 5px; }
.pf-ag-ley i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.pf-ag-ley i.p { background: #fbbf24; } .pf-ag-ley i.h { box-shadow: inset 0 0 0 1.5px #fbbf24; } .pf-ag-ley i.t { width: 11px; height: 11px; border-radius: 3px; background: rgba(74,222,128,.35); box-shadow: inset 0 0 0 1px #4ade80; }
/* Panel del día: una hoja que sube desde abajo, encima del mes */
.pf-ag-dia { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; max-height: 70%; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px calc(14px + env(safe-area-inset-bottom, 0px));
  border-radius: 16px 16px 0 0; background: #0f0f1f; border-top: 3px solid #22d3ee; box-shadow: 0 -4px 18px rgba(34,211,238,.35), 0 -12px 40px rgba(0,0,0,.7); animation: pfAgSube .25s ease-out; }
.pf-ag-dia[hidden] { display: none; }
@keyframes pfAgSube { from { transform: translateY(30px); } }
.pf-ag-dcab { flex: none; display: flex; align-items: center; gap: 10px; }
.pf-ag-dcab h4 { flex: 1; min-width: 0; margin: 0; padding-left: 10px; border-left: 4px solid #22d3ee; font: 900 19px/1.15 system-ui, sans-serif; color: #fff; text-shadow: 0 0 12px rgba(34,211,238,.45); }
.pf-ag-dcab h4::first-letter { text-transform: uppercase; }
.pf-ag-dcab h4 small { display: block; margin-top: 2px; font: 800 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: #9a9ab5; }
.pf-cl-mas.pf-ag-mas { width: 40px; height: 40px; }
.pf-cl-mas.pf-ag-mas span { font-size: 24px; }
.pf-ag-dl { flex: none; display: grid; gap: 6px; align-content: start; }
.pf-ag-nota { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; background: #14142a; border-left: 3px solid var(--c); }
.pf-ag-nota > div { flex: 1; min-width: 0; }
.pf-ag-nota .q { display: flex; align-items: center; gap: 6px; font: 900 11.5px system-ui, sans-serif; color: #fff; }
.pf-ag-nota .q small { font: 800 9px ui-monospace, Consolas, monospace; letter-spacing: .6px; color: #22d3ee; }
.pf-ag-nota p { margin: 3px 0 0; font: 600 12.5px/1.4 system-ui, sans-serif; color: #e5e5f5; white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-ag-nota.hecha { opacity: .8; }
.pf-ag-nota.hecha p { text-decoration: line-through; color: #9a9ab5; }
.pf-ag-nota.venc { box-shadow: inset 0 0 0 1px rgba(34,211,238,.3); }
.pf-ag-ver { flex: none; height: 28px; padding: 0 9px; border-radius: 7px; border: 1px solid rgba(34,211,238,.35); background: rgba(34,211,238,.08); color: #22d3ee; font: 800 10.5px system-ui, sans-serif; cursor: pointer; }
/* Añadir: para quién (un cliente o «Yo»), el texto y GUARDAR */
.pf-ag-form { flex: none; display: grid; gap: 8px; padding: 10px; border-radius: 11px; background: #0b1622; border: 1px solid rgba(34,211,238,.35); }
.pf-ag-form[hidden] { display: none; }
.pf-ag-form label { font: 800 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: #9a9ab5; text-transform: uppercase; }
.pf-ag-form textarea { width: 100%; box-sizing: border-box; min-height: 64px; padding: 8px 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: #070710; color: #fff; font: 600 13px/1.4 system-ui, sans-serif; resize: vertical; }
.pf-ag-ffila { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pf-ag-dest { font: 700 11px/1.35 system-ui, sans-serif; color: #9a9ab5; }
.pf-ag-ffila .pf-btn { flex: none; height: 34px; font-size: 11px; }
.pf-ag-ffila .pf-btn:disabled { opacity: .45; cursor: default; }
@media (prefers-reduced-motion: reduce) { .pf-ag-cal .onda::before { animation: none; opacity: 0; } .pf-ag-dia { animation: none; } }

/* ══ GESTOR DE DIETAS (js/pro.js, abrirDietas): piezas, plantillas como puzle y clientes ══ */
.pf-dt-ic { color: #7ee04f; border-color: rgba(126,224,79,.6); background: rgba(126,224,79,.1); }
.pf-dt-ic svg { position: relative; width: 20px; height: 20px; }
/* La misma onda verde que la manzana del botón flotante de DIETAS. */
.pf-dt-ic .pf-flot-radar { inset: 1px; }
@media (prefers-reduced-motion: reduce) { .pf-flot-radar { animation: none; opacity: 0; } }
.pf-dt-tabs { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 12px 12px 0; padding: 3px; border-radius: 11px; background: #08080f; border: 1px solid rgba(255,255,255,.08); }
.pf-dt-tabs button { height: 34px; border: 0; border-radius: 8px; background: transparent; color: #9a9ab5; font: 800 12px system-ui, sans-serif; cursor: pointer; }
.pf-dt-tabs button[aria-selected="true"] { color: #fff; background: radial-gradient(circle at 35% 30%, #155e75, #071a24); box-shadow: inset 0 0 0 1.5px #22d3ee, 0 0 10px rgba(34,211,238,.35); }
.pf-dt-tabs em { font-style: normal; color: #22d3ee; margin-left: 4px; }
.pf-dt-cuerpo { padding-bottom: 28px; }
.pf-dt-cuerpo .pff-sec { margin: 4px 0 0; }
.pf-btn.pf-dt-sec2 { background: rgba(34,211,238,.1); color: #22d3ee; box-shadow: inset 0 0 0 1px rgba(34,211,238,.45); }
.pf-dt-cuerpo > .pf-btn, .pf-dt-band > .pf-btn { height: 38px; font-size: 11.5px; }
/* Tarjetas de plantilla */
.pf-dt-plant { display: grid; gap: 8px; width: 100%; padding: 12px; border-radius: 12px; background: #121224; border: 1.5px solid #22d3ee; box-shadow: 0 0 10px rgba(34,211,238,.3), inset 0 0 14px rgba(34,211,238,.06); color: #ececf5; text-align: left; cursor: pointer; }
/* Los clientes de cada plantilla, con su nombre entero (bajan de línea si son muchos). */
.pf-dt-cns { display: flex; flex-wrap: wrap; gap: 5px 6px; }
.pf-dt-cn { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 2px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font: 800 11.5px system-ui, sans-serif; color: #e5e5f5; max-width: 100%; overflow-wrap: anywhere; }
.pf-dt-cn .pf-ag-av { flex: none; }
/* ── Dentro de una plantilla: cabecera de ficha PRO y los objetivos en cajas grandes ── */
.pf-dt-pcab { position: relative; display: flex; align-items: center; gap: 11px; margin-top: 13px; margin-right: 4px; padding: 12px; border-radius: 14px; border: 2px solid #22d3ee;
  background: radial-gradient(120% 140% at 15% 0%, #155e75 0%, #08202c 45%, #061018 100%); box-shadow: 0 0 16px rgba(34,211,238,.35); }
.pf-dt-pcab::after { content: ""; position: absolute; inset: 0; border-radius: 12px; pointer-events: none; background: linear-gradient(rgba(34,211,238,.07) 1px, transparent 1px) 0 0 / 100% 7px; }
.pf-dt-pcab .pf-fv-x.armado { border-color: #fbbf24; color: #fbbf24; box-shadow: 0 0 12px rgba(251,191,36,.6); }
.pf-dt-pic { position: relative; z-index: 1; width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(34,211,238,.15); border: 1.5px solid rgba(34,211,238,.6); }
.pf-dt-pq { position: relative; z-index: 1; flex: 1; min-width: 0; padding-right: 18px; }
.pf-dt-pq small { display: block; font: 800 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1.6px; color: #22d3ee; }
.pf-dt-pq > span { display: block; margin-top: 3px; font: 700 11px system-ui, sans-serif; color: #a5f3fc; }
.pf-dt-pn { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.pf-dt-pn input { flex: 1; min-width: 0; height: 32px; padding: 0 6px; margin-left: -6px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: #fff; font: 900 19px/1.15 system-ui, sans-serif; }
.pf-dt-pn input:hover { border-color: rgba(34,211,238,.35); }
.pf-dt-pn input:focus { outline: none; border-color: #22d3ee; background: rgba(0,0,0,.25); }
.pf-dt-pn i { flex: none; font-style: normal; font-size: 13px; opacity: .7; }
.pf-dt-salir { padding: 8px 11px; border-radius: 10px; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.5); color: #fde68a; font: 800 12px/1.35 system-ui, sans-serif; }
.pf-dt-kp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pf-dt-k { position: relative; display: block; padding: 10px 12px 9px; border-radius: 12px; background: #111125; border: 1px solid rgba(255,255,255,.1); cursor: text; }
.pf-dt-k::before, .pf-dt-k::after { content: ""; position: absolute; width: 12px; height: 12px; border: 2px solid var(--kc); pointer-events: none; }
.pf-dt-k::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.pf-dt-k::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; }
.pf-dt-k:focus-within { border-color: var(--kc); box-shadow: 0 0 12px color-mix(in srgb, var(--kc) 40%, transparent); }
.pf-dt-k small { display: block; font: 800 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1.4px; color: #9a9ab5; }
.pf-dt-k span { display: flex; align-items: baseline; gap: 3px; }
.pf-dt-k input { width: 100%; min-width: 0; height: 36px; padding: 0; border: 0; background: transparent; color: var(--kc); font: 900 28px/1.05 system-ui, sans-serif; }
.pf-dt-k input::placeholder { color: #3b3b5c; }
.pf-dt-k input:focus { outline: none; }
.pf-dt-k u { flex: none; text-decoration: none; font: 800 13px system-ui, sans-serif; color: #9a9ab5; }
.pf-dt-plant:hover { box-shadow: 0 0 16px rgba(34,211,238,.5), inset 0 0 14px rgba(34,211,238,.1); }
.pf-dt-plant .t { display: flex; align-items: baseline; gap: 8px; }
.pf-dt-plant .t b { flex: 1; min-width: 0; font: 900 14.5px system-ui, sans-serif; overflow-wrap: anywhere; }
.pf-dt-plant .t span { font: 900 13px ui-monospace, Consolas, monospace; color: #22d3ee; white-space: nowrap; }
.pf-dt-plant small { display: flex; align-items: center; gap: 4px; font: 700 11.5px system-ui, sans-serif; color: #9a9ab5; }
.pf-dt-mini { display: flex; gap: 2px; }
.pf-dt-mini i { flex: 1; height: 9px; background: var(--mc); opacity: .85; }
.pf-dt-mini i.no { opacity: .15; }
.pf-dt-mini i:first-child { border-radius: 5px 0 0 5px; } .pf-dt-mini i:last-child { border-radius: 0 5px 5px 0; }
.pf-dt-avs { display: inline-flex; }
.pf-dt-avs .pf-ag-av { width: 20px; height: 20px; box-shadow: 0 0 0 2px #121224; }
.pf-dt-avs .pf-ag-av + .pf-ag-av { margin-left: -5px; }
/* Constructor */
.pf-dt-volver { justify-self: start; height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); background: #14142a; color: #9a9ab5; font: 800 11.5px system-ui, sans-serif; cursor: pointer; }
.pf-dt-volver.armado { color: #fbbf24; border-color: rgba(251,191,36,.5); background: rgba(251,191,36,.1); }
.pf-dt-nom { display: flex; gap: 8px; align-items: center; }
.pf-dt-nom input { flex: 1; min-width: 0; height: 40px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(34,211,238,.4); background: #070710; color: #fff; font: 800 14.5px system-ui, sans-serif; }
.pf-dt-nom .pf-btn { flex: none; height: 40px; font-size: 11px; }
.pf-dt-objs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pf-dt-objs label { display: grid; gap: 3px; font: 800 9px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: #9a9ab5; text-transform: uppercase; }
.pf-dt-objs input { width: 100%; min-width: 0; height: 36px; padding: 0 8px; box-sizing: border-box; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: #070710; color: #fff; font: 900 13.5px ui-monospace, Consolas, monospace; }
.pf-dt-med { display: grid; gap: 6px; padding: 10px 11px; border-radius: 10px; background: #0b1622; border: 1px solid rgba(34,211,238,.3); }
.pf-dt-med .l { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 800 11.5px system-ui, sans-serif; color: #9a9ab5; }
.pf-dt-med .l.s { font-size: 11px; }
.pf-dt-med .l b { font: 900 16px ui-monospace, Consolas, monospace; color: #fff; white-space: nowrap; }
.pf-dt-med .l b.ok { color: #4ade80; } .pf-dt-med .l b.ko { color: #fbbf24; }
.pf-dt-barra { position: relative; height: 10px; border-radius: 5px; background: #1f1f3a; overflow: hidden; display: flex; }
.pf-dt-barra i { height: 100%; background: var(--mc); }
.pf-dt-barra .meta { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 6px #fff; }
.pf-dt-cadena { display: grid; }
/* Cada comida, una pieza de puzle: su saliente encaja en la de abajo */
.pf-dt-pieza { position: relative; display: grid; gap: 6px; padding: 12px 12px 14px 13px; margin-bottom: 10px; border-radius: 12px;
  background: color-mix(in srgb, var(--mc) 10%, #121224); border: 1.5px solid color-mix(in srgb, var(--mc) 55%, transparent); }
.pf-dt-pieza::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 28px; height: 14px; margin-left: -14px; border-radius: 0 0 14px 14px; z-index: 2;
  background: color-mix(in srgb, var(--mc) 10%, #121224); border: 1.5px solid color-mix(in srgb, var(--mc) 55%, transparent); border-top: 0; }
.pf-dt-pieza:last-child { margin-bottom: 0; }
.pf-dt-pieza:last-child::after { display: none; }
.pf-dt-pieza.vacia { background: repeating-linear-gradient(135deg, #121224 0 8px, #15152b 8px 16px); border-style: dashed; }
.pf-dt-pieza.vacia::after { background: #121224; border-style: dashed; }
.pf-dt-pieza.encaja { animation: pfDtEncaja .45s cubic-bezier(.2,1.4,.4,1); }
@keyframes pfDtEncaja { from { transform: translateX(26px) rotate(1.5deg); } }
.pf-dt-pieza .h { display: flex; align-items: center; gap: 8px; }
.pf-dt-pieza .e { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--mc) 22%, transparent); font-size: 16px; }
.pf-dt-pieza .h > div { flex: 1; min-width: 0; }
.pf-dt-pieza .h small { display: block; font: 800 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: var(--mc); text-transform: uppercase; }
.pf-dt-pieza .h b { display: block; font: 900 13.5px system-ui, sans-serif; color: #fff; overflow-wrap: anywhere; }
/* Dentro de la plantilla, las piezas enteras: el nombre completo y todas sus opciones a la vista. */
.pf-dt-pieza .pf-dt-ops { margin: 2px 0 0; }
.pf-dt-pieza .pf-dt-ops li span:first-child { overflow-wrap: anywhere; }
.pf-dt-pieza .k { flex: none; font: 900 12px ui-monospace, Consolas, monospace; color: #fff; text-align: right; white-space: nowrap; }
.pf-dt-pieza .k em { display: block; font: 700 9.5px system-ui, sans-serif; font-style: normal; color: #9a9ab5; }
/* Varias piezas en una comida: CAMBIAR y ✕ (quitar) en cada una, y «＋ OTRA PIEZA» debajo. */
.pf-dt-pzbs { flex: none; display: inline-flex; gap: 5px; }
.pf-dt-qpz { width: 30px; height: 30px; padding: 0; border-radius: 8px; border: 1px solid rgba(248,113,113,.45); background: rgba(231,76,60,.1); color: #f87171; font: 900 12px system-ui, sans-serif; cursor: pointer; }
.pf-dt-otra { width: 100%; height: 34px; margin: -2px 0 10px; border-radius: 10px; border: 1.5px dashed color-mix(in srgb, var(--mc) 60%, transparent); background: color-mix(in srgb, var(--mc) 6%, transparent); color: color-mix(in srgb, var(--mc) 80%, #fff); font: 900 11px system-ui, sans-serif; letter-spacing: .5px; cursor: pointer; }
/* PIEZAS: cada comida es una cabecera que se despliega con su ＋ (plegadas al entrar). */
.pf-dt-secb { display: flex; width: 100%; padding: 10px 2px; border: 0; border-bottom: 1px solid rgba(255,255,255,.06); background: none; cursor: pointer; text-align: left; }
.pf-dt-secb .pf-dt-secmas { order: 3; flex: none; width: 26px; height: 26px; margin-left: 4px; border-radius: 8px; display: grid; place-items: center; font: 900 16px/1 system-ui, sans-serif;
  color: var(--mc); border: 1.5px solid color-mix(in srgb, var(--mc) 60%, transparent); background: color-mix(in srgb, var(--mc) 12%, transparent); }
.pf-dt-secb.open .pf-dt-secmas { background: var(--mc); color: #0d0d1a; }
.pf-dt-secb > i { background: var(--mc) !important; box-shadow: 0 0 6px var(--mc) !important; }
/* Ficha › Dieta: qué plantilla usa (dorado Premium) o que no usa ninguna (rojo), bajo la cabecera. */
.pff-die-pl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 12px 2px 0; font: 900 14px/1.3 system-ui, sans-serif; text-transform: uppercase; letter-spacing: .3px; }
.pff-die-pl.si { color: #fbbf24; }
.pff-die-pl.si b { font-weight: 900; color: #fde68a; overflow-wrap: anywhere; }
.pff-die-pl.no { color: #f87171; }
.pff-die-pl .pff-per { margin: 0 0 0 4px; }
/* Ficha › Dieta: lo que se ha retocado respecto a su plantilla. */
.pff-per { display: inline-flex; align-items: center; margin: 0 6px; padding: 2px 7px; border-radius: 6px; background: rgba(167,139,250,.15); border: 1px solid rgba(167,139,250,.55); color: #c4b5fd; font: 900 9px ui-monospace, Consolas, monospace; letter-spacing: .8px; text-transform: none; }
.pff-die-m h4 .pff-per { margin-left: 4px; }
/* Las opciones agrupadas por pieza: en la ficha, en el editor y en el móvil del cliente. */
.pff-die-g { margin: 8px 0 2px; font: 900 10px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: var(--mc); text-transform: uppercase; }
.pff-die-m h4 + .pff-die-g { margin-top: 0; }
.pfd-g { margin: 6px 0 5px; font: 900 10px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: var(--mc, #22d3ee); text-transform: uppercase; }
.pf-tl-g { display: block; margin-bottom: 4px; font: 900 9.5px ui-monospace, Consolas, monospace; letter-spacing: .8px; color: var(--mc); text-transform: uppercase; }
.pf-dt-camb { flex: none; height: 30px; padding: 0 9px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--mc) 60%, transparent); background: color-mix(in srgb, var(--mc) 14%, transparent); color: #fff; font: 800 11px system-ui, sans-serif; cursor: pointer; }
.pf-dt-ver { justify-self: stretch; text-align: left; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid rgba(255,255,255,.08); background: rgba(0,0,0,.2); color: #9a9ab5; font: 800 11px system-ui, sans-serif; cursor: pointer; }
.pf-dt-ops { margin: 0; padding: 0; list-style: none; display: grid; }
.pf-dt-ops li { display: flex; gap: 8px; justify-content: space-between; padding: 5px 0; border-top: 1px dashed rgba(255,255,255,.07); font: 600 12px/1.35 system-ui, sans-serif; color: #d6d6e8; }
.pf-dt-ops li span:last-child { flex: none; font: 800 11px ui-monospace, Consolas, monospace; color: #9a9ab5; }
.pf-dt-enc { display: inline-block; padding: 1px 6px; border-radius: 5px; font: 900 9.5px ui-monospace, Consolas, monospace; letter-spacing: .4px; }
.pf-dt-enc.si { color: #4ade80; background: rgba(74,222,128,.13); } .pf-dt-enc.casi { color: #fbbf24; background: rgba(251,191,36,.13); } .pf-dt-enc.no { color: #f87171; background: rgba(248,113,113,.13); }
.pf-dt-ind { display: grid; gap: 4px; }
.pf-dt-ind label, .pf-dt-ed > label { font: 800 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: #9a9ab5; text-transform: uppercase; }
.pf-dt-ind textarea { width: 100%; box-sizing: border-box; min-height: 60px; padding: 8px 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: #070710; color: #fff; font: 600 13px/1.4 system-ui, sans-serif; resize: vertical; }
.pf-dt-acc { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pf-dt-acc .pf-btn { height: 38px; font-size: 11.5px; }
.pf-dt-borrar { margin-left: auto; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(248,113,113,.35); background: rgba(231,76,60,.12); color: #f87171; font: 900 11px system-ui, sans-serif; cursor: pointer; }
.pf-dt-borrar.armado { background: #dc2626; color: #fff; border-color: #dc2626; }
/* Piezas */
.pf-dt-buscar { width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: #070710; color: #fff; font: 700 13px system-ui, sans-serif; }
.pf-dt-pz { display: grid; gap: 6px; padding: 0 0 2px; border-radius: 11px; background: color-mix(in srgb, var(--mc) 8%, #121224); border-left: 3px solid var(--mc); }
.pf-dt-pz.open { padding: 0 11px 10px 0; }
.pf-dt-pz.open .pf-dt-ops, .pf-dt-pz.open > .pf-dt-ver { margin-left: 11px; }
/* Pieza desplegada: EDITAR (amarillo) y BORRAR (rojo; al primer toque, el aviso). */
.pf-dt-pzacc { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px 11px; }
.pf-dt-pzb { min-height: 30px; padding: 5px 12px; border-radius: 8px; font: 900 11px/1.2 system-ui, sans-serif; letter-spacing: .5px; cursor: pointer; text-align: center; }
.pf-dt-pzb.ed { color: #fde68a; background: rgba(251,191,36,.12); border: 1px solid rgba(251,191,36,.55); }
.pf-dt-pzb.del { color: #f87171; background: rgba(231,76,60,.12); border: 1px solid rgba(248,113,113,.45); }
.pf-dt-pzb.del.armado { color: #fff; background: #dc2626; border-color: #dc2626; box-shadow: 0 0 12px rgba(220,38,38,.5); }
.pf-dt-pzb:disabled { opacity: .6; }
.pf-dt-pzh { display: grid; gap: 4px; width: 100%; padding: 10px 11px 8px; border: 0; background: transparent; color: #ececf5; text-align: left; cursor: pointer; }
.pf-dt-pzh .h { display: flex; align-items: baseline; gap: 8px; }
.pf-dt-pzh .h b { flex: 1; min-width: 0; font: 900 13px system-ui, sans-serif; }
.pf-dt-pzh .h span { flex: none; font: 900 11.5px ui-monospace, Consolas, monospace; color: #9a9ab5; }
.pf-dt-pzh small { font: 700 11px system-ui, sans-serif; color: #6a6a85; }
/* Clientes */
.pf-dt-avi { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-radius: 11px; background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.35); color: #fde68a; font: 700 12px/1.4 system-ui, sans-serif; }
.pf-dt-avi > span:nth-child(2) { flex: 1; min-width: 150px; }
.pf-dt-avi .pf-btn { height: 32px; font-size: 10.5px; }
.pf-dt-cli { display: grid; gap: 7px; padding: 11px 12px; border-radius: 11px; background: #121224; border: 1px solid rgba(255,255,255,.08); }
.pf-dt-cli .h { display: flex; align-items: center; gap: 9px; }
.pf-dt-cli .h > .pf-ag-av { width: 32px; height: 32px; font-size: 11px; }
.pf-dt-clin { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: #ececf5; text-align: left; cursor: pointer; }
.pf-dt-clin b { display: block; font: 900 13.5px system-ui, sans-serif; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-dt-clin small { display: block; font: 700 11px system-ui, sans-serif; color: #9a9ab5; }
.pf-dt-cli .h .pf-btn { flex: none; height: 32px; padding: 0 11px; font-size: 10.5px; }
.pf-dt-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pf-dt-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 7px; font: 800 10.5px system-ui, sans-serif; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-dt-chip.pl { background: rgba(34,211,238,.12); color: #22d3ee; } .pf-dt-chip.ok { background: rgba(74,222,128,.12); color: #4ade80; }
.pf-dt-chip.amb { background: rgba(251,191,36,.13); color: #fbbf24; } .pf-dt-chip.vio { background: rgba(167,139,250,.14); color: #a78bfa; } .pf-dt-chip.gr { background: rgba(255,255,255,.06); color: #9a9ab5; }
.pf-dt-adh { display: grid; grid-template-columns: minmax(40px, 1fr) auto; gap: 8px; align-items: center; font: 800 10.5px ui-monospace, Consolas, monospace; color: #9a9ab5; }
.pf-dt-adh u { display: block; height: 6px; border-radius: 3px; background: #1f1f3a; overflow: hidden; }
.pf-dt-adh u i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #4ade80); }
/* Bandejas */
.pf-dt-velo { position: absolute; inset: 0; z-index: 5; background: rgba(3,3,10,.6); }
.pf-dt-band { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; max-height: 80%; overflow-y: auto; overscroll-behavior: contain; display: grid; gap: 9px; align-content: start;
  padding: 14px 12px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; background: #0f0f1f; border-top: 1px solid rgba(34,211,238,.5); box-shadow: 0 -12px 40px rgba(0,0,0,.7); animation: pfAgSube .25s ease-out; }
.pf-dt-velo[hidden], .pf-dt-band[hidden] { display: none; }
.pf-dt-band h4 { margin: 0; display: flex; align-items: center; gap: 8px; font: 900 14.5px system-ui, sans-serif; color: #fff; }
.pf-dt-band h4 > span { flex: 1; min-width: 0; }
.pf-dt-band h4 small { display: block; margin-top: 2px; font: 800 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: #9a9ab5; }
.pf-dt-opc { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 11px; border-radius: 10px; background: #121224; border: 1px solid rgba(255,255,255,.08); color: #ececf5; text-align: left; cursor: pointer; }
.pf-dt-opc.ya { border-color: #22d3ee; box-shadow: inset 0 0 0 1px #22d3ee; }
.pf-dt-opc > div { flex: 1; min-width: 0; }
.pf-dt-opc b { display: block; font: 900 13px system-ui, sans-serif; }
.pf-dt-opc b i { font: 800 11px ui-monospace, Consolas, monospace; font-style: normal; color: #9a9ab5; margin-left: 4px; }
.pf-dt-opc small { display: block; margin-top: 2px; font: 700 11px system-ui, sans-serif; color: #9a9ab5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-dt-chk { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 2px solid var(--brand-a, #2bd3c4); display: grid; place-items: center; color: transparent; font: 900 13px system-ui, sans-serif; }
.pf-dt-opc[aria-pressed="true"] .pf-dt-chk { color: #4ade80; background: rgba(74,222,128,.1); }
.pf-dt-band > .pf-btn:disabled { opacity: .45; cursor: default; }
/* Editor de pieza */
.pf-dt-ed { display: grid; gap: 8px; }
.pf-dt-ed > input { width: 100%; box-sizing: border-box; height: 38px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: #070710; color: #fff; font: 700 13.5px system-ui, sans-serif; }
.pf-dt-moms { display: flex; gap: 5px; flex-wrap: wrap; }
.pf-dt-moms button { height: 30px; padding: 0 10px; border-radius: 15px; border: 1px solid rgba(255,255,255,.1); background: #14142a; color: #9a9ab5; font: 800 11px system-ui, sans-serif; cursor: pointer; }
.pf-dt-moms button[aria-pressed="true"] { color: #fff; border-color: var(--mc); background: color-mix(in srgb, var(--mc) 18%, #14142a); }
.pf-dt-ed .pfd-op { --mc: #22d3ee; margin-bottom: 0; }
.pf-dt-ed .pfd-op input[data-dt-ot] { flex: 1; }
.pf-dt-ed .pfd-add { --mc: #22d3ee; justify-self: start; }
@media (prefers-reduced-motion: reduce) { .pf-dt-pieza.encaja, .pf-dt-band { animation: none; } }

/* ══ RUTINAS (v9.3, js/pro.js): pestaña RUTINA de la ficha, editor a mano y gestor RUTINAS del entrenador ══ */
/* SOY: fijo desde el registro. */
#pfTipo:disabled { opacity: 1; cursor: default; }
.pf-tipo-fijo { display: block; margin-top: 6px; font: 700 11px/1.35 system-ui, sans-serif; color: #9a9ab5; }
/* Botón flotante RUTINAS: la mancuerna naranja neón con su radar naranja. */
.pf-mancu { fill: rgba(255,138,61,.22); stroke: #ff8a3d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-flot-der.pf-flot-rut .pf-mancu { width: 36px; height: 36px; filter: drop-shadow(0 0 3px rgba(255,138,61,.95)) drop-shadow(0 0 8px rgba(255,138,61,.6)); }
.pf-flot-rut .pf-flot-radar, .pf-rt-flot .pf-flot-radar { border-color: rgba(255,138,61,.65); }
.pf-flot-rut .pf-flot-lb, .pf-rt-flot .pf-ag-flb { background-image: linear-gradient(135deg, #67e8f9, #ff8a3d); }
/* Pestaña RUTINA (naranja si tiene rutina) y la mancuerna de la fila del cliente. */
/* Dos filas: arriba lo que registra el cliente (Alimentación, Deporte); debajo lo que le pone el profesional
   (Dieta, Rutina, Notas), cada una con su icono y su nombre. */
.pf-fv-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pf-fv-tabs button { grid-column: span 2; }
.pf-fv-tabs button[data-ft="ali"], .pf-fv-tabs button[data-ft="dep"] { grid-column: span 3; }
.pf-fv-tabs button.pf-ft-rut { color: #fb923c; }
.pf-fv-tabs button.pf-ft-rut svg { filter: drop-shadow(0 0 3px rgba(251,146,60,.75)); }
.pf-rtn { color: #e9e9f6; }
.pf-rtn svg { width: 18px; height: 18px; }
.pf-rtn.con { color: #fb923c; background: rgba(251,146,60,.13); box-shadow: inset 0 0 0 1px rgba(251,146,60,.4); }
.pf-rtn.con svg { filter: drop-shadow(0 0 4px rgba(251,146,60,.75)); }
.pff-die-top .ic.pfr-ic { color: #fb923c; background: rgba(251,146,60,.13); box-shadow: inset 0 0 0 1px rgba(251,146,60,.4); }
.pff-die-top .ic.pfr-ic svg { width: 21px; height: 21px; filter: drop-shadow(0 0 4px rgba(251,146,60,.65)); }
/* Planteamiento en cápsulas, la mezcla de bloques (barra y leyenda) y los días en lectura. */
.pfr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.pfr-chips span { padding: 4px 10px; border-radius: 999px; background: rgba(251,146,60,.12); border: 1px solid rgba(251,146,60,.45); color: #fed7aa; font: 800 11.5px system-ui, sans-serif; }
.pfr-mez { display: grid; gap: 6px; }
.pfr-barra { height: 9px; }
.pfr-mezl { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 700 11px system-ui, sans-serif; color: #b9b9d0; }
.pfr-mezl span { display: inline-flex; align-items: center; gap: 5px; }
.pfr-mezl i { width: 9px; height: 9px; border-radius: 3px; background: var(--bc); }
.pfr-mezl b { color: #fff; }
.pfr-dias { display: grid; gap: 10px; }
.pfr-dia { padding: 10px 11px; border-radius: 12px; background: #121224; border: 1px solid rgba(251,146,60,.35); border-left: 3px solid #fb923c; }
.pfr-dia h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 900 14px system-ui, sans-serif; color: #fff; }
.pfr-dia h4 b { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pfr-dia h4 small { flex: none; font: 800 10.5px ui-monospace, Consolas, monospace; color: #9a9ab5; }
.pfr-num { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #fb923c; color: #1a0e05; font: 900 12px ui-monospace, Consolas, monospace; }
.pfr-blq { margin-top: 6px; padding: 7px 9px; border-radius: 9px; background: color-mix(in srgb, var(--bc) 8%, #0d0d1c); border: 1px solid color-mix(in srgb, var(--bc) 35%, transparent); }
.pfr-blq h5 { margin: 0 0 4px; font: 900 10.5px ui-monospace, Consolas, monospace; letter-spacing: .8px; color: var(--bc); text-transform: uppercase; }
.pfr-blq h5 span { color: #fff; text-transform: none; letter-spacing: 0; font-family: system-ui, sans-serif; }
.pfr-ej { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 5px 0; border-top: 1px dashed rgba(255,255,255,.07); }
.pfr-ej:first-of-type { border-top: 0; }
.pfr-ej b { font: 800 12.5px/1.3 system-ui, sans-serif; color: #ececf5; overflow-wrap: anywhere; }
.pfr-ej span { font: 800 11.5px/1.3 ui-monospace, Consolas, monospace; color: #fed7aa; }
/* Editor de la rutina (ventana) */
.pf-velo .pf-ven.pfr-ven { width: min(560px, 100%); overflow-x: hidden; }
.pfr-planteo { display: grid; gap: 6px; }
.pfr-lb { display: block; margin-top: 4px; font: 800 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: #9a9ab5; text-transform: uppercase; }
.pfr-segs { display: flex; flex-wrap: wrap; gap: 5px; }
.pfr-segs button { min-height: 32px; padding: 0 11px; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); background: #14142a; color: #b9b9d0; font: 800 11.5px system-ui, sans-serif; cursor: pointer; }
.pfr-segs button[aria-pressed="true"] { color: #fff; border-color: #fb923c; background: rgba(251,146,60,.18); box-shadow: 0 0 8px rgba(251,146,60,.3); }
.pfr-seg7 button { min-width: 32px; padding: 0; border-radius: 9px; }
.pfr-2 { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; align-items: end; }
.pfr-sem { height: 34px; text-align: center; font-weight: 900; }
.pfr-dtabs { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pfr-dtabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; max-width: 170px; height: 34px; padding: 0 10px 0 4px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: #14142a; color: #b9b9d0; font: 800 12px system-ui, sans-serif; cursor: pointer; }
.pfr-dtabs button b { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(251,146,60,.2); color: #fb923c; font: 900 11px ui-monospace, Consolas, monospace; }
.pfr-dtabs button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pfr-dtabs button[aria-selected="true"] { color: #fff; border-color: #fb923c; background: rgba(251,146,60,.14); }
.pfr-dtabs button[aria-selected="true"] b { background: #fb923c; color: #1a0e05; }
.pfr-dtabs .pfr-dmas { padding: 0 12px; border-style: dashed; border-color: rgba(251,146,60,.6); color: #fb923c; background: transparent; }
.pfr-dcard { display: grid; gap: 8px; margin-top: 8px; padding: 10px; border-radius: 12px; background: #0f0f1f; border: 1.5px solid rgba(251,146,60,.5); }
.pfr-dcab { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pfr-dcab input { flex: 1 1 160px; min-width: 0; height: 36px; font-weight: 900; }
.pfr-mini { flex: none; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: #14142a; color: #c4c4d8; font: 900 10.5px system-ui, sans-serif; letter-spacing: .4px; cursor: pointer; }
.pfr-mini.del { color: #f87171; border-color: rgba(248,113,113,.4); background: rgba(231,76,60,.1); }
.pfr-bq { display: grid; gap: 7px; padding: 9px; border-radius: 10px; background: color-mix(in srgb, var(--bc) 7%, #121224); border: 1px solid color-mix(in srgb, var(--bc) 45%, transparent); border-left: 3px solid var(--bc); }
.pfr-bqh { display: flex; align-items: center; gap: 6px; }
.pfr-bqe { flex: none; font-size: 17px; }
.pfr-bqk { flex: none; height: 32px; max-width: 46%; padding: 0 6px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--bc) 60%, transparent); background: #0b0b14; color: var(--bc); font: 900 12px system-ui, sans-serif; }
.pfr-bqn { flex: 1; min-width: 0; height: 32px; padding: 0 8px; box-sizing: border-box; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: #070710; color: #fff; font: 700 12.5px system-ui, sans-serif; }
.pfr-ejed { display: grid; gap: 5px; padding-bottom: 7px; border-bottom: 1px dashed rgba(255,255,255,.08); }
.pfr-ejt { display: flex; align-items: center; gap: 6px; }
.pfr-ejt .pfd-n { flex: none; width: 16px; text-align: center; font: 900 11px ui-monospace, Consolas, monospace; color: var(--bc); }
.pfr-ejt input { flex: 1; min-width: 0; height: 34px; box-sizing: border-box; font-weight: 800; }
.pfr-cs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; padding-left: 22px; }
.pfr-cs label { display: grid; gap: 2px; min-width: 0; }
.pfr-cs small { font: 800 8.5px ui-monospace, Consolas, monospace; letter-spacing: .6px; color: #9a9ab5; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pfr-cs input { width: 100%; min-width: 0; height: 30px; padding: 0 6px; box-sizing: border-box; border-radius: 7px; border: 1px solid rgba(255,255,255,.12); background: #070710; color: #fed7aa; font: 800 12px ui-monospace, Consolas, monospace; }
.pfr-cs input::placeholder { color: #44445e; }
@media (max-width: 420px) { .pfr-cs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pfr-adde { --mc: var(--bc); justify-self: start; }
.pfr-addb { width: 100%; height: 36px; border-radius: 10px; border: 1.5px dashed rgba(251,146,60,.6); background: rgba(251,146,60,.06); color: #fb923c; font: 900 11.5px system-ui, sans-serif; letter-spacing: .5px; cursor: pointer; }
.pfr-tipos { display: grid; gap: 6px; padding: 9px; border-radius: 10px; border: 1.5px dashed rgba(251,146,60,.6); }
.pfr-tipos small { font: 800 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: #fb923c; }
.pfr-tipos > div { display: flex; flex-wrap: wrap; gap: 6px; }
.pfr-tipos button { height: 32px; padding: 0 11px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--bc) 60%, transparent); background: color-mix(in srgb, var(--bc) 12%, #14142a); color: #fff; font: 800 11.5px system-ui, sans-serif; cursor: pointer; }
.pfr-ven .pfd-pie .pf-btn:first-child { background: linear-gradient(135deg, #fb923c, #f97316); color: #1a0e05; box-shadow: 0 0 14px rgba(251,146,60,.45); }
/* Gestor RUTINAS: cabecera naranja (borde y ✕ en color PRO), como DIETAS en verde. */
.pf-ag-cab.pf-rt-cab { background: linear-gradient(135deg, rgba(251,146,60,.22), rgba(251,146,60,.04)), radial-gradient(120% 140% at 15% 0%, #4a2a12 0%, #1f120a 45%, #100906 100%); }
.pf-ag-cab.pf-rt-cab::after { background: linear-gradient(rgba(251,146,60,.08) 1px, transparent 1px) 0 0 / 100% 7px; }
.pf-ag-cab.pf-rt-cab h3 small { color: #fdba74; }
.pf-rt-flot .pf-mancu { position: absolute; inset: 0; margin: auto; width: 33px; height: 33px; filter: drop-shadow(0 0 3px rgba(255,138,61,.95)) drop-shadow(0 0 8px rgba(255,138,61,.6)); }
.pf-rt-agua { color: #ff8a3d; }
.pf-rt-agua svg { fill: none; }
.pf-rt .pf-dt-tabs button[aria-selected="true"] em { color: #fb923c; }
.pfr-plant { border-color: #fb923c; box-shadow: 0 0 10px rgba(251,146,60,.3), inset 0 0 14px rgba(251,146,60,.06); }
.pfr-plant:hover { box-shadow: 0 0 16px rgba(251,146,60,.5), inset 0 0 14px rgba(251,146,60,.1); }
.pfr-plant .t span { color: #fdba74; font-size: 11.5px; }
.pfr-plant .pfr-chips { margin: 0; }
.pfr-pcab { border-color: #fb923c; background: radial-gradient(120% 140% at 15% 0%, #5a3112 0%, #2a170b 45%, #120a06 100%); box-shadow: 0 0 16px rgba(251,146,60,.35); }
.pfr-pcab .pf-dt-pq small { color: #fdba74; }
.pfr-pcab .pf-dt-pq > span { color: #fed7aa; }
.pfr-pcab .pf-dt-pic { background: rgba(251,146,60,.15); border-color: rgba(251,146,60,.6); }
.pfr-med { border-color: rgba(251,146,60,.35); background: #1a120b; }
.pfr-med .l b { font-size: 13px; color: #fdba74; }
.pfr-cdias { display: grid; gap: 10px; }
.pfr-cdia { display: grid; gap: 8px; padding: 10px; border-radius: 12px; background: #0f0f1f; border: 1.5px solid rgba(251,146,60,.45); }
.pfr-cdh { display: flex; align-items: center; gap: 8px; }
.pfr-cdh input { flex: 1; min-width: 0; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: #fff; font: 900 15px system-ui, sans-serif; }
.pfr-cdh input:hover, .pfr-cdh input:focus { outline: none; border-color: rgba(251,146,60,.5); background: rgba(0,0,0,.25); }
.pfr-pz { display: grid; gap: 4px; padding: 9px 10px; border-radius: 10px; background: color-mix(in srgb, var(--bc) 9%, #121224); border: 1px solid color-mix(in srgb, var(--bc) 50%, transparent); border-left: 3px solid var(--bc); }
.pfr-pz .h { display: flex; align-items: center; gap: 8px; }
.pfr-pz .e { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--bc) 22%, transparent); font-size: 15px; }
.pfr-pz .h > div { flex: 1; min-width: 0; }
.pfr-pz .h small { display: block; font: 800 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1px; color: var(--bc); text-transform: uppercase; }
.pfr-pz .h b { display: block; font: 900 13px system-ui, sans-serif; color: #fff; overflow-wrap: anywhere; }
.pfr-pz .pf-dt-ops li span:last-child { color: #fed7aa; }
.pfr-cvacio { padding: 10px; border-radius: 10px; border: 1.5px dashed rgba(255,255,255,.15); color: #7c7c98; font: 700 12px system-ui, sans-serif; text-align: center; }
.pf-dt-otra.pfr-otra { --mc: #fb923c; margin: 0; }
.pfr-bfil { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pfr-bfil button { flex: none; height: 30px; padding: 0 11px; border-radius: 15px; border: 1px solid rgba(255,255,255,.12); background: #14142a; color: #b9b9d0; font: 800 11px system-ui, sans-serif; cursor: pointer; }
.pfr-bfil button[aria-pressed="true"] { color: #fff; border-color: var(--bc); background: color-mix(in srgb, var(--bc) 18%, #14142a); }
.pfr-opc { border-left: 3px solid var(--bc); }
.pfr-opc.ya { border-color: var(--bc); box-shadow: inset 0 0 0 1px var(--bc); }
.pfr-oe { flex: none; font-size: 18px; }
.pf-rt .pf-dt-band { border-top-color: rgba(251,146,60,.6); }
.pf-rt .pf-dt-ed .pfr-bq { --bc: #fb923c; }/* Cliente: MI RUTINA (en naranja, como la dieta en verde), su ventana y la mancuerna del botón PRO. */
.pf-dieta-b.pf-rut-b { background: linear-gradient(135deg, rgba(251,146,60,.16), rgba(34,211,238,.08)); border-color: rgba(251,146,60,.5); }
.pf-dieta-nueva.pf-rut-nueva { background: #fb923c; }
#pfRutina > .pf-ven { overflow-x: hidden; width: min(480px, 100%); }
.pf-fab-rut { position: absolute; top: -14px; left: calc(50% - 15px); z-index: 2; width: 30px; height: 30px; box-sizing: border-box; display: none; place-items: center; pointer-events: none;
  border-radius: 50%; border: 1.5px solid #fb923c; background: radial-gradient(circle at 35% 30%, #4a2a12, #1a0e05);
  box-shadow: 0 0 10px rgba(251,146,60,.75); animation: pfManzana 1.6s ease-in-out infinite; }
.pf-fab-rut.on { display: grid; }
.pf-fab-rut svg { width: 20px; height: 20px; fill: rgba(255,138,61,.3); stroke: #ff8a3d; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(255,138,61,.9)); }
@media (prefers-reduced-motion: reduce) { .pf-fab-rut { animation: none; } }.pf-dt-ed .pfr-adde { --mc: var(--bc); }
/* Ficha: las pestañas no elegidas, también marcadas (borde gris y fondo algo más claro); la elegida sigue en azul PRO. */
.pf-fv-tabs { gap: 5px; padding: 5px; }
.pf-fv-tabs button { background: #151526; box-shadow: inset 0 0 0 1px rgba(255,255,255,.17); }
.pf-fv-tabs button:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }
/* Elegida y con contenido: conserva su color (dieta verde, rutina naranja, notas azul) en vez de pasar a blanco. */
.pf-fv-tabs button.pf-ft-die[aria-selected="true"] { color: #7ee04f; }
.pf-fv-tabs button.pf-ft-rut[aria-selected="true"] { color: #fb923c; }
.pf-fv-tabs button.pf-ft-nts[aria-selected="true"] { color: #22d3ee; }
/* ── Desplegables propios (js/pro.js, ddMejorar): el botón con el estilo de la app y su lista ── */
select.pf-dd-nat { display: none !important; }
.pf-dd-b { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; max-width: 100%; box-sizing: border-box; cursor: pointer; text-align: left; }
.pf-dd-b span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-dd-b i { flex: none; font-style: normal; font-size: 11px; opacity: .85; transition: transform .15s; }
.pf-dd-b[aria-expanded="true"] i { transform: rotate(180deg); }
.pf-dd-b:disabled { cursor: default; }
.pf-dd-b:disabled i { display: none; }
.pf-menu .pf-dd-b { max-width: 160px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: #14142a; color: #fff; font: 700 12.5px system-ui, sans-serif; }
.pf-dd-menu { position: fixed; z-index: 30000; max-width: calc(100vw - 16px); max-height: min(300px, 60vh); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box;
  display: grid; gap: 2px; padding: 5px; border-radius: 10px; border: 1.5px solid #22d3ee; background: #0b0b16;
  box-shadow: 0 14px 30px rgba(0,0,0,.7), 0 0 14px rgba(34,211,238,.3); animation: pfDdSale .14s ease-out; font-family: system-ui, sans-serif; }
@keyframes pfDdSale { from { opacity: 0; transform: translateY(-4px); } }
.pf-dd-menu button { display: block; width: 100%; min-height: 36px; padding: 7px 12px; border: 0; border-radius: 7px; background: none; color: #d6d6e8; font: 700 13.5px system-ui, sans-serif; text-align: left; white-space: nowrap; cursor: pointer; }
.pf-dd-menu button:hover, .pf-dd-menu button:focus-visible { outline: none; background: rgba(34,211,238,.12); color: #fff; }
.pf-dd-menu button[aria-selected="true"] { color: #22d3ee; background: rgba(34,211,238,.16); box-shadow: inset 0 0 0 1px rgba(34,211,238,.5); }
@media (prefers-reduced-motion: reduce) { .pf-dd-menu { animation: none; } }
/* Editor de rutina en el móvil: nada más ancho que la ventana. */
.pfr-ven [data-rut-ed], .pfr-dcard, .pfr-bq, .pfr-ejed, .pfr-planteo { min-width: 0; }
.pfr-dcard, .pfr-bq, .pfr-ejed, .pfr-planteo { grid-template-columns: minmax(0, 1fr); }
.pfr-dtabs { max-width: 100%; }
.pfr-bqk { flex: 0 1 auto; max-width: 48%; }
.pfr-dcab input { flex: 1 1 120px; }.pfr-dtabs { flex-wrap: wrap; overflow: visible; }
@media (max-width: 420px) { .pfr-bqh { flex-wrap: wrap; } .pfr-bqk { flex: 1 1 auto; max-width: none; } .pfr-bqn { order: 3; flex: 1 1 100%; } }
/* Cabecera del cliente: el informe PDF (icono clásico) a la derecha de la fila del estado y la etiqueta. */
.pf-fv-est { align-items: center; }
.pf-fv-b.pf-fv-pdf { margin-left: auto; border-color: rgba(248,113,113,.5); background: rgba(231,76,60,.1); }
.pf-fv-b.pf-fv-pdf svg.pf-pdf-ic { width: 24px; height: 24px; }
.pf-fv-b.pf-fv-pdf em { position: absolute; left: 50%; bottom: -15px; transform: translateX(-50%); font: 900 9.5px/1 ui-monospace, Consolas, monospace; font-style: normal; color: #fde68a; white-space: nowrap; }
.pf-fv-b.pf-fv-pdf:disabled { opacity: .8; }
/* Pestaña Notas: la cabecera (como Dieta y Rutina) con el icono de notas en azul. */
.pff-die-top .ic.pfn-ic { color: #22d3ee; background: rgba(34,211,238,.12); box-shadow: inset 0 0 0 1px rgba(34,211,238,.4); }
.pff-die-top .ic.pfn-ic svg { width: 20px; height: 20px; filter: drop-shadow(0 0 4px rgba(34,211,238,.6)); }
.pfn-top .pf-btn { flex: none; }
/* Panel «Nueva nota» */
.pf-velo .pf-ven.pfn-ven { width: min(440px, 100%); }
.pfn-h { display: flex; align-items: center; gap: 9px; padding-right: 34px; }
.pfn-h .pfn-ic { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #22d3ee; background: rgba(34,211,238,.12); box-shadow: inset 0 0 0 1px rgba(34,211,238,.4); }
.pfn-h .pfn-ic svg { width: 17px; height: 17px; }
.pfn-nueva { display: grid; gap: 8px; margin-top: 8px; }
.pfn-nueva textarea { width: 100%; box-sizing: border-box; min-height: 96px; height: auto; padding: 10px 12px; resize: vertical; font: 600 13.5px/1.45 system-ui, sans-serif; }
.pfn-lb { font: 800 9.5px ui-monospace, Consolas, monospace; letter-spacing: 1.2px; color: #9a9ab5; text-transform: uppercase; }
.pfn-fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pfn-fila small { flex: 1 1 160px; min-width: 0; font: 700 11px/1.35 system-ui, sans-serif; color: #7c7c98; }
.pfn-nueva > .pf-btn { justify-self: stretch; height: 42px; }
/* Ficha: el marco del cliente, algo más grueso que el de las pestañas (3 px frente a 2). */
.pf-fv-cab { border-width: 3px; }
/* Dieta, Rutina y Notas: su información en un panel aparte (más claro y redondeado), algo separado de las pestañas. */
.pf-fv .pf-fv-cuerpo.pff-sep { margin: 18px 10px 0; padding: 12px 10px calc(28px + env(safe-area-inset-bottom, 0px)); border-radius: 14px 14px 0 0;
  background: #0f0f1d; border: 1px solid rgba(255,255,255,.08); border-bottom: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.pf-fv-cuerpo.pff-sep > :first-child, .pf-fv-cuerpo.pff-sep > [data-dieta] > :first-child, .pf-fv-cuerpo.pff-sep > [data-rutina] > :first-child { margin-top: 0; }/* Ficha del cliente: el borde fino de toda la hoja, en el color del tema (no en el cian PRO). */
#pfFicha .pf-fv-hoja { border-color: rgba(var(--brand-a-rgb), .6); box-shadow: 0 -10px 40px rgba(0,0,0,.6), 0 0 12px rgba(var(--brand-a-rgb), .2); }
/* EDITAR / PONER (Dieta, Rutina) y AÑADIR NOTA: en el color del tema. */
.pff-die-top .pf-btn { color: #fff; background: rgba(var(--brand-a-rgb), .16); border: 1.5px solid var(--brand-a); box-shadow: 0 0 10px rgba(var(--brand-a-rgb), .45); }
/* El PDF, alineado con la papelera de encima (que deja sitio a la ✕ con su margen). */
.pf-fv-b.pf-fv-pdf { margin-right: 12px; }
/* El admin con profesional: ADMIN y PRO juntos, centrados (ADMIN a la izquierda, PRO a su derecha). */
body:has(#proFabBtn:not([hidden])) #admEscudoBtn:not([hidden]) { left: calc(50% - 76px); }
body:has(#admEscudoBtn:not([hidden])) #proFabBtn:not([hidden]) { left: calc(50% + 8px); }
/* Directorio: el nutricionista (izquierda) y el entrenador (derecha) asoman por encima del panel, como en el
   del botón PRO (#pfPag). El panel no recorta; lo que se desplaza es .pf-dir-in. */
#pfDir { padding-top: 150px; }
#pfDir > .pf-ven { overflow: visible; max-height: none; display: flex; flex-direction: column; }
.pf-dir-in { max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px); overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.pf-dir-in::-webkit-scrollbar { display: none; }
.pf-dir-fit { position: absolute; bottom: calc(100% - 2px); width: 120px; height: auto; pointer-events: none; z-index: 2; transition: opacity .25s, transform .25s; }
.pf-dir-fit.n { left: 22px; }
.pf-dir-fit.e { right: 22px; }
.pf-dir-fit.fuera { opacity: 0; transform: translateY(14px); }
@media (prefers-reduced-motion: reduce) { .pf-dir-fit { transition: none; } }
/* Paneles del cliente (su profesional, MI DIETA, MI RUTINA): el láser pasa y tarda 5 s en volver a salir.
   Con MI DIETA o MI RUTINA abiertas encima, el del panel de su profesional no sale (no se ven dos láseres). */
@keyframes pfLaserPausa { 0% { top: 0; opacity: 0; } 3.4% { opacity: 1; } 30.8% { opacity: 1; } 34.2% { top: calc(100% - 2px); opacity: 0; } 100% { top: calc(100% - 2px); opacity: 0; } }
#pfPag .pf-laser, #pfDieta .pf-laser, #pfRutina .pf-laser { animation: pfLaserPausa 7.6s ease-in-out infinite; }
body:has(#pfDieta.open) #pfPag .pf-laser, body:has(#pfRutina.open) #pfPag .pf-laser { display: none; }
@media (prefers-reduced-motion: reduce) { #pfPag .pf-laser, #pfDieta .pf-laser, #pfRutina .pf-laser { animation: none; opacity: 0; } }
