/* =============================================
   VARIABLES Y CONFIGURACIONES GLOBALES
============================================= */
:root {
  /* Colores principales */
  --primary: #004080;
  --primary-dark: #003366;
  --primary-light: #0066cc;
  --secondary: #ffd700;
  --secondary-dark: #e6c300;
  --dark: #222;
  --light: #f4f4f4;
  --white: #fff;
  --gray: #6c757d;
  --gray-light: #f8f9fa;

  /* Tipografía */
  --font-main: 'Roboto', sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;

  /* Espaciados */
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  /* Sombras */
  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);

  /* Bordes */
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-xl: 1rem;

  /* Transiciones */
  --transition-fast: all 0.15s ease;
  --transition-normal: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* =============================================
   RESET Y ESTILOS BASE
============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--dark);
  background-color: var(--light);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* =============================================
   COMPONENTES REUTILIZABLES
============================================= */
/* Botones */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1.5rem;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  border-radius: var(--border-radius);
  transition: var(--transition-normal);
}

.btn-primary {
  color: var(--white);
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  color: var(--white);
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-outline-primary {
  color: var(--primary);
  background-color: transparent;
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  color: var(--white);
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Tarjetas */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--white);
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: var(--border-radius-lg);
  transition: var(--transition-normal);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-body {
  flex: 1 1 auto;
  padding: var(--space-lg);
}

.card-title {
  margin-bottom: var(--space-sm);
}

/* Icon circles */
.icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  transition: var(--transition-normal);
}

/* =============================================
   LAYOUT PRINCIPAL
============================================= */
/* Navbar */
.navbar {
  padding: var(--space-md) 0;
  transition: var(--transition-normal);
  background-color: transparent;
}

.navbar.scrolled {
  background-color: var(--primary) !important;
  box-shadow: var(--shadow-md);
  padding: var(--space-sm) 0;
}

.navbar-brand {
  font-weight: 700;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  margin-right: var(--space-sm);
}

.navbar-dark .navbar-nav .nav-link {
  color: var(--white);
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  position: relative;
}

.navbar-dark .navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--secondary);
  transition: var(--transition-normal);
}

.navbar-dark .navbar-nav .nav-link:hover::before,
.navbar-dark .navbar-nav .nav-link.active::before {
  width: calc(100% - 2rem);
}

/* =============================================
   HERO SECTION
============================================= */
.hero-section {
  position: relative;
  color: var(--white);
  background-color: #050f1e;
  background-image: linear-gradient(to right, rgba(5, 15, 30, 0.95) 25%, rgba(5, 15, 30, 0.1) 100%), url('../img/banner1.webp');
  background-size: cover;
  background-position: center right;
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.hero-section::before {
  display: none;
}

.hero-section h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: var(--space-lg);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

.hero-section .lead {
  font-size: 1.5rem;
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.btn-hero-custom {
  background-color: var(--secondary);
  border: 2px solid var(--secondary);
  color: var(--dark);
  padding: 0.75rem 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-hero-custom:hover {
  background-color: transparent;
  color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Secciones generales */
section {
  padding: 5rem 0;
  position: relative;
}

/* =============================================
   SECCIÓN SERVICIOS
============================================= */
#servicios .card {
  border: none;
  text-align: center;
  padding: var(--space-lg);
}

#servicios .icon-circle {
  margin-left: auto;
  margin-right: auto;
}

#servicios .card:hover .icon-circle {
  transform: rotate(15deg) scale(1.1);
}

/* =============================================
   SECCIÓN CLIENTES
============================================= */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-lg) 0;
}

.client-logos img {
  max-height: 80px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-normal);
}

.client-logos img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.1);
}

/* =============================================
   SECCIÓN TALENTO HUMANO
============================================= */
#talento img {
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
}

#talento .btn-primary {
  padding: 0.75rem 2rem;
}

/* =============================================
   SECCIÓN CONTACTO
============================================= */
.contact-info {
  background-color: var(--white);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.contact-info h4 {
  color: var(--primary);
  position: relative;
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.contact-info h4::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
}

.contact-info p {
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: flex-start;
}

.contact-info i {
  margin-right: var(--space-sm);
  color: var(--primary);
  margin-top: 3px;
}

.social-icons {
  display: flex;
  gap: var(--space-md);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--white);
  transition: var(--transition-normal);
}

.social-icon:hover {
  background-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-3px);
}

