/* Mirador: cielo arriba, tierra abajo, y las mesas como teselas sobre junta verde. */
@font-face { font-family: 'Montserrat'; src: url('assets/montserrat.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Arameza'; src: url('assets/arameza.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Southland'; src: url('assets/southland.woff2') format('woff2'); font-display: swap; }

:root {
  --cielo: #094D4F; --sobre-cielo: #FBF6F0; --sobre-cielo-2: #CFE0DC; --linea-cielo: #3A7476; --acento-cielo: #FFCDA9;
  --papel: #FBF6F0; --papel-2: #F4EBDF; --velo: #FCEBDD; --tinta: #0A3A3B; --tinta-2: #3F6364; --tinta-3: #4F6E6F;
  --borde: #8C8476; --linea: #DDD2C3; --junta: #094D4F;
  --horizonte: #DD7731; --horizonte-texto: #062B2C;
  --accion: #094D4F; --sobre-accion: #FFFFFF; --alerta: #AB4A3A; --sobre-alerta: #FFFFFF;
  --t-libre: #FBF6F0; --t-libre-texto: #0A3A3B;
  --t-llega: #FCEBDD; --t-llega-texto: #0A3A3B; --t-esquina: #AB4A3A;
  --t-sentada: #44681E; --t-sentada-texto: #FFFFFF;
  --t-postre: #FFCDA9; --t-postre-texto: #0A3A3B; --t-franja: #AB4A3A;
  --t-tarde: #DD7731; --t-tarde-texto: #062B2C;
  --t-evento: #F4EBDF; --t-evento-texto: #0A3A3B; --t-rayado: #C9B8A5;
  --msg-cliente: #F4EBDF; --msg-bianca: #FCEBDD; --msg-equipo: #094D4F; --msg-equipo-texto: #FFFFFF;
  --grosor-borde: 1px; --peso-extra: 0;
  --entra: cubic-bezier(.22, 1, .36, 1); --sale: cubic-bezier(.4, 0, 1, 1); --estado: cubic-bezier(.2, 0, 0, 1);
}
[data-modo="sol"] {
  --cielo: #FFFFFF; --sobre-cielo: #062B2C; --sobre-cielo-2: #3F6364; --linea-cielo: #062B2C; --acento-cielo: #A9500F;
  --papel: #FFFFFF; --papel-2: #FFFFFF; --velo: #FFFFFF; --tinta: #062B2C; --tinta-2: #3F6364; --tinta-3: #3F6364;
  --borde: #062B2C; --linea: #062B2C; --junta: #062B2C;
  --horizonte: #A9500F; --horizonte-texto: #FFFFFF;
  --accion: #062B2C; --t-libre: #FFFFFF; --t-libre-texto: #062B2C; --t-llega: #FFFFFF; --t-llega-texto: #062B2C;
  --t-evento: #FFFFFF; --t-evento-texto: #062B2C; --t-rayado: #062B2C; --t-postre-texto: #062B2C;
  --msg-cliente: #FFFFFF; --msg-bianca: #FFFFFF; --msg-equipo: #062B2C;
  --grosor-borde: 1.5px; --peso-extra: 100;
}
[data-modo="noche"] {
  --cielo: #0B1F20; --sobre-cielo: #FBF6F0; --sobre-cielo-2: #B7C9C6; --linea-cielo: #6B8785; --acento-cielo: #FFCDA9;
  --papel: #12302F; --papel-2: #1A3C3B; --velo: #24504E; --tinta: #FBF6F0; --tinta-2: #B7C9C6; --tinta-3: #B7C9C6;
  --borde: #6B8785; --linea: #2F5251; --junta: #061415;
  --horizonte: #F0975A; --horizonte-texto: #062B2C;
  --accion: #FFCDA9; --sobre-accion: #0A3A3B; --alerta: #EE9A89; --sobre-alerta: #0A2425;
  --t-libre: #12302F; --t-libre-texto: #FBF6F0; --t-llega: #24504E; --t-llega-texto: #FBF6F0; --t-esquina: #EE9A89;
  --t-sentada: #33602A; --t-sentada-texto: #FBF6F0; --t-postre: #D9A77F; --t-postre-texto: #0A2425; --t-franja: #AB4A3A;
  --t-tarde: #F0975A; --t-evento: #1A3C3B; --t-evento-texto: #FBF6F0; --t-rayado: #2F5251;
  --msg-cliente: #1A3C3B; --msg-bianca: #24504E; --msg-equipo: #FFCDA9; --msg-equipo-texto: #0A2425;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--papel); color: var(--tinta);
  font: calc(500 + var(--peso-extra)) 16px/24px 'Montserrat', system-ui, sans-serif;
  font-feature-settings: 'tnum', 'lnum'; -webkit-font-smoothing: antialiased; overflow: hidden;
}
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--horizonte); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; font: inherit; }

#app { height: 100dvh; display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); }
#vista { grid-row: 1; grid-column: 1; min-height: 0; display: flex; flex-direction: column; position: relative; }
#lateral { display: none; }

/* Navegación */
.navegacion { grid-row: 2; grid-column: 1; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--papel); border-top: var(--grosor-borde) solid var(--linea); padding-bottom: env(safe-area-inset-bottom); z-index: 5; }
.nav-item { min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; position: relative; color: var(--tinta-2); font-size: 14px; line-height: 20px; font-weight: 600; text-align: center; }
.nav-item svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.nav-item[aria-current="page"] { color: var(--tinta); }
.nav-item[aria-current="page"]::before { content: ''; position: absolute; top: -1px; left: 22%; right: 22%; height: 3px; background: var(--horizonte); }
.contador { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 22px; height: 22px; padding: 0 5px; background: var(--alerta); color: var(--sobre-alerta); font-size: 14px; line-height: 22px; font-weight: 700; text-align: center; border-radius: 2px; }

/* Cielo: cabecera común */
.cielo { background: var(--cielo); color: var(--sobre-cielo); }
.cabecera { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 8px; }
.titulo { font-family: 'Arameza', 'Montserrat', serif; font-size: 32px; line-height: 36px; font-weight: 400; }
.fecha { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--sobre-cielo-2); white-space: nowrap; }
.cabecera-der { display: flex; align-items: center; gap: 8px; }
.rosa-servicio { display: flex; align-items: center; gap: 10px; }
.rosa { width: 44px; height: 44px; display: block; }
.rosa path { fill: none; stroke: var(--sobre-cielo-2); stroke-width: 7; transition: fill 240ms var(--entra), stroke 240ms var(--entra); }
.rosa path.encendida { fill: var(--acento-cielo); stroke: var(--acento-cielo); }
.rosa-dato { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--sobre-cielo-2); text-align: right; }
.rosa-dato b { display: block; font-size: 18px; line-height: 22px; font-weight: 700; color: var(--sobre-cielo); white-space: nowrap; }
.boton-modo { width: 48px; height: 48px; display: grid; place-items: center; color: var(--sobre-cielo); border-radius: 6px; }
.boton-modo svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.cielo > .cabecera:only-child { padding-bottom: 24px; }

/* El Horizonte */
.horizonte { position: relative; height: 2px; background: var(--horizonte); flex: none; z-index: 2; }
.horizonte-hora { position: absolute; left: 16px; top: -14px; height: 28px; padding: 0 10px; background: var(--horizonte); color: var(--horizonte-texto); font-size: 14px; line-height: 28px; font-weight: 700; border-radius: 2px; white-space: nowrap; }
.horizonte-resumen { position: absolute; right: 16px; top: -14px; height: 28px; padding: 0 10px; background: var(--papel); color: var(--tinta); border: var(--grosor-borde) solid var(--horizonte); font-size: 14px; line-height: 26px; font-weight: 600; border-radius: 2px; white-space: nowrap; }

/* Hoy */
.hoy-arriba { flex: 1 1 46%; min-height: 0; display: flex; flex-direction: column; }
.tandas { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 16px 26px; overscroll-behavior: contain; }
.tanda { display: grid; grid-template-columns: 76px minmax(0, 1fr); border-top: 1px solid var(--linea-cielo); padding: 4px 0; }
.tanda:first-child { border-top: 0; }
.tanda-hora { font-size: 18px; line-height: 24px; font-weight: 600; padding-top: 12px; }
.tanda-hora small { display: block; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--sobre-cielo-2); }
.fila-reserva { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 8px 0; color: inherit; }
.fila-nombre { font-size: 17px; line-height: 22px; font-weight: 600; min-width: 0; }
.fila-nombre em { display: block; font-style: normal; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--acento-cielo); }
.fila-meta { flex: none; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--sobre-cielo-2); text-align: right; }

.hoy-abajo { flex: 1 1 54%; min-height: 0; overflow-y: auto; padding: 26px 16px 16px; background: var(--papel); }
.seccion-titulo { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--tinta-2); margin-bottom: 8px; }
.pendiente { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0 12px 14px; position: relative; border-top: 1px solid var(--linea); }
.pendiente::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; background: var(--alerta); }
.pendiente.suave::before { background: var(--horizonte); }
.pendiente-titulo { font-size: 17px; line-height: 22px; font-weight: 600; }
.pendiente-ctx { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--tinta-2); }

.boton { min-height: 48px; padding: 0 16px; border-radius: 6px; font-weight: 700; font-size: 15px; line-height: 20px; display: inline-flex; align-items: center; justify-content: center; text-align: center; border: var(--grosor-borde) solid var(--borde); background: transparent; color: var(--tinta); transition: background 120ms var(--estado); }
.boton.primario { background: var(--accion); color: var(--sobre-accion); border-color: var(--accion); }
.boton.grande { min-height: 56px; font-size: 16px; }
.boton.peligro { color: var(--alerta); border-color: var(--alerta); }
.boton:active { transform: translateY(1px); }

.vacio { padding: 24px 0; }
.vacio-remate { font-family: 'Southland', cursive; font-size: 40px; line-height: 48px; color: var(--alerta); margin-top: 4px; }
[data-modo="sol"] .vacio-remate { display: none; }

