/* PROTOTIPO de diseño «piedra y ciprés» con acento grafito (25-11-2026). Va encima de estilos.css: solo cambia la apariencia.
   Verde ciprés: cabecera y títulos. Piedra caliza: fondo. Grafito: botones y acciones. Estados: verde suave, gris piedra y ámbar. */
:root {
  --fondo: #f6f3ec; --sup: #ffffff; --sup2: #efebe2; --linea: #e2dacb; --texto: #23302b; --suave: #5f5a50; --tenue: #8c867a;
  --cipres: #2f4a3f; --cipres-2: #3b5a4d; --cipres-c: #e7efe8;
  --grafito: #464e54; --grafito-2: #33393e; --grafito-c: #e6e8ea;
  --piedra: #4a4640; --piedra-c: #e9e7e2;
  --primario: #2f4a3f; --primario-2: #3b5a4d; --primario-c: #e7efe8; --acento: #464e54; --acento-c: #e6e8ea;
  --ambar: #7a5a2b; --ambar-c: #f3e9d7; --verde: #2f4a3f; --verde-c: #e7efe8; --azul: #3b5a4d;
  --sombra: 0 1px 2px rgba(60, 50, 30, .05);
  --radio: 12px;
  /* Serifa con números parejos (Georgia los tiene «antiguos», que suben y bajan y se leen peor en cifras). */
  --serifa: "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--cipres-2); }
h1, h2, dialog h2, .marca b { font-family: var(--serifa); font-weight: 600; letter-spacing: 0; }
h1 { font-size: 25px; color: var(--cipres); }
h2 { color: var(--cipres); }
/* Las etiquetas y contadores dentro de un título siguen con la letra de la interfaz. */
h1 .ins, h2 .ins, h1 .etq, h2 .etq, h2 .tenue, h2 .btn, h1 .btn { font-family: var(--sans); }

/* Cabecera: verde ciprés con línea grafito y cipreses dibujados en lugar de las iniciales. */
.barra { background: var(--cipres); border-bottom: 3px solid var(--grafito); }
.marca b { font-size: 15.5px; }
#menu a { color: #c9d6ce; }
.logo, .ingreso .logo { font-size: 0; color: transparent; background: transparent no-repeat center / contain
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath d='M7 3 L11 22 L3 22 Z' fill='%238AA391'/%3E%3Cpath d='M17 0 L22 22 L12 22 Z' fill='%23C9D6CE'/%3E%3Cpath d='M27 5 L31 22 L23 22 Z' fill='%238AA391'/%3E%3Crect x='0' y='22' width='34' height='2' fill='%23C9D6CE'/%3E%3C/svg%3E"); }
.logo { width: 40px; }
.ingreso .logo { width: 64px; height: 48px; background-color: transparent; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath d='M7 3 L11 22 L3 22 Z' fill='%238AA391'/%3E%3Cpath d='M17 0 L22 22 L12 22 Z' fill='%232F4A3F'/%3E%3Cpath d='M27 5 L31 22 L23 22 Z' fill='%238AA391'/%3E%3Crect x='0' y='22' width='34' height='2' fill='%232F4A3F'/%3E%3C/svg%3E"); }
.ingreso .tarjeta { border-top: 4px solid var(--cipres); }

/* Botones: la acción principal en grafito. */
.btn { border-color: var(--linea); }
.btn:hover { background: var(--sup2); }
.btn.primario { background: var(--grafito); border-color: var(--grafito); }
.btn.primario:hover { background: var(--grafito-2); }
.pestanas button[aria-pressed="true"] { background: var(--grafito); border-color: var(--grafito); }

/* Tarjetas y cifras. */
.tarjeta { border-color: var(--linea); box-shadow: var(--sombra); }
.kpi { border-color: var(--linea); box-shadow: none; border-top: 3px solid var(--linea); }
.kpi .v { color: var(--cipres); }
a.kpi:hover { border-top-color: var(--grafito); }
.kpi.alerta .v { color: #8a3a2a; }
.kpi.aviso .v { color: var(--ambar); }

/* Buscador protagonista: redondeado y con lupa. */
.caja-busqueda input { border-radius: 999px; min-height: 52px; font-size: 16.5px; padding-left: 48px; border-color: #d8d0bf;
  background: #fff no-repeat 18px center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23464E54' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M21 21l-6-6'/%3E%3C/svg%3E"); }
.sugerencias { border-color: #d8d0bf; border-radius: 14px; }
.sug:hover, .sug[aria-selected="true"] { background: #f3efe6; }
.sugerencias .grupo { background: #faf8f3; }
input, select, textarea { border-color: #d8d0bf; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline-color: var(--grafito); }
th { background: var(--sup); }

/* Estados: disponible verde suave, ocupado gris piedra, reservado ámbar; el rojo queda solo para anulaciones y errores. */
.ins.disponible, .ins.vigente, .ins.exitoso, .ins.t-resuelto { background: var(--cipres-c); color: var(--cipres); }
.ins.ocupado, .ins.inhumado { background: var(--piedra-c); color: var(--piedra); }
.ins.reservado, .ins.exhumado, .ins.t-abierto { background: var(--ambar-c); color: var(--ambar); }
.ins.trasladado, .ins.t-en_curso { background: var(--grafito-c); color: var(--grafito-2); }
.tiempo-l li::before { border-color: var(--cipres); }
.nota.ok { background: var(--cipres-c); color: var(--cipres); }

/* ===== Menú lateral a la izquierda (prueba del 25-11): la barra de arriba quedaba apretada. =====
   En pantallas de 900 px o más, la barra pasa a ser una columna fija con el menú agrupado e íconos.
   Más angosto (celular), vuelve a la barra de arriba con el botón «Menú», como antes. */
@media (min-width: 900px) {
  body:not(:has(#barra[hidden])) { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  body:not(:has(#barra[hidden])) .franja-demo { grid-column: 1 / -1; }
  .barra { grid-column: 1; position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; flex-direction: column; align-items: stretch;
    flex-wrap: nowrap; gap: 14px; padding: 18px 12px 14px; border-bottom: 0; border-right: 3px solid var(--grafito); }
  .marca { padding: 0 6px 12px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .btn-menu { display: none !important; }
  #menu { display: flex !important; flex-direction: column; flex: 1; gap: 2px; }
  .usuario { flex-direction: column; align-items: flex-start; flex: none; gap: 4px; padding: 12px 8px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  main { grid-column: 2; width: 100%; }
}
.grupo-menu { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.grupo-menu:not(:has(a:not([hidden]))) { display: none; }            /* sin opciones para el perfil: no se muestra el rótulo */
.rotulo-menu { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8fa79a; padding: 6px 12px 4px; }
#menu a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; font-size: 14.5px; }
#menu a::before { content: ""; flex: none; width: 19px; height: 19px; background: currentColor; -webkit-mask: no-repeat center / contain; mask: no-repeat center / contain; opacity: .9; }
#menu a[aria-current="page"] { background: rgba(255, 255, 255, .14); box-shadow: inset 3px 0 0 #c9d6ce; color: #fff; }
@media (max-width: 899px) { .grupo-menu { margin-bottom: 4px; } .rotulo-menu { padding-top: 8px; } }
#menu a[data-vista="inicio"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-8 9 8'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3Cpath d='M10 20v-6h4v6'/%3E%3C/svg%3E"); }
#menu a[data-vista="buscar"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M21 21l-6-6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M21 21l-6-6'/%3E%3C/svg%3E"); }
#menu a[data-vista="disponibilidad"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); }
#menu a[data-vista="registrar"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E"); }
#menu a[data-vista="vencimientos"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
#menu a[data-vista="certificados"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6z'/%3E%3Cpath d='M14 3v5h5M9 13h6M9 17h4'/%3E%3C/svg%3E"); }
#menu a[data-vista="reportes"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V11M10 20V5M16 20v-7M3 20h18'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V11M10 20V5M16 20v-7M3 20h18'/%3E%3C/svg%3E"); }
#menu a[data-vista="auditoria"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
#menu a[data-vista="sectores"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z'/%3E%3Cpath d='M9 3v15M15 6v15'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l6-3 6 3 6-3v15l-6 3-6-3-6 3z'/%3E%3Cpath d='M9 3v15M15 6v15'/%3E%3C/svg%3E"); }
#menu a[data-vista="usuarios"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M3 20c0-4 3-6 6-6s6 2 6 6'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 0 1 0 7M21 20c0-3-1.8-5-4-5.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='4'/%3E%3Cpath d='M3 20c0-4 3-6 6-6s6 2 6 6'/%3E%3Cpath d='M16 4.5a3.5 3.5 0 0 1 0 7M21 20c0-3-1.8-5-4-5.6'/%3E%3C/svg%3E"); }
#menu a[data-vista="configuracion"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3Ccircle cx='15' cy='7' r='2'/%3E%3Ccircle cx='8' cy='12' r='2'/%3E%3Ccircle cx='14' cy='17' r='2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3Ccircle cx='15' cy='7' r='2'/%3E%3Ccircle cx='8' cy='12' r='2'/%3E%3Ccircle cx='14' cy='17' r='2'/%3E%3C/svg%3E"); }
#menu a[data-vista="salida"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 20h16'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M7 10l5 5 5-5M4 20h16'/%3E%3C/svg%3E"); }
#menu a[data-vista="tickets"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M5.6 5.6l3.6 3.6M14.8 14.8l3.6 3.6M18.4 5.6l-3.6 3.6M9.2 14.8l-3.6 3.6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M5.6 5.6l3.6 3.6M14.8 14.8l3.6 3.6M18.4 5.6l-3.6 3.6M9.2 14.8l-3.6 3.6'/%3E%3C/svg%3E"); }
#menu a[data-vista="ayuda"]::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.7.3-1 .9-1 1.7M12 17h.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.7.3-1 .9-1 1.7M12 17h.01'/%3E%3C/svg%3E"); }

/* Nombres en las tablas (25-11): con el menú lateral la tabla es más angosta y el navegador partía cada nombre en una
   palabra por renglón («Rosa / Elvira / Peña / Fariña»). La primera columna, cuando es el nombre de un fallecido, tiene un
   ancho mínimo; los nombres largos se parten en dos renglones como mucho. Para que eso no empuje la tabla hacia la
   derecha, los títulos de columna pueden partirse en dos renglones (antes iban siempre en uno). */
td:first-child:has(> a[href^="#/fallecido/"]) { min-width: 11em; }
th { white-space: normal; }

/* Celular (27-11, prueba en Edge): un texto largo sin espacios del historial de la propiedad (nombre de archivo o
   descripción) ensanchaba la tarjeta a 541 px en una pantalla de 390. Ahora se parte donde haga falta. */
.tiempo-l li { overflow-wrap: anywhere; }
.tarjeta { min-width: 0; }
/* En el celular, un botón largo («Emitir certificado de arriendo de nicho o fosa de patio común») pasaba de la
   pantalla porque los botones no se parten; ahí se parten en dos renglones. */
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; } }
/* La rejilla de dos columnas de la ficha pasa a una sola bajo 900 px; con «1fr» la columna crecía hasta el texto más
   largo del historial. Con minmax(0, 1fr) se ajusta al ancho de la pantalla. */
@media (max-width: 900px) { .rejilla2 { grid-template-columns: minmax(0, 1fr); } }