.contact-form {
  background-color: var(--white);
  padding: var(--space-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form .form-control {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid #ced4da;
  transition: var(--transition-fast);
}

.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(0, 64, 128, 0.25);
}

/* =============================================
   FOOTER
============================================= */
footer {
  background-color: var(--dark);
  color: var(--white);
  padding: var(--space-xl) 0;
}

footer h5 {
  color: var(--white);
  margin-bottom: var(--space-lg);
  position: relative;
  padding-bottom: var(--space-sm);
}

footer h5::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary);
}

footer ul li {
  margin-bottom: var(--space-sm);
}

footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

footer a:hover {
  color: var(--white);
  padding-left: 5px;
}

footer .social-icon {
  background-color: rgba(255, 255, 255, 0.1);
}

footer .social-icon:hover {
  background-color: var(--secondary);
  color: var(--dark);
}

/* =============================================
   MEDIA QUERIES - RESPONSIVE
============================================= */
@media (max-width: 1199.98px) {
  .hero-section h1 {}
}

@media (max-width: 991.98px) {
  section {
    padding: 4rem 0;
  }

  .hero-section {
    min-height: auto;
    padding: 6rem 0;
    text-align: center;
    background-position: center center;
    background-image: linear-gradient(rgba(5, 15, 30, 0.8), rgba(5, 15, 30, 0.8)), url('../img/banner1.webp');
  }

  .hero-section .row>div {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section .lead {
    font-size: 1.25rem;
  }

  .navbar-collapse {
    background-color: var(--primary);
    padding: var(--space-md);
    margin-top: var(--space-sm);
    border-radius: var(--border-radius);
  }
}

@media (max-width: 767.98px) {
  :root {
    --font-size-base: 0.9rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero-section {
    padding: 5rem 0;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .contact-info,
  .contact-form {
    padding: var(--space-lg);
  }

  .client-logos {
    gap: var(--space-lg);
  }

  .client-logos img {
    max-height: 60px;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }

  footer {
    text-align: center;
  }

  footer h5::after {
    left: 50%;
    transform: translateX(-50%);
  }

  footer ul {
    margin-bottom: var(--space-xl);
  }

  .social-icons {
    justify-content: center;
  }
}


/* =============================================
   EL TEATRO DE SOLUCIONES
============================================= */
.solutions-theater-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.service-selector-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.service-selector-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  color: var(--primary-dark);
  background-color: var(--white);
  border: 2px solid var(--gray-light);
  transition: var(--transition-normal);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =============================================
   ESTILOS PARA EL DASHBOARD DE SERVICIOS
   ============================================= */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  /* Equivalente a 24px si 1rem = 16px */
  margin-top: 2rem;
}

.kpi-card {
  /* Por defecto, cada tarjeta KPI ocupa una celda de la cuadrícula */
}

.chart-card {
  /* Hacemos que las tarjetas de gráficos se expandan para ocupar las 3 columnas */
  grid-column: span 3;
}

/* --- RESPONSIVIDAD PARA EL DASHBOARD --- */
@media (max-width: 768px) {
  .dashboard-grid {
    /* En pantallas pequeñas, cambiamos a una sola columna */
    grid-template-columns: 1fr;
  }

  .chart-card {
    /* En una sola columna, ya no necesita expandirse, así que lo reseteamos */
    grid-column: span 1;
  }
}

/* Estilos para la animación de Power BI */
.animation-stage {
  position: relative;
  width: 100%;
  height: 600px;
  /* Altura fija para el escenario de la animación */
  overflow: hidden;
  background: #f8f9fa;
  /* Coincide con el bg-light */
  border-radius: var(--border-radius-lg);
}

#raw-data-layer,
#processing-core,
#final-dashboard-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.data-fragment {
  position: absolute;
  background: #f8f9fa;
  /* Fondo más sólido */
  padding: 5px 10px;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  /* Texto más grueso */
  color: #6c757d;
  /* Color de texto principal */
  opacity: 0;
  border: 1px solid #dee2e6;
  /* Borde sutil */
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Modificadores de color */
.data-fragment.color-1 {
  color: #0066cc;
}

/* Azul */
.data-fragment.color-2 {
  color: #6c757d;
}

/* Gris */
.data-fragment.color-3 {
  color: #28a745;
}

/* Verde */

#processing-core {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0);
}

#processing-core img {
  max-width: 100px;
}

#final-dashboard-layer {
  opacity: 0;
  /* El dashboard final empieza invisible */
}

