/* Cementerio virtual en 3D */
.escena3d { position: relative; height: calc(100vh - 210px); min-height: 480px; border-radius: 10px; overflow: hidden; border: 1px solid #cfd8d4; background: #cfe0ea; }
.escena3d.publico { height: 70vh; }
.c3d-lienzo { position: absolute; inset: 0; outline: none; }
.c3d-lienzo canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.c3d-barra { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; pointer-events: none; }
.c3d-barra > * { pointer-events: auto; }
.c3d-barra button, .c3d-barra input { font: inherit; font-size: .85rem; border: 1px solid #b9c6c1; background: rgba(255,255,255,.95); color: #17302a; border-radius: 7px; padding: 7px 11px; cursor: pointer; }
.c3d-barra input { cursor: text; width: 260px; margin-left: auto; }
.c3d-seg { display: inline-flex; }
.c3d-seg button { border-radius: 0; margin-left: -1px; }
.c3d-seg button:first-child { border-radius: 7px 0 0 7px; } .c3d-seg button:last-child { border-radius: 0 7px 7px 0; }
.c3d-seg button[aria-pressed=true] { background: #24453d; color: #fff; border-color: #24453d; }
.c3d-res { position: absolute; top: 52px; right: 12px; width: 300px; max-height: 50%; overflow: auto; list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.c3d-res button { width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 6px; font: inherit; cursor: pointer; }
.c3d-res button:hover { background: #e3ece8; }
.c3d-leyenda { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 12px; flex-wrap: wrap; background: rgba(255,255,255,.92); padding: 7px 11px; border-radius: 8px; font-size: .8rem; color: #33403b; }
.c3d-leyenda i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; }
.c3d-panel { position: absolute; right: 12px; bottom: 12px; width: 300px; max-height: 60%; overflow: auto; background: #fff; border-radius: 10px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.2); font-size: .9rem; }
.c3d-panel h2 { margin: 0 0 2px; font-size: 1.1rem; }
.c3d-panel .cerrar { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 1.4rem; cursor: pointer; color: #555; }
.c3d-carga { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; color: #24453d; background: rgba(230,238,234,.85); }
@media (max-width: 700px) { .c3d-res, .c3d-panel { width: auto; left: 12px; } .escena3d { height: 70vh; } }
.c3d [hidden] { display: none !important; }
body.c3d-embed { margin: 0; font: 15px/1.4 system-ui, sans-serif; background: #cfe0ea; }
body.c3d-embed .escena3d { position: fixed; inset: 0; height: auto; min-height: 0; border: 0; border-radius: 0; }
.c3d-barra button[data-gps] { background: #1d6fd6; color: #fff; border-color: #1d6fd6; font-weight: 700; }
.c3d-barra button[data-gps][aria-pressed="true"] { background: #fff; color: #0b3d8a; }
.c3d-gps { position: absolute; left: 12px; right: 12px; bottom: 56px; margin: 0; background: rgba(255,255,255,.96); color: #17302a; border-left: 5px solid #1d6fd6; padding: 8px 12px; border-radius: 8px; font-size: .9rem; max-width: 640px; }
.c3d-pista { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; background: rgba(23,48,42,.85); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: .95rem; pointer-events: none; }
