/* Portal de clientes y panel: mismos colores y letras que la web. */
.area { padding-block: clamp(2rem, 5vw, 3.5rem) 5rem; }
.area h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.area h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .8rem; }
.area > .ancho > * + * { margin-top: 2rem; }
.angosto { max-width: 30rem; }
.apoyo { color: var(--suave); }
.acceso { display: grid; max-width: 62rem; margin-inline: auto; overflow: hidden; border: 1px solid var(--linea); border-radius: 20px; background: #fff; animation: subir .55s cubic-bezier(.16, 1, .3, 1); }
.acceso-lado { display: none; background: var(--marino); color: #fff; }
.acceso-lado img { width: 100%; height: 230px; object-fit: cover; }
.acceso-lado ul { display: grid; gap: 1rem; margin: 0; padding: 1.8rem; list-style: none; font-weight: 700; }
.acceso-lado li { display: flex; align-items: flex-start; gap: .7rem; }
.acceso-lado svg { flex: none; width: 22px; height: 22px; margin-top: .15rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.acceso-cuerpo { display: grid; align-content: center; gap: 1.5rem; padding: clamp(1.5rem, 5vw, 3.2rem); }
.acceso-centro { text-align: center; }
.acceso-cuerpo .apoyo:first-of-type { margin-top: .7rem; }
.acceso-cuerpo .boton { justify-self: center; width: auto; min-height: 44px; padding: .4rem 1.4rem; font-size: .98rem; }
.acceso-pie { padding-top: 1.4rem; border-top: 1px solid var(--linea); }
.acceso-pie a { font-weight: 700; }
@media (min-width: 820px) { .acceso { grid-template-columns: minmax(300px, .8fr) 1fr; } .acceso-lado { display: flex; flex-direction: column; } .acceso-lado img { flex: 1; min-height: 230px; height: auto; } }
.vista { display: grid; gap: 2.4rem; }
.vista[hidden], .avisos[hidden], .detalle-dia[hidden] { display: none; }
.caja { padding: clamp(1.1rem, 3vw, 1.8rem); background: var(--jabon); border-radius: 16px; }
.caja form, form.plano { padding: 0; background: none; border-radius: 0; }
.fila-sup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; }
.boton.claro { background: #fff; color: var(--marino); border: 1.5px solid var(--marino); }
.boton.claro:hover { background: var(--jabon); }
.boton.chico { min-height: 44px; padding: .35rem 1rem; font-size: .98rem; }
.boton.peligro { background: #fff; color: var(--error); border: 1.5px solid var(--error); }
.boton.peligro:hover { background: #fdeeed; }
.boton:disabled { opacity: .55; cursor: not-allowed; }
.mensaje { padding: .85rem 1rem; border-radius: 10px; background: #fff; border: 1.5px solid var(--azul); font-weight: 700; }
.mensaje.mal { border-color: var(--error); color: var(--error); }

.lista { display: grid; gap: .8rem; padding: 0; list-style: none; }
.tarjeta { display: grid; gap: .5rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--linea); border-radius: 12px; }
.tarjeta h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: 0; }
.tarjeta p { color: var(--suave); overflow-wrap: anywhere; }
.acciones-fila { display: flex; flex-wrap: wrap; gap: .5rem; }
.estado { display: inline-block; width: fit-content; padding: .1rem .7rem; border-radius: 999px; font-size: .9rem; font-weight: 700; background: var(--jabon); }
.estado.pendiente, .estado.nueva { background: #fff1c9; color: #5f4300; }
.estado.confirmada { background: #dcf3e3; color: #14532d; }

.mes-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.mes-nav strong { display: inline-block; font: 800 1.25rem var(--display); }
.mes-nav strong::first-letter { text-transform: uppercase; }
.flecha { width: 44px; height: 44px; border: 1.5px solid var(--marino); border-radius: 50%; background: #fff; color: var(--marino); font: 700 1.1rem var(--texto); cursor: pointer; }
.flecha:disabled { opacity: .3; cursor: not-allowed; }
.semana, .calendario { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.semana span { text-align: center; font-size: .85rem; font-weight: 700; color: var(--suave); text-transform: capitalize; }
.calendario { margin-top: 4px; }
.dia { min-height: 48px; padding: .25rem; border: 1.5px solid var(--linea); border-radius: 10px; background: #fff; color: var(--marino); font: 700 1rem var(--texto); cursor: pointer; }
.dia.vacio { visibility: hidden; }
.dia:disabled { background: transparent; border-color: transparent; color: #8493b5; font-weight: 400; cursor: not-allowed; }
.dia:not(:disabled):hover { border-color: var(--azul); }
.dia.elegido, .dia.elegido:hover { background: var(--azul); border-color: var(--azul); color: #fff; }
.dia.hoy { text-decoration: underline; text-underline-offset: 3px; }
.dia .marcas { display: grid; gap: 2px; margin-top: 3px; }
.dia .marcas i { display: block; height: 6px; border-radius: 3px; background: var(--linea); }
.dia .marcas i.cita { background: var(--azul); }
.dia .marcas i.pendiente { background: #d99a00; }
.dia .marcas i.bloqueo { background: var(--marino); }
.dia.elegido .marcas i { outline: 1px solid #fff; }
.dia.mia, .dia.mia:disabled { border-color: var(--marino); background: var(--marino); color: #fff; font-weight: 800; opacity: 1; }
.dia.mia.pendiente, .dia.mia.pendiente:disabled { border-color: #d99a00; background: #f7c948; color: #3a2a00; }
.dia.mia:not(:disabled):hover { border-color: var(--azul); }
.dia.mia.elegido, .dia.mia.elegido:hover { border-color: var(--azul); background: var(--azul); color: #fff; }
.ley-portal li { display: flex; align-items: center; }
.leyenda.ley-portal i { flex: none; width: 16px; height: 16px; border-radius: 5px; }
.leyenda.ley-portal i.libre { border: 1.5px solid var(--linea); background: #fff; }
.leyenda.ley-portal i.confirmada { background: var(--marino); }
.leyenda.ley-portal i.pendiente { background: #f7c948; }
.leyenda.ley-portal i.no { background: transparent; border: 1.5px dashed #a5b0c7; }
.leyenda { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .8rem; padding: 0; list-style: none; font-size: .92rem; color: var(--suave); }
.leyenda i { display: inline-block; width: 18px; height: 6px; margin-right: .4rem; border-radius: 3px; vertical-align: middle; background: var(--linea); }
.leyenda i.cita { background: var(--azul); }
.leyenda i.pendiente { background: #d99a00; }
.leyenda i.bloqueo { background: var(--marino); }

.opciones { display: grid; gap: .3rem; border: 0; }
.opciones legend { margin-bottom: .35rem; font-weight: 700; }
.opcion { display: flex; align-items: center; gap: .6rem; min-height: 44px; margin: 0; font-weight: 400; cursor: pointer; }
.opcion input { width: 22px; height: 22px; flex: none; accent-color: var(--azul); }

.pestanas { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 2px solid var(--marino); }
.pestanas button { min-height: 46px; padding: .4rem 1rem; border: 0; border-radius: 10px 10px 0 0; background: transparent; color: var(--marino); font: 700 1rem var(--texto); cursor: pointer; }
.pestanas button[aria-selected=true] { background: var(--marino); color: #fff; }
.turno-dia { display: grid; gap: .6rem; padding: 1rem 0; border-top: 1px solid var(--linea); }
.turno-dia:first-of-type { border-top: 0; }
.turno-dia h4 { font: 800 1.1rem var(--display); }
.en-linea { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.en-linea input { flex: 1 1 12rem; }

@media (min-width: 900px) {
  .dos-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
  .dia { min-height: 62px; }
}

/* Panel */
.pl-raiz { background: var(--jabon); }
.pl-raiz h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.05; }
.pl-raiz h2 { margin-bottom: .9rem; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.pl-raiz .caja { background: #fff; border: 1px solid var(--linea); border-radius: 18px; }
.pl-raiz form .boton { justify-self: start; width: auto; }

.pl-acceso { display: grid; grid-template-rows: 230px 1fr; min-height: 100vh; min-height: 100dvh; background: #fff; }
.pl-acceso-foto { position: relative; overflow: hidden; background: var(--marino); }
.pl-acceso-foto > img:first-child { width: 100%; height: 100%; object-fit: cover; opacity: .72; animation: pl-acerca 22s ease-out both; }
.pl-logo { position: absolute; left: 1.25rem; top: 1.1rem; display: flex; align-items: center; gap: .5rem; color: #fff; font: 700 .72rem/1.15 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.pl-logo img { width: 96px; }
.pl-logo span { width: min-content; }
.pl-logo .pl-logo-dibujo { width: auto; height: 52px; }
.pl-acceso-foto::after { content: ""; position: absolute; inset: 0 0 auto; height: 130px; background: linear-gradient(180deg, rgba(11, 31, 77, .62), rgba(11, 31, 77, 0)); pointer-events: none; }
.pl-logo { z-index: 1; }
.pl-centro { justify-items: center; text-align: center; }
.pl-acceso-cuerpo { display: grid; align-items: center; padding: clamp(1.6rem, 6vw, 4.5rem); animation: subir .6s cubic-bezier(.16, 1, .3, 1); }
.pl-acceso-caja { width: 100%; max-width: 26rem; margin-inline: auto; gap: 1.6rem; }
.pl-acceso-caja .apoyo { margin-top: .7rem; }
.pl-acceso-caja .boton { justify-self: center !important; }

.pl-marco { display: grid; min-height: 100vh; min-height: 100dvh; }
.pl-lado { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; align-items: stretch; padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom)); background: var(--marino); color: #fff; }
.pl-marca { display: none; }
.pl-menu { display: flex; flex: 1; gap: .2rem; }
.pl-menu button, .pl-salir { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 56px; padding: .3rem .2rem; border: 0; border-radius: 12px; background: transparent; color: #dfe5f2; font: 700 .78rem var(--texto); cursor: pointer; transition: background-color .25s ease, color .25s ease, transform .3s cubic-bezier(.16, 1, .3, 1); }
.pl-salir { flex: 0 0 4.2rem; }
.pl-menu svg, .pl-salir svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-menu button:hover, .pl-salir:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.pl-menu button[aria-selected=true], .pl-menu button[aria-selected=true]:hover { background: #fff; color: var(--marino); }
.pl-menu :focus-visible, .pl-salir:focus-visible { outline-color: #fff; }
.pl-cuenta { position: absolute; top: .25rem; left: calc(50% + .45rem); min-width: 1.2rem; padding: 0 .3rem; border-radius: 999px; background: #d99a00; color: #1d1600; font-size: .72rem; line-height: 1.2rem; text-align: center; }
.pl-cuenta[hidden] { display: none; }

.pl-contenido { display: grid; align-content: start; gap: 1.5rem; min-width: 0; padding: .8rem .8rem 6.5rem; }
.pl-banner { position: relative; display: grid; gap: 1.3rem; overflow: hidden; padding: 1.5rem 1.2rem 1.2rem; border-radius: 22px; background: var(--marino); color: #fff; animation: subir .7s cubic-bezier(.16, 1, .3, 1); }
.pl-fotos, .pl-velo { position: absolute; inset: 0; }
.pl-fotos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.pl-fotos img.activa { opacity: 1; animation: pl-acerca 12s ease-out both; }
.pl-velo { background: linear-gradient(100deg, rgba(11, 31, 77, .94), rgba(11, 31, 77, .72) 58%, rgba(11, 31, 77, .42)); }
.pl-banner-texto, .pl-cifras { position: relative; }
.pl-banner h1 { color: #fff; }
.pl-fecha { margin-top: .35rem; font-size: 1.05rem; }
.pl-fecha::first-letter { text-transform: uppercase; }
.pl-cifras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.pl-cifra { display: grid; justify-items: start; align-content: start; gap: .1rem; padding: .7rem .75rem; border: 0; border-radius: 14px; background: #fff; color: var(--marino); text-align: left; cursor: pointer; transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease; }
.pl-cifra:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(4, 12, 34, .35); }
.pl-cifra b { font: 800 clamp(1.6rem, 4vw, 2.3rem)/1 var(--display); }
.pl-cifra span { color: var(--suave); font-size: .82rem; font-weight: 700; line-height: 1.2; }

.pl-aviso:empty { display: none; }
.pl-aviso .mensaje { animation: subir .45s cubic-bezier(.16, 1, .3, 1); }
.pl-entra > * > * { animation: subir .6s cubic-bezier(.16, 1, .3, 1) both; }
.pl-entra > * > :nth-child(2) { animation-delay: 80ms; }
.pl-entra > * > :nth-child(3) { animation-delay: 160ms; }
.pl-entra > * > :nth-child(4) { animation-delay: 240ms; }
.pl-entra > * > :nth-child(n+5) { animation-delay: 300ms; }
.pl-funde { animation: pl-funde .5s ease both; }
.pl-sube { animation: subir .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes pl-acerca { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes pl-funde { from { opacity: .25; } to { opacity: 1; } }

.pl-raiz .tarjeta { border-radius: 16px; transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, border-color .25s ease; }
.pl-raiz .lista .tarjeta:hover { transform: translateY(-2px); border-color: #c4cddd; box-shadow: 0 12px 26px rgba(11, 31, 77, .09); }
.pl-datos { display: grid; align-content: start; gap: .35rem; min-width: 0; }
.pl-datos .acciones-fila { margin-top: .4rem; }
.pl-con-inicial { grid-template-columns: 48px minmax(0, 1fr); gap: .9rem; }
.pl-inicial { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--marino); color: #fff; font: 800 1.25rem var(--display); }

#detalle-dia h2::first-letter { text-transform: uppercase; }
.pl-sin-dia { display: grid; gap: 1rem; }
.pl-sin-dia img { width: 100%; height: 190px; border-radius: 12px; object-fit: cover; }
.pl-vacio { display: grid; overflow: hidden; border: 1px solid var(--linea); border-radius: 18px; background: #fff; }
.pl-vacio img { width: 100%; height: 200px; object-fit: cover; }
.pl-vacio > div { align-self: center; padding: 1.5rem; }


/* Pestañas dentro de Agenda */
.pl-agenda { gap: 1.2rem; }
.pl-sub { display: grid; grid-template-columns: auto auto; gap: .25rem; padding: .3rem; border: 1px solid var(--linea); border-radius: 14px; background: #fff; }
.pl-sub button { display: flex; align-items: center; justify-content: center; gap: .4rem; min-width: 0; white-space: nowrap; min-height: 46px; padding: .3rem .5rem; border: 0; border-radius: 10px; background: transparent; color: var(--suave); font: 700 .95rem var(--texto); cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.pl-sub button:hover { background: var(--jabon); color: var(--marino); }
.pl-sub button[aria-selected=true], .pl-sub button[aria-selected=true]:hover { background: var(--marino); color: #fff; }
.pl-sub svg { flex: none; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-sub-cuenta { flex: none; min-width: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: #d99a00; color: #1d1600; font-size: .75rem; line-height: 1.3rem; text-align: center; }
@media (min-width: 620px) {
  .pl-sub { display: inline-grid; grid-template-columns: auto auto; justify-self: start; width: fit-content; }
  .pl-sub button { padding-inline: 1.2rem; }
}
@media (max-width: 359px) { .pl-sub svg { display: none; } .pl-sub button { font-size: .88rem; } }

/* Clientes del panel */
.pl-clientes { display: grid; gap: 1.2rem; }
.pl-clientes-cab { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; }
.pl-clientes-cab > div:first-child { flex: 1 1 100%; }
.pl-clientes-cab h2 { margin-bottom: 0; }
.pl-clientes-cab .apoyo { margin-top: .15rem; font-size: .95rem; }
.pl-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pl-buscar { position: relative; display: block; flex: 1 1 14rem; margin: 0; font-weight: 400; }
.pl-buscar svg { position: absolute; left: .85rem; top: 50%; width: 18px; height: 18px; fill: none; stroke: var(--suave); stroke-width: 2; stroke-linecap: round; transform: translateY(-50%); pointer-events: none; }
.pl-buscar input { width: 100%; min-height: 44px; padding: .4rem .9rem .4rem 2.5rem; border: 1px solid var(--linea); border-radius: 999px; background: #fff; color: var(--marino); font: 400 1rem var(--texto); transition: border-color .2s ease; }
.pl-buscar input:hover, .pl-buscar input:focus { border-color: var(--marino); }
.pl-agregar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.pl-agregar:hover svg { transform: none; }
.pl-tabla-marco { overflow: hidden; border: 1px solid var(--linea); border-radius: 18px; background: #fff; }
.pl-tabla { width: 100%; border-collapse: collapse; }
.pl-tabla thead { display: none; }
.pl-tabla tr { display: grid; gap: .7rem; padding: 1rem; border-top: 1px solid var(--linea); transition: background-color .2s ease; }
.pl-tabla tbody tr:first-child { border-top: 0; }
.pl-tabla td { display: block; min-width: 0; }
.pl-td-cliente { display: flex !important; align-items: center; gap: .8rem; }
.pl-td-cliente > div { display: grid; min-width: 0; }
.pl-td-cliente strong { font-weight: 700; }
.pl-td-cliente div span { color: var(--suave); font-size: .92rem; overflow-wrap: anywhere; }
.pl-td-cliente div span.pl-cli-fija { color: var(--marino); font-weight: 600; }
.pl-raiz .pl-inicial { flex: none; width: 42px; height: 42px; font-size: 1.1rem; }
.pl-td-contacto { display: grid !important; gap: .1rem; font-size: .95rem; }
.pl-td-contacto a { display: block; width: fit-content; font-weight: 700; text-decoration: none; }
.pl-td-contacto a:hover { text-decoration: underline; }
.pl-td-contacto span { display: block; color: var(--suave); }
.estado.pl-apagado { background: #eef0f6; color: #55617c; }
.pl-inactivo .pl-inicial { background: #8a94aa; }
.pl-inactivo strong { color: var(--suave); }
.pl-td-acciones { display: flex !important; flex-wrap: wrap; gap: .2rem; margin-inline: -.6rem; }
.pl-accion { min-height: 44px; padding: .3rem .6rem; border: 0; border-radius: 10px; background: transparent; color: var(--marino); font: 700 .9rem var(--texto); white-space: nowrap; cursor: pointer; transition: background-color .2s ease; }
.pl-accion:hover { background: var(--jabon); }
.pl-accion.peligro { color: var(--error); }
.pl-accion.peligro:hover { background: #fdeeed; }
.pl-sin-resultado { padding: 1.4rem; text-align: center; }
.pl-sin-resultado[hidden] { display: none; }
.pl-dialogo { width: min(36rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); margin: auto; padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--marino); box-shadow: 0 30px 70px rgba(4, 12, 34, .4); }
.pl-dialogo[open] { animation: subir .4s cubic-bezier(.16, 1, .3, 1); }
.pl-dialogo::backdrop { background: rgba(11, 31, 77, .55); }
.pl-dialogo form { gap: 1.1rem; padding: clamp(1.2rem, 4vw, 2rem); }
.pl-dialogo h2 { margin-bottom: 0; }
.pl-dialogo form > .apoyo { margin-top: -.8rem; }
.pl-dos-campos { display: grid; gap: 1.1rem 1rem; }
.pl-dialogo-pie { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.pl-raiz form .pl-dialogo-pie .boton { justify-self: auto; }
@media (min-width: 620px) {
  .pl-dos-campos { grid-template-columns: 1fr 1fr; }
  .pl-clientes-cab > div:first-child { flex: 1 1 auto; }
  .pl-buscar { flex: 0 1 19rem; }
}
@media (min-width: 900px) {
  .pl-tabla { display: table; }
  .pl-tabla thead { display: table-header-group; background: #f8f9fc; }
  .pl-tabla th { padding: .8rem 1.1rem; color: var(--suave); font-size: .85rem; font-weight: 700; text-align: left; }
  .pl-tabla tr { display: table-row; padding: 0; }
  .pl-tabla tbody tr:hover { background: #f8f9fc; }
  .pl-tabla td { display: table-cell !important; padding: .85rem 1.1rem; border-top: 1px solid var(--linea); vertical-align: middle; }
  .pl-tabla tbody tr:first-child td { border-top: 1px solid var(--linea); }
  .pl-td-cliente > * { vertical-align: middle; }
  .pl-td-cliente .pl-inicial { display: inline-grid; margin-right: .8rem; }
  .pl-td-cliente > div { display: inline-grid; max-width: calc(100% - 3.6rem); }
  .pl-td-acciones { margin-inline: 0; white-space: nowrap; text-align: right; }
  .pl-tabla th:last-child { text-align: right; }
}

/* Calendario del panel */
.pl-pendientes { grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); column-gap: 1rem; row-gap: 1.1rem; align-items: stretch; }
.pl-raiz .vista { grid-template-columns: minmax(0, 1fr); }
.pl-raiz .vista > *, .pl-cuerpo { min-width: 0; }
.pl-raiz .dos-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.pl-calendario { overflow: hidden; padding: clamp(.8rem, 2.2vw, 1.6rem); }
.pl-mes { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1.1rem; }
.pl-mes strong { display: block; font: 800 clamp(1.4rem, 3vw, 2rem)/1.1 var(--display); }
.pl-mes strong::first-letter { text-transform: uppercase; }
.pl-mes .apoyo { margin-top: .25rem; font-size: .95rem; }
.pl-mes-botones { display: flex; flex: none; align-items: center; gap: .4rem; }
.pl-raiz .flecha { display: grid; place-items: center; border-color: var(--linea); transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1); }
.pl-raiz .flecha:hover { border-color: var(--marino); background: var(--marino); color: #fff; }
.pl-raiz .flecha svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pl-raiz .semana { gap: 5px; margin-bottom: .35rem; }
.pl-raiz .semana span { font-size: .8rem; letter-spacing: .04em; }
.pl-raiz .calendario { gap: 5px; margin-top: 0; }
.pl-raiz .dia { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: .3rem; min-width: 0; min-height: 76px; padding: .3rem; border: 1px solid var(--linea); border-radius: 12px; background: #fff; text-align: left; transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.pl-raiz .dia.vacio { border: 0; }
.pl-raiz .dia.finde { background: #f8f9fc; }
.pl-raiz .dia.pasado { opacity: .55; }
.pl-raiz .dia.hoy { text-decoration: none; border-color: var(--marino); }
.pl-raiz .dia:hover { z-index: 1; transform: translateY(-3px); border-color: var(--marino); box-shadow: 0 10px 22px rgba(11, 31, 77, .14); }
.pl-raiz .dia.elegido, .pl-raiz .dia.elegido:hover { background: var(--marino); border-color: var(--marino); color: #fff; opacity: 1; box-shadow: 0 10px 24px rgba(11, 31, 77, .28); }
.pl-num { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; font: 800 .95rem var(--display); }
.dia.hoy .pl-num { background: var(--marino); color: #fff; }
.dia.hoy.elegido .pl-num { background: #fff; color: var(--marino); }
.pl-chips { display: grid; gap: 3px; }
.pl-chip { display: flex; align-items: center; justify-content: center; gap: .3rem; min-width: 0; min-height: 17px; padding: 0 .25rem; border-radius: 6px; background: #eef0f6; color: #55617c; font-size: .7rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.pl-chip em { flex: none; font-style: normal; font-size: .62rem; letter-spacing: .02em; opacity: .85; }
.pl-chip > span { display: none; overflow: hidden; text-overflow: ellipsis; }
.pl-chip.cita { background: var(--azul); color: #fff; }
.pl-chip.pendiente { background: #f7c948; color: #3a2a00; animation: pl-late 2.4s ease-in-out infinite; }
.pl-chip.bloqueo { background: repeating-linear-gradient(135deg, #cdd3e0 0 5px, #dfe3ec 5px 10px); color: var(--marino); }
.dia.elegido .pl-chip:not(.cita):not(.pendiente):not(.bloqueo) { background: rgba(255, 255, 255, .16); color: #fff; }
@keyframes pl-late { 50% { box-shadow: 0 0 0 3px rgba(247, 201, 72, .35); } }
.pl-va-izq { animation: pl-va-izq .45s cubic-bezier(.16, 1, .3, 1); }
.pl-va-der { animation: pl-va-der .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes pl-va-izq { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes pl-va-der { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }
.pl-raiz .leyenda { gap: .4rem 1.2rem; margin-top: 1.1rem; }
.pl-raiz .leyenda li { display: flex; align-items: center; }
.pl-raiz .leyenda i { width: 16px; height: 16px; border-radius: 5px; background: #eef0f6; border: 1px solid var(--linea); }
.pl-raiz .leyenda i.cita { background: var(--azul); border-color: var(--azul); }
.pl-raiz .leyenda i.pendiente { background: #f7c948; border-color: #f7c948; }
.pl-raiz .leyenda i.bloqueo { background: repeating-linear-gradient(135deg, #cdd3e0 0 4px, #dfe3ec 4px 8px); }

@media (min-width: 620px) {
  .pl-raiz .semana, .pl-raiz .calendario { gap: 7px; }
  .pl-raiz .dia { min-height: 104px; padding: .3rem; }
  .pl-chip { justify-content: flex-start; gap: .25rem; min-height: 23px; padding: 0 .3rem; }
  .pl-chip > span { display: block; }
  .pl-chip em { font-size: .66rem; }
}

@media (min-width: 1420px) {
  .pl-raiz .dos-col { grid-template-columns: minmax(0, 2.1fr) minmax(300px, 1fr); }
  #detalle-dia, .pl-sin-dia { position: sticky; top: 1.2rem; }
}

@media (min-width: 760px) {
  .pl-acceso { grid-template-columns: 1.05fr 1fr; grid-template-rows: none; }
  .pl-logo { left: 2.2rem; top: 1.9rem; gap: .7rem; font-size: .95rem; }
  .pl-logo img { width: 140px; }
  .pl-logo .pl-logo-dibujo { height: 76px; }
  .pl-vacio { grid-template-columns: 1fr 1fr; }
  .pl-vacio img { height: 280px; }
}

@media (min-width: 1000px) {
  .pl-marco { grid-template-columns: 250px minmax(0, 1fr); }
  .pl-lado { position: sticky; inset: 0 auto auto 0; flex-direction: column; gap: 2.2rem; height: 100vh; height: 100dvh; padding: 1.8rem 1rem 1.2rem; }
  .pl-marca { display: flex; align-items: center; gap: .6rem; padding-inline: .5rem; }
  .pl-marca-texto { display: grid; gap: .2rem; }
  .pl-marca-texto img { width: 118px; }
  .pl-dibujo { flex: none; width: auto; height: 62px; }
  .pl-marca small { font: 700 .72rem var(--display); letter-spacing: .09em; text-transform: uppercase; }
  .pl-menu { flex-direction: column; flex: 1; }
  .pl-menu button, .pl-salir { flex: none; flex-direction: row; justify-content: flex-start; gap: .8rem; width: 100%; min-height: 50px; padding: .4rem .85rem; font-size: 1rem; }
  .pl-menu button:hover { transform: translateX(3px); }
  .pl-cuenta { position: static; margin-left: auto; font-size: .78rem; }
  .pl-contenido { gap: 1.8rem; padding: 1.5rem clamp(1.5rem, 3vw, 2.6rem) 3rem; }
  .pl-banner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: end; min-height: 250px; padding: 2.2rem; border-radius: 26px; }
  .pl-cifra { padding: 1rem 1.1rem; }
  .pl-cifra span { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-acceso-foto > img:first-child, .pl-acceso-cuerpo, .pl-banner, .pl-fotos img.activa, .pl-aviso .mensaje, .pl-entra > * > *, .pl-funde, .pl-sube, .pl-chip.pendiente, .pl-va-izq, .pl-va-der { animation: none; }
  .pl-fotos img, .pl-cifra, .pl-raiz .tarjeta, .pl-raiz .dia, .pl-raiz .flecha, .pl-menu button, .pl-salir { transition: none; }
}

@media (max-width: 759px) {
  .pl-acceso-cuerpo { align-items: start; padding-block: 1.8rem 2.5rem; }
}

/* Tarjeta de cita del panel */
.pl-raiz .pl-cita { display: grid; grid-template-rows: auto 1fr auto; gap: 0; overflow: hidden; padding: 0; }
.pl-cita-cab { display: grid; gap: .1rem; padding: .8rem 1.1rem; background: #f8f9fc; border-bottom: 1px solid var(--linea); }
.pl-cita-cab strong::first-letter { text-transform: uppercase; }
.pl-cita-cab span { color: var(--suave); font-size: .92rem; }
.pl-cita-cuerpo { display: grid; align-content: start; gap: .55rem; padding: .95rem 1.1rem; }
.pl-cita-quien { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem .7rem; }
.pl-raiz .pl-cita h3 { font-size: 1.15rem; }
.pl-cita-servicio { flex: none; padding: .12rem .6rem; border-radius: 999px; background: var(--jabon); color: var(--marino); font-size: .84rem; font-weight: 700; }
.pl-raiz .pl-cita p.pl-cita-dato { display: flex; align-items: flex-start; gap: .55rem; color: var(--suave); font-size: .95rem; }
.pl-cita-dato svg { flex: none; width: 16px; height: 16px; margin-top: .22rem; fill: none; stroke: var(--suave); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-cita-dato a { font-weight: 700; color: var(--marino); text-decoration: none; }
.pl-cita-dato a:hover { text-decoration: underline; }
.pl-raiz .pl-cita p.pl-cita-nota { padding: .5rem .7rem; border-radius: 10px; background: #f8f9fc; color: var(--marino); font-size: .92rem; }
.pl-cita-pie { display: grid; gap: .35rem; padding: 0 1.1rem .8rem; }
.pl-cita-acciones { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.pl-cita-acciones .boton { width: 100%; padding-inline: .4rem; white-space: nowrap; }
.pl-cita-acciones .boton:only-child { grid-column: 1 / -1; }
.pl-cita-enlace { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; border: 0; background: transparent; color: var(--marino); font: 700 .92rem var(--texto); cursor: pointer; }
.pl-cita-enlace:hover { text-decoration: underline; text-underline-offset: 3px; }
.pl-cita-enlace svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.turno-dia .pl-cita { border: 0; background: none; box-shadow: none; }
.turno-dia .pl-cita-cuerpo { padding: 0 0 .8rem; }
.turno-dia .pl-cita-pie { padding: 0; }
.pl-cab-fila { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .95rem; }
.pl-cab-fila .estado { flex: none; color: inherit; font-size: .84rem; }
.pl-cab-fila .estado.nueva { color: #5f4300; }
.pl-raiz .pl-cita p.pl-cita-alerta { color: var(--error); font-size: .92rem; font-weight: 700; }
.pl-cita-iconos { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .75rem; border-top: 1px solid var(--linea); }
.pl-cita-grupo { display: flex; gap: .5rem; }
.pl-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1.5px solid var(--marino); border-radius: 50%; background: var(--blanco); color: var(--marino); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.pl-ico:hover { background: var(--jabon); }
.pl-ico.principal { background: var(--marino); color: var(--blanco); }
.pl-ico.principal:hover { background: var(--azul-osc); border-color: var(--azul-osc); }
.pl-ico:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.pl-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-raiz .lista .pl-atendida .pl-cita-cuerpo { opacity: .72; }

/* Tarjetas compactas en celular */
@media (max-width: 759px) {
  .pl-cita-cab { padding: .45rem .9rem; }
  .pl-cab-fila { font-size: .9rem; }
  .pl-cab-fila .estado { padding: 0 .5rem; font-size: .8rem; }
  .pl-cita-cuerpo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem .75rem; padding: .55rem .9rem .6rem; }
  .pl-cita-cuerpo > * { width: 100%; }
  .pl-raiz .pl-cita p.pl-cita-dato { gap: .4rem; font-size: .9rem; line-height: 1.35; }
  .pl-raiz .pl-cita p.pl-dato-telefono, .pl-raiz .pl-cita p.pl-dato-repetir { width: auto; }
  .pl-cita-dato svg { width: 14px; height: 14px; margin-top: .2rem; }
  .pl-raiz .pl-cita h3 { font-size: 1.05rem; }
  .pl-cita-servicio { padding: 0 .5rem; font-size: .8rem; }
  .pl-raiz .pl-cita p.pl-cita-nota { margin-top: .15rem; padding: .3rem .55rem; font-size: .875rem; line-height: 1.35; }
  .pl-cita-pie { padding: 0 .9rem .5rem; }
  .pl-cita-iconos { padding-top: .5rem; }
  .pl-ico { width: 44px; height: 44px; }
  .pl-ico svg { width: 18px; height: 18px; }
}

/* Clientes compactos en celular y tableta */
@media (max-width: 899px) {
  .pl-tabla tr { position: relative; gap: .3rem; padding: .7rem .9rem .35rem; }
  .pl-raiz .pl-inicial { width: 36px; height: 36px; font-size: .98rem; }
  .pl-td-cliente { gap: .6rem; }
  .pl-td-cliente strong { padding-right: 6.4rem; line-height: 1.25; }
  .pl-td-cliente div span { font-size: .875rem; line-height: 1.3; }
  .pl-tabla td:nth-child(3) { position: absolute; top: .65rem; right: .9rem; }
  .pl-tabla .estado { padding: .02rem .55rem; font-size: .8rem; }
  .pl-td-contacto { display: flex !important; flex-wrap: wrap; align-items: baseline; gap: 0 .75rem; font-size: .9rem; }
  .pl-td-acciones { gap: 0; }
  .pl-accion { min-height: 44px; font-size: .875rem; }
}
.pl-banos { display: grid; gap: 1.1rem; }

/* Arrastrar y soltar limpiezas entre días */
.pl-chip[data-cita] { cursor: grab; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.pl-calendario .dia { -webkit-user-select: none; user-select: none; }
.pl-chip.levantada { opacity: .3; }
.pl-chip.pl-fantasma { position: fixed; z-index: 90; min-width: 92px; padding: 0 .5rem; transform: translate(-50%, -150%); pointer-events: none; opacity: .96; box-shadow: 0 12px 26px rgba(11, 31, 77, .38); animation: none; }
.pl-chip.pl-fantasma > span { display: block; }
.pl-raiz .dia.soltar-si { background: #e5f6ec; border-color: #1f9d55; box-shadow: inset 0 0 0 2px #1f9d55; }
.pl-raiz .dia.soltar-no { background: #fdeeed; border-color: var(--error); box-shadow: inset 0 0 0 2px var(--error); opacity: .75; }
.pl-pista-arrastre { margin: .7rem 0 0; font-size: .875rem; }
.pl-mover-envol { display: grid; }
.pl-mover { display: flex; align-items: center; gap: .5rem; padding: .3rem 0 .2rem; }
.pl-mover[hidden] { display: none; }
.pl-mover input { flex: 1; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .pl-chip.pl-fantasma { transition: none; } }

/* Mapa de clientes */
.pl-mapa-seccion { display: grid; gap: .8rem; }
.pl-mapa-resumen { margin: 0; }
.pl-mapa { isolation: isolate; height: 62vh; min-height: 380px; max-height: 720px; border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; background: #e8edf6; }
.pl-pin-caja { background: none; border: 0; }
.pl-pin { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #fff; border-radius: 50% 50% 50% 0; background: var(--marino); color: #fff; transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(11, 31, 77, .4); }
.pl-pin > b { transform: rotate(45deg); font: 700 .82rem var(--texto); }
.pl-pin.prog { background: #15803d; }
.pl-pin.sin { background: #c2410c; }
.pl-pin.inactivo { background: #8493b5; }
.pl-pin.aprox { background: #fff; border-style: dashed; }
.pl-pin.aprox.prog { color: #15803d; border-color: #15803d; }
.pl-pin.aprox.sin { color: #c2410c; border-color: #c2410c; }
.pl-pin.aprox.inactivo { color: #8493b5; border-color: #8493b5; }
.pl-popup { display: grid; gap: .25rem; min-width: 190px; font: 400 .92rem/1.35 var(--texto); color: var(--marino); }
.pl-popup strong { font-size: 1rem; }
.pl-popup em { color: #8a5a00; font-style: normal; font-size: .85rem; }
.pl-popup a { color: var(--azul); font-weight: 700; }
.pl-popup-acciones { display: flex; gap: .9rem; align-items: center; margin-top: .25rem; }
.pl-popup-acciones button { padding: 0; border: 0; background: none; color: var(--azul); font: 700 .92rem var(--texto); cursor: pointer; text-decoration: underline; }
.pl-aviso-mapa h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.pl-sin-ubicar { display: grid; gap: .4rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.pl-sin-ubicar li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .8rem; }
.pl-popup-corregir { justify-self: start; margin-top: .2rem; padding: 0; border: 0; background: none; color: var(--suave); font: 600 .85rem var(--texto); text-decoration: underline; cursor: pointer; }

.pl-sub { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(max-content, 1fr); }
@media (min-width: 620px) { .pl-sub { grid-auto-columns: auto; } }
@media (max-width: 519px) { .pl-sub svg { display: none; } .pl-sub button { gap: .25rem; padding: .3rem .2rem; font-size: .8rem; } .pl-sub-cuenta { min-width: 1.15rem; padding: 0 .25rem; font-size: .7rem; line-height: 1.15rem; } }

@media (max-width: 349px) { .pl-sub { padding: .2rem; gap: .1rem; } .pl-sub button { padding: .3rem .1rem; font-size: .72rem; } }

/* Combinaciones del día: tarjetas con piezas de colores, controles de cantidad y barra para guardar */
.pl-combos-seccion { display: grid; gap: 1rem; max-width: 1180px; }
.pl-combos-cab { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; }
.pl-combos-cab h2 { margin: 0; }
.pl-contador { padding: .1rem .7rem; border-radius: 999px; background: var(--jabon); color: var(--marino); font: 700 .85rem var(--texto); }
.pl-combos-intro { margin: -.4rem 0 0; max-width: 62ch; color: var(--suave); }
.pl-ayuda { border: 1px solid var(--linea); border-radius: 12px; background: #fff; }
.pl-ayuda summary { padding: .75rem 1rem; font-weight: 700; color: var(--marino); cursor: pointer; }
.pl-ayuda p { margin: 0; padding: 0 1rem .8rem; max-width: 70ch; color: var(--suave); }
.pl-combos { display: grid; grid-template-columns: 1fr; gap: .9rem; align-items: start; }
@media (min-width: 1100px) { .pl-combos { grid-template-columns: 1fr 1fr; } }
.pl-combo { padding: 1.1rem 1.2rem 1.2rem; border-radius: 16px; }
.pl-combo-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.pl-combo-titulo { display: grid; gap: .6rem; min-width: 0; }
.pl-combo-titulo strong { font-size: 1.08rem; color: var(--marino); }
.pl-combo-vista { display: flex; flex-wrap: wrap; gap: .35rem; }
.pl-pieza { display: inline-flex; align-items: center; min-height: 26px; padding: 0 .65rem; border-radius: 999px; font: 700 .78rem var(--texto); background: #eef0f6; color: #3d4a6b; }
.pl-pieza-basic { background: #e4ecff; color: #153fa8; }
.pl-pieza-deep { background: #dde3f3; color: #0b1f4d; }
.pl-pieza-move { background: #d6f1ec; color: #0b5c55; }
.pl-pieza-banos { background: #ece3fa; color: #5b21b6; }
.pl-pieza.vacia { background: #f1f3f8; color: #55617c; font-weight: 600; }
.pl-quitar { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: -.35rem -.5rem 0 0; border: 0; border-radius: 12px; background: transparent; color: #b3261e; cursor: pointer; }
.pl-quitar:hover { background: #fdeeed; }
.pl-quitar svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-combo-campos { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--linea); }
.pl-paso label { margin: 0 0 .3rem; font: 600 .85rem var(--texto); color: var(--suave); }
.pl-paso-fila { display: grid; grid-template-columns: 44px minmax(2.5rem, 1fr) 44px; gap: .3rem; align-items: center; }
.pl-paso-btn { min-height: 44px; border: 1.5px solid var(--linea); border-radius: 12px; background: #fff; color: var(--marino); font: 400 1.4rem/1 var(--texto); cursor: pointer; }
.pl-paso-btn:hover:not(:disabled) { background: var(--jabon); border-color: #9db4e6; }
.pl-paso-btn:disabled { opacity: .35; cursor: not-allowed; }
.pl-paso input { min-height: 44px; padding: 0 .2rem; text-align: center; font-weight: 700; font-size: 1.1rem; -moz-appearance: textfield; appearance: textfield; }
.pl-paso input::-webkit-outer-spin-button, .pl-paso input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pl-agregar-combo { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 56px; border: 2px dashed #9db4e6; border-radius: 16px; background: transparent; color: var(--azul-osc); font: 700 1rem var(--texto); cursor: pointer; }
.pl-agregar-combo:hover { background: var(--jabon); }
.pl-agregar-combo svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pl-barra-combos { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .7rem 1rem; border: 1px solid var(--linea); border-radius: 14px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 24px rgba(11, 31, 77, .12); }
.pl-barra-combos.sucio { border-color: #d99a00; background: #fffaf0; }
.pl-barra-texto { margin: 0; font-weight: 700; color: var(--marino); }
.pl-barra-botones { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 899px) { .pl-barra-combos { bottom: 88px; } }

/* Tarjetas del día que se arrastran al calendario */
.pl-arrastrable { position: relative; cursor: grab; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.pl-arrastrable.levantada { opacity: .35; }
.pl-asa { position: absolute; top: .55rem; right: .7rem; color: #9aa6c4; font-size: 1.1rem; letter-spacing: -.12em; line-height: 1; }
.pl-pista-tarjeta { margin-top: .6rem; font-size: .9rem; }
.pl-chip.pl-fantasma { white-space: nowrap; }
.pl-chip.pl-fantasma > span { display: block; }

/* Celular (menos de 620 px): calendario pequeño a la izquierda y el día abierto como columna grande a la derecha.
   Escritorio y tableta no cambian. */
.pl-columna { display: none; }
@media (max-width: 619px) {
  .pl-par { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: .45rem; align-items: start; }
  .pl-calendario { padding: .45rem .3rem; border-radius: 16px; overflow: visible; }
  /* El día sobre el que está la tarjeta arrastrada se pinta de verde y crece, para saber cuál se elige. */
  .pl-raiz .dia.soltar-si { z-index: 4; transform: scale(1.5); background: #22b35e; border-color: #0f6b34; box-shadow: 0 6px 16px rgba(20, 128, 63, .55), inset 0 0 0 2px #0f6b34; transition: transform .12s ease-out; }
  .pl-raiz .dia.soltar-si .pl-num { color: #fff; background: transparent; }
  .pl-raiz .dia.soltar-no { z-index: 4; transform: scale(1.12); }
  .pl-calendario .pl-mes { flex-wrap: wrap; gap: .25rem; margin-bottom: .35rem; }
  .pl-calendario .pl-mes strong { font-size: 1rem; }
  .pl-calendario .pl-mes .apoyo { display: none; }
  .pl-mes-botones { gap: .25rem; }
  .pl-raiz .flecha { width: 30px; height: 30px; min-height: 0; padding: 0; }
  .pl-raiz .flecha svg { width: 14px; height: 14px; }
  .pl-mes-botones .boton { min-height: 30px; padding: 0 .5rem; font-size: .72rem; }
  .pl-raiz .semana, .pl-raiz .calendario { gap: 2px; }
  .pl-raiz .semana span { font-size: .65rem; letter-spacing: 0; }
  .pl-raiz .dia { min-height: 46px; padding: .1rem 0; align-items: center; border-radius: 6px; gap: .05rem; }
  .pl-num { width: 1.45rem; height: 1.45rem; font-size: .85rem; }
  .pl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; max-width: 100%; }
  .pl-chip { width: 6px; min-width: 0; height: 6px; min-height: 0; padding: 0; border-radius: 50%; overflow: hidden; }
  .pl-chip > em, .pl-chip > span { display: none; }
  .pl-chip.pendiente { animation: none; }
  .pl-raiz .dia.finde .pl-chip.bloqueo { display: none; }
  .pl-calendario .leyenda, .pl-pista-arrastre { display: none; }
  .pl-chip.pl-fantasma { width: auto; height: auto; min-height: 30px; padding: 0 .8rem; border-radius: 10px; overflow: visible; font-size: .95rem; }
  .pl-chip.pl-fantasma > em, .pl-chip.pl-fantasma > span { display: inline; }
  /* El día abierto: la celda del día de la web, en grande (número arriba y una barra por cliente que se arrastra). */
  .pl-columna { display: block; padding: .7rem .6rem .8rem; border: 1.5px solid var(--marino); border-radius: 14px; background: #fff; box-shadow: none; }
  .pl-columna.vacia { padding: .9rem .7rem; border-color: var(--linea); }
  .pl-col-num { display: block; margin: 0 0 .55rem .1rem; font: 800 1.3rem/1 var(--display); color: var(--marino); }
  .pl-col-chips { display: grid; gap: 6px; }
  .pl-columna .pl-chip { display: flex; justify-content: flex-start; align-items: center; gap: .3rem; width: auto; height: auto; min-height: 38px; padding: 0 .55rem; border-radius: 8px; overflow: hidden; font-size: .88rem; white-space: nowrap; }
  .pl-columna .pl-chip > em, .pl-columna .pl-chip > span { display: inline; }
  .pl-columna .pl-chip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .pl-columna .pl-chip em { font-size: .82rem; opacity: 1; }
  .pl-columna .apoyo { margin: 0; font-size: .9rem; }
}
/* Globo con el número del día destino, por encima del dedo (solo celular) */
.pl-burbuja { position: fixed; z-index: 95; place-items: center; width: 76px; height: 76px; border-radius: 22px; color: #fff; font: 800 2.4rem/1 var(--display); transform: translate(-50%, -50%); pointer-events: none; box-shadow: 0 14px 30px rgba(11, 31, 77, .4); }
.pl-burbuja.si { background: #22b35e; border: 3px solid #0f6b34; }
.pl-burbuja.no { background: #d1453b; border: 3px solid #8f1f17; }

/* Clientes: quién tiene limpieza programada y quién no */
.pl-filtros { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .9rem; }
.pl-filtro { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .4rem 1rem; border: 1.5px solid var(--linea); border-radius: 99px; background: #fff; color: var(--marino); font: 700 .95rem var(--texto); cursor: pointer; }
.pl-filtro b { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; padding: 0 .4rem; border-radius: 99px; background: #eef0f6; font-size: .85rem; }
.pl-filtro[aria-pressed="true"] { background: var(--marino); border-color: var(--marino); color: #fff; }
.pl-filtro[aria-pressed="true"] b { background: #fff; color: var(--marino); }
.pl-td-cliente div span.pl-prog { display: inline-block; justify-self: start; margin-top: .3rem; padding: .15rem .6rem; border-radius: 99px; font-size: .82rem; font-weight: 700; }
.pl-td-cliente div span.pl-prog.si { background: #e5f6ec; color: #0b3d22; }
.pl-td-cliente div span.pl-prog.no { background: #fff1d6; color: #6b4e00; }

.pl-filtro-corto { display: none; }
@media (max-width: 619px) {
  /* Clientes en celular: buscador y botón a todo el ancho, y los filtros como un selector de tres partes iguales. */
  .pl-clientes-cab { display: grid; gap: .8rem; }
  .pl-clientes-cab .pl-buscar { width: 100%; }
  .pl-clientes-cab .pl-agregar { width: 100%; justify-content: center; min-height: 52px; }
}

/* Tablet y celular: filtros de Clientes como selector de tres partes iguales */
@media (max-width: 1199px) {
  .pl-filtros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 1rem; padding: 4px; border: 1px solid var(--linea); border-radius: 16px; background: #fff; }
  .pl-filtro { flex-direction: column; justify-content: center; gap: .1rem; min-height: 62px; padding: .4rem .25rem; border: 0; border-radius: 12px; background: transparent; text-align: center; }
  .pl-filtro-largo { display: none; }
  .pl-filtro-corto { display: block; order: 1; font-size: .78rem; font-weight: 600; line-height: 1.15; }
  .pl-filtro b { order: 0; min-width: 0; height: auto; padding: 0; border-radius: 0; background: transparent; font: 800 1.35rem/1 var(--display); }
  .pl-filtro[aria-pressed="true"] { background: var(--marino); color: #fff; }
  .pl-filtro[aria-pressed="true"] b { background: transparent; color: #fff; }
}

/* Solo tablet (620 a 1199 px): la lista de clientes en tarjetas, de dos en dos, en vez de una tabla apretada. Escritorio y celular no cambian. */
@media (min-width: 620px) and (max-width: 1199px) {
  .pl-tabla-marco { overflow: visible; border: 0; border-radius: 0; background: transparent; }
  .pl-tabla, .pl-tabla tbody { display: block; width: 100%; }
  .pl-tabla thead { display: none; }
  .pl-tabla tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .pl-tabla tbody tr, .pl-tabla tbody tr:hover { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: .6rem .8rem; padding: 1.1rem 1.2rem; border: 1px solid var(--linea); border-radius: 18px; background: #fff; }
  .pl-tabla td, .pl-tabla tbody tr:first-child td { display: block !important; padding: 0 !important; border: 0 !important; }
  .pl-tabla td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .pl-tabla td:nth-child(3) { position: static; grid-column: 2; grid-row: 1; justify-self: end; align-self: start; }
  .pl-tabla td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .pl-tabla td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; display: flex !important; flex-wrap: wrap; justify-content: flex-start; gap: .4rem 1.1rem; padding-top: .7rem !important; border-top: 1px solid var(--linea) !important; text-align: left; white-space: normal; }
  .pl-td-cliente strong { padding-right: 0; }
  .pl-td-contacto { display: grid !important; gap: .15rem; }
  .pl-td-acciones { margin-inline: 0; }
}

/* Cómo llegar: enlace con el aspecto de los botones de acción */
.pl-accion.pl-llegar { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; color: var(--azul); text-decoration: none; }
.pl-accion.pl-llegar svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Leyenda de colores del mapa de clientes */
.pl-mapa-leyenda { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 .7rem; padding: 0; list-style: none; font-size: .9rem; font-weight: 600; color: var(--marino); }
.pl-mapa-leyenda li { display: inline-flex; align-items: center; gap: .45rem; }
.pl-mapa-leyenda i { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(11, 31, 77, .25); }
.pl-mapa-leyenda i.prog { background: #15803d; }
.pl-mapa-leyenda i.sin { background: #c2410c; }
.pl-mapa-leyenda i.inactivo { background: #8493b5; }