/* ESTILOS PARA EL LABORATORIO DE DESARROLLO WEB */
.web-dev-lab {
  display: flex;
  gap: 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-md);
  position: relative;
  height: 500px;
}

.code-editor-panel,
.web-evolution-display {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.editor-header,
.browser-header {
  padding: 0.75rem;
  background: #e9ecef;
  border-bottom: 1px solid #e0e0e0;
}

.dot {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.editor-header .dot {
  background-color: #ced4da;
}

.browser-header .dot:nth-child(1) {
  background-color: #ff5f56;
}

.browser-header .dot:nth-child(2) {
  background-color: #ffbd2e;
}

.browser-header .dot:nth-child(3) {
  background-color: #27c93f;
}

.code-editor-panel pre {
  background-color: #282c34;
  color: #abb2bf;
  padding: 1rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  flex-grow: 1;
  margin: 0;
  white-space: pre-wrap;
}

.code-editor-panel .token-tag {
  color: #e06c75;
}

.code-editor-panel .token-attr {
  color: #d19a66;
}

.code-editor-panel .token-string {
  color: #98c379;
}

.browser-content {
  flex-grow: 1;
  position: relative;
  padding: 1rem;
}

.evolution-phase {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  opacity: 0;
}

/* Estilos del Wireframe */
.wireframe-phase {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto 1fr;
  gap: 1rem;
}

.wire-header {
  grid-column: 1 / -1;
  height: 40px;
  background: #e9ecef;
  border-radius: 4px;
}

.wire-hero-text {
  height: 120px;
  background: #f8f9fa;
  border: 2px dashed #ced4da;
  border-radius: 4px;
}

.wire-hero-button {
  height: 40px;
  width: 120px;
  background: #e9ecef;
  border-radius: 4px;
  align-self: start;
}

.wire-img {
  grid-row: 2;
  grid-column: 2;
  background: #e9ecef;
  border-radius: 4px;
}

/* Estilos del UI */
.ui-phase {
  background-image: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  border-radius: 4px;
}

/* Estilos de la fase interactiva */
.interactive-button {
  position: absolute;
  top: 60%;
  left: 20%;
  padding: 1rem 2rem;
  background: var(--secondary);
  color: var(--dark);
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
}

.floating-text {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gray);
  font-weight: 500;
  opacity: 0;
}

/* AÑADIR EN style.css */
.data-analysis-lab-v2 {
  position: relative;
  height: 550px;
  background: #f8f9fa;
  border-radius: 1rem;
  overflow: hidden;
}

.data-source-icons {
  position: absolute;
  top: 2rem;
  width: 100%;
  text-align: center;
  font-size: 2rem;
  color: #ced4da;
}

.data-grid-container {
  position: absolute;
  inset: 6rem 2rem 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 5px;
}

.data-cell {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: #adb5bd;
}

.kaizen-scanner {
  position: absolute;
  top: 6rem;
  left: 0;
  width: 5px;
  height: calc(100% - 8rem);
  background: var(--secondary);
  box-shadow: 0 0 15px var(--secondary);
  opacity: 0;
}

.final-dashboard {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
}

.kpi-display,
.bar-chart-display,
.line-chart-display {
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}

.kpi-display {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-dark);
}

.bar-chart-display {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  height: 150px;
}

.bar-chart-display .bar {
  width: 40px;
  background: var(--primary-light);
  border-radius: 4px;
}

.line-chart-display svg {
  width: 250px;
  overflow: visible;
}

.line-chart-display path {
  stroke: var(--secondary-dark);
  stroke-width: 3;
  fill: none;
}

#analysis-text-1,
#analysis-text-2,
#analysis-text-3 {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gray);
  font-weight: 500;
  opacity: 0;
  background: rgba(255, 255, 255, 0.8);
  padding: 5px 15px;
  border-radius: 20px;
}

/* AÑADIR EN style.css */
.data-analysis-lab {
  position: relative;
  height: 600px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.data-flow-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.data-icon {
  fill: #adb5bd;
  transform-origin: center center;
  transition: fill 0.3s ease;
}

.data-icon.active {
  fill: var(--primary);
}

.data-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #adb5bd;
  opacity: 0;
}

#data-text-1,
#data-text-2,
#data-text-3 {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gray);
  font-weight: 500;
  opacity: 0;
}

/* AÑADIR EN style.css */
.web-dev-lab {
  display: flex;
  gap: 2rem;
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  height: 550px;
}

.code-editor-panel {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #282c34;
}