/* Sala: plano mosaico */
.sala { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--cielo); }
.zonas { display: flex; gap: 20px; padding: 0 16px 16px; overflow-x: auto; scrollbar-width: none; }
.zona-tab { min-height: 48px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--sobre-cielo-2); white-space: nowrap; position: relative; }
.zona-tab[aria-selected="true"] { color: var(--sobre-cielo); font-weight: 700; }
.zona-tab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; background: var(--acento-cielo); }
.sala-cuerpo { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.plano-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 13px 24px; background: var(--junta); }
.plano-pane.con-hoja { padding-bottom: 60vh; }
.borde-zona { color: #FBF6F0; font-size: 14px; line-height: 20px; font-weight: 600; text-align: center; margin-bottom: 8px; opacity: 1; }
.mosaico { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 92px; gap: 3px; }
.tesela { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 7px; border-radius: 2px; min-width: 0; overflow: visible; transition: background 120ms var(--estado), color 120ms var(--estado); }
.tesela-num { font-size: 24px; line-height: 26px; font-weight: 700; }
.tesela-cap { position: absolute; top: 7px; right: 7px; font-size: 14px; line-height: 18px; font-weight: 600; }
.tesela-estado { font-size: 14px; line-height: 18px; font-weight: 700; letter-spacing: -.035em; white-space: nowrap; margin-left: -1px; }
.tesela.libre { background: var(--t-libre); color: var(--t-libre-texto); }
.tesela.llega { background: var(--t-llega); color: var(--t-llega-texto); }
.tesela.llega::before { content: ''; position: absolute; left: 0; bottom: 0; width: 16px; height: 16px; background: linear-gradient(to top right, var(--t-esquina) 50%, transparent 50%); }
.tesela.llega .tesela-estado { padding-left: 14px; }
.tesela.sentada { background: var(--t-sentada); color: var(--t-sentada-texto); }
.tesela.postre { background: var(--t-postre); color: var(--t-postre-texto); box-shadow: inset 0 -5px 0 var(--t-franja); }
.tesela.postre .tesela-estado { margin-bottom: 5px; }
.tesela.tarde { background: var(--t-tarde); color: var(--t-tarde-texto); }
.tesela.evento { background: repeating-linear-gradient(135deg, var(--t-evento) 0 8px, var(--t-rayado) 8px 9px); color: var(--t-evento-texto); }
.tesela { scroll-margin-top: 36px; }
.tesela.elegida { outline: 3px solid var(--horizonte); outline-offset: 0; z-index: 2; }
.tesela.destino-valido { outline: 2px dashed var(--t-libre-texto); outline-offset: -5px; }
[data-modo="sol"] .tesela.libre, [data-modo="sol"] .tesela.llega { box-shadow: inset 0 0 0 1.5px #062B2C; }
/* Unir mesas borra la junta */
.tesela.une-der::after { content: ''; position: absolute; top: 0; bottom: 0; right: -3px; width: 3px; background: inherit; }
.tesela.une-der { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.tesela.une-izq { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.cota { display: grid; place-items: center; font-size: 14px; line-height: 20px; font-weight: 600; color: #CFE0DC; border: 1px solid #3A7476; border-radius: 2px; }
.cota.agua { background: repeating-linear-gradient(0deg, transparent 0 7px, #1B6668 7px 8px); }
[data-modo="sol"] .cota { color: #FFFFFF; border-color: #FFFFFF; }
.leyenda { display: none; }

.zona-barra { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 8px; }
.zona-barra .borde-zona { margin: 0; }
.zona-barra button { min-height: 44px; color: #FBF6F0; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; width: max-content; }
.zona-barra button:last-child { justify-self: end; text-decoration: underline; text-underline-offset: 3px; }
.zona-barra svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sec-titulo { color: #FBF6F0; font-size: 15px; line-height: 20px; font-weight: 700; margin: 16px 0 8px; }
.sec-titulo:first-of-type { margin-top: 4px; }
.barra { margin-top: 16px; }
.barra-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: #FBF6F0; margin-bottom: 8px; }
.barra-cab h2 { font-size: 15px; line-height: 20px; font-weight: 700; }
.barra-cab p { font-size: 14px; line-height: 20px; font-weight: 600; }
.barra-mostrador { height: 18px; border-radius: 2px; background: repeating-linear-gradient(90deg, #AB4A3A 0 26px, #8A3A2D 26px 28px); }
.barra-sillas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 3px; margin-top: 10px; justify-items: center; }
.silla { width: 72px; height: 72px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.silla b { font-size: 20px; line-height: 22px; font-weight: 700; }
.silla span { font-size: 14px; line-height: 18px; font-weight: 700; letter-spacing: -.03em; }
.silla.libre { background: var(--t-libre); color: var(--t-libre-texto); }
.silla.llega { background: var(--t-llega); color: var(--t-llega-texto); }
.silla.sentada, .silla.postre { background: var(--t-sentada); color: var(--t-sentada-texto); }
.silla.tarde { background: var(--t-tarde); color: var(--t-tarde-texto); }
.silla.elegida { outline: 3px solid var(--horizonte); outline-offset: 1px; }
[data-modo="sol"] .silla.libre, [data-modo="sol"] .silla.llega { box-shadow: inset 0 0 0 1.5px #062B2C; }

/* Plantas de arquitecto */
:root { --pl-papel: #FBF6F0; --pl-tinta: #0A3A3B; --pl-ladrillo: #EFE4D6; --pl-junta: #E0D2C0; --pl-terracota: #D3A384; --pl-cemento: #E2E0DA; --pl-grama: #A9BE86; --pl-hoja: #8FA86B; --pl-silla: #D2B48C; --pl-respaldo: #6E4F2E; --pl-e-libre: #FFFDF9; --pl-e-llega: #FDF0E4; --pl-e-sentada: #DCE8C7; --pl-e-postre: #FFE3CC; --pl-e-tarde: #F9C894; --pl-agua: #9FD6D2; --pl-sofa: #EFE6D6; --pl-tablon: #D9DBD7; --pl-bosque: #DDE3CF; --pl-corte-a: #A5BE83; --pl-corte-b: #9CB67A; --pl-tierra: #CFC6A8; }
[data-modo="noche"] { --pl-papel: #12302F; --pl-tinta: #FBF6F0; --pl-ladrillo: #2B4442; --pl-junta: #3A5654; --pl-terracota: #5C4336; --pl-cemento: #29403F; --pl-grama: #2C4A30; --pl-hoja: #3B5F3C; --pl-silla: #8E7A5F; --pl-respaldo: #D2B48C; --pl-e-libre: #1F3A39; --pl-e-llega: #4A4A36; --pl-e-sentada: #3C5A2C; --pl-e-postre: #6E4A38; --pl-e-tarde: #8C5A2E; --pl-agua: #3F7D7A; --pl-sofa: #4A5E5B; --pl-tablon: #2E4544; --pl-bosque: #1A3433; --pl-corte-a: #2F4F33; --pl-corte-b: #2B4A30; --pl-tierra: #3B4A3A; }
.pl-visor { overflow-x: auto; background: var(--pl-papel); border-radius: 2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.pl-visor::-webkit-scrollbar { display: none; }
.pl-svg { display: block; width: max(880px, 100%); height: auto; font-family: 'Montserrat', sans-serif; }
.pl-p-ladrillo { fill: var(--pl-ladrillo); } .pl-p-terracota { fill: var(--pl-terracota); } .pl-p-cemento { fill: var(--pl-cemento); } .pl-p-grama { fill: var(--pl-grama); }
.pl-p-junta { stroke: var(--pl-junta); stroke-width: 1; fill: none; } .pl-p-punto { fill: var(--pl-junta); } .pl-p-hoja { stroke: var(--pl-hoja); stroke-width: 1; fill: none; } .pl-p-raya { stroke: var(--pl-tinta); stroke-width: 1; opacity: .35; }
.pl-p-tablon { fill: var(--pl-tablon); }
.pl-estuco { stroke: #B9BDB1; stroke-width: 8; }
.pl-espejo { fill: #B99A5B; }
.pl-puerta { fill: #1F2528; }
.pl-franja { stroke: #2C7E86; stroke-width: 4; }
.pl-lampara { fill: #C98F5C; stroke: var(--pl-tinta); stroke-width: 1.2; }
.pl-lampara-c { stroke: var(--pl-tinta); stroke-width: 1; }
.pl-mesita { fill: #B9804F; stroke: var(--pl-tinta); stroke-width: 1.5; }
.pl-borde { stroke: var(--pl-tinta); stroke-width: 1.5; }
.pl-grueso { stroke: var(--pl-tinta); stroke-width: 3; }
.pl-alero { fill: none; stroke: var(--pl-tinta); stroke-width: 1.2; stroke-dasharray: 16 8 3 8; }
.pl-alero-l { stroke: var(--pl-tinta); stroke-width: 1.5; stroke-dasharray: 16 8 3 8; fill: none; }
.pl-pilar { fill: var(--pl-tinta); }
.pl-col { fill: #FBF6F0; stroke: var(--pl-tinta); stroke-width: 2.5; }
.pl-fuego { fill: #2B2620; }
.pl-contra { fill: #5B4A38; stroke: var(--pl-tinta); stroke-width: 1.5; }
.pl-barra { fill: #1F2528; stroke: var(--pl-tinta); stroke-width: 1.5; }
.pl-barra-frente { stroke: #F4F1EA; stroke-width: 5; }
.pl-rotulo { font-size: 16px; font-weight: 600; text-anchor: middle; fill: var(--pl-tinta); }
.pl-rotulo.ori { font-size: 17px; font-weight: 700; }
.pl-rotulo.claro { fill: #0A3A3B; font-size: 20px; font-weight: 700; }
.pl-mesa { cursor: pointer; }
.pl-mesa:focus-visible { outline: none; }
.pl-silla { fill: var(--pl-silla); stroke: var(--pl-respaldo); stroke-width: .8; }
.pl-respaldo { stroke: var(--pl-respaldo); stroke-width: 3.5; stroke-linecap: round; fill: none; }
.pl-cojin { stroke: var(--pl-tinta); stroke-width: 1; opacity: .35; fill: none; }
.pl-sofa { fill: var(--pl-sofa); stroke: var(--pl-tinta); stroke-width: 1.5; }
.pl-toque { fill: transparent; }
.pl-tablero { stroke: var(--pl-tinta); stroke-width: 1.6; transition: fill 120ms var(--estado); filter: drop-shadow(1.5px 2.5px 0 rgba(10, 58, 59, .22)); }
.pl-num { font-size: 26px; font-weight: 700; text-anchor: middle; } .pl-num.chica { font-size: 16px; }
.pl-est { font-size: 13px; font-weight: 700; text-anchor: middle; }
.pl-mesa text { fill: var(--pl-tinta); }
.pl-mesa.libre .pl-tablero { fill: var(--pl-e-libre); }
.pl-mesa.llega .pl-tablero { fill: var(--pl-e-llega); stroke: #DD7731; stroke-width: 3; }
.pl-mesa.sentada .pl-tablero { fill: var(--pl-e-sentada); stroke: #44681E; stroke-width: 3.5; }
.pl-mesa.postre .pl-tablero { fill: var(--pl-e-postre); stroke: #AB4A3A; stroke-width: 3.5; }
.pl-mesa.tarde .pl-tablero { fill: var(--pl-e-tarde); stroke: #A9500F; stroke-width: 3.5; }
.pl-mesa.evento .pl-tablero { fill: var(--t-evento); stroke-dasharray: 6 4; }
.pl-mesa.elegida .pl-tablero { stroke: var(--horizonte); stroke-width: 6; }
.pl-mesa.destino-valido .pl-tablero { stroke-dasharray: 7 5; stroke-width: 3; }
.pl-union { fill: none; stroke: var(--horizonte); stroke-width: 12; stroke-linecap: round; opacity: .75; }
.pl-sombrilla { fill: rgba(251, 246, 240, .22); stroke: var(--pl-tinta); stroke-width: 1.2; stroke-dasharray: 5 6; }
.pl-sombrilla-v { stroke: var(--pl-tinta); stroke-width: .7; opacity: .35; fill: none; }
.pl-agua { fill: var(--pl-agua); stroke: var(--pl-tinta); stroke-width: 1.5; }
.pl-piscina-borde { fill: #F4F1EA; stroke: var(--pl-tinta); stroke-width: 2; }
.pl-muro-am { stroke: #D8B98C; stroke-width: 14; } .pl-muro-pi { stroke: #8E8370; stroke-width: 10; } .pl-baranda { stroke: var(--pl-tinta); stroke-width: 3; stroke-dasharray: 3 7; }
.pl-nota, .pl-barra-res { color: #FBF6F0; font-size: 14px; line-height: 20px; font-weight: 600; margin-top: 10px; }
.pl-barra-res b { font-weight: 700; }

.pl-bosque { fill: var(--pl-bosque); }
.pl-corte-a { fill: var(--pl-corte-a); } .pl-corte-b { fill: var(--pl-corte-b); }
.pl-contorno { stroke: var(--pl-tinta); stroke-width: 1.5; stroke-linejoin: round; }
.pl-tierra { fill: var(--pl-tierra); stroke: var(--pl-tinta); stroke-width: 1; }
.pl-surco { stroke: var(--pl-hoja); stroke-width: 5; stroke-linecap: round; opacity: .75; fill: none; }
.pl-adoquin { fill: #DBC8AA; stroke: var(--pl-tinta); stroke-width: 1; stroke-linejoin: round; }
.pl-arena { fill: #D6C095; }
.pl-muro-am.g { stroke: #D8B98C; stroke-width: 12; stroke-linecap: square; fill: none; } .pl-muro-am.c { stroke: #E2DCCB; stroke-width: 5; fill: none; }
.pl-teja-c { stroke: #AB4A3A; stroke-width: 3; fill: none; stroke-dasharray: 6 3; }
.pl-muro-pi.g { stroke: #8E8370; stroke-width: 9; fill: none; }
.pl-paseo { stroke: #E2DED2; stroke-width: 8; fill: none; }
.pl-baranda.g { stroke: var(--pl-tinta); stroke-width: 2.5; stroke-dasharray: 2 8; stroke-linecap: round; fill: none; }
.pl-seto { fill: #2F5A24; stroke: var(--pl-tinta); stroke-width: 1; }
.pl-sombra { fill: #0E2A1F; opacity: .22; }
.pl-copa { fill: #4F7A3A; stroke: #1E4A33; stroke-width: 1.5; } .pl-rama { stroke: #2C5F2E; stroke-width: 1; opacity: .75; fill: none; }
.pl-palma { fill: #6D9A35; stroke: #2F5A24; stroke-width: 1; stroke-linejoin: round; } .pl-pino { fill: #2F5A3A; stroke: #173D2C; stroke-width: 1; stroke-linejoin: round; }
.pl-loto { fill: #FBF6F0; opacity: .95; stroke: #6FA9A3; stroke-width: .5; } .pl-loto-c { fill: #DD7731; }
.pl-cumbrera { stroke: #F0C9B4; stroke-width: 2; fill: none; opacity: .8; }
.pl-rotulo.pl-sobre { fill: #FBF6F0; font-size: 20px; font-weight: 700; paint-order: stroke; stroke: rgba(10, 58, 59, .55); stroke-width: 4px; }
.pl-rotulo.pl-sobre-f { font-size: 15px; font-weight: 700; paint-order: stroke; stroke: var(--pl-papel); stroke-width: 4px; }
.pl-rotulo.gira { font-size: 15px; paint-order: stroke; stroke: var(--pl-papel); stroke-width: 4px; }

.pl-viga { stroke: var(--pl-tinta); stroke-width: 1; opacity: .13; stroke-dasharray: 12 8; }
.pl-cipres { fill: #2C6040; stroke: #173D2C; stroke-width: 1; } .pl-cipres-c { fill: #1E4A33; }
.pl-tinaja { fill: #23201C; stroke: var(--pl-tinta); stroke-width: 1; } .pl-tinaja-b { fill: #4A4036; }
.pl-botella { fill: #B9804F; } .pl-fregadero { fill: #A9AFB2; stroke: #5D666B; stroke-width: 1; }
.pl-mosaico { fill: none; stroke: #4E9DA3; stroke-width: 4; stroke-dasharray: 4 4; }
.pl-cartela { fill: var(--pl-papel); } .pl-cartela-l { stroke: var(--pl-tinta); stroke-width: 1.2; }
.pl-marco { fill: none; stroke: var(--pl-tinta); stroke-width: 1; pointer-events: none; }
.pl-tit-a { font-size: 13px; font-weight: 700; letter-spacing: .12em; fill: var(--pl-tinta); text-transform: uppercase; }
.pl-tit { font-family: 'Southland', cursive; font-size: 46px; fill: #AB4A3A; }
[data-modo="noche"] .pl-tit { fill: #EE9A89; }
[data-modo="sol"] .pl-tit { font-family: 'Montserrat', sans-serif; font-size: 22px; font-weight: 700; fill: #062B2C; }
.pl-leyenda { pointer-events: none; } .pl-leyenda .pl-mesa { cursor: default; }
.pl-ley { font-size: 15px; font-weight: 600; fill: var(--pl-tinta); }

.m-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.m-barra .borde-zona { margin: 0; }
.m-vista { display: flex; border: 1px solid #CFE0DC; border-radius: 6px; overflow: hidden; flex: none; }
.m-vista button { min-height: 40px; padding: 0 12px; font-size: 14px; font-weight: 700; color: #FBF6F0; text-align: center; }
.m-vista button[aria-pressed="true"] { background: #FBF6F0; color: #0A3A3B; }
.m-svg.dibujado .m-area path { stroke-width: 1.5; stroke-dasharray: 5 4; }
.m-svg.dibujado .m-area.clave path { stroke-width: 2.5; stroke-dasharray: none; fill: rgba(255, 205, 169, .1); }
.m-svg.dibujado .m-area.elegida path, .m-svg.dibujado .m-area:focus-visible path { stroke-width: 4; stroke-dasharray: none; }
.pl-muro-am.s { stroke: #D8B98C; stroke-width: 5; fill: none; } .pl-muro-pi.s { stroke: #8E8370; stroke-width: 4; fill: none; } .pl-paseo.s { stroke: #E2DED2; stroke-width: 3; fill: none; }
.pl-matero-b { fill: #A8A296; stroke: var(--pl-tinta); stroke-width: 1; }
.pl-escalon { stroke: #A79A84; stroke-width: 2; fill: none; }
.pl-cemento-b { fill: #BDBAAF; stroke: var(--pl-tinta); stroke-width: 1; }
.pl-grama-b { fill: #6E8F4E; opacity: .8; }
.pl-senda { stroke: #C7B08E; stroke-width: 5; fill: none; stroke-linecap: round; }
.pl-solar { fill: #2C4250; stroke: #6F8797; stroke-width: 1; }

.zona-der { display: inline-flex; justify-self: end; gap: 14px; }
.zona-der button { text-decoration: underline; text-underline-offset: 3px; }
.zona-barra button:last-child { justify-self: auto; }
.pl-svg.editando .pl-mesa { touch-action: none; cursor: grab; }
.pl-svg.editando .pl-tablero { stroke-dasharray: 6 3; }
.pl-mesa.moviendo { opacity: .85; cursor: grabbing; }
.pl-bandeja { display: flex; align-items: center; gap: 12px; background: var(--papel); color: var(--tinta); padding: 8px 12px; border-radius: 2px; margin-bottom: 8px; }
.pl-bandeja p { font-size: 14px; line-height: 19px; font-weight: 600; color: var(--tinta-2); }
.silla-suelta { flex: none; min-height: 48px; padding: 0 14px; border: 1.5px dashed var(--accion); border-radius: 6px; font-weight: 700; font-size: 15px; color: var(--tinta); touch-action: none; cursor: grab; text-align: center; }
.silla-fantasma { position: fixed; z-index: 70; transform: translate(-50%, -50%); padding: 8px 12px; background: var(--horizonte); color: var(--horizonte-texto); border-radius: 6px; font-weight: 700; font-size: 15px; pointer-events: none; }
.bi-cupos { display: grid; grid-template-columns: 1fr; gap: 3px; background: var(--junta); padding: 3px; border-radius: 2px; margin-bottom: 8px; }
.bi-cupo { display: grid; grid-template-columns: minmax(0, 1fr) auto; background: var(--papel); padding: 8px 10px; }
.bi-cupo b { font-size: 15px; line-height: 20px; font-weight: 700; } .bi-cupo span { grid-row: 2; font-size: 14px; line-height: 19px; font-weight: 600; color: var(--tinta-2); } .bi-cupo em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-weight: 700; font-size: 15px; }
.bi-nota-plano { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--tinta-2); margin-bottom: 18px; }
.pl-monte-a { fill: #CBD8BC; } .pl-monte-b { fill: #BCCDAB; } .pl-monte-c { fill: #B2C5A0; }
[data-modo="noche"] .pl-monte-a { fill: #1A3433; } [data-modo="noche"] .pl-monte-b { fill: #1F3D3A; } [data-modo="noche"] .pl-monte-c { fill: #24443F; }
@media (max-width: 899px) { .zona-barra { grid-template-columns: auto 1fr; } .zona-barra .borde-zona { display: none; } }

.pl-bambu-h { stroke: #6E9A2E; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.pl-bambu-c { fill: #C9B458; stroke: #6E7A2E; stroke-width: .4; }
.pl-caminata { stroke: #B89B6E; stroke-width: 10; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pl-estaciona { fill: #C9C3B4; stroke: var(--pl-tinta); stroke-width: 1; stroke-dasharray: 6 4; }
.pl-raya-carro { stroke: #FBF6F0; stroke-width: 3; fill: none; }
.pl-faldon { stroke: #5F2A20; stroke-width: .8; stroke-linejoin: round; }
.pl-cumbrera.g { stroke: #F4D9C8; stroke-width: 2.5; opacity: .95; }

/* Línea de tiempo (solo tableta) */
.linea-pane { display: none; }

/* Conversaciones: aspecto WhatsApp */
:root { --wa-cab: #008069; --wa-cab-texto: #FFFFFF; --wa-fondo: #EFEAE2; --wa-dibujo: #E2DACB; --wa-entra: #FFFFFF; --wa-sale: #D9FDD3; --wa-texto: #111B21; --wa-meta: #667781; --wa-linea: #E9EDEF; --wa-lista: #FFFFFF; --wa-activa: #F0F2F5; --wa-verde: #00A884; --wa-verde-texto: #008069; --wa-check: #53BDEB; --wa-sistema: #FFEECD; --wa-sistema-texto: #54656F; --wa-barra: #F0F2F5; --wa-campo: #FFFFFF; --wa-avatar: #DFE5E7; --wa-silueta: #FFFFFF; --wa-chip: #F0F2F5; --wa-chip-on: #D8FDD2; --wa-chip-on-texto: #15603E; --wa-borde-burbuja: transparent; --wa-equipo: #FFE3CC; --wa-equipo-texto: #8A3A1A; }
[data-modo="sol"] { --wa-cab: #075E54; --wa-fondo: #FFFFFF; --wa-dibujo: #FFFFFF; --wa-meta: #3B4A54; --wa-borde-burbuja: #111B21; --wa-linea: #111B21; }
[data-modo="noche"] { --wa-cab: #202C33; --wa-cab-texto: #E9EDEF; --wa-fondo: #0B141A; --wa-dibujo: #141F26; --wa-entra: #202C33; --wa-sale: #005C4B; --wa-texto: #E9EDEF; --wa-meta: #A5B4BD; --wa-linea: #222D34; --wa-lista: #111B21; --wa-activa: #2A3942; --wa-verde-texto: #00A884; --wa-sistema: #182229; --wa-sistema-texto: #FFD279; --wa-barra: #202C33; --wa-campo: #2A3942; --wa-avatar: #6A7175; --wa-silueta: #CFD4D6; --wa-chip: #202C33; --wa-chip-on: #0A332C; --wa-chip-on-texto: #D8FDD2; --wa-equipo: #5A3A26; --wa-equipo-texto: #FFCDA9; }
.wa, .wa-fila, .wa-lista { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-feature-settings: normal; }
.wa { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--wa-lista); color: var(--wa-texto); }
.wa-doble { flex-direction: row; }
.wa-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--wa-lista); }
.wa-cab-lista { display: flex; align-items: center; justify-content: space-between; padding: max(10px, env(safe-area-inset-top)) 8px 10px 16px; background: var(--wa-cab); color: var(--wa-cab-texto); }
.wa-cab-lista h1 { font-size: 21px; line-height: 28px; font-weight: 600; }
.wa-cab-lista .boton-modo { color: var(--wa-cab-texto); }
.wa-filtros { display: flex; gap: 8px; padding: 10px 16px; overflow-x: auto; scrollbar-width: none; flex: none; }
.wa-filtro { min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--wa-chip); color: var(--wa-meta); font-size: 14px; font-weight: 500; white-space: nowrap; text-align: center; }
.wa-filtro[aria-pressed="true"] { background: var(--wa-chip-on); color: var(--wa-chip-on-texto); font-weight: 600; }
.wa-lista { flex: 1; min-height: 0; overflow-y: auto; background: var(--wa-lista); color: var(--wa-texto); }
.wa-vacia { padding: 32px 16px; text-align: center; color: var(--wa-meta); font-size: 15px; }
.wa-fila { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 0 0 14px; min-height: 72px; color: var(--wa-texto); }
.wa-fila[aria-current="true"] { background: var(--wa-activa); }
.wa-avatar { flex: none; width: 49px; height: 49px; border-radius: 50%; background: var(--wa-avatar); overflow: hidden; display: block; }
.wa-avatar svg { display: block; width: 100%; height: 100%; fill: var(--wa-silueta); }
.wa-avatar.pequeno { width: 40px; height: 40px; }
.wa-fila-cuerpo { flex: 1; min-width: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding-right: 14px; border-bottom: 1px solid var(--wa-linea); }
.wa-fila-linea { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.wa-nombre { font-size: 17px; line-height: 22px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-fila-hora { flex: none; font-size: 12px; line-height: 16px; color: var(--wa-meta); }
.wa-fila-hora.verde { color: var(--wa-verde-texto); font-weight: 600; }
.wa-previa { min-width: 0; font-size: 14px; line-height: 20px; color: var(--wa-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-ticks { width: 17px; height: 11px; fill: none; stroke: var(--wa-check); stroke-width: 1.500; stroke-linecap: round; stroke-linejoin: round; margin-right: 3px; vertical-align: -1px; }
.wa-tag { flex: none; padding: 1px 7px; border-radius: 10px; background: var(--alerta); color: var(--sobre-alerta); font-size: 12px; line-height: 18px; font-weight: 600; }
.wa-cuenta { flex: none; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--wa-verde); color: #FFFFFF; font-size: 12px; line-height: 20px; font-weight: 600; text-align: center; }

.wa-hilo { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background-color: var(--wa-fondo); }
.wa-cab { display: flex; align-items: center; gap: 8px; padding: max(6px, env(safe-area-inset-top)) 10px 6px 2px; background: var(--wa-cab); color: var(--wa-cab-texto); flex: none; min-height: 60px; }
.wa-volver { width: 40px; height: 48px; display: grid; place-items: center; flex: none; color: inherit; }
.wa-volver svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wa-cab-datos { flex: 1; min-width: 0; }
.wa-cab-nombre { font-size: 17px; line-height: 22px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-cab-estado { font-size: 13px; line-height: 17px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-cab-accion { flex: none; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 600; border: 1px solid currentColor; border-radius: 22px; color: inherit; }
.wa-mensajes { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 14px 8px; display: flex; flex-direction: column; gap: 2px; background-color: var(--wa-fondo); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23000' stroke-opacity='.045' stroke-width='1.500' stroke-linecap='round'%3E%3Cpath d='M18 26c6-10 16-10 22 0-6 10-16 10-22 0zM70 16v18M64 16v8a6 6 0 0012 0v-8M98 60c-8 0-12 6-12 12 6 0 12-4 12-12zM26 78l10 10M36 78L26 88M62 92a8 8 0 1016 0 8 8 0 00-16 0z'/%3E%3C/svg%3E"); }
[data-modo="noche"] .wa-mensajes { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23fff' stroke-opacity='.05' stroke-width='1.500' stroke-linecap='round'%3E%3Cpath d='M18 26c6-10 16-10 22 0-6 10-16 10-22 0zM70 16v18M64 16v8a6 6 0 0012 0v-8M98 60c-8 0-12 6-12 12 6 0 12-4 12-12zM26 78l10 10M36 78L26 88M62 92a8 8 0 1016 0 8 8 0 00-16 0z'/%3E%3C/svg%3E"); }
[data-modo="sol"] .wa-mensajes { background-image: none; }
.wa-dia { align-self: center; margin: 4px 0 8px; padding: 4px 12px; border-radius: 8px; background: var(--wa-entra); color: var(--wa-meta); font-size: 12.500px; line-height: 18px; font-weight: 500; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa-sistema { align-self: center; max-width: 88%; margin: 8px 0; padding: 5px 12px; border-radius: 8px; background: var(--wa-sistema); color: var(--wa-sistema-texto); font-size: 12.500px; line-height: 18px; text-align: center; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa-burbuja { position: relative; max-width: 82%; padding: 6px 8px 7px 9px; border-radius: 8px; font-size: 15.500px; line-height: 21px; color: var(--wa-texto); box-shadow: 0 1px .5px rgba(11, 20, 26, .13); border: 1px solid var(--wa-borde-burbuja); overflow-wrap: anywhere; }
.wa-burbuja.entra { align-self: flex-start; background: var(--wa-entra); }
.wa-burbuja.sale { align-self: flex-end; background: var(--wa-sale); }
.wa-burbuja.cola { margin-top: 8px; }
.wa-burbuja.cola.entra { border-top-left-radius: 0; }
.wa-burbuja.cola.sale { border-top-right-radius: 0; }
.wa-burbuja.cola::before { content: ''; position: absolute; top: 0; width: 8px; height: 13px; }
.wa-burbuja.cola.entra::before { left: -8px; background: var(--wa-entra); clip-path: polygon(100% 0, 0 0, 100% 100%); }
.wa-burbuja.cola.sale::before { right: -8px; background: var(--wa-sale); clip-path: polygon(0 0, 100% 0, 0 100%); }
.wa-burbuja.nuevo { animation: entra-msg 180ms var(--entra); }
.wa-autor { display: block; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--wa-verde-texto); }
.wa-autor.equipo { color: var(--wa-equipo-texto); display: flex; align-items: center; gap: 5px; }
.wa-autor.equipo i { width: 18px; height: 18px; border-radius: 50%; background: var(--wa-equipo-texto); color: var(--wa-equipo); font-style: normal; font-size: 11px; line-height: 18px; font-weight: 700; text-align: center; }
.wa-burbuja.sale.de-equipo { background: var(--wa-equipo); }
.wa-burbuja.cola.sale.de-equipo::before { background: var(--wa-equipo); }
.wa-meta { float: right; margin: 7px 0 -3px 12px; font-size: 11.500px; line-height: 15px; color: var(--wa-meta); white-space: nowrap; }
.wa-meta .wa-ticks { margin: 0 0 0 3px; }
.wa-borrador { flex: none; margin: 4px 10px 2px; padding: 10px 12px; border-radius: 8px; background: var(--wa-entra); color: var(--wa-texto); display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); border-left: 4px solid var(--wa-verde); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-feature-settings: normal; }
.wa-borrador b { display: block; font-size: 15px; line-height: 20px; font-weight: 600; }
.wa-borrador span { font-size: 13.500px; line-height: 18px; color: var(--wa-meta); }
.wa-borrador-accion { flex: none; min-height: 44px; padding: 0 14px; color: var(--wa-verde-texto); font-weight: 700; font-size: 15px; }
.wa-barra { flex: none; display: flex; align-items: center; gap: 6px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--wa-barra); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; font-feature-settings: normal; }
.wa-barra-bianca > span { flex: 1; }
.wa-barra-bianca { justify-content: space-between; gap: 12px; padding-left: 14px; color: var(--wa-meta); font-size: 14px; line-height: 20px; }
.wa-tomar { flex: none; min-height: 44px; padding: 0 20px; border-radius: 22px; background: var(--wa-verde); color: #FFFFFF; font-weight: 600; font-size: 15px; }
.wa-campo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; height: 48px; padding: 0 10px; border-radius: 24px; background: var(--wa-campo); color: var(--wa-texto); }
.wa-campo input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--wa-texto); font-size: 16px; outline-offset: -2px; padding: 0 6px; }
.wa-campo input::placeholder { color: var(--wa-meta); }
.wa-icono { flex: none; width: 26px; height: 26px; color: var(--wa-meta); }
.wa-icono svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.600; stroke-linecap: round; stroke-linejoin: round; }
.wa-enviar { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--wa-verde); display: grid; place-items: center; color: #FFFFFF; }
.wa-enviar svg { width: 22px; height: 22px; fill: currentColor; }
#app.en-hilo { grid-template-rows: minmax(0, 1fr); }
#app.en-hilo .navegacion { display: none; }

/* Mapa general: el sitio como un mosaico */
.sala-cuerpo.con-mapa { display: block; overflow: hidden; }
.m-pane { height: 100%; overflow-y: auto; padding: 26px 13px 24px; background: var(--junta); }
.m-visor { overflow-x: auto; overscroll-behavior-x: contain; margin: 0 -13px; scrollbar-width: none; }
.m-visor::-webkit-scrollbar { display: none; }
.m-svg { display: block; width: 900px; height: auto; }
.m-norte { text-align: left; }
.m-area { cursor: pointer; }
.m-area path { fill: transparent; stroke: rgba(251, 246, 240, .55); stroke-width: 4; stroke-dasharray: 14 12; stroke-linejoin: round; transition: fill 120ms var(--estado); }
.m-area.clave path { fill: rgba(255, 205, 169, .16); stroke: #FFCDA9; stroke-width: 6; stroke-dasharray: none; }
.m-area.elegida path, .m-area:focus-visible path { fill: rgba(221, 119, 49, .3); stroke: #DD7731; stroke-width: 9; stroke-dasharray: none; }
.m-area:focus-visible { outline: none; }
.m-rotulo { pointer-events: none; }
.m-rotulo rect { fill: #FBF6F0; }
.m-rotulo text { font-weight: 700; text-anchor: middle; fill: #0A3A3B; }
.m-rotulo.elegido rect { fill: #DD7731; }
.m-rotulo.elegido text { fill: #062B2C; }
[data-modo="noche"] .m-svg image { filter: brightness(.8); }
.m-lista { display: grid; grid-template-columns: 1fr; gap: 3px; margin-top: 12px; }
.m-fila { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px; background: var(--papel); color: var(--tinta); border-radius: 2px; }
.m-fila.elegida { outline: 3px solid var(--horizonte); outline-offset: -3px; }
.m-fila b { display: block; font-size: 16px; line-height: 21px; font-weight: 600; }
.m-fila small { display: block; font-size: 14px; line-height: 19px; font-weight: 600; color: var(--tinta-2); }
.m-muestra { flex: none; width: 28px; height: 28px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(10, 58, 59, .25); }
.m-muestra.m-techo { background: #AB4A3A; } .m-muestra.m-jardin { background: #44681E; } .m-muestra.m-grama { background: #5A872A; }
.m-muestra.m-terraza { background: #6FBDB7; } .m-muestra.m-plaza { background: #E0CDB0; } .m-muestra.m-cancha { background: #C9AE82; }
.m-muestra.m-sinubicar { background: repeating-linear-gradient(135deg, var(--papel) 0 5px, var(--borde) 5px 6px); }
.m-nota { margin-top: 12px; color: #FBF6F0; font-size: 14px; line-height: 20px; font-weight: 600; }
.hoja-foto { display: block; width: 100%; height: 150px; object-fit: cover; margin-top: 12px; border-radius: 2px; }
.hoja-sub { margin-top: 14px; }
.hoja-usos { margin: 0; padding: 0; list-style: none; }
.hoja-usos li { padding: 8px 0; border-top: 1px solid var(--linea); font-size: 16px; line-height: 22px; }

/* Más */
.mas { flex: 1; min-height: 0; overflow-y: auto; background: var(--papel); padding: 22px 16px 32px; }
.mas-bloque { margin-bottom: 28px; max-width: 620px; }
.mas-fila { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; border-top: 1px solid var(--linea); padding: 8px 0; }
.mas-fila b { font-weight: 600; font-size: 17px; line-height: 22px; display: block; }
.mas-fila span { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--tinta-2); }
.segmento { display: grid; grid-template-columns: repeat(3, 1fr); border: var(--grosor-borde) solid var(--borde); border-radius: 6px; overflow: hidden; }
.segmento button { min-height: 48px; text-align: center; font-weight: 700; font-size: 15px; border-left: var(--grosor-borde) solid var(--borde); }
.segmento button:first-child { border-left: 0; }
.segmento button[aria-pressed="true"] { background: var(--accion); color: var(--sobre-accion); }
.nota-prototipo { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--tinta-2); }

/* Menú lateral */
.nav-lat, .nav-marca, .nav-reservar, .nav-grupo, .nav-pie { display: none; }
.navegacion { grid-template-columns: repeat(5, 1fr); }
/* Módulos */
.modulo-cuerpo { flex: 1; min-height: 0; overflow-y: auto; padding: 26px 16px 24px; background: var(--papel); }
.cab-mod { padding-bottom: 24px; }
.boton.claro { background: #FBF6F0; color: #0A3A3B; border-color: #FBF6F0; }
[data-modo="sol"] .boton.claro { background: #062B2C; color: #FFFFFF; border-color: #062B2C; }
.pausa-global { flex: none; background: var(--alerta); color: var(--sobre-alerta); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 8px 4px 16px; font-size: 14px; line-height: 20px; font-weight: 600; }
.pausa-global button { min-height: 44px; padding: 0 12px; font-weight: 700; color: inherit; text-decoration: underline; flex: none; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; }
.etapas { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { flex: none; min-height: 40px; padding: 0 12px; border: var(--grosor-borde) solid var(--borde); border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--tinta); text-align: center; }
.chip[aria-pressed="true"] { background: var(--accion); color: var(--sobre-accion); border-color: var(--accion); }
.buscador { width: 100%; height: 48px; padding: 0 12px; border: var(--grosor-borde) solid var(--borde); border-radius: 6px; background: var(--papel); margin-bottom: 8px; font-size: 16px; }
.buscador::placeholder { color: var(--tinta-3); }
.res-fila { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 0; border-top: 1px solid var(--linea); }
.res-hora { flex: none; width: 48px; font-size: 18px; font-weight: 700; }
.res-datos { flex: 1; min-width: 0; }
.res-datos b { display: block; font-size: 16px; line-height: 21px; font-weight: 600; }
.res-datos small { display: block; font-size: 14px; line-height: 19px; font-weight: 600; color: var(--tinta-2); }
.res-est, .ld-etapa { flex: none; font-style: normal; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--tinta-2); }
.res-est.sentada { color: var(--hoja-texto, #44681E); } .res-est.retraso, .ld-etapa.e-sin-contactar { color: var(--alerta); }
.ld-etapa.e-cerrado { color: #44681E; }
[data-modo="noche"] .ld-etapa.e-cerrado, [data-modo="noche"] .res-est.sentada { color: #9CC56A; }
.ld-canal { flex: none; width: 76px; font-size: 14px; line-height: 19px; font-weight: 700; color: var(--tinta-2); }
.bi-cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--junta); padding: 3px; margin-bottom: 16px; border-radius: 2px; }
.bi-cifras > * { background: var(--papel); padding: 10px; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--tinta-2); text-align: left; }
.bi-cifras b { display: block; font-size: 26px; line-height: 30px; font-weight: 700; color: var(--tinta); }
.bi-cifras.cinco { grid-template-columns: repeat(3, 1fr); }
.bi-cifras button[aria-pressed="true"] { background: var(--velo); box-shadow: inset 0 0 0 2px var(--horizonte); }
.bi-cifras .alerta b { color: var(--alerta); }
.ld-resumen { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 14px; }
.ld-bloque h3 { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--tinta-2); margin: 0 0 4px; }
.ld-barra { display: grid; grid-template-columns: 136px 1fr 26px; align-items: center; gap: 8px; min-height: 28px; font-size: 14px; font-weight: 600; }
.ld-barra span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ld-barra i { display: block; height: 10px; background: var(--accion); border-radius: 1px; min-width: 2px; }
.ld-barra b { text-align: right; }
.bi-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 16px 24px; }
.bianca-cara { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; background: #FBF6F0; display: block; }
.bianca-cara.chica { width: 32px; height: 32px; }
.bianca-cara.mini { display: inline-block; width: 18px; height: 18px; margin-right: 5px; vertical-align: -4px; }
.bianca-cara.grande { width: 72px; height: 72px; }
.bianca-cara.inicial { display: grid; place-items: center; color: #0A3A3B; font-size: 30px; font-weight: 700; }
.bi-id { flex: 1; min-width: 0; }
.bi-luz { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #9CC56A; margin-right: 6px; }
.bi-luz.off { background: #EE9A89; }
.bi-pausa { flex: 1 1 100%; color: #FBF6F0; border-color: #FBF6F0; }
.bi-pausa.reanudar { background: #FBF6F0; color: #0A3A3B; }
[data-modo="sol"] .bi-pausa { color: #062B2C; border-color: #062B2C; }
.bi-fila { border-top: 1px solid var(--linea); padding: 12px 0; }
.bi-fila.error { background: var(--velo); box-shadow: 0 0 0 8px var(--velo); }
.bi-fila header { display: flex; justify-content: space-between; gap: 12px; }
.bi-fila header b { font-size: 16px; line-height: 22px; font-weight: 700; }
.bi-fila header span { font-size: 14px; line-height: 22px; font-weight: 600; color: var(--tinta-2); }
.bi-cliente { font-size: 15px; line-height: 21px; color: var(--tinta-2); margin-top: 2px; }
.bi-respuesta { font-size: 16px; line-height: 23px; margin-top: 8px; padding-left: 10px; border-left: 2px solid #44681E; }
.bi-respuesta small { display: block; font-size: 14px; line-height: 18px; font-weight: 700; color: var(--tinta-2); }
.bi-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.bi-acciones .boton { min-height: 44px; font-size: 14px; padding: 0 12px; }
.bi-acciones .marcado { color: var(--alerta); border-color: var(--alerta); }
.bi-nota { font-size: 14px; font-weight: 600; color: var(--tinta-2); }
.ev-tablero { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ev-col h2 { display: flex; justify-content: space-between; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--tinta-2); margin-bottom: 8px; }
.ev-tarjeta { display: block; width: 100%; padding: 10px 12px; margin-bottom: 8px; border-left: 4px solid var(--borde); background: var(--papel-2); border-radius: 2px; }
.ev-tarjeta.confirmado { border-left-color: var(--accion); } .ev-tarjeta.retenido { border-left-color: var(--horizonte); } .ev-tarjeta.consulta { border-left-color: var(--borde); }
.ev-tarjeta b { display: block; font-size: 16px; line-height: 22px; font-weight: 700; }
.ev-tarjeta small { display: block; font-size: 14px; line-height: 19px; font-weight: 600; color: var(--tinta-2); }
.menu-grupo { margin-top: 16px; } .menu-grupo:first-child { margin-top: 0; }
.menu-grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; background: var(--junta); padding: 3px; border-radius: 2px; }
.menu-item { background: var(--papel); min-height: 92px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--tinta); }
.menu-item svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.info-nota { margin-top: 16px; }
.form { display: grid; gap: 12px; margin-top: 8px; }
.form label { display: grid; gap: 4px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--tinta-2); }
.form input, .form select { height: 48px; padding: 0 10px; border: var(--grosor-borde) solid var(--borde); border-radius: 6px; background: var(--papel); color: var(--tinta); font-size: 16px; font-weight: 500; width: 100%; }
.form-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hoja-largo { font-size: 22px; line-height: 28px; } .ficha-sep { margin-top: 12px; }

/* Calendario: el mes como mosaico */
.cal { flex: 1; min-height: 0; overflow-y: auto; background: var(--junta); }
.cal-mes { padding: 22px 8px 12px; }
.cal-tope { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; padding: 0 2px 8px; color: #FBF6F0; }
.cal-tope .cal-nav { width: 100%; justify-content: space-between; }
.cal-tope .cal-filtros { width: 100%; }
.cal-tope .cal-filtros button { flex: 1; }
.cal-unidad { display: none; }
.cal-nav { display: flex; align-items: center; gap: 2px; }
.cal-nav b { font-size: 17px; line-height: 22px; font-weight: 700; min-width: 134px; text-align: center; }
.cal-nav button { width: 44px; height: 44px; display: grid; place-items: center; color: inherit; }
.cal-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal-filtros { display: flex; border: 1px solid #CFE0DC; border-radius: 6px; overflow: hidden; flex: none; }
.cal-filtros button { min-height: 40px; padding: 0 8px; font-size: 14px; font-weight: 700; color: #FBF6F0; text-align: center; }
.cal-filtros button[aria-pressed="true"] { background: #FBF6F0; color: #0A3A3B; }
[data-modo="sol"] .en-cielo { border-color: #062B2C; } [data-modo="sol"] .en-cielo button { color: #062B2C; } [data-modo="sol"] .en-cielo button[aria-pressed="true"] { background: #062B2C; color: #FFFFFF; }
.cal-sem, .cal-grilla { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-sem span { color: #CFE0DC; font-size: 14px; line-height: 24px; font-weight: 700; text-align: center; }
.cal-dia { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 68px; padding: 4px; background: var(--papel); color: var(--tinta); border-radius: 2px; min-width: 0; overflow: hidden; }
.cal-dia.vacio { background: transparent; }
.cal-dia.servicio { background: var(--velo); }
.cal-dia.cerrado { background: repeating-linear-gradient(135deg, var(--papel-2) 0 6px, var(--linea) 6px 7px); }
.cal-dia.elegido { outline: 3px solid var(--horizonte); outline-offset: -3px; }
.cal-num { font-size: 15px; line-height: 20px; font-weight: 700; }
.cal-dia.hoy .cal-num { display: inline-block; align-self: flex-start; min-width: 24px; padding: 0 4px; background: var(--horizonte); color: var(--horizonte-texto); border-radius: 2px; text-align: center; }
.cal-texto { font-size: 12px; line-height: 15px; font-weight: 700; white-space: nowrap; color: var(--tinta-2); letter-spacing: -.02em; }
.cal-barra { display: block; height: 4px; background: var(--linea); margin-top: 2px; } .cal-barra i { display: block; height: 100%; background: var(--t-sentada); }
.cal-fichas { display: none; }
.cal-marcas { display: flex; gap: 3px; flex-wrap: wrap; margin-top: auto; }
.cal-marca { display: inline-block; width: 12px; height: 12px; border-radius: 2px; flex: none; }
.cal-marca.confirmado { background: var(--accion); } .cal-marca.realizado { background: var(--tinta-3); }
.cal-marca.retenido { background: repeating-linear-gradient(135deg, var(--horizonte) 0 3px, transparent 3px 5px); box-shadow: inset 0 0 0 1px var(--horizonte); }
.cal-marca.consulta { box-shadow: inset 0 0 0 1.5px var(--tinta-2); } .cal-marca.bloqueo { background: var(--borde); }
.cal-leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 2px 0; color: #FBF6F0; font-size: 14px; line-height: 20px; font-weight: 600; }
.cal-leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.cal-leyenda .cal-marca.confirmado { background: #FBF6F0; } .cal-leyenda .cal-marca.consulta { box-shadow: inset 0 0 0 1.5px #FBF6F0; }
.cal-leyenda .cal-marca.bloqueo { background: #8C9B98; }
.dia-panel { background: var(--papel); padding: 16px 16px 24px; }
.dia-titulo { font-size: 20px; line-height: 26px; font-weight: 700; }
.dia-estado { font-size: 15px; line-height: 21px; font-weight: 600; color: var(--tinta-2); margin-bottom: 12px; }
.dia-horas { display: grid; grid-template-columns: repeat(3, 1fr) auto; margin-left: 96px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--tinta-2); }
.dia-fila { display: flex; align-items: center; min-height: 48px; border-top: 1px solid var(--linea); }
.dia-area { flex: none; width: 96px; } .dia-area b { display: block; font-size: 14px; line-height: 18px; font-weight: 700; } .dia-area small { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--tinta-2); }
.dia-pista { position: relative; flex: 1; height: 32px; background: var(--papel-2); }
.dia-bloque { position: absolute; top: 3px; bottom: 3px; border-radius: 2px; display: block; }
.dia-bloque.servicio { background: var(--t-llega); box-shadow: inset 0 0 0 1px var(--borde); }
.dia-bloque.confirmado { background: var(--accion); } .dia-bloque.realizado { background: var(--tinta-3); }
.dia-bloque.retenido { background: repeating-linear-gradient(135deg, var(--horizonte) 0 5px, var(--velo) 5px 8px); }
.dia-bloque.consulta { background: var(--papel); box-shadow: inset 0 0 0 1.5px var(--tinta-2); } .dia-bloque.bloqueo { background: var(--borde); }
.dia-sub { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--tinta-2); margin: 16px 0 4px; }
.dia-evento { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 6px 0; border-top: 1px solid var(--linea); }
.dia-evento span { flex: 1; min-width: 0; } .dia-evento b { display: block; font-size: 15px; line-height: 20px; font-weight: 700; } .dia-evento small { display: block; font-size: 14px; line-height: 19px; font-weight: 600; color: var(--tinta-2); }
.dia-evento em { flex: none; font-style: normal; font-size: 14px; font-weight: 700; color: var(--tinta-2); }
.dia-vacio { font-size: 15px; line-height: 22px; color: var(--tinta-2); padding: 8px 0; }
.dia-acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* Inicio de sesión */
#login { position: fixed; inset: 0; z-index: 60; background: var(--cielo); color: var(--sobre-cielo); display: grid; place-items: center; padding: 24px 16px; overflow-y: auto; }
.login-caja { width: min(360px, 100%); display: grid; gap: 12px; }
.login-rosa { width: 72px; height: 72px; margin: 0 auto; display: block; } .login-rosa path { fill: var(--acento-cielo); }
.login-marca { font-family: 'Arameza', 'Montserrat', serif; font-size: 44px; line-height: 50px; font-weight: 400; text-align: center; }
.login-lema { font-family: 'Southland', cursive; font-size: 34px; line-height: 40px; text-align: center; color: var(--acento-cielo); margin: -6px 0 8px; }
.login-caja label { display: grid; gap: 4px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--sobre-cielo-2); }
.login-caja input { height: 52px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--sobre-cielo-2); background: transparent; color: var(--sobre-cielo); font-size: 16px; }
.login-entrar { background: var(--acento-cielo); color: #0A3A3B; border-color: var(--acento-cielo); width: 100%; }
[data-modo="sol"] .login-entrar { color: #FFFFFF; }
.login-error { font-size: 14px; font-weight: 700; color: var(--acento-cielo); }
.login-prueba { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--sobre-cielo-2); text-align: center; margin-top: 10px; }
.login-usuarios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.login-usuarios button { min-height: 56px; padding: 6px; border: 1px solid var(--linea-cielo); border-radius: 6px; color: var(--sobre-cielo); text-align: center; }
.login-usuarios b { display: block; font-size: 15px; line-height: 20px; } .login-usuarios small { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--sobre-cielo-2); }
/* Ajuste de la reserva */
.ajuste { margin-top: 12px; border-top: 1px solid var(--linea); }
.ajuste-fila { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--linea); font-weight: 600; }
.paso { display: flex; align-items: center; gap: 4px; }
.paso button { width: 48px; height: 48px; border: var(--grosor-borde) solid var(--borde); border-radius: 6px; text-align: center; font-size: 22px; font-weight: 600; }
.paso b { min-width: 34px; text-align: center; font-size: 20px; }
.ajuste-nota { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--tinta-2); padding-top: 8px; }
.hoja-log { list-style: none; margin: 0; padding: 0; }
.hoja-log li { padding: 6px 0; border-top: 1px solid var(--linea); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--tinta-2); }

/* Hoja: ficha con marco fino */
#hoja { position: fixed; left: 0; right: 0; bottom: 0; max-height: 58dvh; background: var(--papel); color: var(--tinta); border-top: 2px solid var(--horizonte); border-radius: 16px 16px 0 0; z-index: 20; overflow-y: auto; padding: 8px; animation: hoja-entra 180ms var(--entra); }
#hoja.cerrando { animation: hoja-sale 140ms var(--sale) forwards; }
.hoja-marco { border: var(--grosor-borde) solid var(--linea); border-radius: 10px; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); }
.hoja-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hoja-mesa { font-size: 28px; line-height: 32px; font-weight: 700; }
.hoja-zona { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--tinta-2); }
.cerrar { width: 48px; height: 48px; margin: -6px -6px 0 0; display: grid; place-items: center; }
.cerrar svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; fill: none; }
.hoja-nombre { font-size: 20px; line-height: 26px; font-weight: 700; margin-top: 12px; }
.hoja-datos { font-size: 16px; line-height: 24px; color: var(--tinta-2); font-weight: 600; }
.hoja-alergia { margin-top: 10px; padding: 10px 12px; background: var(--alerta); color: var(--sobre-alerta); font-weight: 700; border-radius: 2px; }
.hoja-nota { margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--horizonte); font-size: 15px; line-height: 22px; }
.hoja-despues { margin-top: 10px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--tinta-2); }
.hoja-acciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.hoja-acciones .ancho { grid-column: 1 / -1; }

/* Avisos */
#aviso { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: var(--alerta); color: var(--sobre-alerta); padding: max(12px, env(safe-area-inset-top)) 16px 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; animation: aviso-baja 180ms var(--entra); border-bottom: 2px solid var(--horizonte); }
#aviso b { display: block; font-size: 16px; line-height: 22px; }
#aviso span { font-size: 14px; line-height: 20px; font-weight: 600; }
#aviso button { min-height: 48px; padding: 0 14px; border-radius: 6px; font-weight: 700; border: 1px solid currentColor; flex: none; }
#deshacer { position: fixed; left: 16px; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 25; min-height: 56px; background: var(--tinta); color: var(--papel); border-radius: 6px; padding: 4px 4px 4px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 15px; line-height: 20px; }
#deshacer button { min-height: 48px; padding: 0 14px; font-weight: 700; color: var(--papel); text-decoration: underline; text-underline-offset: 3px; flex: none; }
#modo-destino { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 22; background: var(--papel); color: var(--tinta); border-top: 2px solid var(--horizonte); padding: 8px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; line-height: 20px; }

/* Ceremonia de cierre */
#ceremonia { position: fixed; inset: 0; z-index: 40; background: var(--cielo); color: var(--sobre-cielo); display: grid; place-items: center; text-align: center; padding: 24px; animation: fundido 240ms var(--entra); }
.ceremonia-rosa { width: min(56vw, 240px); height: auto; display: block; margin: 0 auto 20px; }
.ceremonia-rosa path { fill: var(--acento-cielo); opacity: 0; animation: pieza 240ms var(--entra) forwards; }
.ceremonia-remate { font-family: 'Southland', cursive; font-size: 56px; line-height: 64px; color: var(--acento-cielo); }
.ceremonia-datos { font-size: 16px; line-height: 24px; font-weight: 600; margin: 8px 0 24px; color: var(--sobre-cielo-2); }
#ceremonia .boton { border-color: var(--sobre-cielo); color: var(--sobre-cielo); }

@keyframes hoja-entra { from { transform: translateY(24px); opacity: 0; } }
@keyframes hoja-sale { to { transform: translateY(24px); opacity: 0; } }
@keyframes hoja-lado-entra { from { transform: translateX(24px); opacity: 0; } }
@keyframes hoja-lado-sale { to { transform: translateX(24px); opacity: 0; } }
@keyframes aviso-baja { from { transform: translateY(-100%); } }
@keyframes entra-msg { from { transform: translateY(6px); opacity: 0; } }
@keyframes fundido { from { opacity: 0; } }
@keyframes pieza { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* Tableta horizontal */
@media (min-width: 900px) {
  #app { grid-template-columns: 232px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  #vista { grid-column: 2; grid-row: 1; }
  .navegacion { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; min-height: 0; border-top: 0; border-right: var(--grosor-borde) solid var(--linea); padding: 12px 12px 10px; }
  .nav-marca { display: flex; align-items: center; gap: 10px; padding: 2px 6px 12px; font-family: 'Arameza', 'Montserrat', serif; font-size: 24px; line-height: 30px; color: var(--tinta); }
  .nav-rosa { width: 36px; height: 36px; display: block; }
  .nav-rosa path { fill: var(--accion); stroke: none; }
  .nav-reservar { display: inline-flex; width: 100%; flex: none; }
  .nav-scroll { flex: 1; min-height: 0; overflow-y: auto; margin-top: 4px; scrollbar-width: none; }
  .nav-grupo { display: block; margin: 12px 8px 2px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--tinta-2); }
  .nav-lat { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 8px; border-radius: 6px; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--tinta); }
  .nav-lat svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
  .nav-lat[aria-current="page"] { background: var(--accion); color: var(--sobre-accion); }
  .nav-lat span { flex: 1; white-space: nowrap; }
  .nav-lat em { font-style: normal; min-width: 22px; height: 22px; padding: 0 5px; background: var(--alerta); color: var(--sobre-alerta); font-size: 14px; line-height: 22px; font-weight: 700; text-align: center; border-radius: 2px; }
  .nav-sesion { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 8px 8px 0; border-top: 1px solid var(--linea); }
  .nav-sesion b { display: block; font-size: 15px; line-height: 20px; } .nav-sesion small { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--tinta-2); }
  .nav-sesion button { min-height: 44px; padding: 0 8px; font-size: 14px; font-weight: 700; color: var(--tinta); text-decoration: underline; text-underline-offset: 3px; flex: none; }
  .cal-tope .cal-nav { width: auto; } .cal-tope .cal-filtros { width: auto; } .cal-unidad { display: inline; }
  .bi-cab { flex-wrap: nowrap; } .bi-pausa { flex: none; }
  .cal { display: grid; grid-template-columns: minmax(0, 1fr) 340px; overflow: hidden; }
  .cal-mes { padding: 22px 16px 12px; overflow-y: auto; display: flex; flex-direction: column; min-height: 0; }
  .cal-grilla { flex: 1; grid-auto-rows: minmax(92px, 1fr); }
  .cal-dia { padding: 6px; }
  .cal-texto { font-size: 13px; line-height: 16px; }
  .cal-marcas { display: none; }
  .cal-fichas { display: flex; flex-direction: column; gap: 2px; margin-top: auto; min-width: 0; }
  .cal-ficha { display: block; padding: 1px 4px; font-size: 12px; line-height: 16px; font-weight: 700; border-radius: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cal-ficha.confirmado { background: var(--accion); color: var(--sobre-accion); } .cal-ficha.realizado { background: var(--tinta-3); color: var(--papel); }
  .cal-ficha.retenido { background: var(--velo); color: var(--tinta); box-shadow: inset 3px 0 0 var(--horizonte), inset 0 0 0 1px var(--horizonte); padding-left: 6px; }
  .cal-ficha.consulta { box-shadow: inset 0 0 0 1px var(--tinta-2); color: var(--tinta); } .cal-ficha.bloqueo { background: var(--borde); color: #FFFFFF; }
  .cal-mas { font-size: 12px; line-height: 14px; font-weight: 700; color: var(--tinta-2); }
  .dia-panel { overflow-y: auto; min-height: 0; padding: 22px 16px; }
  .modulo-cuerpo { padding: 26px 24px 24px; }
  .bi-cifras.cinco { grid-template-columns: repeat(5, 1fr); }
  .bi-cupos { grid-template-columns: repeat(2, 1fr); }
  .ld-resumen { grid-template-columns: 1fr 1fr; gap: 24px; }
  .ev-tablero { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menu-grilla { grid-template-columns: repeat(6, 1fr); }
  .bi-cab { padding: 16px 24px 24px; }
  .titulo { font-size: 40px; line-height: 44px; }
  .cabecera { padding: 16px 24px 10px; }
  .horizonte-hora { left: 24px; } .horizonte-resumen { right: 24px; }
  .tandas { padding: 8px 24px 26px; }
  .hoy-abajo { padding: 26px 24px 16px; }
  .zonas { padding: 0 24px 16px; }

  .sala-cuerpo { flex-direction: column; }
  .sala-cuerpo .plano-pane { flex: 1 1 auto; min-height: 0; }
  .sala-cuerpo .linea-pane { flex: 1 1 auto; min-height: 0; }
  .zona-horas { margin-left: auto; text-decoration: underline; text-underline-offset: 3px; color: var(--sobre-cielo); }
  .plano-pane { padding: 26px 16px; }
  .plano-pane.con-hoja { padding-bottom: 26px; }
  .mosaico { grid-auto-rows: 100px; }
  
  .linea-pane { display: flex; flex-direction: column; flex: 1 1 50%; min-width: 0; background: var(--papel); border-top: 2px solid var(--horizonte); }
  .sala .horizonte { display: none; }
  .linea { flex: 1; min-height: 0; overflow: auto; position: relative; overscroll-behavior: contain; }
  .linea-interior { position: relative; }
  .linea-horas { display: flex; position: sticky; top: 0; z-index: 4; background: var(--papel); border-bottom: 1px solid var(--linea); height: 84px; }
  .linea-esquina { position: sticky; left: 0; flex: none; width: 56px; background: var(--papel); z-index: 5; font-size: 14px; line-height: 18px; font-weight: 600; padding: 40px 0 0 8px; color: var(--tinta-2); }
  .linea-franja { flex: none; font-size: 14px; line-height: 18px; font-weight: 600; padding: 38px 0 0 6px; border-left: 1px solid var(--linea); color: var(--tinta-2); }
  .linea-franja b { display: block; color: var(--tinta); font-weight: 700; }
  .linea-franja .lleno { color: var(--alerta); }
  .linea-fila { display: flex; height: 72px; border-bottom: 1px solid var(--linea); position: relative; }
  .linea-mesa { position: sticky; left: 0; z-index: 3; flex: none; width: 56px; background: var(--papel); display: flex; flex-direction: column; justify-content: center; padding-left: 10px; font-size: 20px; line-height: 24px; font-weight: 700; border-right: 1px solid var(--linea); }
  .linea-mesa small { font-size: 14px; line-height: 18px; font-weight: 600; color: var(--tinta-2); }
  .linea-carril { position: relative; flex: none; background-image: linear-gradient(to right, var(--linea) 1px, transparent 1px); background-size: 96px 100%; }
  .bloque { position: absolute; top: 4px; bottom: 4px; min-height: 64px; padding: 6px 8px; border-radius: 2px; overflow: hidden; touch-action: pan-x pan-y; cursor: grab; display: block; z-index: 1; user-select: none; }
  .bloque b { display: block; font-size: 15px; line-height: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bloque span { font-size: 14px; line-height: 18px; font-weight: 600; white-space: nowrap; }
  .bloque.libre, .bloque.llega { background: var(--t-llega); color: var(--t-llega-texto); box-shadow: inset 0 0 0 var(--grosor-borde) var(--borde); }
  .bloque.sentada { background: var(--t-sentada); color: var(--t-sentada-texto); }
  .bloque.postre { background: var(--t-postre); color: var(--t-postre-texto); box-shadow: inset 0 -5px 0 var(--t-franja); }
  .bloque.tarde { background: var(--t-tarde); color: var(--t-tarde-texto); }
  .bloque.evento { background: repeating-linear-gradient(135deg, var(--t-evento) 0 8px, var(--t-rayado) 8px 9px); color: var(--t-evento-texto); cursor: default; box-shadow: inset 0 0 0 var(--grosor-borde) var(--borde); }
  .bloque.elegido { outline: 3px solid var(--horizonte); outline-offset: -3px; }
  .bloque.levantado { z-index: 6; cursor: grabbing; opacity: .92; outline: 2px solid var(--tinta); }
  .linea-ahora { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--horizonte); z-index: 4; pointer-events: none; }
  .linea-ahora-hora { position: sticky; top: 4px; display: inline-block; transform: translateX(-50%); height: 28px; padding: 0 8px; background: var(--horizonte); color: var(--horizonte-texto); font-size: 14px; line-height: 28px; font-weight: 700; border-radius: 2px; white-space: nowrap; }
  .linea-capa-ahora { position: absolute; inset: 0; pointer-events: none; z-index: 5; }

  .wa-panel { flex: 0 0 380px; border-right: 1px solid var(--wa-linea); }
  .wa-volver { display: none; }
  .wa-cab { padding-left: 16px; }
  .m-pane { padding: 26px 24px; }
  .m-visor { margin: 0; overflow: visible; }
  .m-svg { width: 100%; }
  .m-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  #hoja { left: auto; top: 0; width: 380px; max-height: none; border-top: 0; border-left: 2px solid var(--horizonte); border-radius: 0; animation-name: hoja-lado-entra; }
  #hoja.cerrando { animation-name: hoja-lado-sale; }
  .hoja-marco { min-height: 100%; }
  #deshacer { left: auto; right: 24px; bottom: 80px; width: 420px; }
  #aviso { left: 232px; padding: 12px 24px; }
  #modo-destino { left: 232px; bottom: 0; }
}
@media (min-width: 1180px) {
  #app.con-lateral { grid-template-columns: 88px minmax(0, 1fr) 340px; }
  #app.con-lateral #lateral { display: flex; flex-direction: column; grid-column: 3; grid-row: 1; min-height: 0; border-left: var(--grosor-borde) solid var(--linea); background: var(--papel); }
  #lateral .lateral-cab { padding: 22px 16px 10px; font-size: 18px; line-height: 24px; font-weight: 700; }
  #lateral .wa-lista { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}


/* Sistema visual: fondo claro, tarjetas, botones consistentes y menú con marca */
:root { --fondo: #F5F0E7; --tarjeta: #FFFFFF; --borde-suave: #E6DDCF; --barra: #094D4F; --urgente: #AB4A3A; --urgente-f: #F8E4DE; --aviso: #8A4C13; --aviso-f: #FCEBD8; }
[data-modo="sol"] { --fondo: #FFFFFF; --tarjeta: #FFFFFF; --borde-suave: #062B2C; --barra: #062B2C; --urgente: #8E2F20; --urgente-f: #FFFFFF; --aviso: #6E3A08; --aviso-f: #FFFFFF; }
[data-modo="noche"] { --fondo: #0E2625; --tarjeta: #15332F; --borde-suave: #2A4A47; --barra: #0B1F20; --urgente: #EE9A89; --urgente-f: #4A2A25; --aviso: #F0B27A; --aviso-f: #4A3622; }
body { background: var(--fondo); }
.cielo { background: var(--fondo); color: var(--tinta); --sobre-cielo: var(--tinta); --sobre-cielo-2: var(--tinta-2); --acento-cielo: var(--urgente); --linea-cielo: var(--borde-suave); }
.horizonte { display: none; }
.titulo { color: var(--tinta); }
.cabecera, .cab-mod { padding: 20px 16px 10px; }
.boton-modo { color: var(--tinta); }

/* Botones */
.boton { min-height: 44px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 600; border: 1px solid var(--borde-suave); background: var(--tarjeta); color: var(--tinta); transition: background 120ms var(--estado), border-color 120ms var(--estado); }
.boton:hover { border-color: var(--accion); }
.boton.primario, .boton.claro { background: var(--accion); color: var(--sobre-accion); border-color: var(--accion); }
.boton.primario:hover, .boton.claro:hover { filter: brightness(1.08); }
.boton.grande { min-height: 52px; }
.boton.peligro { color: var(--urgente); border-color: var(--urgente); background: transparent; }
.enlace { color: var(--accion); font-size: 14px; font-weight: 700; min-height: 36px; }
[data-modo="noche"] .enlace { color: #FFCDA9; }
.chip { min-height: 38px; padding: 0 14px; border-radius: 19px; border: 1px solid var(--borde-suave); background: var(--tarjeta); }
.etapas .chip, .chips .chip { font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--accion); color: var(--sobre-accion); border-color: var(--accion); }
.estado-et { display: inline-block; font-size: 13px; line-height: 20px; font-weight: 700; padding: 0 8px; border-radius: 6px; }
.estado-et.urgente { background: var(--urgente-f); color: var(--urgente); }
.estado-et.aviso { background: var(--aviso-f); color: var(--aviso); }
[data-modo="sol"] .estado-et { box-shadow: inset 0 0 0 1.5px currentColor; }

/* Tarjetas */
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde-suave); border-radius: 14px; padding: 16px; }
.tarjeta h2 { font-size: 17px; line-height: 24px; font-weight: 700; color: var(--tinta); margin-bottom: 6px; }
.tarjeta-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Hoy */
.hoy { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px 28px; background: var(--fondo); }
.hoy-cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hoy-cab .fecha { color: var(--tinta-2); white-space: normal; }
.hoy-cab .boton { flex: none; white-space: nowrap; }
.hoy-datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.hoy-dato { display: flex; flex-direction: column; background: var(--tarjeta); border: 1px solid var(--borde-suave); border-radius: 14px; padding: 14px; min-height: 112px; transition: border-color 120ms var(--estado); }
.hoy-dato:hover { border-color: var(--accion); }
.hoy-dato-t { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--tinta-2); }
.hoy-dato b { font-size: 32px; line-height: 40px; font-weight: 700; color: var(--tinta); }
.hoy-dato em { font-style: normal; font-size: 16px; font-weight: 600; color: var(--tinta-2); }
.hoy-dato small { font-size: 14px; line-height: 19px; font-weight: 500; color: var(--tinta-2); }
.hoy-barra { display: block; height: 6px; border-radius: 3px; background: var(--borde-suave); margin-top: 8px; overflow: hidden; }
.hoy-barra u { display: block; height: 100%; background: #44681E; text-decoration: none; }
.hoy-columnas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hoy-fila { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border-top: 1px solid var(--borde-suave); }
.hoy-fila:first-of-type { border-top: 0; }
.hoy-fila-txt { flex: 1; min-width: 0; display: block; }
.hoy-abrir { cursor: pointer; }
.hoy-fila-t { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--tinta); }
.hoy-fila-d { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--tinta-2); }
.hoy-hora { flex: none; width: 46px; font-size: 16px; line-height: 22px; font-weight: 700; color: var(--tinta); }
.hoy-vacio { padding: 14px 0; font-size: 15px; color: var(--tinta-2); }

/* Navegación móvil */
.navegacion { background: var(--tarjeta); border-top: 1px solid var(--borde-suave); }
.nav-item { color: var(--tinta-2); }
.nav-item[aria-current="page"] { color: var(--accion); font-weight: 700; }
[data-modo="noche"] .nav-item[aria-current="page"] { color: #FFCDA9; }
.nav-item[aria-current="page"]::before { background: var(--accion); left: 30%; right: 30%; border-radius: 0 0 3px 3px; }
.contador { border-radius: 11px; background: var(--urgente); color: var(--tarjeta); }

/* Sala, mapa y plantas sobre fondo claro */
.sala, .plano-pane, .m-pane { background: var(--fondo); }
.zonas { gap: 8px; padding: 0 16px 12px; }
.zona-tab { min-height: 40px; padding: 0 14px; border-radius: 20px; background: var(--tarjeta); border: 1px solid var(--borde-suave); color: var(--tinta); font-weight: 600; font-size: 14px; text-align: center; flex: none; }
.zona-tab[aria-selected="true"] { background: var(--accion); border-color: var(--accion); color: var(--sobre-accion); font-weight: 700; }
.zona-tab[aria-selected="true"]::after { display: none; }
.borde-zona, .zona-barra .borde-zona, .sec-titulo, .barra-cab, .m-nota, .pl-nota, .pl-barra-res { color: var(--tinta-2); }
.zona-barra button, .zona-der button { color: var(--tinta); }
.zona-horas { color: var(--accion); background: transparent; border-color: transparent; }
.m-vista { border-color: var(--borde-suave); border-radius: 10px; background: var(--tarjeta); }
.m-vista button { color: var(--tinta); }
.m-vista button[aria-pressed="true"] { background: var(--accion); color: var(--sobre-accion); }
.pl-visor, .m-visor { border-radius: 14px; overflow: hidden; overflow-x: auto; border: 1px solid var(--borde-suave); }
.m-fila { background: var(--tarjeta); border: 1px solid var(--borde-suave); border-radius: 12px; }
.m-lista { gap: 8px; }
.tesela.libre, .tesela.llega { box-shadow: inset 0 0 0 1px var(--borde-suave); }
.tesela { border-radius: 8px; }
.mosaico { gap: 6px; }
.cota { color: var(--tinta-2); border-color: var(--borde-suave); }
.silla.libre { box-shadow: inset 0 0 0 1px var(--borde-suave); }

/* Calendario */
.cal { background: var(--fondo); }
.cal-tope, .cal-leyenda { color: var(--tinta); }
.cal-filtros { border-color: var(--borde-suave); border-radius: 10px; background: var(--tarjeta); }
.cal-filtros button { color: var(--tinta); }
.cal-filtros button[aria-pressed="true"] { background: var(--accion); color: var(--sobre-accion); }
.en-cielo button { color: var(--tinta); }
.en-cielo button[aria-pressed="true"] { background: var(--accion); color: var(--sobre-accion); }
.cal-sem span { color: var(--tinta-2); }
.cal-grilla { gap: 5px; }
.cal-dia { background: var(--tarjeta); border: 1px solid var(--borde-suave); border-radius: 8px; }
.cal-dia.vacio { background: transparent; border: 0; }
.cal-dia.servicio { background: var(--velo); }
.cal-leyenda .cal-marca.confirmado { background: var(--accion); }
.cal-leyenda .cal-marca.consulta { box-shadow: inset 0 0 0 1.5px var(--tinta-2); }
.dia-panel { background: var(--tarjeta); }

/* Módulos */
.modulo-cuerpo, .mas { background: var(--fondo); }
.bi-cifras, .bi-cupos, .menu-grilla { background: transparent; padding: 0; gap: 8px; }
.bi-cifras > *, .bi-cupo, .menu-item { background: var(--tarjeta); border: 1px solid var(--borde-suave); border-radius: 12px; }
.res-fila { background: var(--tarjeta); border: 1px solid var(--borde-suave); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.res-fila[hidden] { display: none; }
.bi-fila { background: var(--tarjeta); border: 1px solid var(--borde-suave); border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.bi-fila.error { background: var(--urgente-f); box-shadow: none; }
.ev-tarjeta { background: var(--tarjeta); border: 1px solid var(--borde-suave); border-left-width: 4px; border-radius: 10px; }
.mas-fila { border-top-color: var(--borde-suave); }
.segmento { border-color: var(--borde-suave); border-radius: 10px; background: var(--tarjeta); }
.segmento button { border-left-color: var(--borde-suave); }
.buscador { background: var(--tarjeta); border-color: var(--borde-suave); border-radius: 10px; }

/* Ficha lateral y avisos */
#hoja { background: var(--tarjeta); border-top: 0; box-shadow: 0 -6px 24px rgba(10, 58, 59, .14); }
.hoja-marco { border: 0; }
#deshacer { border-radius: 12px; box-shadow: 0 6px 20px rgba(10, 58, 59, .22); }

@media (min-width: 900px) {
  .cabecera, .cab-mod { padding: 24px 28px 10px; }
  .zonas { padding: 0 28px 12px; }
  .hoy { padding: 24px 28px 32px; }
  .hoy-datos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .hoy-columnas { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
  .hoy-col-a { grid-column: 2; grid-row: 1; }
  .hoy-col-b { grid-column: 1; grid-row: 1 / span 2; }
  .hoy-col-c { grid-column: 2; grid-row: 2; }
  .plano-pane, .m-pane { padding: 12px 28px 24px; }
  .modulo-cuerpo, .mas { padding: 16px 28px 28px; }
  .cal-mes { padding: 12px 28px 20px; }
  .navegacion { background: var(--barra); border-right: 0; padding: 16px 12px 12px; }
  .nav-marca { color: #FBF6F0; }
  .nav-rosa path { fill: #FFCDA9; }
  .boton.nav-reservar { background: #FFCDA9; color: #0A3A3B; border-color: #FFCDA9; font-weight: 700; }
  .nav-grupo { color: #9FC1BD; font-size: 13px; }
  .nav-lat { color: #E8F0EE; border-radius: 10px; }
  .nav-lat:hover { background: rgba(251, 246, 240, .1); }
  .nav-lat[aria-current="page"] { background: #FBF6F0; color: #094D4F; }
  .nav-sesion { border-top-color: rgba(251, 246, 240, .22); }
  .nav-sesion b { color: #FBF6F0; } .nav-sesion small { color: #BCD2CE; } .nav-sesion button { color: #FBF6F0; }
  .contador { color: var(--tarjeta); }
  .cal { grid-template-columns: minmax(0, 1fr) 340px; }
  .dia-panel { border-left: 1px solid var(--borde-suave); }
  #hoja { border-left: 0; box-shadow: -8px 0 28px rgba(10, 58, 59, .14); }
}
