/* -------------------------------------------------------------------------
   GestFel CSS · 10-layout-panels.css
   Responsive general inicial, gráficas, papelera, vista previa, widgets, inventario, cuenta, mapa, comunicaciones y legales.
   Orden de carga: respetar la numeración de los ficheros para conservar
   la cascada original y evitar regresiones visuales.
   ------------------------------------------------------------------------- */

@layer components {

/* Responsive y accesibilidad */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
body > * {
  max-width: 100%;
}
:focus-visible {
  outline: 3px solid rgba(34, 182, 166, 0.45);
  outline-offset: 3px;
}
.btn:focus-visible,
button:focus-visible,
.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(34, 182, 166, 0.45);
  outline-offset: 2px;
}
@media (max-width: 1100px) {
  .sidebar {
    height: calc(100dvh - 74px);
    max-height: calc(100dvh - 74px);
    left: -290px;
    display: block;
    background: #fff;
    overflow: auto;
    z-index: 30;
  }
  .sidebar.open {
    left: 0;
  }
  body.sidebar-open::after {
    content: "";
    position: fixed;
    inset: 74px 0 0 0;
    background: rgba(15, 36, 55, 0.28);
    z-index: 15;
  }
  .app-top {
    z-index: 40;
  }
  .sidebar nav a {
    min-height: 48px;
  }
}
@media (max-width: 720px) {
  .dashboard-preview {
    display: none;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .mini-benefits span {
    width: 100%;
  }
  .card {
    padding: 1rem;
  }
  .metric strong,
  .kpi strong {
    font-size: 1.45rem;
  }
  .actions {
    width: 100%;
  }
  .actions .btn,
  .actions .button {
    flex: 1 1 100%;
  }
  .app-top {
    height: 66px;
  }
  .app-shell {
    min-height: calc(100vh - 66px);
  }
  .sidebar {
    top: 66px;
    height: calc(100dvh - 66px);
    max-height: calc(100dvh - 66px);
  }
  body.sidebar-open::after {
    inset: 66px 0 0 0;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .sidebar-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}

/* Gráficas y paneles auxiliares */

.chart-canvas {
  width: 100%;
  height: 260px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fbfdfc);
}
.chart-tooltip {
  position: absolute;
  z-index: 20;
  max-width: min(260px, calc(100% - 24px));
  padding: 8px 11px;
  border-radius: 8px;
  background: #0f2437;
  color: #fff;
  box-shadow: 0 8px 24px rgba(15, 36, 55, .2);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.3;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
  white-space: nowrap;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.soft-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
}
@media (max-width: 920px) {
  .module-grid {
    grid-template-columns: 1fr;
  }
  .chart-canvas {
    height: 220px;
  }
}
/* Papelera administrativa y acciones seguras */
.page-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}
.tabs {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}
.tabs a {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
}
.tabs a.active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.inline-danger {
  display: inline-block;
  position: relative;
  margin-left: 0.35rem;
}
.inline-danger summary {
  cursor: pointer;
  color: #9f1239;
  font-weight: 800;
}
.inline-danger[open] {
  z-index: 20;
}
.inline-danger form {
  position: absolute;
  right: 0;
  top: 1.8rem;
  width: min(320px, 80vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15, 61, 58, 0.18);
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
}
.inline-danger input {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.btn.danger,
.danger {
  border-color: #fecdd3 !important;
  color: #9f1239 !important;
  background: #fff1f2 !important;
}
.note {
  background: #f0fdfa;
  border-color: #ccfbf1;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 780px) {
  .inline-danger {
    display: block;
    margin: 0.5rem 0 0;
  }
  .inline-danger form {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 0.5rem;
  }
  .page-actions {
    width: 100%;
  }
  .page-actions .btn {
    flex: 1;
    text-align: center;
  }
}

/* Vista previa pública */
.public-preview {
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}
.preview-sidebar strong {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  line-height: 1.15;
  color: var(--dark);
}
.preview-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.25rem;
}
.preview-sidebar li {
  margin: 0;
  padding: 0;
}
.preview-sidebar a {
  display: block;
  width: 100%;
  color: var(--muted);
  text-decoration: none;
  padding: 0.55rem 0.6rem;
  border-radius: 0.65rem;
  font-weight: 750;
  line-height: 1.2;
  white-space: normal;
}
.preview-sidebar a:hover,
.preview-sidebar a:focus-visible {
  color: var(--teal);
  background: var(--mint);
}
.preview-content .grid.four .card {
  display: grid;
  gap: 0.2rem;
  align-content: center;
}
.preview-content .grid.four .card strong {
  font-size: 1.65rem;
  line-height: 1;
}
.preview-content .grid.four .card small {
  display: block;
  line-height: 1.25;
  color: var(--dark);
}
.public-preview .preview-sidebar {
  min-width: 0;
  gap: 0.45rem;
  padding: 1.15rem;
}
.public-preview .preview-sidebar strong {
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}
.public-preview .preview-sidebar a {
  padding: 0.42rem 0.55rem;
  font-size: 0.96rem;
  line-height: 1.15;
}
.public-preview .preview-content {
  min-width: 0;
}
.public-preview .preview-content > h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.45rem;
  line-height: 1.15;
}
.public-preview .preview-content .grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.public-preview .preview-content .grid.four .card {
  min-width: 0;
  padding: 0.85rem;
  min-height: 106px;
  align-content: start;
  justify-items: start;
  grid-template-rows: auto 1fr;
  gap: 0.45rem;
}
.public-preview .preview-content .grid.four .card strong {
  font-size: 1.85rem;
  line-height: 1;
}
.public-preview .preview-content .grid.four .card small {
  align-self: start;
}
@media (max-width: 1100px) {
  .dashboard-preview.public-preview {
    grid-template-columns: 1fr;
  }
  .dashboard-preview.public-preview .preview-sidebar {
    display: flex;
    min-width: 0;
  }
  .preview-sidebar ul {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .preview-sidebar a {
    text-align: center;
    font-size: 0.92rem;
  }
}
@media (max-width: 720px) {
  .dashboard-preview.public-preview {
    display: none;
  }
}

/* Informes en widgets personalizables */
.reports-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.reports-toolbar h2 {
  margin: 0.1rem 0 0.25rem;
  text-align: left;
}
.reports-toolbar p {
  margin: 0;
  color: var(--muted);
}
.reports-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.report-widget {
  min-width: 0;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.report-widget:hover {
  box-shadow: 0 18px 50px rgba(15, 36, 55, 0.11);
}
.span-4 {
  grid-column: span 4;
}
.span-5 {
  grid-column: span 5;
}
.span-6 {
  grid-column: span 6;
}
.span-7 {
  grid-column: span 7;
}
.span-8 {
  grid-column: span 8;
}
.span-12 {
  grid-column: 1 / -1;
}
.widget-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.widget-head h2 {
  margin: 0.1rem 0 0.2rem;
  text-align: left;
  font-size: 1.35rem;
}
.widget-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}
.widget-actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 160px;
}
.widget-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--dark);
  border-radius: 999px;
  padding: 0.45rem 0.65rem;
  min-height: 34px;
  font-size: 0.82rem;
  font-weight: 800;
}
.widget-btn:hover,
.widget-btn:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--mint);
}
.report-chart {
  height: 330px;
}
.chart-canvas-xl {
  height: 420px;
}
.span-12 .report-chart {
  height: 440px;
}
.span-12 .chart-canvas-xl {
  height: 520px;
}
.chart-legend {
  display: flex;
  gap: 1rem 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0.8rem 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.3;
  min-height: 24px;
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 0.45rem;
  flex: 0 0 12px;
}
.report-list {
  display: grid;
  gap: 0.65rem;
}
.report-list a {
  display: grid;
  gap: 0.2rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.report-list a:hover,
.report-list a:focus-visible {
  border-color: var(--teal);
  background: var(--mint);
}
.report-list span {
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 1180px) {
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8 {
    grid-column: span 6;
  }
  .chart-canvas-xl {
    height: 440px;
  }
}
@media (max-width: 760px) {
  .reports-toolbar,
  .widget-head {
    flex-direction: column;
    align-items: stretch;
  }
  .widget-actions {
    justify-content: flex-start;
    min-width: 0;
  }
  .reports-grid {
    grid-template-columns: 1fr;
  }
  .span-4,
  .span-5,
  .span-6,
  .span-7,
  .span-8,
  .span-12 {
    grid-column: 1 / -1;
  }
  .report-chart,
  .span-12 .report-chart {
    height: 300px;
  }
  .chart-canvas-xl,
  .span-12 .chart-canvas-xl {
    height: 420px;
  }
  .chart-legend span {
    white-space: normal;
  }
}
/* Inventario y gastos */
.table .btn {
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
}
@media (max-width: 720px) {
  .kpis {
    grid-template-columns: 1fr;
  }
  .grid.two .form.grid.two {
    grid-template-columns: 1fr;
  }
}

/* Cuenta de usuario */
.account-link {
  color: var(--teal);
  font-weight: 800;
}
.field-help {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.35;
  margin-top: 0.25rem;
}
.account-grid {
  align-items: start;
}
.account-dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.6rem 1rem;
  margin: 0;
}
.account-dl dt {
  font-weight: 800;
  color: var(--muted);
}
.account-dl dd {
  margin: 0;
}
.soft-panel {
  background: linear-gradient(180deg, #fff, #f7faf9);
}
.password-form input {
  max-width: 520px;
}
.span-12 .chart-canvas-xl[data-type="hbar_grouped"],
.span-12 canvas[data-type="hbar_grouped"] {
  height: 620px;
}
canvas[data-type="hbar_grouped"] {
  height: 500px;
}
@media (max-width: 720px) {
  .account-link {
    display: none;
  }
  .account-dl {
    grid-template-columns: 1fr;
  }
  .password-form input {
    max-width: none;
  }
  canvas[data-type="hbar_grouped"] {
    height: 520px;
  }
  .span-12 canvas[data-type="hbar_grouped"] {
    height: 560px;
  }
}

/* Edición de perfil y usuarios */
.user-edit-form {
  display: grid;
  gap: 1rem;
}
.user-edit-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.user-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
canvas[data-type="hbar_grouped"].chart-canvas-xl,
.report-chart.chart-canvas-xl {
  height: 620px;
}
.span-12 canvas[data-type="hbar_grouped"].chart-canvas-xl,
.span-12 .report-chart.chart-canvas-xl {
  height: 760px;
}
@media (max-width: 1180px) {
  canvas[data-type="hbar_grouped"].chart-canvas-xl,
  .report-chart.chart-canvas-xl {
    height: 680px;
  }
}
@media (max-width: 720px) {
  canvas[data-type="hbar_grouped"].chart-canvas-xl,
  .report-chart.chart-canvas-xl {
    height: 720px;
  }
  .user-actions {
    display: grid;
  }
  .user-actions .btn,
  .user-actions .button {
    width: 100%;
  }
}
/* Mapa interno, solicitudes y reportes */
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 1rem;
  align-items: start;
}
.map-card {
  padding: 0;
  overflow: hidden;
  min-height: 520px;
  position: relative;
}
.internal-map {
  width: 100%;
  height: clamp(520px, 68vh, 820px);
  min-height: 520px;
  border-radius: var(--r);
  background: #e6f4f1;
  display: block;
  position: relative;
  z-index: 1;
}
.map-list {
  display: grid;
  gap: 0.75rem;
}
.map-list a {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}
.map-list small {
  color: var(--muted);
}
.mini-form {
  display: grid;
  gap: 0.35rem;
  min-width: 220px;
}
.mini-form select,
.mini-form input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}
@media (max-width: 900px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-card {
    min-height: 460px;
  }
  .internal-map {
    height: 460px;
    min-height: 460px;
  }
  .mini-form {
    min-width: 0;
  }
}

