/* =======================================================
   Variables, Reset y Body
======================================================= */

/* Actualizar la variable de color primario */
:root {
    --text-light: white;
    --bg-light: #f4f8fc;
    --border-light: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --top-bar-height: 50px; 
    --footer-height: 40px; 
    --green: #34a853;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    --primary-dark: #0a0550;
    --primary: #140A9A;
    --primary-light: #1F14B3;
    --primary-lighter: #2A1FCC;
    --cos-dark: #000000;
    --cos: #DA291C;
    --cos-light: #DA291C;
    --cos-lighter:#000000;
    --reporte-dark: #4285f4;
    --reporte: #3c9ae0;
    --reporte-light: #2fb678;
    --reporte-lighter:#2e8c45;
    /* Gradient backgrounds */
    --gradient-header: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
   
    --gradient-animated: linear-gradient(135deg, 
      var(--primary-dark) 0%, 
      var(--primary) 25%,
      var(--primary-light) 50%,
      var(--primary) 75%,
      var(--primary-dark) 100%);
    
    --gradient-animated-cos: linear-gradient(135deg, 
      var(--cos-dark) 0%, 
      var(--cos) 25%, 
      var(--cos-light) 50%,
      var(--cos-lighter) 75%,
      var(--cos-dark) 100%);

    --gradient-animated-reporte: linear-gradient(135deg, 
      var(--reporte-dark) 0%, 
      var(--reporte) 25%, 
      var(--reporte-light) 50%,
      var(--reporte-lighter) 75%,
      var(--reporte-dark) 100%);
  }

  /* Keyframes para la animación del gradient */
@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes gradientAnimationSidebar {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 100% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

  
  /* Reset y estilos base */
  * { margin: 0; padding: 0; box-sizing: border-box; }
  
  body {
    font-family: var(--font-family);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-light);
    color: var(--primary);
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }
  
  
  /* =======================================================
     Estructura Principal
  ======================================================= */
  
  .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-light);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    z-index: 15;
    width: 100%;
    top: 0;
    animation: gradientAnimation 5s ease infinite;
  }
  
  .top-bar-left {
    display: flex;
    align-items: center;
  }
  
  .hamburger-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    margin-right: 15px;
    padding: 5px 10px;
    transition: var(--transition-normal);
    border-radius: 5px;
  }
  
  .hamburger-btn:hover {
    background-color: var(--primary-light);
  }
  
  
  /* =======================================================
     Botones de Acceso Rápido
  ======================================================= */
  
  .quick-access {
    display: flex;
    gap: 10px;
  }
  
  .quick-btn {
    background-color: var(--primary-lighter);
    color: var(--text-light);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    position: relative;
  }
  
  .quick-btn i { 
    margin-right: 5px; 
  }
  
  .quick-btn:hover { 
    background-color: var(--primary-light); 
  }
  
  .tooltip {
    position: absolute;
    bottom: -285%;
    right: 0;
    background-color: var(--primary);
    color: var(--text-light);
    padding: 10px;
    border-radius: 5px;
    width: 300px;
    font-size: 0.8em;
    display: none;
    z-index: 20;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
  }
  
  .quick-btn:hover .tooltip { 
    display: block; 
  }
  
  
  /* =======================================================
     Sidebar
  ======================================================= */
  
  .sidebar {
    width: 250px;
    color: var(--text-light);
    padding: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease-in-out;
    position: fixed;
    z-index: 10;
    top: var(--top-bar-height, 50px);
    bottom: var(--footer-height, 40px);
    left: 0;
    overflow-y: auto;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
    max-height: calc(100vh - var(--top-bar-height, 50px) - var(--footer-height, 40px));
    background: var(--gradient-animated);
    background-size: 200% 210%;
    animation: gradientAnimation 5s ease infinite;
  }
  
  .sidebar h2 {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--text-light);
  }
  
  .sidebar.collapsed { 
    transform: translateX(-100%); 
  }
  
  .menu-item {
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
  }
  
  .menu-item:hover { 
    background-color: var(--primary-light); 
  }
  .menu-item.active { 
    background-color: var(--primary-lighter); 
  }
  .menu-item i { 
    margin-right: 10px; 
  }
  
  /* Links en sidebar */
  .sidebar a.menu-item {
    text-decoration: none;
    color: var(--text-light);
  }
  
  .sidebar a.menu-item:hover {
    background-color: var(--primary-light);
    color: var(--text-light);
  }
  
  .sidebar a.menu-item.active {
    background-color: var(--primary-lighter);
  }
  
  .submenu {
    display: none;
    margin-left: 15px;
    padding-left: 10px;
    border-left: 2px solid var(--primary-light);
  }
  
  .submenu .menu-item {
    padding: 8px;
    font-size: 0.9em;
  }
  
  .content.sidebar-open {
    margin-left: 250px;
    width: calc(100% - 250px);
  }

  





