/* ================================
   Dashboard Educativo · ORES
   ================================ */

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #f4f3f7;
  color: #2E2E2E;
}

/* Layout general */
.layout {
  display: flex;
  min-height: 100vh;
}

/* BOTÓN FLOTTANTE PARA MOSTRAR/OCULTAR FILTROS */
.filters-toggle {
  position: fixed;
  top: 120px;          /* debajo de Inicio / Volver */
  left: 320px;         /* justo al borde derecho del panel */
  z-index: 30;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #7a5b66;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.filters-toggle i {
  font-size: 0.9rem;
}

/* Cuando el panel está colapsado, traemos la flecha al borde izquierdo */
.filters-toggle.collapsed {
  left: 16px;
}

/* PANEL LATERAL */
.side-panel {
  width: 310px;
  background: #ffffff;
  border-right: 1px solid #dedbe5;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-y: auto;
  box-shadow: 3px 0 10px rgba(0,0,0,0.04);
  z-index: 20;
  transition: transform 0.25s ease-in-out;
}

/* Oculto: se va todo el panel hacia la izquierda */
.side-panel.collapsed {
  transform: translateX(-330px);
}

/* CABECERA PANEL */
.panel-header h1 {
  margin: 4px 0 0 0;
  font-size: 1.3rem;
  color: #7a5b66;
}

.panel-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  color: #00475A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.panel-sub {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #555;
}

/* Navegación */
.nav-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.btn-nav {
  padding: 6px 10px;
  font-size: 0.8rem;
  background: #f6f4f7;
  border-radius: 6px;
  text-decoration: none;
  color: #00475A;
  font-weight: 600;
  border: 1px solid #ddd4e2;
}

.btn-nav:hover {
  background: #ebe5f1;
}

/* Campos y labels */
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

label {
  font-size: 0.8rem;
  color: #2E2E2E;
  margin-bottom: 4px;
  font-weight: 600;
}

select,
input[type="text"] {
  padding: 7px 10px;
  border: 1px solid #CCC7D3;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
}

select:focus,
input[type="text"]:focus {
  outline: none;
  border-color: #7a5b66;
  box-shadow: 0 0 0 3px rgba(122, 91, 102, 0.22);
}

.field-inline {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.panel-divider {
  border: none;
  border-bottom: 1px solid #e3dde8;
  margin: 14px 0;
}

.panel-subtitle {
  font-size: 0.9rem;
  color: #7a5b66;
  margin: 4px 0 8px 0;
  font-weight: 700;
}

/* Botón actualizar */
.btn-apply {
  background: #7a5b66;
  color: white;
  padding: 9px 12px;
  border-radius: 7px;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-apply:hover {
  background: #6A4E58;
}

/* Texto resumen */
.panel-legend h2 {
  font-size: 0.9rem;
  margin: 0 0 4px 0;
  color: #00475A;
}

.panel-legend p {
  font-size: 0.85rem;
  color: #555;
}

/* ÁREA DE GRÁFICOS */
.dashboard-main {
  margin-left: 310px;
  padding: 26px 26px 40px 26px;
  width: calc(100% - 310px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: 22px;
  transition: margin-left 0.25s ease-in-out, width 0.25s ease-in-out;
}

/* Cuando el panel se oculta, el dashboard ocupa casi todo el ancho */
.dashboard-main.collapsed {
  margin-left: 40px;
  width: calc(100% - 40px);
}

/* Tarjetas de gráficas */
.chart-panel {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid #e4dde9;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  position: relative;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.chart-header h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #7a5b66;
}

.chart-subtitle {
  font-size: 0.8rem;
  color: #666;
  margin-top: 3px;
}

/* Botón “lupita” */
.chart-zoom-btn {
  border: none;
  background: #f1edf5;
  color: #7a5b66;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
}

.chart-zoom-btn:hover {
  background: #e2d7ee;
}

.chart-wrapper {
  margin-top: 12px;
  height: 320px;
}

/* Cuando un gráfico está expandido, ocupa las 2 columnas y gana altura */
.chart-panel.expanded {
  grid-column: span 2;
}

.chart-panel.expanded .chart-wrapper {
  height: 460px;
}

/* Tabla */
.table-panel {
  grid-column: span 2;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
}

#tablaResumen {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

#tablaResumen th {
  background: #7a5b66;
  color: white;
  padding: 9px;
  text-align: left;
}

#tablaResumen td {
  padding: 7px 9px;
  border-bottom: 1px solid #e7e0ec;
}

#tablaResumen tr:nth-child(even) td {
  background: #faf7fb;
}

