/* Página pública de Estadia (estadia.uy), según el diseño "Sitio Estadia" (canvas del 04/11/2026, escritorio y celular).
 * Mismo sistema que la app (docs/marca.md, web/src/index.css): neutros de base, azul solo para la acción principal,
 * los enlaces, el foco y la selección, verde azulado como acento de marca, rojo solo para la deuda. Inter, radio de 4 y
 * 6 px, bordes de 1 px, sin sombras ni degradados. Sigue el modo claro u oscuro del dispositivo (no hay JavaScript, y la
 * CSP tampoco deja estilos en línea: todo va en clases). Mobile-first: todo entra en 360 px. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fuentes/inter-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-hover: #F8FAFC;
  --surface-sunken: #F1F5F9;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #64748B;
  --muted-2: #94A3B8;
  --border: #E2E8F0;
  --border-field: #8492A6;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-soft: #EFF6FF;
  --primary-fuerte: #1D4ED8;
  --primary-text: #FFFFFF;
  --accent: #0F766E;
  --success: #15803D;
  --danger: #B91C1C;

  /* El escenario donde se muestran las pantallas de ejemplo, el marco de la app y el del teléfono. */
  --escenario: #EEF2F6;
  --app-borde: #CBD5E1;
  --telefono: #0F172A;

  /* La banda del piloto: en tinta sobre el fondo claro; en oscuro, una superficie con bordes. */
  --banda-bg: #0F172A;
  --banda-texto: #F8FAFC;
  --banda-texto-2: #CBD5E1;
  --banda-borde: #334155;
  --banda-acento: #5EEAD4;
  --banda-boton: #60A5FA;
  --banda-boton-hover: #93C5FD;
  --banda-boton-texto: #07090C;
  --banda-enlace: #93C5FD;

  --esp-1: 4px;
  --esp-2: 8px;
  --esp-3: 12px;
  --esp-4: 16px;
  --esp-6: 24px;
  --esp-8: 32px;
  --radius: 6px;
  --radius-sm: 4px;
  --ancho: 1360px;
  --gutter: clamp(16px, 4vw, 56px);
  --cabecera: 68px;

  color-scheme: light;
  font-family: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'tnum';
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #07090C;
    --surface: #0E1116;
    --surface-hover: #151A21;
    --surface-sunken: #1B212A;
    --text: #E2E8F0;
    --text-2: #CBD5E1;
    --muted: #94A3B8;
    --muted-2: #64748B;
    --border: #222934;
    --border-field: #5B6B82;
    --primary: #60A5FA;
    --primary-hover: #93C5FD;
    --primary-soft: #172554;
    --primary-fuerte: #93C5FD;
    --primary-text: #07090C;
    --accent: #5EEAD4;
    --success: #4ADE80;
    --danger: #F87171;
    --escenario: #151A21;
    --app-borde: #2E3643;
    --telefono: #2E3643;
    --banda-bg: #0E1116;
    --banda-texto: #E2E8F0;
    --banda-texto-2: #CBD5E1;
    --banda-borde: #222934;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--cabecera); }
body { margin: 0; background: var(--bg); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: var(--radius-sm); }
.oculto { position: absolute; width: 0; height: 0; overflow: hidden; }
.oculto-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.saltar { position: absolute; left: var(--esp-4); top: -100px; padding: var(--esp-2) var(--esp-4); z-index: 20;
  background: var(--surface); border: 1px solid var(--border-field); border-radius: var(--radius-sm); }
.saltar:focus { top: var(--esp-2); }

.marco { width: 100%; max-width: var(--ancho); margin-inline: auto; padding-inline: var(--gutter); }

/* --- marca --- */
.logo { display: inline-flex; align-items: center; gap: 0.36em; color: var(--text); text-decoration: none; font-size: 24px; }
.logo:hover { color: var(--text); }
.logo-chico { font-size: 17px; }
.logo-texto { font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
.isotipo { flex: none; display: block; }
.isotipo-tinta { fill: var(--text); }
.isotipo-acento { fill: var(--accent); }

/* --- iconos y glifos --- */
.icono { flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tilde { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--success); stroke-width: 1.5; }
.raya { flex: none; width: 14px; height: 14px; fill: none; stroke: var(--muted-2); stroke-width: 1.5; }
.lleno { fill: currentColor; }
.contorno { fill: none; stroke: currentColor; stroke-width: 1.5; }
.reservada { color: var(--accent); }
.inhabilitada { color: var(--muted); }
.inhabilitada svg { color: var(--muted-2); }

/* --- botones: uno primario por contexto, con un verbo --- */
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 var(--esp-4);
  border: 1px solid var(--border-field); border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.boton:hover { background: var(--surface-hover); color: var(--text); }
.boton.grande { min-height: 48px; padding: 0 20px; font-size: 1rem; }
.boton.primario { background: var(--primary); border-color: var(--primary); color: var(--primary-text); font-weight: 600; }
.boton.primario:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-text); }