/* =======================================================
   Footer
======================================================= */

.footer {
    text-align: center;
    padding: 10px;
    color: var(--text-light);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 5;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  #clocks {
    display: inline-block;
    margin-left: 15px;
  }
  
  #clocks span {
    margin-left: 15px;
    font-size: 0.9em;
  }
  
  /* =======================================================
     Modal de Ayuda
  ======================================================= */
  
  .modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
    animation: fadeIn 0.3s;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 20px;
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.4s;
  }
  
  @keyframes slideIn {
    from { top: -300px; opacity: 0; }
    to { top: 0; opacity: 1; }
  }
  
  .close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
  }
  
  .close-modal:hover { 
    color: var(--primary); 
  }
  
  .modal h3 {
    margin-top: 0;
    color: var(--primary);

    padding-bottom: 10px;
    margin-bottom: 20px;
  }
  
  .contact-info { 
    margin-top: 20px; 
  }
  .contact-info p { 
    margin: 8px 0; 
  }
  
  .contact-info hr {
    margin: 15px 0;
    border: none;
    border-top: 1px solid #eee;
  }
  
  .contact-info i {
    color: var(--primary);
    width: 20px;
    text-align: center;
    margin-right: 10px;
  }

  /* ------------------ GRADIENT & FLOATING ANIMATION ------------------ */

/* Gradient styles for h2 and h3 headings */
h2 {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
  z-index: 1;
}

/* Floating animation for cards */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Apply floating animation to various card elements */
.valor-card, 
.resultado-card, 
.pilar-item, 
.pilar-kway, 
.chart-box, 
.prioridad-card,
.kpi-card {
  animation: float 5s ease-in-out infinite;
}

/* Staggered animation delay for wave effect */
.valor-card:nth-child(1),
.resultado-card:nth-child(1),
.pilar-item:nth-child(1),
.pilar-kway:nth-child(1),
.chart-box:nth-child(1),
.prioridad-card:nth-child(1),
.kpi-card:nth-child(1) {
  animation-delay: 0s;
}

.valor-card:nth-child(2),
.resultado-card:nth-child(2),
.pilar-item:nth-child(2),
.pilar-kway:nth-child(2),
.chart-box:nth-child(2),
.prioridad-card:nth-child(2),
.kpi-card:nth-child(2) {
  animation-delay: 0.5s;
}

.valor-card:nth-child(3),
.resultado-card:nth-child(3),
.pilar-item:nth-child(3),
.pilar-kway:nth-child(3),
.chart-box:nth-child(3),
.prioridad-card:nth-child(3),
.kpi-card:nth-child(3) {
  animation-delay: 1s;
}

.valor-card:nth-child(4),
resultado-card:nth-child(4),
pilar-item:nth-child(4),
pilar-kway:nth-child(4),
chart-box:nth-child(4),
prioridad-card:nth-child(4),
kpi-card:nth-child(4) {
  animation-delay: 1.5s;
}