.editor-header {
  padding: 0.75rem;
  background: #21252b;
  border-bottom: 1px solid #333;
}

.editor-header .dot {
  background-color: #555;
}

.code-editor-panel pre {
  color: #abb2bf;
  padding: 1rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.9rem;
  flex-grow: 1;
  margin: 0;
  white-space: pre-wrap;
  opacity: 0;
}

.code-editor-panel .token-tag {
  color: #e06c75;
}

.code-editor-panel .token-attr {
  color: #d19a66;
}

.code-editor-panel .token-string {
  color: #98c379;
}

.code-editor-panel .token-keyword {
  color: #c678dd;
}

.device-display-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

#dynamic-device {
  transition: all 0.8s cubic-bezier(0.645, 0.045, 0.355, 1);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

#dynamic-device.desktop {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

#dynamic-device.mobile {
  width: 220px;
  height: 95%;
  border-radius: 24px;
  border: 8px solid #333;
}

.browser-header {
  flex-shrink: 0;
  padding: 0.75rem;
  background: #e9ecef;
  border-bottom: 1px solid #e0e0e0;
}

.browser-header .dot:nth-child(1) {
  background-color: #ff5f56;
}

.browser-header .dot:nth-child(2) {
  background-color: #ffbd2e;
}

.browser-header .dot:nth-child(3) {
  background-color: #27c93f;
}

#dynamic-device.mobile .browser-header {
  display: none;
}

.browser-content {
  flex-grow: 1;
  padding: 1rem;
  transition: background-color 1s ease;
}

.content-grid {
  display: flex;
  gap: 1rem;
  height: 100%;
}

.main-panel {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-panel {
  flex: 1;
  background-color: #e9ecef;
  border-radius: 4px;
  transition: opacity 0.5s ease;
}

.text-placeholder {
  background-color: #e9ecef;
  border-radius: 4px;
}

.text-placeholder.long {
  height: 60%;
}

.text-placeholder.short {
  height: 30%;
}

.button-placeholder {
  background-color: #ced4da;
  border-radius: 20px;
  height: 40px;
  width: 120px;
}

#dynamic-device.mobile .content-grid {
  flex-direction: column;
}

#dynamic-device.mobile .side-panel {
  opacity: 0;
  height: 0;
}

#dev-text-1,
#dev-text-2,
#dev-text-3 {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gray);
  font-weight: 500;
  opacity: 0;
}