/* --- cabecera --- */
.cabecera { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--border); }
.cabecera-fila { position: relative; display: flex; align-items: center; gap: var(--esp-2); min-height: 60px; }
.cabecera-nav { display: flex; flex-wrap: wrap; gap: var(--esp-1) var(--esp-6); }
.cabecera-nav a { padding: 10px 0; color: var(--text-2); font-size: 0.9375rem; font-weight: 500; text-decoration: none; }
.cabecera-nav a:hover { color: var(--text); }
.cabecera-boton { margin-left: auto; padding: 0 14px; font-size: 0.875rem; }

/* Menú del celular: un <details>, así funciona sin JavaScript. */
.menu-movil summary { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); color: var(--text); cursor: pointer; list-style: none; }
.menu-movil summary::-webkit-details-marker { display: none; }
.menu-movil[open] summary { background: var(--surface-sunken); }
.menu-movil nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: var(--esp-2) var(--gutter) var(--esp-4);
  background: var(--surface); border-bottom: 1px solid var(--border); }
.menu-movil nav a { padding: var(--esp-3) 0; border-bottom: 1px solid var(--border); color: var(--text); font-weight: 500;
  text-decoration: none; }
.menu-movil nav a:last-child { border-bottom: 0; }

/* --- textos de sección: el título solo, sin antetítulo (el menú ya nombra cada sección) --- */
.seccion { padding-block: 64px; }
.seccion-titulo { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 600; line-height: 1.15;
  letter-spacing: -0.03em; }
.seccion-bajada { margin-top: 14px; color: var(--text-2); font-size: 1.0625rem; max-width: 28em; }
.nota { margin-top: var(--esp-3); color: var(--muted); font-size: 0.875rem; }
.meta { color: var(--muted); font-size: 0.8125rem; font-weight: 400; }
.deuda { color: var(--danger); font-weight: 600; }
.importe { margin-left: auto; text-align: right; white-space: nowrap; }
.dos-columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: var(--esp-8) 72px; }
.banda { background: var(--surface); border-block: 1px solid var(--border); }

/* --- portada --- */
.portada { padding-block: 40px 28px; }
.portada-grilla { display: grid; gap: 48px 80px; align-items: center; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 650; line-height: 1.02; letter-spacing: -0.04em; }
.bajada { color: var(--text-2); font-size: 1.0625rem; line-height: 1.55; max-width: 32em; }
.portada-texto .bajada { margin-top: var(--esp-6); }
.acciones { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-3); }
.acciones-portada { margin-top: 28px; }
.acciones-portada .boton { flex: 1 1 100%; }
.portada .nota { margin-top: 14px; }

/* Plano de una sede: una celda por habitación y el glifo de cada cama en grande. Las paredes son las de la portada
 * (.obra, más abajo). */
.plano-bloque { min-width: 0; }
.plano { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface);
  border: 1px solid var(--app-borde); border-radius: var(--radius); }
.hab { display: flex; flex-direction: column; justify-content: space-between; gap: var(--esp-4); min-height: 84px;
  padding: 10px 10px 12px; border-right: 1px solid var(--app-borde); border-bottom: 1px solid var(--app-borde); }
.hab:nth-child(4n) { border-right: 0; }
.hab:nth-child(n+5) { border-bottom: 0; }
.hab-nombre { color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.hab-camas { display: flex; flex-wrap: wrap; gap: 5px; color: var(--text); }
.hab-camas svg { flex: none; width: 16px; height: 16px; }
.hab-camas .inhabilitada { color: var(--muted-2); }
.plano-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--esp-2) var(--esp-4);
  margin-top: var(--esp-4); color: var(--text-2); font-size: 0.9375rem; }