.valor-card:nth-child(5),
resultado-card:nth-child(5),
pilar-item:nth-child(5),
pilar-kway:nth-child(5),
chart-box:nth-child(5),
prioridad-card:nth-child(5),
kpi-card:nth-child(5) {
  animation-delay: 2s;
}

/* Improve hover effects with transition (pause animation) */
.valor-card:hover, 
resultado-card:hover, 
pilar-item:hover, 
pilar-kway:hover, 
chart-box:hover, 
prioridad-card:hover,
kpi-card:hover {
  animation-play-state: paused;
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
}

/* =======================================================
   FLOATING ANIMATION & HEADING ADJUSTMENTS
======================================================= */

/* Ajuste para contenedores de sección que tienen animación flotante */
.section-text,
#proposito-section .section-text,
#valores-section .section-text,
#cos-section .section-text,
#kway-section .section-text,
#sqldc-section .section-text {
  padding-top: 15px;
  overflow: visible;
}

/* Keyframes para animación de contenido flotante modificada */
@keyframes float-content {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Aplicar la animación modificada a contenedores específicos */
#proposito-section .section-text,
#valores-section .section-text,
#cos-section .section-text,
#kway-section .section-text,
#sqldc-section .section-text {
  animation: float-content 5s ease-in-out infinite !important;
}

/* =======================================================
   LOGO & HEADER FIXES
======================================================= */
.header-logo {
  height: 32px;
  margin-right: 15px;
}

.header-title {
  margin-left: 10px; /* Espacio adicional a la izquierda para el título */
}

.top-bar-left {
  display: flex;
  align-items: center;
}

.footer-logo {
  display: none;
}

/* =======================================================
   FINAL FIXES & RESPONSIVE ADJUSTMENTS FOR TÍTULOS
======================================================= */
/* Ajustes para evitar que los títulos h3 desaparezcan con el efecto flotante */
.section-text h3,
#proposito-section h3,
#valores-section h3,
#cos-section h3,
#kway-section h3,
#sqldc-section h3 {
  animation: none !important;
  position: relative;
  z-index: 5;
}

/* Ajuste para contenedores de sección que tienen animación flotante */
.section-text,
#proposito-section .section-text,
#valores-section .section-text,
#cos-section .section-text,
#kway-section .section-text,
#sqldc-section .section-text {
  padding-top: 15px;
  overflow: visible;
}

/* Solución alternativa: keyframes para contenido flotante */
@keyframes float-content {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Aplicar animación modificada a contenedores específicos */
#proposito-section .section-text,
#valores-section .section-text,
#cos-section .section-text,
#kway-section .section-text,
#sqldc-section .section-text {
  animation: float-content 5s ease-in-out infinite !important;
}

/* =======================================================
   RANKMI PAGES / SIDEBAR ICON LINKS
======================================================= */
.sidebar a.menu-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-light);
  padding: 10px;
  border-radius: 5px;
  transition: var(--transition-normal);
}

.sidebar a.menu-item i {
  margin-right: 10px;
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  color: white;
}

.sidebar a.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.sidebar a.menu-item:hover i {
  transform: translateX(2px);
  transition: transform 0.2s ease;
}

/* =======================================================
   SIDEBAR ICON LINKS (RANKMI)
======================================================= */
.sidebar a.menu-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-light);
  padding: 10px;
  border-radius: 5px;
  transition: var(--transition-normal);
}

.sidebar a.menu-item i {
  margin-right: 10px;
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  color: white;
}

.sidebar a.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.sidebar a.menu-item:hover i {
  transform: translateX(2px);
  transition: transform 0.2s ease;
}


/* =======================================================
   FINAL FONT & GLOBAL SETTINGS
======================================================= */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  --font-family: 'calibri';
  color: rgb(15,20,154);
}

* {
  font-family: var(--font-family);
}

body, 
input, 
button, 
textarea, 
select,
.menu-item, 
.top-bar h2, 
.chart-title,  
p, h1, h2, h3, h4, h5, h6,
.sidebar {
  font-family: var(--font-family) !important;
}