/* AÑADIR/MODIFICAR ESTE BLOQUE EN style.css */
.powerbi-kaizen-scene {
  position: relative;
  height: 650px;
  width: 100%;
  background-color: #f8f9fa;
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.data-grid-cells {
  position: absolute;
  inset: 0;
  perspective: 800px;
  z-index: 5;
  /* CORRECCIÓN: Asegura que la capa de datos esté visible */
  pointer-events: none;
  /* Los datos crudos no deben ser clickeables */
}

.data-cell-powerbi {
  position: absolute;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #6c757d;
  opacity: 0;
  background: rgba(255, 255, 255, 0.6);
  padding: 3px 6px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  will-change: transform, opacity;
  /* Optimización para animaciones */
}

.data-icon-powerbi {
  /* Estilo para los nuevos iconos */
  position: absolute;
  font-size: 1.5rem;
  color: #aaa;
  opacity: 0;
  /* Inician invisibles */
  will-change: transform, opacity;
  /* Optimización para animaciones */
}

.kaizen-logo-placeholder {
  z-index: 10;
}

.kaizen-logo-placeholder {
  z-index: 10;
}

.kaizen-absorber-logo {
  width: 150px;
  height: auto;
  transform: scale(0);
  opacity: 0;
  filter: drop-shadow(0 0 20px rgba(0, 102, 204, 0.6));
  width: 150px;
  height: auto;
  transform: scale(0);
  opacity: 0;
  filter: drop-shadow(0 0 20px rgba(0, 102, 204, 0.6));
  will-change: transform, opacity, filter;
  /* Optimización */
}

.final-dashboard-display {
  position: absolute;
  inset: 1.5rem;
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
  opacity: 0;
  transform: scale(0.8);
  overflow: hidden;
  z-index: 15;
  /* El dashboard siempre está al frente */
  will-change: transform, opacity;
  /* Optimización */
}

.dashboard-header {
  color: var(--primary-dark);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.dashboard-header p {
  color: var(--gray);
  font-size: 0.9rem;
}

.dashboard-header p span {
  font-weight: 600;
  color: var(--primary);
}

.kpi-set {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.kpi-item {
  background: linear-gradient(135deg, #f0f4f8, #e0e7ed);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #f0f4f8, #e0e7ed);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Transiciones controladas */
}

.kpi-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.kpi-item i {
  font-size: 2rem;
  color: var(--primary);
}

.kpi-item .kpi-info h5 {
  font-size: 1.1rem;
  color: var(--gray-dark);
  margin-bottom: 0.3rem;
}

.kpi-item .kpi-info .kpi-value-powerbi {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.charts-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  width: 100%;
}

.chart-panel {
  background: #fdfefe;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: #fdfefe;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* Transiciones controladas */
}

.chart-panel:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-md);
}

.chart-panel h4 {
  margin-bottom: 1rem;
  color: var(--primary-dark);
  font-size: 1.3rem;
}

.charts-section .full-width {
  flex: 1 1 100%;
  height: 300px;
}

.charts-section .half-width {
  flex: 0 0 calc(50% - 0.75rem);
  height: 280px;
}

/* CORRECCIÓN: Evita que el gráfico crezca y se estire */
/* Asegurarse de que Chart.js Canvas tenga el 100% del tamaño de su contenedor */
.chart-panel canvas {
  width: 100% !important;
  height: 100% !important;
}

.floating-text-powerbi {
  position: absolute;
  bottom: 30px;
  color: var(--gray-dark);
  font-weight: 600;
  opacity: 0;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 20px;
  border-radius: 25px;
  box-shadow: var(--shadow-sm);
  z-index: 20;
  font-size: 1.1rem;
  position: absolute;
  bottom: 30px;
  color: var(--gray-dark);
  font-weight: 600;
  opacity: 0;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 20px;
  border-radius: 25px;
  box-shadow: var(--shadow-sm);
  z-index: 20;
  font-size: 1.1rem;
  will-change: opacity;
  /* Optimización */
}


/* ============================================= */
/* === ESTILOS PARA LA NUEVA ESCENA DE ANÁLISIS DE DATOS === */
/* ============================================= */

/* Contenedor principal de la escena */
.data-journey-scene {
  position: relative;
  width: 100%;
  height: 500px;
  /* Altura fija para la animación */
  background-color: #f8f9fa;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Contenedor de los íconos de fuentes de datos */
.data-sources {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.data-source-icon {
  position: absolute;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.8;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* Posicionamiento específico de cada ícono */
#source-db {
  top: 15%;
  left: 10%;
}

#source-cloud {
  top: 25%;
  right: 12%;
}

#source-excel {
  bottom: 20%;
  left: 15%;
}

#source-social {
  bottom: 15%;
  right: 20%;
}

/* Canvas para las partículas */
#data-lake-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Para que no interfiera con otros elementos */
}

/* El Motor Kaizen (Acto 2) */
.kaizen-engine {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  /* Inicialmente invisible */
  transform: scale(0);
}

.engine-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid;
}

.ring-1 {
  width: 100%;
  height: 100%;
  border-color: rgba(0, 102, 204, 0.5);
  animation: rotate 10s linear infinite;
}

.ring-2 {
  width: 70%;
  height: 70%;
  border-color: rgba(0, 153, 255, 0.7);
  animation: rotate-reverse 8s linear infinite;
}

.engine-core {
  width: 40px;
  height: 40px;
  background-color: #ffd700;
  border-radius: 50%;
  box-shadow: 0 0 20px #ffd700, 0 0 40px #ffae00;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotate-reverse {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

/* El Cristal del Conocimiento (Acto 3) */
.insight-crystal {
  position: absolute;
  bottom: 0;
  width: 80%;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 15px;
  transform-style: preserve-3d;
  perspective: 1000px;
  opacity: 0;
  /* Inicialmente invisible */
}

.insight-bar {
  width: 50px;
  background: linear-gradient(to top, var(--primary), var(--secondary));
  border-radius: 5px 5px 0 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transform-origin: bottom;
  height: 0;
  /* Altura inicial 0 para animar */
}

/* Textos flotantes (ya existen, pero aseguramos su posición) */
#analysis-content-pane .floating-text {
  position: absolute;
  bottom: 55%;
  /* CORRECCIÓN: Elevamos el texto para que aparezca justo encima del área del gráfico (que tiene un height del 50%). */
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
  color: #343a40;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 8px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  opacity: 0;
  /* Inicialmente invisibles */
}

