/* ==========================================================================
   PRESENTACIÓN PROYECTO GEOTÉRMICO - TEMA CLARO, DASHBOARD BI & LOGOS CORREGIDOS
   Alojable en GitHub Pages / Cloudflare Pages
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  /* Tema Claro Limpio */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.95);
  
  --border-color: #cbd5e1;
  --border-highlight: #ea580c;
  
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;
  
  /* Colores Geotérmicos Accentuados */
  --teal: #0d9488;
  --teal-glow: rgba(13, 148, 136, 0.12);
  --orange: #ea580c;
  --orange-glow: rgba(234, 88, 12, 0.12);
  --yellow: #d97706;
  --yellow-glow: rgba(217, 119, 6, 0.12);
  --blue: #2563eb;
  --blue-glow: rgba(37, 99, 235, 0.12);
  --green: #16a34a;
  --green-glow: rgba(22, 163, 74, 0.12);
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset y Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* Contenedor Principal */
#app-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 10% 10%, rgba(13, 148, 136, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 90% 90%, rgba(234, 88, 12, 0.05) 0%, transparent 50%),
              var(--bg-main);
}

/* Header Superior (Esquina Superior Derecha: logoFisicaIA a la izq, logo_unal a la der) */
.app-header {
  height: 105px;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge {
  background: linear-gradient(135deg, var(--teal), var(--orange));
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text-main);
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 110;
}

.header-logos img {
  height: 92px;
  max-height: 92px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header-logos img:hover {
  transform: scale(1.08);
}

/* Área de Diapositivas */
.slides-viewport {
  position: relative;
  flex: 1;
  width: 100%;
  height: calc(100vh - 124px);
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  padding: 2rem 3.5rem 1.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateX(35px) scale(0.99);
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.slide.prev {
  transform: translateX(-35px) scale(0.99);
}

/* Encabezados de Diapositiva */
.slide-header {
  margin-bottom: 1rem;
}

.slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.slide-tag::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.slide-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
}

.slide-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  max-width: 950px;
}

/* Layouts Generales */
.slide-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.grid-2-wide-left {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

/* Tarjetas Informativas con Imágenes Proporcionales (Llenado Completo Sin Espacios Vacíos) */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.card-content-top {
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Contenedor Proporcional Estándar para Imágenes en Tarjetas (Llenado Proporcional Limpio) */
.card-image-box {
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin-top: 0.8rem;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.card-image-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Diapositiva 0: Portada & Diapositiva 14: Gracias (SOLO logo_labIA.png al centro) */
.slide-title-page {
  text-align: center;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, rgba(13, 148, 136, 0.08) 0%, rgba(234, 88, 12, 0.05) 60%, transparent 80%);
}

.title-page-content {
  max-width: 950px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: var(--orange-glow);
  border: 1px solid rgba(234, 88, 12, 0.3);
  color: var(--orange);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.hero-main-title span {
  color: var(--teal);
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 780px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Callout para Nombre Oficial del Proyecto Convocatoria 951-2024 */
.project-callout-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.4rem;
  margin: 0.8rem 0 1.2rem 0;
  max-width: 880px;
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.project-callout-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-callout-text {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.5;
  font-weight: 500;
}

/* Equipo de Investigación / Integrantes (Portada) */
.team-members-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 880px;
  margin: 0.4rem 0 0.6rem 0;
}

.team-group-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.team-role-badge {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.team-role-badge.doctorado {
  background: var(--orange-glow);
  color: var(--orange);
  border: 1px solid rgba(234, 88, 12, 0.3);
}

.team-role-badge.maestria {
  background: var(--teal-glow);
  color: var(--teal);
  border: 1px solid rgba(13, 148, 136, 0.3);
}

.team-members-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.team-members-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.member-icon {
  font-size: 0.82rem;
  opacity: 0.7;
}

/* Único logo en el área central (logo_labIA.png en buen tamaño destacado) */
.single-center-logo-box {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-top: 1rem;
}

.single-center-logo-box img {
  height: 180px; /* Tamaño destacado, limpio y prominente */
  max-height: 24vh;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.12));
}

/* Visión por Computador */
.vision-img-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.vision-img-frame img {
  width: 100%;
  height: auto;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.vision-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--teal);
  font-weight: 700;
}

/* Pipeline de Etapas */
.pipeline-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1rem;
}