h1, h2 {
  font-weight: 700;
}

h3, h4, h5, .chart-title {
  font-weight: 500;
}

p, .menu-item, input, button, textarea, select {
  font-weight: 400;
}

.footer, 
.modal-content, 
.tooltip, 
.chart-legend, 
.bar-label,
.heatmap-legend-label {
  font-family: var(--font-family) !important;
}

/* =======================================================
   RANKMI PAGES / SIDEBAR LINKS (REPETICIÓN PARA CONSISTENCIA)
======================================================= */
.sidebar a.menu-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-light);
  padding: 10px;
  border-radius: 5px;
  transition: var(--transition-normal);
}

.sidebar a.menu-item i {
  margin-right: 10px;
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  color: white;
}

.sidebar a.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.sidebar a.menu-item:hover i {
  transform: translateX(2px);
  transition: transform 0.2s ease;
}

/* =======================================================
   HEADER SEPARATOR & FIXES
======================================================= */
.header-logo {
  height: 32px;
  margin-right: 15px;
  position: relative;
}

.header-logo::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  transform: translateY(-50%);
  height: 24px;
  width: 1px;
  background-color: white;
  opacity: 0.8;
}

.header-title {
  margin-left: 15px;
}

.top-bar-left {
  display: flex;
  align-items: center;
}

.header-logo {
  margin-right: 10px;
}

.vertical-separator {
  height: 24px;
  width: 1px;
  background-color: white;
  opacity: 0.8;
  margin: 0 15px;
}

.header-title {
  margin-left: 0;
}

* {
  font-family: var(--font-family);
}

body, 
input, 
button, 
textarea, 
select,
.menu-item, 
.top-bar h2, 
.chart-title, 
p, h1, h2, h3, h4, h5, h6,
.sidebar {
  font-family: var(--font-family) !important;
}

h1, h2, .section-header h2 {
  font-weight: 700;
}

h3, h4, h5, .chart-title {
  font-weight: 500;
}

p, .menu-item, input, button, textarea, select {
  font-weight: 400;
}

.footer, 
.modal-content, 
.tooltip, 
.chart-legend, 
.bar-label,
.heatmap-legend-label {
  font-family: var(--font-family) !important;
}

/* =======================================================
   RANKMI SIDEBAR ICON LINKS (REPETICIÓN)
======================================================= */
.sidebar a.menu-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-light);
  padding: 10px;
  border-radius: 5px;
  transition: var(--transition-normal);
}

.sidebar a.menu-item i {
  margin-right: 10px;
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  color: white;
}

.sidebar a.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.sidebar a.menu-item:hover i {
  transform: translateX(2px);
  transition: transform 0.2s ease;
}

/* =======================================================
   FLOATING ANIMATION & HEADING ADJUSTMENTS
======================================================= */
/* Gradient styles for h2 and h3 headings */
h2 {
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
  z-index: 1;
}

/* Floating animation for cards */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Apply floating animation to various card elements */
.valor-card, 
.resultado-card, 
.pilar-item, 
.pilar-kway, 
.chart-box, 
.prioridad-card,
.kpi-card {
  animation: float 5s ease-in-out infinite;
}

/* Staggered animation delay for wave effect */
.valor-card:nth-child(1),
.resultado-card:nth-child(1),
.pilar-item:nth-child(1),
.pilar-kway:nth-child(1),
.chart-box:nth-child(1),
.prioridad-card:nth-child(1),
.kpi-card:nth-child(1) {
  animation-delay: 0s;
}

.valor-card:nth-child(2),
.resultado-card:nth-child(2),
.pilar-item:nth-child(2),
.pilar-kway:nth-child(2),
.chart-box:nth-child(2),
.prioridad-card:nth-child(2),
.kpi-card:nth-child(2) {
  animation-delay: 0.5s;
}