#tablaResumen tr:hover td {
  background: #f1e9f6;
}

/* Responsivo */
@media (max-width: 1100px) {
  .dashboard-main {
    grid-template-columns: 1fr;
  }
  .chart-panel.expanded {
    grid-column: span 1;
  }
}

@media (max-width: 800px) {
  .side-panel {
    position: static;
    width: 100%;
    box-shadow: none;
    transform: translateX(0) !important;
  }
  .dashboard-main,
  .dashboard-main.collapsed {
    margin-left: 0;
    width: 100%;
  }
  .filters-toggle,
  .filters-toggle.collapsed {
    top: 80px;
    right: 12px;
    left: auto;
  }
}

/* ============================
   FOOTER ORES – estilo OBservar
   ============================ */

.ores-footer {
  margin-top: 3rem;
  background: #fdf3eb;
  color: #4b3a3f;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.ores-footer-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

.ores-footer-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  color: #4b3a3f;
}

/* Botones de redes */
.ores-footer-social {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}

.ores-social-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  color: #7a5b66;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  font-size: 1.1rem;
}

.ores-social-btn:hover {
  transform: translateY(-2px);
  background: #7a5b66;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
}

/* Bloque ubicación */
.ores-footer-location {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.ores-location-pin {
  font-size: 2rem;
}

.ores-location-text h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.ores-location-text p {
  margin: 0.15rem 0;
  font-size: 0.95rem;
}

.ores-location-text a {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #d48b29;
  text-decoration: none;
}

.ores-location-text a:hover {
  text-decoration: underline;
}

/* Zócalo inferior */
.ores-footer-bottom {
  background: #09304f;
  color: #f2e9f0;
  text-align: center;
  padding: 0.9rem 1rem 1rem;
  font-size: 0.9rem;
}

.ores-footer-bottom a {
  color: #f5c96a;
  text-decoration: none;
}

.ores-footer-bottom a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (min-width: 768px) {
  .ores-footer-main {
    padding-top: 3.5rem;
    padding-bottom: 3rem;
  }

  .ores-footer-location {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .ores-location-text {
    text-align: left;
  }
}

.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.zoom-content {
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px 20px;
  max-width: 1000px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
}

.zoom-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #4a3b41;
}

.zoom-canvas-wrapper {
  flex: 1;
  min-height: 300px;
}

.zoom-close {
  align-self: flex-end;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.zoom-content {
  background: #fff;
  border-radius: 16px;
  padding: 16px 20px 20px;
  max-width: 1000px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
}

.zoom-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #4a3b41;
}

.zoom-canvas-wrapper {
  flex: 1;
  min-height: 350px;
  height: 60vh;      /* altura fija para que Chart.js tenga espacio */
}

.zoom-close {
  align-self: flex-end;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  margin-bottom: 4px;
}


.chart-panel-placeholder {
  display: none;
}

/* Fondo gris a pantalla completa */
.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Panel cuando está zoomed */
.chart-panel.zoomed {
  width: 90vw;
  max-width: 1200px;
  height: 80vh;
  max-height: 800px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
}

/* Que el canvas ocupe casi todo dentro del panel zoomed */
.chart-panel.zoomed .chart-wrapper {
  height: calc(100% - 60px); /* aprox. alto del header del panel */
}

.summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}

.summary-row .table-panel {
  flex: 2 1 480px;
}

.map-panel {
  flex: 1 1 320px;
  min-height: 320px;
}

.map-wrapper {
  height: 100%;
}

#mapContainer {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* Etiquetas de variables en la tabla */
.tabla-var-label {
  font-weight: 400;
  font-size: 0.8rem;
  color: #f4e7f0;
}

/* Botón plegable tabla */
.table-toggle-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  color: #ffffff;
}

/* Zoom genérico de paneles (gráficos y mapa) */
.chart-panel-placeholder {
  display: none;
}

.zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.chart-panel.zoomed {
  width: 90vw;
  max-width: 1200px;
  height: 80vh;
  max-height: 800px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
}

.chart-panel.zoomed .chart-wrapper {
  height: calc(100% - 60px);
}

.summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
}

.summary-row .table-panel {
  flex: 2 1 520px;
}

.summary-row .map-panel {
  flex: 1 1 320px;
  min-height: 320px;
}

.map-wrapper {
  height: 100%;
}