.pipeline-step {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.pipeline-step::after {
  content: "➔";
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--orange);
  font-size: 1.2rem;
  font-weight: 900;
  z-index: 2;
}

.pipeline-step:last-child::after {
  display: none;
}

.pipeline-step:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.pipeline-num {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.pipeline-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.pipeline-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Componente SVG Ciclo ORC */
.orc-diagram-container {
  position: relative;
  width: 100%;
  height: 360px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.orc-svg {
  width: 100%;
  height: 100%;
}

.orc-flow-line {
  stroke-dasharray: 8 8;
  animation: flowAnim 12s linear infinite;
}

@keyframes flowAnim {
  from { stroke-dashoffset: 200; }
  to { stroke-dashoffset: 0; }
}

/* Fórmulas Matemáticas */
.math-card {
  background: var(--bg-card);
  border-left: 4px solid var(--orange);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.2rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.math-formula-box {
  font-size: 1.2rem;
  padding: 14px;
  background: #f1f5f9;
  border-radius: 8px;
  margin: 12px 0;
  text-align: center;
  color: var(--text-main);
}

/* Dashboard de Resumen BI (Slide 8) */
.bi-dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.bi-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.bi-kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--teal);
}

.bi-kpi-card:nth-child(2) { border-top-color: var(--orange); }
.bi-kpi-card:nth-child(3) { border-top-color: var(--yellow); }
.bi-kpi-card:nth-child(4) { border-top-color: var(--blue); }
.bi-kpi-card:nth-child(5) { border-top-color: var(--green); }

.bi-kpi-value {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}

.bi-kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.simulator-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 1.5rem;
  align-items: stretch;
}

.app-mockup {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.mockup-header {
  background: #f1f5f9;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.viability-banner {
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--green-glow);
  border: 1px solid rgba(22, 163, 74, 0.3);
  color: var(--green);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.control-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.control-slider {
  accent-color: var(--orange);
  width: 100%;
}

/* Tabla de Entregables (Slide 13) */
.entregables-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.table-wrapper {
  flex: 1;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  max-height: 380px;
  box-shadow: var(--shadow-sm);
}

.entregables-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.entregables-table th {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  color: var(--text-main);
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
}

.entregables-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}

.entregables-table tr:hover td {
  background: rgba(13, 148, 136, 0.05);
  color: var(--text-main);
}

.inv-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--orange-glow);
  color: var(--orange);
}

/* Star Schema Database & ETL Layout (Slide 7) */
/* Star Schema Database & ER Diagram Layout (Slide 7) */
.er-diagram-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  max-height: calc(100vh - 200px);
  overflow: hidden;
}

.er-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.er-view-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  padding: 3px 6px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
}

.er-view-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 0.3rem 0.85rem;
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.er-view-btn:hover {
  color: var(--orange);
  background: rgba(249, 115, 22, 0.08);
}

.er-view-btn.active {
  background: var(--orange);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

.er-diagram-wrapper.mode-relational .non-key-field {
  display: none !important;
}

.er-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.er-toolbar-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 0.25rem;
}

.er-filter-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.er-filter-btn:hover {
  background: #e2e8f0;
  border-color: var(--teal);
  color: var(--teal);
}

.er-filter-btn.active {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
}

.er-legend {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.75rem;
}

.er-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
  color: var(--text-dim);
}

.er-legend-item.legend-pk { color: var(--orange); }
.er-legend-item.legend-fk { color: var(--teal); }
.er-legend-item.legend-dim {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.er-legend-item.legend-fact {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(234, 88, 12, 0.3);
}
.er-legend-item.legend-bridge {
  background: rgba(99, 102, 241, 0.12);
  color: #4338ca;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.er-grid-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  overflow-y: auto;
  padding-right: 0.25rem;
  flex: 1;
  align-items: start;
}

.er-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.er-column-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 0.25rem 0.5rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 0.1rem;
}

.er-table {
  transition: opacity 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.er-table.dimmed {
  opacity: 0.2;
  transform: scale(0.97);
}

.er-table.highlighted-ref {
  border-color: #f59e0b !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45) !important;
  transform: translateY(-3px);
}

.sql-table-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.sql-table-box:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.sql-table-header {
  background: #f1f5f9;
  color: var(--text-main);
  padding: 8px 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.88rem;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sql-table-header.dim {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(13, 148, 136, 0.08));
  border-bottom-color: #10b981;
  color: #047857;
}

.sql-table-header.fact {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.15), rgba(245, 158, 11, 0.1));
  border-bottom-color: var(--orange);
  color: var(--orange);
}