.valor-card:nth-child(3),
.resultado-card:nth-child(3),
.pilar-item:nth-child(3),
.pilar-kway:nth-child(3),
.chart-box:nth-child(3),
.prioridad-card:nth-child(3),
.kpi-card:nth-child(3) {
  animation-delay: 1s;
}

.valor-card:nth-child(4),
.resultado-card:nth-child(4),
.pilar-item:nth-child(4),
.pilar-kway:nth-child(4),
.chart-box:nth-child(4),
.prioridad-card:nth-child(4),
.kpi-card:nth-child(4) {
  animation-delay: 1.5s;
}

.valor-card:nth-child(5),
resultado-card:nth-child(5),
pilar-item:nth-child(5),
pilar-kway:nth-child(5),
chart-box:nth-child(5),
prioridad-card:nth-child(5),
kpi-card:nth-child(5) {
  animation-delay: 2s;
}

/* Improve hover effects with transition (pause animation) */
.valor-card:hover, 
resultado-card:hover, 
pilar-item:hover, 
pilar-kway:hover, 
chart-box:hover, 
prioridad-card:hover,
kpi-card:hover {
  animation-play-state: paused;
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
}

h2 {
  color: white;
  position: relative;
  z-index: 1;
}

/* =======================================================
   HEADER SEPARATOR & FIXES
======================================================= */
.header-logo {
  height: 32px;
  margin-right: 15px;
  position: relative;
}

.header-logo::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -7px;
  transform: translateY(-50%);
  height: 24px;
  width: 1px;
  background-color: white;
  opacity: 0.8;
}

.header-title {
  margin-left: 15px;
}

.top-bar-left {
  display: flex;
  align-items: center;
}

.header-logo {
  margin-right: 10px;
}

.vertical-separator {
  height: 24px;
  width: 1px;
  background-color: white;
  opacity: 0.8;
  margin: 0 15px;
}

.header-title {
  margin-left: 0;
}

* {
  font-family: var(--font-family);
}

body, 
input, 
button, 
textarea, 
select,
.menu-item, 
.top-bar h2, 
.chart-title, 
p, h1, h2, h3, h4, h5, h6,
.sidebar {
  font-family: var(--font-family) !important;
}

h1, h2 {
  font-weight: 700;
}

h3, h4, h5, .chart-title {
  font-weight: 500;
}

p, .menu-item, input, button, textarea, select {
  font-weight: 400;
}

.footer, 
.modal-content, 
.tooltip, 
.chart-legend, 
.bar-label,
.heatmap-legend-label {
  font-family: var(--font-family) !important;
}

/* =======================================================
   AJUSTES DE SCROLL Y ESPACIADO VERTICAL
======================================================= */
/* Restablecer alturas y overflow para corregir exceso de espacio */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Deshabilitar scroll en body */
}

/* Contenedor principal */
.container {
  position: relative;
  width: calc(100% - 20px);
  height: calc(100vh - var(--top-bar-height) - var(--footer-height));
  overflow: hidden;
  padding: 0;
  flex: 1;
}

.content.sidebar-open {
  width: calc(100% - 25px);
}

/* Contenedor de gráficos */
#charts-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  height: 100%;
  padding: 20px;
}

.charts {
  height: calc(100% - 40px);
  overflow-y: auto;
  padding-bottom: 20px;
}

/* Paginación */
.page-indicator {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.nav-button {
  position: fixed;
  top: 50%;
  z-index: 100;
}

/* Espaciado en secciones específicas */
.text-image-section {
  padding: 0;
  margin-bottom: 20px;
}

/* Para pantallas pequeñas */
@media (max-width: 768px) {
  .content.sidebar-open {
    margin-left: 0;
    width: 100%;
  }
  
}

/* Evitar espacio extra en contenedores de tarjetas */
#valores-section .valores-container,
#resultados-section .resultados-cards,
#sqldc-section .sqldc-cards,
#cos-section .cos-cards {
  margin-bottom: 20px;
}