/* Leaflet local fallback CSS. */
.leaflet-container {
  position: relative;
  overflow: hidden;
  outline-offset: 1px;
  touch-action: pan-x pan-y;
  background: #e6f4f1;
  font-family: inherit;
}
.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
}
.leaflet-tile {
  filter: inherit;
  visibility: hidden;
  border: 0;
}
.leaflet-tile-loaded {
  visibility: inherit;
}
.leaflet-container img.leaflet-tile,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container img.leaflet-image-layer {
  max-width: none !important;
  max-height: none !important;
  width: auto;
  height: auto;
  padding: 0;
}
.leaflet-container .leaflet-overlay-pane svg {
  max-width: none !important;
  max-height: none !important;
}
.leaflet-tile-container {
  pointer-events: none;
}
.leaflet-pane {
  z-index: 400;
}
.leaflet-tile-pane {
  z-index: 200;
}
.leaflet-overlay-pane {
  z-index: 400;
}
.leaflet-shadow-pane {
  z-index: 500;
}
.leaflet-marker-pane {
  z-index: 600;
}
.leaflet-tooltip-pane {
  z-index: 650;
}
.leaflet-popup-pane {
  z-index: 700;
}
.leaflet-map-pane canvas {
  z-index: 100;
}
.leaflet-map-pane svg {
  z-index: 200;
}
.leaflet-vml-shape {
  width: 1px;
  height: 1px;
}
.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: auto;
  float: left;
  clear: both;
}
.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}
.leaflet-top {
  top: 0;
}
.leaflet-right {
  right: 0;
}
.leaflet-bottom {
  bottom: 0;
}
.leaflet-left {
  left: 0;
}
.leaflet-right .leaflet-control {
  float: right;
}
.leaflet-top .leaflet-control {
  margin-top: 12px;
}
.leaflet-bottom .leaflet-control {
  margin-bottom: 12px;
}
.leaflet-left .leaflet-control {
  margin-left: 12px;
}
.leaflet-right .leaflet-control {
  margin-right: 12px;
}
.leaflet-control-zoom {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}
.leaflet-control-zoom a {
  display: block;
  width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  font-size: 24px;
  font-weight: 900;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.leaflet-control-zoom a:last-child {
  border-bottom: 0;
}
.leaflet-control-zoom a:hover,
.leaflet-control-zoom a:focus {
  background: #e6f4f1;
  color: var(--teal);
  outline: 2px solid transparent;
}
.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  font:
    700 24px/42px system-ui,
    sans-serif;
}
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.86);
  padding: 0.25rem 0.45rem;
  border-radius: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}
