/* 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-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; }
.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-acceso-foto .pl-firma { position: absolute; left: 1.5rem; top: 1.3rem; width: 110px; }
.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-con-foto { grid-template-columns: 76px minmax(0, 1fr); gap: .9rem; }
.pl-mini { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; }
.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); }
.turno-dia .tarjeta { padding: 0; border: 0; background: none; box-shadow: none; }

#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: 1fr 1fr; 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: .45rem; min-width: 0; 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-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-pendientes > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: .4rem; }
.pl-pendientes .tarjeta > .acciones-fila { grid-column: 1 / -1; }
.pl-pendientes > div > p::first-letter { text-transform: uppercase; }
.pl-cita-fecha { align-self: end; font-weight: 700; }
.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-acceso-foto .pl-firma { left: 2.5rem; top: 2.2rem; width: 150px; }
  .pl-con-foto { grid-template-columns: 110px minmax(0, 1fr); gap: 1.1rem; }
  .pl-mini { width: 110px; height: 110px; }
  .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; }
}