/* =======================================================
   SOLUCIONES GLOBALES PARA SCROLL Y CONTENEDORES
======================================================= */
/* Forzar que html y body no tengan scroll */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  overflow: hidden !important;
  position: fixed;
}

/* Contenedor principal fijo 

.container {
  position: fixed;
  top: var(--top-bar-height);
  left: 0;
  right: 0;
  bottom: var(--footer-height);
  overflow: hidden !important;
  width: 100%;
  height: calc(100% - var(--top-bar-height) - var(--footer-height));
} */


.content.sidebar-open {
  margin-left: 250px;
  width: calc(100% - 250px);
}

/* Charts container con scroll */
#charts-container {
  overflow-y: auto !important;
  height: auto !important;
}

/* Fondos de página a pantalla completa */
#mision-section::before,
#vision-section::before,
#proposito-section::before,
#valores-section::before,
#resultados-section::before,
#cos-section::before,
#kway-section::before,
#sqldc-section::before,
#reporte-section::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
}

/* Chartbox y charts container */
.chart-box {
  min-height: auto;
  margin-bottom: 30px;
}

#charts-container {
  overflow-y: auto;
  padding-bottom: 40px;
}


/* =======================================================
   SOLUCIÓN GARANTIZADA PARA EL SCROLL (Ajustes extras)
======================================================= */
/* Permitir scroll en el body */
html, body {
  overflow-x: hidden;
}

.content.sidebar-open {
  margin-left: 250px;
  width: calc(100% - 250px);
}

/* =======================================================
   BACKGROUND FULLSCREEN & FOOTER FIX
======================================================= */
#mision-section::before,
#vision-section::before,
#proposito-section::before,
#valores-section::before,
#resultados-section::before,
#cos-section::before,
#kway-section::before,
#sqldc-section::before,
#reporte-section::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: -1;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

/* Ajustes para cardboxes */
.chart-box, .valor-card, .resultado-card, .cos-card, .sqldc-card {
  height: auto !important;
  min-height: auto !important;
}

/* Ajustes para contenedores internos */
.valores-container, 
.resultados-cards, 
.text-image-section,
.pilares-kway, 
.sustainability-circles, 
.sustainability-kpis {
  height: auto !important;
  overflow: visible !important;
}

/* =======================================================
   FIX PARA FULLWIDTH BACKGROUNDS
======================================================= */
#mision-section::before,
#vision-section::before,
#proposito-section::before,
#valores-section::before,
#resultados-section::before,
#cos-section::before,
#kway-section::before,
#sqldc-section::before,
#reporte-section::before {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
}


/* =======================================================
   SIDEBAR MENU ADJUSTMENTS
======================================================= */
/* Adjust content when sidebar is open */
.content.sidebar-open {
    width: calc(100vw - 250px) !important;
    margin-left: 250px !important;
    left: 0 !important;
    right: auto !important;
    position: absolute !important;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
    .content.sidebar-open {
        width: 100vw !important;
        margin-left: 0 !important;
    }
}

/* =======================================================
   TEXT-IMAGE-SECTION ADJUSTMENTS
======================================================= */
/* Ensure text-image-section adapts correctly */
#mision-section .text-image-section,
#valores-section .text-image-section {
  width: 100%;
  box-sizing: border-box;
}

/* =======================================================
   SIDEBAR MENU ADJUSTMENTS (CONT'D)
======================================================= */
/* Adjust content when sidebar is open */
.content.sidebar-open {
  width: calc(100vw - 250px) !important;
  margin-left: 250px !important;
  left: 0 !important;
  right: auto !important;
  position: absolute !important;
}

/* Responsive adjustment for smaller screens */
@media (max-width: 768px) {
  .content.sidebar-open {
      width: 100vw !important;
      margin-left: 0 !important;
  }
}

/* =======================================================
   TEXT-IMAGE-SECTION ADJUSTMENTS (CONT'D)
======================================================= */
/* Ensure text-image-section adapts correctly */
#mision-section .text-image-section,
#valores-section .text-image-section {
  width: 100%;
  box-sizing: border-box;
}