/* =============================================
   NUEVA SECCIÓN DE LIDERAZGO
============================================= */
.liderazgo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.lider-card {
  background-color: var(--white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.lider-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.lider-card-img-container {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.lider-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s ease;
}

.lider-card:hover .lider-card-img {
  transform: scale(1.05);
}

.lider-card-body {
  padding: 2rem;
  text-align: center;
}

.lider-card-name {
  font-size: 1.75rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.lider-card-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--secondary-dark);
  margin-bottom: 1.5rem;
}

.lider-card-description {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 991.98px) {
  .liderazgo-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
}
/* =============================================
   SECCIÓN DIRECCIÓN ESTRATÉGICA
============================================= */
#strategic-direction {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #001a33 100%);
    padding: 6rem 0;
}

.strategic-card {
    background-color: rgba(255, 255, 255, 0.08); /* Fondo ligeramente transparente */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    text-align: center;
    color: var(--white);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.strategic-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 25px var(--secondary); /* Brillo amarillo */
    background-color: rgba(255, 255, 255, 0.15);
}

.strategic-card .card-icon {
    font-size: 3.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.strategic-card:hover .card-icon {
    transform: rotateY(15deg) scale(1.1);
}

.strategic-card .card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.strategic-card .card-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Estilos para los Modales Futuristas */
.strategic-modal .modal-content {
    background: linear-gradient(135deg, rgba(0, 30, 60, 0.95) 0%, rgba(0, 15, 30, 0.98) 100%);
    border: 1px solid rgba(0, 102, 204, 0.5);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 0 50px rgba(0, 102, 204, 0.3);
    color: var(--white);
}

.strategic-modal .modal-header {
    border-bottom: 1px solid rgba(0, 102, 204, 0.3);
    padding: 1.5rem 2rem;
}

.strategic-modal .modal-title {
    color: var(--secondary);
    font-weight: 700;
    font-size: 1.8rem;
}

.strategic-modal .btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%); /* Hace el icono blanco */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.strategic-modal .btn-close-white:hover {
    opacity: 1;
}

.strategic-modal .modal-body {
    padding: 2rem;
    line-height: 1.7;
}

.strategic-modal .modal-body h4 {
    color: var(--primary-light);
    font-size: 1.4rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.strategic-modal .modal-body h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary);
}

.strategic-modal .modal-body p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.strategic-modal .modal-body ul {
    list-style: none;
    padding-left: 0;
}

.strategic-modal .modal-body ul li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: flex-start;
}

.strategic-modal .modal-body ul li i {
    margin-right: 0.75rem;
    color: var(--secondary);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

/* Responsive adjustments for modals */
@media (max-width: 767.98px) {
    .strategic-modal .modal-title {
        font-size: 1.5rem;
    }
    .strategic-modal .modal-body {
        padding: 1.5rem;
    }
    .strategic-modal .modal-body h4 {
        font-size: 1.2rem;
    }
}
}
/* --- Estilos Galería de Clientes (V7.0 "Pared de Confianza") --- */

/* La animación de scroll infinito */
@keyframes scrollInfinito {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Mueve el track la mitad de su ancho (el ancho del Grupo 1) */
        transform: translateX(-50%);
    }
}

/* NUEVA Animación de scroll (Derecha) */
@keyframes scrollInfinitoReverso {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.rio-confianza-container {
    padding: 4rem 0;
    background-color: #f8f9fa;
    margin-bottom: 2rem;
}

.rio-confianza-wrapper {
    width: 100%;
    overflow: hidden; /* Oculta el desbordamiento */
    /* Gradiente en los bordes para un efecto 'fade' */
    mask-image: linear-gradient(to right, 
        transparent, 
        black 10%, 
        black 90%, 
        transparent
    );
    -webkit-mask-image: linear-gradient(to right, 
        transparent, 
        black 10%, 
        black 90%, 
        transparent
    );
    margin-bottom: 1.5rem; /* Espacio entre filas */
}

.rio-confianza-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content; /* Ancho total (Grupo 1 + Grupo 2) */
    
    /* ¡La animación! 40s de duración, lineal, infinita */
    animation: scrollInfinito 40s linear infinite; /* Fila 1 y 3 */
}

/* NUEVA Clase para la fila 2 */
.rio-track-reverso {
    animation: scrollInfinitoReverso 40s linear infinite;
    /* Una duración ligeramente diferente (opcional) para desincronizar */
    animation-duration: 45s; 
}

/* Pausa la animación en hover */
.rio-confianza-wrapper:hover .rio-confianza-track {
    animation-play-state: paused;
}