.leaflet-control-attribution a {
  color: var(--teal);
}
.leaflet-interactive {
  cursor: pointer;
}
.leaflet-popup {
  position: absolute;
  text-align: center;
  margin-bottom: 20px;
}
.leaflet-popup-content-wrapper {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 0.25rem;
}
.leaflet-popup-content {
  margin: 0.75rem 0.9rem;
  line-height: 1.35;
  text-align: left;
  min-width: 180px;
}
.leaflet-popup-tip-container {
  width: 40px;
  height: 20px;
  position: absolute;
  left: 50%;
  margin-left: -20px;
  overflow: hidden;
  pointer-events: none;
}
.leaflet-popup-tip {
  width: 14px;
  height: 14px;
  padding: 1px;
  margin: -8px auto 0;
  background: #fff;
  transform: rotate(45deg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.leaflet-container a.leaflet-popup-close-button {
  position: absolute;
  top: 4px;
  right: 8px;
  border: 0;
  text-align: center;
  width: 24px;
  height: 24px;
  font:
    18px/24px Tahoma,
    Verdana,
    sans-serif;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
}
.leaflet-container a.leaflet-popup-close-button:hover {
  color: var(--dark);
}

/* Informes: selector global/por colonia */
.reports-mode-panel {
  margin-bottom: 1rem;
}
.reports-mode-form {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(220px, 1fr) auto;
  gap: 1rem;
  align-items: end;
}
.page-subhead {
  margin: 1rem 0;
}
.page-subhead h2 {
  margin: 0 0 0.35rem;
}
.report-detail-grid .soft-card strong {
  display: block;
  font-size: 1.5rem;
  color: var(--teal);
}
@media (max-width: 820px) {
  .reports-mode-form {
    grid-template-columns: 1fr;
  }
}

/* Selector de coordenadas GPS en colonias */
.location-picker {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #f8fbfa;
}
.location-picker-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.location-picker h2 {
  margin: 0;
  font-size: 1.25rem;
}
.location-picker p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}
.coordinate-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}
.picker-map {
  width: 100%;
  height: clamp(380px, 54vh, 620px);
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #e6f4f1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}
.picker-map .notice {
  margin: 1rem;
}
.button.ghost {
  background: #fff;
  color: var(--teal);
  border: 1px solid var(--line);
}
@media (max-width: 760px) {
  .coordinate-tools {
    grid-template-columns: 1fr;
  }
  .picker-map {
    height: 420px;
  }
  .location-picker {
    padding: 0.8rem;
  }
  .location-picker-head {
    display: grid;
  }
  .location-picker-head .button {
    width: 100%;
  }
}

/* Indicadores alimentarios e instalación */
.compact-kpis {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.feeding-indicator .kpi strong {
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

@media (max-width: 720px) {
  .compact-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

/* Soporte, comunicaciones y avisos */
.field-group {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 1rem;
  background: #fbfdfc;
}
.field-group legend {
  font-weight: 900;
  color: var(--teal);
  padding: 0 0.4rem;
}
.notice-board {
  border-left: 6px solid var(--teal);
}
.timeline-item.unread {
  background: #f4fbfa;
  border-radius: 14px;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.aud {
  display: none;
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.support-card h3 {
  margin-top: 0;
}
.protocol-list li {
  margin: 0.7rem 0;
}
.source-list {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Páginas legales públicas */
.legal-page {
  max-width: 980px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 0.35rem;
}
.legal-page .card {
  margin-top: 1rem;
}
.legal-page .card h2 {
  text-align: left;
  font-size: 1.35rem;
  margin-top: 0;
}
.legal-page p,
.legal-page li {
  line-height: 1.65;
}
.legal-page a {
  color: var(--teal);
  font-weight: 800;
}
.legal-list {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0.65rem 1rem;
  margin: 0;
}
.legal-list dt {
  color: var(--muted);
  font-weight: 800;
}
.legal-list dd {
  margin: 0;
}
@media (max-width: 720px) {
  .legal-list {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .legal-list dd {
    margin-bottom: 0.7rem;
  }
}
} /* end @layer components */