/* =======================================================
    Solución para Agregar Efectos Animados a tu Sitio Web Corporativo
======================================================= */

/* Ajustar colores de los elementos dentro del sidebar para mantener contraste */
.sidebar .menu-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .submenu {
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

/* Mejorar la transición en hover de los elementos del menú */
.menu-item {
  transition: all 0.3s ease;
}

.menu-item:hover {
  transform: translateX(5px);
}

/* Estilo especial para el elemento activo del menú */
.menu-item.active {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: -4px 0 0 white;
}

h3 {
  color: var(--primary);
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

h3:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--primary), transparent);
}

h3:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--primary), transparent);
}

#cos-section h3 {
  color: var(--cos);
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

#cos-section h3:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--cos), transparent);
}

#cos-section h3:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--cos), transparent);
}

#reporte-section h3 {
  color: var(--reporte-light);
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

#reporte-section h3:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--reporte-light), transparent);
}

#reporte-section h3:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, var(--reporte-light), transparent);
}

/* =======================================================
   CARDS ESTANDARIZADAS
======================================================= */

.komatsu-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  border-top: 5px solid rgb(15,20,154);
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.komatsu-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.komatsu-card-header {
  background-color: #f8f9fa;
  padding: 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.komatsu-card-icon {
  margin-right: 15px;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background-color: rgb(15,20,154);
}

.komatsu-card-title {
  font-size: 20px;
  font-weight: 500;
  color: rgb(15,20,154);
}

.komatsu-card-body {
  padding: 20px;
  flex: 1;
}

.komatsu-card-description {
  margin-bottom: 15px;
  color: rgb(15,20,154);
  line-height: 1.6;
}

.komatsu-card-features {
  margin-left: 20px;
  list-style-type: none;
}

.komatsu-card-features li {
  margin-bottom: 10px;
  color: #333;
  position: relative;
}

.komatsu-card-features li::before {
  content: "✓";
  position: absolute;
  left: -20px;
  color: rgb(15,20,154);
  font-weight: bold;
}

.komatsu-card-footer {
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.komatsu-card-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 15px;
  background-color: rgba(15,20,154,0.05);
  border-radius: 8px;
}

.komatsu-card-metric-value {
  font-size: 22px;
  font-weight: bold;
  color: rgb(15,20,154);
}

.komatsu-card-metric-label {
  font-size: 12px;
  color: #555;
  margin-top: 3px;
}

/* Disposición de cards en grid */
.komatsu-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .komatsu-cards-container {
    grid-template-columns: 1fr;
  }
}

/* Animación de flotación */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.komatsu-card {
  animation: float 5s ease-in-out infinite;
}

.komatsu-card:nth-child(2) { animation-delay: 0.5s; }
.komatsu-card:nth-child(3) { animation-delay: 1s; }
.komatsu-card:nth-child(4) { animation-delay: 1.5s; }
.komatsu-card:nth-child(5) { animation-delay: 2s; }

/* Asegurar que el footer siempre está en la posición correcta */


/* Asegurar que el footer siempre está en la posición correcta */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  margin-top: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--gradient-animated);
  background-size: 400% 400%;
  animation: gradientAnimation 5s ease infinite;
}

/* Asegurar que el container principal no tenga scroll y se ajuste correctamente */
.container {
  min-height: calc(100vh - var(--top-bar-height) - var(--footer-height));
  overflow: hidden;
}

/* Hacer que charts container también respete el espacio del footer */
#charts-container-main, 
#charts-container, 
#charts-container-okr,
.charts {
  padding-bottom: var(--footer-height);
}

/* Ajuste adicional para el sidebar */
@media (min-width: 769px) {
  .content.sidebar-open {
    margin-left: 250px;
    width: calc(100% - 250px);
  }
}

.content {
  padding: 20px;
}

p {
  color: rgb(15,20,154) !important; 
}