.rio-logo-card {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 280px; /* <- TAMAÑO AUMENTADO (era 250px) */
    height: 140px; /* <- TAMAÑO AUMENTADO (era 120px) */
    padding: 1.5rem;
    margin: 0 1rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rio-logo-card img {
    max-width: 100%;
    max-height: 90px; /* <- TAMAÑO AUMENTADO (era 80px) */
    object-fit: contain;
    /* Filtro para que todos los logos sean grises (profesional) */
    filter: grayscale(100%) opacity(0.7);
    transition: filter 0.3s ease;
}

/* Efecto hover en la tarjeta individual */
.rio-logo-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.rio-logo-card:hover img {
    /* Al hacer hover, el logo toma color y opacidad completa */
    filter: grayscale(0%) opacity(1);
}

/* =============================================
   ORBE DE INTELIGENCIA KAIZEN (KAI)
============================================= */

/* --- 1. El Orbe Flotante --- */
#kai-orb {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1040;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, var(--primary-dark) 0%, #1a1c23 70%);
  box-shadow: 0 0 25px rgba(0, 102, 204, 0.4);
  transition: transform 0.3s ease;
  will-change: transform; /* Optimización para GSAP */
  overflow: hidden;
}

#kai-orb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.6);
}

/* --- 1.1. Núcleo de Datos (Nuevo) --- */
#data-core {
  width: 80%;
  height: 80%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 3px;
}

.data-pixel {
  background-color: var(--primary-dark);
  border-radius: 2px;
  opacity: 0.1;
}

/* --- 2. El Hub Modal --- */
#kai-hub-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 25, 41, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050;
  display: flex;
  justify-content: center;
  align-items: center;
  /* GSAP controlará la visibilidad */
  visibility: hidden;
  opacity: 0;
}

#kai-hub-panel {
  position: relative;
  width: 90%;
  max-width: 550px;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  /* GSAP controlará la visibilidad */
  visibility: hidden;
  opacity: 0;
}

#kai-hub-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition-fast);
}

#kai-hub-close-btn:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.kai-hub-header {
  text-align: center;
  margin-bottom: 2rem;
}

.kai-hub-header img {
  background-color: var(--primary);
  border-radius: 50%;
  padding: 5px;
  margin-bottom: 1rem;
}

.kai-hub-header h3 {
  color: var(--primary-dark);
  font-weight: 700;
}

#kai-hub-actions {
  list-style: none;
  padding: 0;
  margin: 0;
}

#kai-hub-actions li {
  /* GSAP controlará la visibilidad */
  opacity: 0;
  visibility: hidden;
}

#kai-hub-actions li a {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  text-decoration: none;
  color: var(--dark);
  border-radius: var(--border-radius);
  transition: var(--transition-normal);
}

.menu-item-content {
  display: flex;
  flex-direction: column; /* Apila el título y la descripción */
  align-items: flex-start; /* Alinea el texto a la izquierda */
  gap: 0.2rem; /* Espacio entre título y descripción */
}

.menu-item-content span:first-child { /* El título */
  font-weight: 500;
  font-size: 1.1rem;
}

.menu-description {
  font-size: 0.8rem; /* Tamaño de fuente menor */
  color: var(--gray); /* Color más claro */
  transition: var(--transition-fast);
}

#kai-hub-actions li a:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateX(10px);
}

#kai-hub-actions li a i {
  color: var(--primary-light);
  margin-right: 1.5rem;
  width: 25px;
  text-align: center;
  transition: var(--transition-fast);
}

#kai-hub-actions li a:hover i {
  color: var(--secondary);
}

#kai-hub-actions li a:hover .menu-description {
  color: rgba(255, 255, 255, 0.7); /* Color más claro para la descripción en hover */
}

/* =============================================
   KAIZEN SUPPORT SUITE
============================================= */

/* --- Overlay Principal --- */
#suite-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 25, 41, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1060;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#suite-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* --- Contenedor del Modal --- */
#suite-modal {
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 90vh;
  max-height: 700px;
  background-color: var(--white);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#suite-overlay.active #suite-modal {
  transform: scale(1);
}

/* --- Vistas Internas --- */
.suite-view {
  display: none; /* GSAP gestionará la visibilidad */
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  overflow-y: auto;
}

.suite-view.active {
  display: flex;
}

/* --- Vista de Login (#suite-login-view) --- */
#suite-login-view {
  justify-content: center;
  align-items: center;
  text-align: center;
}