.plano-pie strong { color: var(--text); font-weight: 600; }
.plano-bloque .leyenda { margin-top: var(--esp-3); }
.etiqueta { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 var(--esp-2);
  border: 1px dashed var(--border-field); border-radius: 3px; color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.cama svg { flex: none; width: 14px; height: 14px; }
.leyenda { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; color: var(--text-2); font-size: 0.75rem; font-weight: 500; }
.leyenda span { display: inline-flex; align-items: center; gap: 6px; }
.leyenda svg { width: 12px; height: 12px; }
.leyenda .reservada { color: var(--accent); }
.leyenda .inhabilitada { color: var(--muted); }
.fila { display: flex; align-items: center; gap: var(--esp-3); padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.875rem; }
.fila:last-child { border-bottom: 0; }
.fila-texto { flex: 1; min-width: 0; }
.fila-texto strong { display: block; font-weight: 500; }

/* --- tablas (permisos) --- */
.tabla-marco { margin-top: 40px; overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.tabla { width: 100%; border-collapse: collapse; text-align: left; }
.tabla thead tr { background: var(--bg); }
.tabla thead th { padding: 14px 20px; border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 0.8125rem; font-weight: 600; }
.tabla tbody th, .tabla td { padding: 18px 20px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tabla tbody tr:last-child th, .tabla tbody tr:last-child td { border-bottom: 0; }
.tabla tbody th { font-weight: 600; }

@media (max-width: 859px) {
  /* Permisos: entran en 360 px sin desplazar. */
  .permisos { min-width: 0; font-size: 0.875rem; }
  .permisos thead th, .permisos tbody th, .permisos td { padding: 10px var(--esp-3); }
  .permisos thead th + th { width: auto; }
  .permisos td { white-space: nowrap; }
}
.lista-marco { margin-top: 6px; border: 1px solid var(--border); border-radius: var(--radius); }
.lista-marco .fila { padding: var(--esp-3) 14px; }
.lista-marco .fila-texto strong { font-size: 0.9375rem; font-weight: 600; }
.estado { flex: none; padding: 2px var(--esp-2); border: 1px solid var(--border-field); border-radius: 3px; color: var(--text-2);
  font-size: 0.75rem; font-weight: 500; }
.estado-activa { border-color: var(--success); color: var(--success); }
.habitacion { margin-top: 14px; color: var(--muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.lista-marco .cama { gap: 10px; padding: 10px var(--esp-3); }
.cama svg { color: var(--text); }
.cama.reservada svg { color: var(--accent); }
.cama.inhabilitada svg { color: var(--muted-2); }
.cama-letra { width: 64px; flex: none; font-weight: 500; color: var(--text); }
.cama .fila-texto { color: var(--text); }
.cama .fila-texto.meta { color: var(--muted); font-size: 0.875rem; }
.cama-estado { flex: none; font-size: 0.75rem; font-weight: 500; }
.cama.reservada .cama-estado { color: var(--accent); }
.cama.inhabilitada .cama-estado { color: var(--muted); }

/* --- qué incluye: una línea por módulo --- */
.modulos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: 40px;
  border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.modulos li { display: flex; gap: var(--esp-4); padding: 20px var(--esp-6); border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border); }
.modulos .icono { color: var(--text); }
.modulos h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.modulos p { margin-top: var(--esp-1); color: var(--text-2); font-size: 0.9375rem; }
.permisos { min-width: 420px; font-size: 0.9375rem; }
.permisos thead th { padding: var(--esp-3) var(--esp-4); }
.permisos tbody th, .permisos td { padding: 11px var(--esp-4); }
.permisos tbody th { font-weight: 400; }
.permisos thead th + th { width: 128px; }
.si, .no { display: inline-flex; align-items: center; gap: 6px; }
.si { font-weight: 500; }
.si .tilde { width: 14px; height: 14px; }
.no { color: var(--muted); }

/* --- piloto --- */
.banda-oscura { background: var(--banda-bg); color: var(--banda-texto); border-block: 1px solid var(--banda-borde); }
.banda-oscura .seccion-bajada { margin-top: var(--esp-4); color: var(--banda-texto-2); font-size: 1.125rem; max-width: 34em; }
.piloto-titulo { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.035em;
  max-width: 16em; }
.piloto-acciones { gap: var(--esp-4) var(--esp-6); margin-top: 40px; }
.piloto-acciones p { color: var(--banda-texto-2); font-size: 0.9375rem; }
.piloto-acciones a:not(.boton) { color: var(--banda-enlace); }
.boton-claro { min-height: 52px; background: var(--banda-boton); border-color: var(--banda-boton); color: var(--banda-boton-texto);
  font-size: 1.0625rem; font-weight: 600; }
.boton-claro:hover { background: var(--banda-boton-hover); border-color: var(--banda-boton-hover); color: var(--banda-boton-texto); }
.banda-oscura a:focus-visible { outline-color: var(--banda-boton); }

/* --- preguntas frecuentes --- */
.faq-grilla { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.faq-grilla .seccion-bajada { max-width: none; }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; gap: var(--esp-4); padding: 20px 0; font-size: 1.0625rem; font-weight: 600;
  cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: 1; }
.faq details[open] .faq-mas { transform: rotate(45deg); }
.faq details > p { padding: 0 40px 20px 0; color: var(--text-2); }

/* --- 404 --- */
.seccion-404 { padding-block: 72px; }
.seccion-404 h1 { margin-top: var(--esp-8); }
.seccion-404 .bajada { margin-top: var(--esp-4); }
.seccion-404 .acciones { margin-top: var(--esp-6); }

/* --- pie --- */
.pie { background: var(--surface); border-top: 1px solid var(--border); }
.pie-fila { display: flex; flex-wrap: wrap; align-items: center; gap: var(--esp-2) var(--esp-6); padding-block: 28px;
  color: var(--muted); font-size: 0.875rem; }

/* --- celular y computadora --- */
@media (max-width: 859px) {
  .solo-pc { display: none !important; }
}

@media (min-width: 860px) {
  .solo-movil { display: none !important; }
  .cabecera-fila { min-height: var(--cabecera); gap: var(--esp-3) 40px; }
  .cabecera-boton { min-height: 40px; padding: 0 var(--esp-4); font-size: 0.9375rem; }
  .portada { padding-block: clamp(40px, 7vw, 104px) 40px; }
  .portada-grilla { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
  .hab { min-height: 112px; padding: var(--esp-3) 14px var(--esp-4); }
  .hab-camas { gap: 10px; }
  .hab-camas svg { width: 30px; height: 30px; }
  .bajada { font-size: 1.1875rem; }
  .acciones-portada .boton { flex: none; }
  .seccion { padding-block: 112px; }
  .faq summary { font-size: 1.125rem; }
  .piloto-acciones { margin-top: 48px; }
  .pie-derecha { margin-left: auto; }
}

@media (min-width: 1100px) {
  .portada-grilla { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .modulos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* El único movimiento de la página: al cargar, las camas del plano se asignan habitación por habitación. */
  .hab-camas svg { animation: asignar 360ms cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .hab:nth-child(1) svg { animation-delay: 900ms; }
  .hab:nth-child(2) svg { animation-delay: 980ms; }
  .hab:nth-child(3) svg { animation-delay: 1060ms; }
  .hab:nth-child(4) svg { animation-delay: 1140ms; }
  .hab:nth-child(5) svg { animation-delay: 1220ms; }
  .hab:nth-child(6) svg { animation-delay: 1300ms; }
  .hab:nth-child(7) svg { animation-delay: 1380ms; }
  .hab:nth-child(8) svg { animation-delay: 1460ms; }
  @keyframes asignar { from { opacity: 0; transform: scale(0.6); } }
  /* Antes, el marco de la portada se dibuja: primero la pared y el piso, después la viga de arriba. */
  .obra::after { animation: pared 650ms cubic-bezier(0.6, 0, 0.2, 1) both; }
  .obra::before { animation: viga 420ms cubic-bezier(0.6, 0, 0.2, 1) 520ms both; }
  @keyframes pared { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes viga { from { transform: scaleX(0); } }
}

/* ===== Portada en el isotipo y las piezas de hoy ===== */

/* --- portada: el isotipo a escala de página ---
 * El marco abierto arriba a la derecha (pared, piso y dos tercios de viga) encierra la portada. El titular es el plano
 * mayor; el plano de camas, el plano menor, apoyado abajo a la derecha como en el logo. */
.obra { --muro: 4px; position: relative; padding: 36px 0 28px calc(var(--muro) + 16px); }
.obra::after { content: ''; position: absolute; inset: 0; border-left: var(--muro) solid var(--text);
  border-bottom: var(--muro) solid var(--text); pointer-events: none; }
.obra::before { content: ''; position: absolute; top: 0; left: 0; width: 67%; height: var(--muro); background: var(--text);
  transform-origin: left; }
.obra .plano-bloque { padding-right: 0; }

@media (min-width: 860px) {
  .obra { --muro: 8px; padding: 72px 0 48px calc(var(--muro) + 48px); }
  .portada { padding-block: 40px; }
}
@media (min-width: 1100px) {
  .obra { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 48px 64px; }
  .obra .plano-bloque { margin-bottom: 0; }
}
/* --- desplegables: las tres preguntas y los permisos, con el mismo <details> que las preguntas frecuentes ---
 * Cerrados se leen como una lista corta; abiertos muestran cómo se ve hoy al lado de la respuesta en Estadia. */
.desplegables { margin-top: 40px; }
.desplegable-texto { display: grid; gap: var(--esp-1); }
.desplegable-titulo { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.desplegable-linea { color: var(--text-2); font-size: 0.9375rem; font-weight: 400; }
.desplegable-cuerpo { display: grid; gap: var(--esp-6); padding-bottom: var(--esp-8); }
.desplegables + .nota { margin-top: var(--esp-4); }
.desplegable-solo { margin-top: 40px; }
.desplegable-solo .tabla-marco { margin: 0 0 var(--esp-6); }
.faq .desplegable-parrafo { max-width: 40em; }

@media (min-width: 860px) {
  .desplegables summary { padding-block: var(--esp-6); }
  .desplegable-titulo { font-size: 1.375rem; }
  .desplegable-cuerpo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--esp-8) 48px; padding-bottom: 40px; }
}

.ad-lado { min-width: 0; }
.ad-rotulo { margin-bottom: var(--esp-2); color: var(--muted); font-size: 0.8125rem; font-weight: 600; }
.ad-rotulo-estadia { color: var(--accent); }
.pieza { min-width: 0; }
.pieza .habitacion { margin-top: 0; }

/* Las piezas de hoy, en gris: un chat, una planilla y archivos sueltos. */
.chat { position: relative; max-width: 22em; padding: var(--esp-2) var(--esp-3) 18px; background: var(--surface-sunken);
  border-radius: var(--radius) var(--radius) var(--radius) 2px; color: var(--text-2); font-size: 0.875rem; }
.chat + .chat { margin: 6px 0 0 auto; border-radius: var(--radius) var(--radius) 2px var(--radius); }
.chat-autor { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.chat-hora { position: absolute; right: 10px; bottom: 4px; color: var(--muted); font-size: 0.6875rem; }
.planilla { width: 100%; border-collapse: collapse; color: var(--text-2); font-size: 0.8125rem; }
.planilla th, .planilla td { padding: 6px var(--esp-2); border: 1px solid var(--border); text-align: left; white-space: nowrap; }
.planilla thead th, .planilla tbody th { background: var(--surface-sunken); color: var(--muted); font-weight: 500; text-align: center; }
.planilla tbody th { width: 28px; }
.planilla tbody tr:first-child td { font-weight: 600; }
.planilla .duda { color: var(--muted); font-style: italic; }
.archivos { display: grid; gap: 2px; color: var(--text-2); font-size: 0.875rem; }
.archivos li { display: flex; align-items: center; gap: var(--esp-2); padding: 6px var(--esp-2); border-radius: var(--radius-sm); }
.archivos li:nth-child(odd) { background: var(--surface-sunken); }
.archivos .icono { color: var(--muted); }

/* En el celular el marco le quita ancho al plano: las tres camas de una habitación tienen que entrar en una línea. */
@media (max-width: 859px) {
  .obra .hab { padding-inline: 8px; }
  .obra .hab-camas { gap: 4px; }
}

/* --- celular: las filas de tres columnas se apilan para que entren en 360 px --- */
@media (max-width: 859px) {
  .lista-marco .fila { padding: 10px var(--esp-3); }

  /* Mapa de camas: "Cama A" y el estado arriba, quién la ocupa abajo. */
  .lista-marco .cama { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto;
    grid-template-areas: "glifo letra estado" ". texto texto"; align-items: center; gap: 2px 10px; }
  .cama svg { grid-area: glifo; }
  .cama-letra { grid-area: letra; width: auto; }
  .cama .fila-texto { grid-area: texto; }
  .cama-estado { grid-area: estado; }

  /* Permisos: encabezados más chicos para que la primera columna tenga lugar. */
  .permisos thead th { padding: 10px var(--esp-2); font-size: 0.75rem; }
  .permisos thead th:first-child, .permisos tbody th { padding-left: var(--esp-3); }
  .permisos td { padding: 10px var(--esp-2); }

  .faq details > p { padding-right: var(--esp-6); }
}