#mapContainer {
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

/* labels en cabecera */
.tabla-var-label {
  font-weight: 400;
  font-size: 0.8rem;
  color: #f4e7f0;
}

/* botón tabla */
.table-toggle-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.9rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* fullscreen para gráficos y mapa */
.chart-panel.fullscreen {
  position: fixed;
  inset: 32px;
  z-index: 9999;
  background: #ffffff;
  box-shadow: 0 0 24px rgba(0,0,0,0.25);
}

body.no-scroll {
  overflow: hidden;
}

/* Tabla + mapa lado a lado */
.summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.summary-row .table-panel {
  flex: 1 1 55%;
}

.summary-row .map-panel {
  flex: 1 1 45%;
}

/* colapsar tabla */
.table-wrapper.collapsed {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
}

/* mapa con altura fija razonable */
#mapContainer {
  width: 100%;
  height: 320px;
}
/* Centrar la tabla resumen en el dashboard */
.table-panel {
  max-width: 960px;      /* ancho máximo de la tarjeta de tabla */
  width: 100%;           /* que pueda ocupar todo el ancho disponible */
  margin: 0 auto 24px;   /* centra horizontalmente (auto a los costados) */
  align-self: center;    /* por si está dentro de un contenedor flex */
}

/* Contenedor de la fila tabla + mapa */
.summary-row {
  max-width: 1100px;      /* ancho máximo del bloque */
  margin: 32px auto 40px; /* centrado horizontal */
}

/* Tarjeta de la tabla */
.table-panel {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 24px;    /* centro la tarjeta de tabla */
}

/* Tarjeta del mapa */
.map-panel {
  width: 100%;
  max-width: 960px;
  margin: 0 auto 32px;    /* centro la tarjeta del mapa */
}

/* Que la tabla pueda colapsar/desplegarse */
.table-wrapper {
  transition: max-height 0.25s ease;
}

.table-wrapper.collapsed {
  display: none;          /* versión simple y robusta: desaparece */
}
/* Bloquea el scroll cuando hay un gráfico ampliado */
body.no-scroll {
  overflow: hidden;
}

/* Panel ampliado a casi pantalla completa */
.chart-panel.expanded {
  position: fixed;
  inset: 40px 40px;                 /* margen a los bordes de la ventana */
  background: #ffffff;
  z-index: 9999;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

/* El contenido del panel (gráfico o mapa) usa toda la altura disponible */
.chart-panel.expanded .chart-wrapper,
.chart-panel.expanded .map-wrapper {
  height: calc(100% - 64px);        /* resto es el header del panel */
}
/* Centrar tabla y mapa */
.summary-row {
  display: block;
  width: 100%;
}

.table-panel {
  max-width: 900px;
  margin: 24px auto 0 auto;
}

.map-panel {
  max-width: 900px;
  margin: 24px auto 40px auto;
}

/* Modal de zoom */
.zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}

.zoom-box {
  width: 90%;
  height: 90%;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  position: relative;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.zoom-body {
  flex: 1;
  position: relative;
}

#zoomChartCanvas,
#zoomMapContainer {
  width: 100%;
  height: 100%;
}

.zoom-close-btn {
  position: absolute;
  right: 12px;
  top: 8px;
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #444;
}

/* Bloqueo suave del scroll cuando el modal está abierto */
body.no-scroll {
  overflow: hidden;
}
/* Centrar completamente la tabla en la pantalla */
.table-panel {
  width: 100%;
  display: flex;
  justify-content: center;   /* centra horizontal */
}

.table-panel > * {
  max-width: 900px;          /* ancho máximo de la tabla */
  width: 100%;               /* evita que se estire demasiado */
}


/* Logo superior alineado a la derecha */
.dashboard-logo-container {
  width: 100%;
  display: flex;
  justify-content: flex-end; /* Lo alinea a la derecha */
  padding: 10px 30px;
  box-sizing: border-box;
}

