/* --- CONFIGURACIÓN DE PERSPECTIVA --- */
.content { perspective: 1200px; }

/* --- TARJETA TECH-MINIMALISTA (3D + Clic) --- */
.tarjeta-hibrida {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(12px); 
  border: 1px solid rgba(0, 0, 0, 0.06) !important; 
  border-radius: 50px !important;
  border-width: 50px !important; /* <--- ¡AQUÍ ESTÁ LA MAGIA! Aumentamos el grosor */
  box-shadow: 0 4px 30px rgba(92, 21, 39, 0.05) !important;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08); /* También le di un poquito más de sombra para que resalte del fondo */
  border-style: solid !important;
  transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  transform-style: preserve-3d;
  margin-bottom: 30px;
  position: relative;
  text-align: center; 
  cursor: default; 
}

.tarjeta-hibrida:hover {
  box-shadow: 0 0 40px rgba(92, 21, 39, 0.12) !important; 
  border: 1px solid rgba(92, 21, 39, 0.15) !important;
  z-index: 1050 !important; 
}

/* --- CAPAS DE PROFUNDIDAD (Parallax) --- */
.capa-fondo { transform: translateZ(15px); }
.capa-media { transform: translateZ(30px); }
.capa-frontal { transform: translateZ(60px); }

/* ========================================= */
/* ESTILOS: INICIO TIPO APP / WIDGET         */
/* ========================================= */

.contenedor-icono {
  margin: 5px auto 10px auto; 
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: translateZ(40px);
}

.tarjeta-hibrida:hover .contenedor-icono {
  transform: translateZ(60px) translateY(-5px) scale(1.1); 
}

.icono-3d-falso {
  font-size: 2.2rem; 
  background: linear-gradient(135deg, #5c1527, #a33151);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 5px 8px rgba(92, 21, 39, 0.2));
}

.vista-inicio {
  padding: 25px 30px; 
  text-align: left; 
}

.titulo-principal {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 2.8rem; 
  font-weight: 900;
  color: #1a1a1a;
  letter-spacing: -1px;
  line-height: 1;
  margin: 0;
  transform: translateZ(40px); 
}

.subtitulo-anio {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 1.6rem; 
  font-weight: 700;
  color: #5c1527; 
  letter-spacing: 2px;
  transform: translateZ(25px);
  margin: 0;
}

/* Flecha indicadora */
.icono-reveal {
  color: #5c1527; 
  font-size: 1.4rem;
  opacity: 0.6;
  transition: all 0.4s ease;
  margin-top: 15px;
  cursor: pointer; 
  padding: 10px; 
}
.tarjeta-hibrida.esta-expandida .icono-reveal {
  transform: rotate(180deg);
  opacity: 1;
}

/* ========================================= */
/* ESTILOS DEL CONTENIDO OCULTO (Expandido)  */
/* ========================================= */

.valor-grande { 
  font-family: 'Monaco', 'Consolas', monospace; 
  font-size: 2.5rem; 
  color: #2d2d2d; 
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1; 
  display: block; 
  margin: 15px 0; 
}

.ranking-badge { 
  background: transparent; 
  border: 1px solid #5c1527; 
  color: #5c1527; 
  padding: 4px 12px; 
  border-radius: 4px; 
  font-size: 0.65rem; 
  font-weight: 600; 
  letter-spacing: 1px;
}

/* Contenedor animado */
.reveal-expandido {
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden; 
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: left; 
}

.tarjeta-hibrida.esta-expandida .reveal-expandido {
  max-height: 800px; 
  opacity: 1;
  visibility: visible;
  margin-top: 15px; 
  padding-top: 15px;
  border-top: 1px dashed rgba(0,0,0,0.1); 
}

/* ========================================= */
/* ESTILOS DEL GRÁFICO TIPO ABANICO          */
/* ========================================= */

.contenedor-grafico-dona {
  position: relative;
  width: 100%;
  max-width: 220px; 
  margin: 15px auto 10px auto;
}

.texto-centro-dona {
  position: absolute;
  bottom: 5%; 
  left: 50%;
  transform: translateX(-50%); 
  text-align: center;
  pointer-events: none;
  width: 100%;
}

.total-pib {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 1.8rem; 
  font-weight: 800;
  color: #2d2d2d;
  line-height: 1;
  margin: 0;
}

.label-total {
  font-size: 0.75rem;
  color: #888;
  font-weight: 600;
  margin-top: 2px;
}

/* Agrupador para el ícono y la flecha en la derecha */
.contenedor-derecha {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ========================================= */
/* LEYENDA TIPO "TAGS" / ETIQUETAS           */
/* ========================================= */

.leyenda-personalizada {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap; 
  gap: 12px;
  margin-top: 10px;
}

.item-leyenda {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  background: #f8f9fc;
  border: 1px solid #f1f1f1;
  padding: 6px 14px;
  border-radius: 50px; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.indicador-color {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  display: inline-block;
}
/* ========================================= */
/* ESTILOS PARA BULLETS IED (ESTILO APP)     */
/* ========================================= */

.lista-sile-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.sile-bullet {
    display: flex;
    align-items: center;
    background: #f8f9fc;
    border: 1px solid #f1f4f8;
    padding: 12px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.sile-bullet:hover {
    transform: translateX(5px);
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-color: rgba(92, 21, 39, 0.2);
}

.sile-icon-box {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Colores funcionales para los iconos */
.bg-inversion { background: rgba(92, 21, 39, 0.1); color: #5c1527; }
.bg-salida { background: rgba(220, 53, 69, 0.1); color: #dc3545; }
.bg-sector { background: rgba(0, 123, 255, 0.1); color: #007bff; }
.bg-record { background: rgba(40, 167, 69, 0.1); color: #28a745; }

.sile-bullet-content {
    flex-grow: 1;
}

.sile-bullet-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.sile-bullet-data {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.sile-bullet-extra {
    font-size: 0.75rem;
    font-weight: 800;
    color: #5c1527;
    margin-left: 5px;
}
/* ========================================= */
/* ESTILOS DEL ENCABEZADO INSTITUCIONAL      */
/* ========================================= */

.header-institucional {
  background-color: #ffffff;
  border-bottom: 2px solid #f1f1f1;
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Alturas base para escritorio */
.img-header {
  height: auto;
  object-fit: contain;
}

.logo-escudo { max-height: 65px; }
.logo-secretaria { max-height: 55px; }
.logo-cadena { max-height: 50px; }
.logo-frase { max-height: 55px; }

/* Ajustes para pantallas pequeñas (Celulares) */
@media (max-width: 768px) {
  .logo-escudo { max-height: 45px; }
  .logo-secretaria { max-height: 40px; }
  .logo-cadena { max-height: 35px; }
  
  /* Permite que los logos hagan scroll horizontal si no caben en el celular */
  .contenedor-logos-izq {
    overflow-x: auto;
    padding-bottom: 5px;
  }
}

