/* odontOS · Odontograma «cristal»: solo aspecto (arcadas translúcidas, dientes de acrílico, números FDI en mono).
   No cambia datos ni colores clínicos (caries, obturado, sellante siguen como antes). Degradados definidos en #odCristalDefs (index.html). */
#odontogramaModal .odonto-jaw-row { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(226, 232, 240, .95); border-radius: 14px; padding: 12px 16px; box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .07), inset 0 1px 0 rgba(255, 255, 255, .95); }
#odontogramaModal .odonto-jaw-title { font-size: .72rem; font-weight: 700; letter-spacing: .07em; color: #475569; padding-bottom: 8px; margin-bottom: 2px; border-bottom: 1px dashed #cbd5e1; }
#odontogramaModal .tooth-label { font-size: .78rem; font-weight: 700; letter-spacing: -.02em; color: #1e293b; padding: 2px 5px; border-radius: 6px; }
/* Coronas: caras de cristal; las caras con hallazgo conservan su color por !important de las reglas clínicas */
#odontogramaModal .tooth-face { fill: url(#odFaceTop); stroke: #b4c0cf; stroke-width: 1.1; transition: fill .15s ease, filter .15s ease, stroke .15s ease; }
#odontogramaModal .tooth-face[data-face="O"] { fill: url(#odFaceCenter); }
#odontogramaModal .tooth-face[data-face="M"], #odontogramaModal .tooth-face[data-face="D"] { fill: url(#odFaceSide); }
#odontogramaModal .tooth-face:hover { filter: brightness(.95); stroke: #475569; stroke-width: 1.4; }
#odontogramaModal .tooth-face.caries { fill: rgba(239, 68, 68, .86) !important; stroke: #b91c1c; }
#odontogramaModal .tooth-face.obturado { fill: #2563eb !important; stroke: #1d4ed8; }
#odontogramaModal .tooth-face.obturado_h { fill: #38bdf8 !important; stroke: #0284c7; }
#odontogramaModal .tooth-face.obturado_defectuoso { fill: #38bdf8 !important; stroke: #dc2626 !important; stroke-width: 2.5; stroke-linejoin: round; }
/* Raíces translúcidas que se desvanecen hacia el ápice */
#odontogramaModal #odontoQuadrant1 .tooth-root-shape, #odontogramaModal #odontoQuadrant2 .tooth-root-shape { fill: url(#odRootUpper); stroke: #cbd5e1; }
#odontogramaModal #odontoQuadrant3 .tooth-root-shape, #odontogramaModal #odontoQuadrant4 .tooth-root-shape { fill: url(#odRootLower); stroke: #cbd5e1; }
#odontogramaModal .tooth-root-shape.ausente { fill: none !important; }
#odontogramaModal .tooth-svg { filter: drop-shadow(0 2px 2px rgba(15, 23, 42, .06)); }
/* Oscuro: vuelve a los rellenos sólidos de siempre */
:root[data-theme="dark"] #odontogramaModal .odonto-jaw-row { background: rgba(30, 36, 48, .72); border-color: #2c3647; box-shadow: none; }
:root[data-theme="dark"] #odontogramaModal .odonto-jaw-title { color: #9aa7bb; border-color: #3b4658; }
:root[data-theme="dark"] #odontogramaModal .tooth-label { color: #e5ebf5; }
:root[data-theme="dark"] #odontogramaModal .tooth-face { fill: #2a3240; stroke: #4a566b; }
:root[data-theme="dark"] #odontogramaModal .tooth-face.caries { fill: rgba(239, 68, 68, .86) !important; }
:root[data-theme="dark"] #odontogramaModal .tooth-root-shape { fill: #232a36 !important; stroke: #3b4658; }
@media (prefers-reduced-motion: reduce) { #odontogramaModal .tooth-face { transition: none; } }

/* Tarjeta «Odontograma» de la ficha del paciente (vista de lectura): mismo aspecto de cristal */
#patientDetail .pdo-wrap { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border: 1px solid rgba(226, 232, 240, .95); border-radius: 14px; box-shadow: 0 10px 30px -12px rgba(15, 23, 42, .07), inset 0 1px 0 rgba(255, 255, 255, .95); }
#patientDetail .pdo-n { color: #1e293b; letter-spacing: -.02em; }
#patientDetail .pdo-b .tooth-face { fill: url(#odFaceTop); stroke: #b4c0cf; stroke-width: 1.1; }
#patientDetail .pdo-b .tooth-face[data-face="O"] { fill: url(#odFaceCenter); }
#patientDetail .pdo-b .tooth-face[data-face="M"], #patientDetail .pdo-b .tooth-face[data-face="D"] { fill: url(#odFaceSide); }
#patientDetail .pdo-b .tooth-face.caries { fill: rgba(239, 68, 68, .86) !important; stroke: #b91c1c; }
#patientDetail .pdo-b .tooth-face.obturado { fill: #2563eb !important; stroke: #1d4ed8; }
#patientDetail .pdo-b .tooth-face.obturado_h { fill: #38bdf8 !important; stroke: #0284c7; }
#patientDetail .pdo-b .tooth-face.obturado_defectuoso { fill: #38bdf8 !important; stroke: #dc2626 !important; stroke-width: 2.5; stroke-linejoin: round; }
#patientDetail .pdo-scroll > .pdo-row:first-child .tooth-root-shape { fill: url(#odRootUpper); stroke: #cbd5e1; }
#patientDetail .pdo-scroll > .pdo-row:last-child .tooth-root-shape { fill: url(#odRootLower); stroke: #cbd5e1; }
#patientDetail .pdo-b .tooth-root-shape.ausente { fill: none !important; }
:root[data-theme="dark"] #patientDetail .pdo-wrap { background: rgba(30, 36, 48, .72); border-color: #2c3647; box-shadow: none; }
:root[data-theme="dark"] #patientDetail .pdo-n { color: #e5ebf5; }
:root[data-theme="dark"] #patientDetail .pdo-b .tooth-face { fill: #2a3240; stroke: #4a566b; }
:root[data-theme="dark"] #patientDetail .pdo-b .tooth-face.caries { fill: rgba(239, 68, 68, .86) !important; }
:root[data-theme="dark"] #patientDetail .pdo-b .tooth-root-shape { fill: #232a36 !important; stroke: #3b4658; }