.dashboard-logo {
  height: 60px;   /* Ajustá tamaño según tu logo */
  object-fit: contain;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.dashboard-logo:hover {
  opacity: 1;
}

/* Aseguramos que el layout sea el contenedor de referencia */
.layout {
  position: relative; /* si ya tenés .layout definido, solo añadí esta línea */
}

/* Logo flotante arriba a la derecha */
.dashboard-logo-floating {
  position: absolute;
  top: 16px;
  right: 32px;
  height: 46px;          /* ajustá si lo querés más chico/grande */
  object-fit: contain;
  opacity: 0.95;
  z-index: 20;           /* por encima de los gráficos y el fondo */
  pointer-events: none;  /* para que no moleste al hacer clic en cosas cerca */
}

.layout {
  position: relative;
}

/* Logo flotante elegante */
.dashboard-logo-floating {
  position: absolute;
  top: 18px;
  right: 28px;
  height: 48px;
  object-fit: contain;
  opacity: 0.95;
  z-index: 20;
  pointer-events: none;
}

/* Dejo aire arriba para que el logo tenga espacio */
.dashboard-main {
  padding-top: 40px;   /* probá 40–60px según cómo lo veas */
}

.dashboard-main {
  padding-top: 90px;
}





/* Texto debajo del logo flotante */
.dashboard-logo-text {
  position: absolute;
  top: 70px;      /* Ajustá si lo querés más arriba/abajo */
  right: 32px;    /* Debe coincidir con el right del logo */
  font-size: 14px;
  font-weight: 400;
  color: #6a4e55; /* el violeta suave ORES */
  opacity: 0.9;
  z-index: 20;
  white-space: nowrap; /* Que no haga salto de línea */
  pointer-events: none;
}


/* ================================
   DESCARGAS (Gráfico / Mapa / Tabla)
   ================================*/

.chart-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chart-download-btn {
  background: #7a5b66;
  border: none;
  color: white;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.25s;
}

.chart-download-btn:hover {
  background: #5c424b;
}

.chart-download-btn i {
  pointer-events: none;
}

/* Ocultar lupa por defecto y reconstruir el bloque */
.chart-header .chart-zoom-btn {
  background: #D4A61D;
  border: none;
  color: white;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
}

.chart-header .chart-zoom-btn:hover {
  background: #b48e18;
}

/* ================================
   DESCARGA DE MAPA Y TABLA
   ================================*/

#mapContainer,
.table-wrapper {
  position: relative;
}

/* Sombra suave alrededor del mapa al exportar */
#mapContainer {
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

/* ================================
   OVERLAY DE ZOOM (si aún no lo tenés)
   ================================*/

.zoom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.zoom-overlay.visible {
  display: flex;
}

.zoom-box {
  background: white;
  width: 95%;
  height: 90%;
  border-radius: 18px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.zoom-close-btn {
  position: absolute;
  top: 10px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #444;
}

.zoom-close-btn:hover {
  color: #000;
}

/* ================================
   LOGO ORES EN LA EXPORTACIÓN
   (lo agregamos por JS)
   ================================*/

.export-logo {
  position: absolute;
  bottom: 10px;
  right: 10px;
  height: 50px;
  opacity: 0.85;
}


/* =============================== */
/*   TOOLTIP PARA BOTONES          */
/* =============================== */

.chart-header-actions button {
  position: relative;
}

.chart-header-actions button::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -35px;
  right: 50%;
  transform: translateX(50%);
  background: rgba(80, 60, 70, 0.95);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 9999;
}

.chart-header-actions button:hover::after {
  opacity: 1;
}

/* Tooltip para botones del mapa y tabla */
.table-panel .chart-header-actions button,
.map-panel .chart-header-actions button {
  position: relative;
}
/* --- Pie de página dentro de cada panel exportable --- */

.chart-wrapper,
.map-wrapper,
.table-wrapper {
  position: relative;          /* para posicionar el footer interno */
  padding-bottom: 55px;        /* deja espacio para las 2 líneas de texto */
}

.panel-footer-brand {
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
  opacity: 0.85;
  color: #7a5b66;              /* violeta ORES suave */
  pointer-events: none;        /* no bloquea clics en mapa, etc. */
  user-select: none;
}

/* --- Tooltips para los botones con data-tooltip --- */

.chart-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chart-download-btn[data-tooltip],
.chart-zoom-btn[data-tooltip] {
  position: relative;
}

.chart-download-btn[data-tooltip]::after,
.chart-zoom-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -30px;
  right: 0;
  transform: translateX(50%);
  background: #7a5b66;
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 5;
}

.chart-download-btn[data-tooltip]:hover::after,
.chart-zoom-btn[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(50%) translateY(-2px);
}


.img-sutil {
  margin-top: 10px;
  text-align: center;
  opacity: 0.6;
}

.img-sutil img {
  width: 75%;
  max-width: 220px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
  transition: opacity 0.25s ease;
}

.img-sutil img:hover {
  opacity: 1;
}