#suite-login-view .suite-header img {
  background-color: var(--primary);
  border-radius: 50%;
  padding: 5px;
}

#suite-login-view .suite-header h2 {
  color: var(--primary-dark);
  margin-top: 1rem;
}

#suite-login-form {
  width: 100%;
  max-width: 400px;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ced4da;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.15);
}

#login-error-msg {
  color: #dc3545;
  margin-top: 1rem;
  display: none;
}

/* --- Vista de Dashboard (#suite-dashboard-view) --- */
.suite-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.suite-dashboard-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--primary-dark);
}

.suite-dashboard-header p {
  margin: 0;
}

.ticket-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.ticket-filters .btn {
  border-radius: 20px;
  font-size: 0.9rem;
}

#suite-ticket-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* --- Estilos para el Nuevo Dashboard Profesional --- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.kpi-card {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  gap: 1rem;
}

.kpi-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}
.kpi-icon.open { background-color: #0d6efd; }
.kpi-icon.in-progress { background-color: #ffc107; }
.kpi-icon.closed { background-color: #198754; }


.kpi-content .kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-dark);
  display: block;
  line-height: 1;
}

.kpi-content .kpi-label {
  font-size: 0.9rem;
  color: var(--gray);
}

.action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Tabla de Tickets */
.suite-ticket-table {
  border-collapse: separate;
  border-spacing: 0 10px;
}
.suite-ticket-table thead th {
  border: none;
  color: var(--gray);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}
.suite-ticket-table tbody tr {
  background-color: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition-normal);
}
.suite-ticket-table tbody tr:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.suite-ticket-table tbody td {
  padding: 1.25rem;
  vertical-align: middle;
  border: none;
  border-top: 1px solid #f1f1f1;
}
.suite-ticket-table tbody tr td:first-child { border-radius: var(--border-radius) 0 0 var(--border-radius); }
.suite-ticket-table tbody tr td:last-child { border-radius: 0 var(--border-radius) var(--border-radius) 0; }

/* Píldoras de Estado */
.status-pill {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
}
.status-pill.open { background-color: rgba(13, 110, 253, 0.1); color: #0d6efd; }
.status-pill.in-progress { background-color: rgba(255, 193, 7, 0.1); color: #ffc107; }
.status-pill.closed { background-color: rgba(25, 135, 84, 0.1); color: #198754; }

/* Vista de Creación de Ticket */
.ticket-form-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  /* Corrección: El contenido del formulario ya no se centra verticalmente */
  align-content: flex-start; 
}
.suite-view#suite-ticket-view {
  /* Corrección: Asegura que el contenedor flex se alinee al inicio */
  justify-content: flex-start;
  height: 100%;
}
.ticket-form-main {
  display: flex;
  flex-direction: column;
}
.ticket-form-sidebar {
  background-color: var(--gray-light);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}
.ticket-form-sidebar h4 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}
.ticket-form-sidebar p {
  font-size: 0.9rem;
}
.form-select {
  padding: 0.75rem 1rem;
  height: calc(1.6em + 1.5rem + 2px);
}

/* --- Estilos para el Estado Vacío del Dashboard --- */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--gray);
}

.empty-state-icon {
  font-size: 4rem;
  color: #28a745; /* Verde éxito */
  margin-bottom: 1.5rem;
  line-height: 1;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.empty-state-text {
  max-width: 400px;
  margin: 0;
}
/* Tarjetas de Ticket Rediseñadas */
.ticket-card {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ticket-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ticket-card-status .status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.open { background-color: #007bff; } /* Azul */
.status-dot.in-progress { background-color: #ffc107; } /* Amarillo */
.status-dot.closed { background-color: #28a745; } /* Verde */

.ticket-card-info h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.ticket-card-info p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray);
}

.ticket-card-date {
  text-align: right;
  font-size: 0.9rem;
  color: var(--gray);
}

.ticket-status .last-update {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

/* --- Responsividad --- */
@media (max-width: 767.98px) {
  #suite-modal {
    height: 95vh;
    max-height: none;
  }
  .suite-view {
    padding: 1.5rem;
  }
  .suite-dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .kpi-row {
    grid-template-columns: 1fr;
  }
  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .ticket-filters {
    justify-content: center;
  }
  #suite-create-ticket-btn {
    width: 100%;
  }
  .ticket-form-layout {
    grid-template-columns: 1fr;
  }
  .ticket-form-sidebar { order: -1; margin-bottom: 2rem; }
}