.sql-table-header.bridge {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(6, 182, 212, 0.08));
  border-bottom-color: #6366f1;
  color: #4338ca;
}

.tbl-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tbl-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
}

.tbl-badge.fact {
  color: #c2410c;
  border-color: rgba(234, 88, 12, 0.3);
}

.tbl-badge.bridge {
  color: #4338ca;
  border-color: rgba(99, 102, 241, 0.3);
}

.sql-table-body {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.sql-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 8px;
  background: #f8fafc;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--text-main);
}

.sql-field span:last-child {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-weight: 600;
}

.sql-field .pk {
  color: var(--orange);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sql-field .fk {
  color: var(--teal);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fk-field {
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fk-field:hover {
  background: #e0f2fe;
  border-color: #38bdf8;
}

.fk-field.active-fk {
  background: #fef3c7;
  border-color: #f59e0b;
}

/* Footer y Barra de Navegación */
.app-footer {
  height: 54px;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.progress-bar-container {
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--border-color);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--orange));
  transition: width var(--transition-fast);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.nav-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.slide-counter {
  font-family: var(--font-code);
  font-size: 0.9rem;
  color: var(--text-muted);
  min-width: 80px;
  text-align: center;
}

.slide-counter strong {
  color: var(--orange);
}

/* Modal Overview / Grid */
.overview-modal {
  position: fixed;
  inset: 0;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.overview-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
  overflow-y: auto;
  padding-right: 10px;
}

.thumb-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 140px;
  box-shadow: var(--shadow-sm);
}

.thumb-card:hover, .thumb-card.active {
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.thumb-num {
  font-size: 0.75rem;
  color: var(--teal);
  font-weight: 800;
}

.thumb-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   ESTILOS PARA INTEGRACIÓN COHESIVA DE CAPTURAS DE LA APP (capturas_app)
   ========================================================================== */

/* Mini Miniatura de componente en Slide 03 */
.component-app-thumb {
  margin-top: 0.4rem;
  width: 100%;
  max-height: 75px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 8px rgba(0,0,0,0.15);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.component-app-thumb:hover {
  transform: scale(1.02);
  border-color: var(--orange);
}

.component-app-thumb img {
  width: 100%;
  height: 75px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Grilla 2x2 para Diapositiva de Software (Slide 10) */
.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0.9rem;
  height: 100%;
  width: 100%;
}

.app-screenshot-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.app-screenshot-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.app-screenshot-card .card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.app-screenshot-card .card-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}

.app-screenshot-card .card-image-box {
  margin-top: 0.2rem;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  background: #0f172a;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
}

.app-screenshot-card .card-image-box img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

/* ==========================================================================
   ESTILOS PARA FLUJO EN 2 DIAPOSITIVAS Y MODAL A PANTALLA COMPLETA
   ========================================================================== */

/* Disposición para Slide 1 (Rankine arriba -> Ficha e Interfaz abajo) */
.software-flow-layout {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
  width: 100%;
}

.flow-top-card {
  flex: 1.1;
  min-height: 0;
}

.flow-bottom-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

/* Badge de Zoom & Clic en Imagen */
.clickable-zoom {
  position: relative;
  cursor: pointer;
}

.clickable-zoom:hover img {
  transform: scale(1.015);
  transition: transform var(--transition-fast);
}

.zoom-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: opacity var(--transition-fast);
}

.clickable-zoom:hover .zoom-badge {
  background: var(--orange);
  border-color: var(--orange);
}

/* Modal Flotante para Ampliar Imagen a Pantalla Completa */
.image-zoom-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-zoom-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.image-zoom-modal-box {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.image-zoom-modal-box img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.zoom-modal-caption {
  margin-top: 0.6rem;
  color: #f1f5f9;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  font-family: var(--font-heading);
}

.zoom-modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.9);
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), background var(--transition-fast);
  z-index: 10;
}

.zoom-modal-close-btn:hover {
  transform: scale(1.1);
  background: #dc2626;
}


