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

:root {
  --bg-primary: #060913;
  --bg-secondary: rgba(10, 17, 34, 0.7);
  --card-bg: rgba(14, 23, 47, 0.55);
  --border-color: rgba(59, 130, 246, 0.12);
  --border-color-hover: rgba(0, 180, 216, 0.35);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  
  --accent-blue: #3b82f6;
  --accent-cyan: #00b4d8;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-indigo: #6366f1;
  
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

/* Background Gradients & Blurs */
.bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -10;
  background: radial-gradient(circle at 10% 20%, rgba(13, 27, 60, 0.55) 0%, rgba(6, 9, 19, 1) 90%);
  overflow: hidden;
}

.bg-blur-1, .bg-blur-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  z-index: -9;
}

.bg-blur-1 {
  top: -15%;
  right: 5%;
  width: 600px;
  height: 600px;
  background-color: rgba(0, 180, 216, 0.4);
}

.bg-blur-2 {
  bottom: -15%;
  left: 5%;
  width: 700px;
  height: 700px;
  background-color: rgba(99, 102, 241, 0.35);
}

/* App Layout */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
}

/* Sidebar Navigation */
.sidebar {
  width: 290px;
  background: rgba(6, 10, 20, 0.88);
  border-right: 1px solid var(--border-color);
  backdrop-filter: blur(25px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px 20px;
  z-index: 10;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar.collapsed {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  opacity: 0;
  pointer-events: none;
  border-right-color: transparent;
}

/* Botón Toggle de Barra Lateral (Hamburguesa) */
.sidebar-toggle {
  position: absolute;
  top: 32px;
  left: 235px;
  z-index: 100;
  background: rgba(14, 23, 47, 0.6);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.sidebar-toggle:hover {
  background: rgba(0, 180, 216, 0.2);
  border-color: var(--accent-cyan);
}

.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 1px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-toggle.collapsed {
  left: 20px;
  background: rgba(14, 23, 47, 0.85);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.sidebar-toggle:not(.collapsed) span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.sidebar-toggle:not(.collapsed) span:nth-child(2) {
  opacity: 0;
}

.sidebar-toggle:not(.collapsed) span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}


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

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 180, 216, 0.4);
}

.brand-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.8px;
  background: linear-gradient(to right, #ffffff, #90e0ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 25px;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 5px;
}

.slide-menu::-webkit-scrollbar {
  width: 3px;
}

.slide-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.menu-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.menu-item.active {
  color: #fff;
  background: rgba(0, 180, 216, 0.1);
  border-color: rgba(0, 180, 216, 0.25);
  font-weight: 600;
}

.menu-item.active .item-num {
  background: var(--accent-cyan);
  color: var(--bg-primary);
}

.item-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  transition: var(--transition-smooth);
  color: var(--text-secondary);
}

.sidebar-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-footer .institution {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.78rem;
}

/* Presentation Main Area */
.presentation-container {
  flex-grow: 1;
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Slide Engine */
.slides-wrapper {
  position: relative;
  flex-grow: 1;
  width: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.45s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 40px 50px 75px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.slide::-webkit-scrollbar {
  width: 5px;
}

.slide::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Typography & Content Layouts */
h1.slide-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

h1.slide-title span.highlight {
  color: var(--accent-cyan);
  background: linear-gradient(135deg, #ffffff 20%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2.slide-subtitle {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.5;
}

.content-grid {
  display: grid;
  gap: 25px;
  width: 100%;
  margin-top: 5px;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

.grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-3px);
  background: rgba(18, 30, 60, 0.5);
  box-shadow: 0 12px 35px rgba(0, 180, 216, 0.08);
}

.glass-card.blue-border {
  border-color: rgba(59, 130, 246, 0.2);
}

.glass-card.blue-border:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 180, 216, 0.12);
}

/* Icons & Visual Accents */
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 180, 216, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 180, 216, 0.15);
}

.card-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #fff;
}

.card-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Lists */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.bullet-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.bullet-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-cyan);
  font-weight: 900;
  font-size: 0.95rem;
}

.bullet-list.alert-style li::before {
  content: "✕";
  color: var(--accent-red);
}

/* Bottom Nav controls */
.nav-controls {
  position: absolute;
  bottom: 20px;
  right: 40px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 100;
}

.nav-btn {
  background: rgba(14, 22, 45, 0.85);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.nav-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 15px rgba(0, 180, 216, 0.35);
}

.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: rgba(14, 22, 45, 0.4);
}

.slide-indicator {
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(6, 10, 20, 0.65);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
}

/* Portada Slides */
.slide-portada {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.portada-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.25);
  color: var(--accent-cyan);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.portada-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--accent-cyan), transparent);
  margin: 25px auto;
}

/* Utility Bar slide 2 */
.utility-split-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.utility-bar {
  display: flex;
  height: 60px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.05);
}

.bar-part {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  color: #fff;
  font-size: 1.05rem;
  transition: width 0.45s ease;
  position: relative;
}

.bar-part.available {
  background: linear-gradient(90deg, #1d4ed8, var(--accent-cyan));
}

.bar-part.eroded {
  background: linear-gradient(90deg, #991b1b, var(--accent-red));
}

.bar-part .bar-label {
  position: absolute;
  bottom: -32px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.bar-part.available .bar-label { left: 15px; }
.bar-part.eroded .bar-label { right: 15px; }

/* Flow Diagrams slide 3 */
.flow-diagram-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.flow-card {
  padding: 24px;
}

.flow-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.flow-step {
  width: 100%;
  padding: 12px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 500;
  position: relative;
  transition: var(--transition-smooth);
}

.flow-step.active-step {
  border-color: rgba(0, 180, 216, 0.35);
  background: rgba(0, 180, 216, 0.05);
  color: #fff;
}

.flow-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1;
}

/* Org chart slide 4 */
.org-chart-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
}

.org-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  width: 160px;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.org-node.highlighted {
  background: rgba(0, 180, 216, 0.15);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 180, 216, 0.25);
  color: #fff;
  transform: scale(1.05);
}

/* EXCEL-STYLE THREE COLUMN LAYOUT FOR SLIDES 7, 8, 9, 10 */
.excel-slide-layout {
  display: grid;
  grid-template-columns: 280px 1fr 280px;
  gap: 20px;
  height: calc(100vh - 150px);
  width: 100%;
}

.excel-controls-panel {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(14, 23, 47, 0.65);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  overflow-y: auto;
}

.excel-controls-panel::-webkit-scrollbar {
  width: 3px;
}

.excel-controls-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

.excel-table-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.excel-container {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: rgba(6, 10, 20, 0.6);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.excel-header-info {
  display: flex;
  justify-content: space-between;
  background: rgba(59, 130, 246, 0.05);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 16px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.excel-header-info span strong {
  color: var(--accent-cyan);
}

.excel-table-panel .table-wrapper {
  flex-grow: 1;
  overflow-y: auto;
  border: none;
  border-radius: 0;
}

.excel-balance-panel {
  background: rgba(10, 25, 47, 0.65);
  border: 1px solid var(--border-color-hover);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.excel-balance-panel h4 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent-cyan);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 6px;
  margin-bottom: 15px;
  text-align: center;
}

.balance-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.balance-item-row.bold-total {
  font-weight: 700;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  font-size: 0.85rem;
  margin-top: 10px;
}

.balance-item-row.eroded-tax {
  color: var(--accent-red);
}

.balance-item-row .item-val {
  font-family: var(--font-title);
  font-weight: 600;
}

.balance-diferencial-card {
  margin-top: 15px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px dashed var(--accent-green);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.balance-diferencial-card h5 {
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.balance-diferencial-card .dif-val {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-green);
}

.balance-diferencial-card .dif-pct {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* SIMULATOR STYLES */
.simulator-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 30px;
  height: 100%;
}

.simulator-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  padding-right: 5px;
}

.simulator-controls::-webkit-scrollbar {
  width: 3px;
}

.simulator-controls::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.control-label {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.control-value {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

/* Custom Range Input */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -6px;
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.4);
  transition: var(--transition-smooth);
}

input[type=range]:active::-webkit-slider-thumb {
  transform: scale(1.2);
  background: #fff;
}

/* Toggle Switch */
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.07);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-secondary);
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: rgba(0, 180, 216, 0.15);
  border-color: var(--accent-cyan);
}

input:checked + .slider-round:before {
  transform: translateX(20px);
  background-color: var(--accent-cyan);
}

/* Simulator Output Panel */
.simulator-results {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.visualizer-container {
  flex-grow: 1;
  background: rgba(6, 10, 20, 0.6);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.chart-wrapper {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 220px;
}

.chart-svg {
  width: 100%;
  height: 100%;
  max-height: 240px;
}

.chart-bar-rect {
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1), y 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 15px;
}

.legend-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: var(--transition-smooth);
}

.legend-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-bottom: 6px;
}

.legend-title {
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.legend-value {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Detail tables button */
.details-btn-wrapper {
  display: flex;
  justify-content: flex-end;
}

.details-btn {
  background: rgba(0, 180, 216, 0.08);
  border: 1px solid rgba(0, 180, 216, 0.2);
  color: var(--accent-cyan);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.details-btn:hover {
  background: var(--accent-cyan);
  color: var(--bg-primary);
  border-color: var(--accent-cyan);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 5, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: #080d19;
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 1100px;
  max-height: 85vh;
  border-radius: 14px;
  padding: 24px;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: #fff;
}

.modal-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--accent-cyan);
}

/* Excel Sheet Style Tables */
.table-wrapper {
  overflow-x: auto;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

table.projection-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: right;
  min-width: 800px;
}

table.projection-table th {
  background: rgba(59, 130, 246, 0.06);
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.72rem;
  text-align: right;
}

table.projection-table th:first-child {
  text-align: center;
}

table.projection-table td {
  padding: 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

table.projection-table tr:hover {
  background: rgba(59, 130, 246, 0.04);
}

table.projection-table tr.total-row {
  background: rgba(0, 180, 216, 0.06);
  font-weight: 700;
}

table.projection-table tr.total-row td {
  border-top: 1px solid rgba(0, 180, 216, 0.3);
  color: #fff;
}

/* Tooltips */
.help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: bold;
  cursor: help;
  margin-left: 6px;
  vertical-align: middle;
  position: relative;
}

.help-tip:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #070c16;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  line-height: 1.4;
  white-space: normal;
  width: 220px;
  z-index: 200;
  text-align: left;
  font-family: var(--font-body);
  font-weight: 400;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

/* Responsive adjust */
@media (max-width: 1200px) {
  .sidebar {
    width: 240px;
  }
  .slide {
    padding: 30px;
  }
  h1.slide-title {
    font-size: 1.6rem;
  }
}

/* Custom Number Input & Select styling */
.udi-number-input, .horizon-select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font-title);
  margin-top: 5px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
  transition: var(--transition-smooth);
}

.udi-number-input:focus, .horizon-select:focus {
  border-color: var(--accent-cyan);
  outline: none;
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.25);
}

.horizon-select option {
  background: #080d19;
  color: #fff;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Portada: Nueva Maqueta Estrategia Fiscal */
#slide-portada {
  background-color: #02050c;
  padding: 40px 60px 75px 60px;
}

.portada-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  height: 100%;
}

.portada-content-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  max-width: 650px;
  padding-right: 10px;
}

.portada-title-brand {
  font-family: var(--font-title);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 25px;
  letter-spacing: -1.2px;
}

.portada-sublist {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent-cyan);
  margin-bottom: 35px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  letter-spacing: -0.3px;
}

.portada-pill-btn {
  display: inline-block;
  padding: 16px 42px;
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(0, 180, 216, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(0, 180, 216, 0.85);
  border-radius: 50px;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.45), inset 0 0 15px rgba(0, 180, 216, 0.25);
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
}

.portada-pill-btn:hover {
  background: rgba(0, 180, 216, 0.28);
  box-shadow: 0 0 40px rgba(0, 180, 216, 0.7), inset 0 0 20px rgba(0, 180, 216, 0.4);
  border-color: #ffffff;
  transform: translateY(-3px) scale(1.03);
}

.portada-content-right {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.portada-vault-image {
  width: 100%;
  height: 100%;
  max-height: 560px;
  background: url('vault.png') no-repeat center center;
  background-size: contain;
  border-radius: 12px;
  filter: drop-shadow(0 0 30px rgba(0, 180, 216, 0.25));
  transition: transform 0.5s ease;
}

.portada-vault-image:hover {
  transform: scale(1.02);
}

@media (max-width: 1024px) {
  .portada-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .portada-title-brand {
    font-size: 2.8rem;
  }
  .portada-sublist {
    font-size: 1.45rem;
  }
}

/* Diapositiva 2: Costo Fiscal */
#slide-costo {
  background-color: #02050c;
  padding: 40px 60px 45px 60px;
}

.costo-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 25px;
  text-align: center;
  line-height: 1.25;
}

.costo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 10px auto 0 auto;
}

.costo-left-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Wrapper to align the width of numbers and the badge box */
.costo-left-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

/* Glowing Neon Red Numbers -> normal solid red filled numbers */
.costo-nums-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 25px;
}

.costo-num-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.costo-huge-num {
  font-family: var(--font-title);
  font-size: 7.2rem;
  font-weight: 800;
  line-height: 0.8;
  color: #ef4444;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.35));
  letter-spacing: -2px;
}

.costo-num-label {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-top: 5px;
}

.costo-plus-sign {
  font-family: var(--font-title);
  font-size: 4.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  margin-top: 18px;
}

/* Box with Neon Blue Outline */
.costo-badge-box {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(2, 6, 23, 0.95) 100%);
  border: 2px solid rgba(0, 180, 216, 0.85); /* glowing cyan border */
  border-radius: 12px;
  padding: 24px 30px;
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.4), inset 0 0 15px rgba(0, 180, 216, 0.2);
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.costo-badge-text {
  font-family: var(--font-title);
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.costo-badge-highlight {
  color: #ef4444;
  text-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}

/* Right Content: Skyscraper Image and Overlay Flow Labels */
.costo-right-content {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.costo-building-img {
  width: 100%;
  height: auto;
  max-height: 440px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(0, 180, 216, 0.15));
}

.costo-arrows-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.arrow-path {
  stroke-dasharray: 12 12;
  animation: arrow-flow 2s linear infinite;
  filter: drop-shadow(0 0 8px rgba(0, 180, 216, 0.6));
}

@keyframes arrow-flow {
  to {
    stroke-dashoffset: -24;
  }
}

.costo-flow-lbl {
  position: absolute;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(2, 5, 12, 0.75);
  padding: 4px 12px;
  border-radius: 6px;
  text-shadow: 0 0 10px rgba(0, 180, 216, 0.8), 0 0 20px rgba(0, 180, 216, 0.5);
  border: 1px solid rgba(0, 180, 216, 0.3);
  letter-spacing: 0.5px;
  z-index: 10;
}

.flow-isr {
  bottom: 18%;
  left: 8%;
}

.flow-ptu {
  bottom: 18%;
  right: 8%;
}

/* Bottom Bar */
.costo-bottom-bar {
  width: 100%;
  max-width: 760px;
  margin: 25px auto 0 auto;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(2, 6, 23, 0.95) 100%);
  border: 2px solid rgba(0, 180, 216, 0.85); /* glowing cyan border */
  border-radius: 50px;
  padding: 14px 28px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.4), inset 0 0 15px rgba(0, 180, 216, 0.2);
}

.costo-bottom-text {
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}

@media (max-width: 1024px) {
  .costo-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .costo-title {
    font-size: 1.8rem;
  }
  .costo-huge-num {
    font-size: 4rem;
  }
  .costo-badge-text {
    font-size: 1.1rem;
  }
  .costo-flow-lbl {
    font-size: 0.95rem;
  }
}

/* Diapositiva 3: Modelo Estratégico (Actualización conforme a Imagen) */
#slide-comparativa {
  background-color: #02050c;
  padding: 40px 60px 45px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.model-header {
  text-align: center;
  margin-bottom: 0;
}

.model-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 0;
  line-height: 1.2;
  text-align: center;
}

.model-subtitle {
  font-family: var(--font-body);
  font-size: 2.4rem; /* reduced by 10% */
  font-weight: 700;
  color: #00b4d8; /* azul eléctrico */
  letter-spacing: 0.5px;
  margin: 50px 0 25px 0; /* exactly 50px above */
  text-align: center;
}

/* Central Visual Area - Horizontal Pillars */
.model-pillars-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 95%; /* Cover same horizontal span as the subtitle */
  max-width: 1100px;
  margin: 25px auto 30px auto; /* exactly 25px + 25px = 50px below subtitle */
  gap: 20px;
}

.pillar-interactive-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pillar-label {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  transition: color 0.3s ease, text-shadow 0.3s ease;
  pointer-events: none;
}

.pillar-img-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.06) 0%, rgba(2, 6, 23, 0) 70%);
  transition: background 0.4s ease;
}

.pillar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.6));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animations when hovered or touched */
.pillar-interactive-card:hover {
  transform: translateY(-8px);
}

.pillar-interactive-card:hover .pillar-label {
  color: #00b4d8; /* Electric blue */
  text-shadow: 0 0 15px rgba(0, 180, 216, 0.6), 0 2px 10px rgba(0, 0, 0, 0.7);
}

.pillar-interactive-card:hover .pillar-img-wrapper {
  background: radial-gradient(circle, rgba(0, 180, 216, 0.18) 0%, rgba(2, 6, 23, 0) 70%);
}

.pillar-interactive-card:hover .pillar-img {
  transform: scale(1.06);
  filter: drop-shadow(0 15px 25px rgba(0, 180, 216, 0.45));
}

/* Active touch state */
.pillar-interactive-card:active,
.pillar-interactive-card.active {
  transform: translateY(-4px) scale(0.98);
}

.pillar-interactive-card:active .pillar-img,
.pillar-interactive-card.active .pillar-img {
  transform: scale(1.02);
  filter: drop-shadow(0 10px 20px rgba(0, 180, 216, 0.55));
}

/* Bottom Footer Capsule styled exactly like reference image */
.model-footer-capsule {
  width: 100%;
  max-width: 760px;
  margin: 15px auto 0 auto;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(2, 6, 23, 0.95) 100%);
  border: 2px solid rgba(0, 180, 216, 0.85); /* glowing cyan border */
  border-radius: 50px;
  padding: 14px 28px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.4), inset 0 0 15px rgba(0, 180, 216, 0.2);
}

.footer-capsule-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.footer-line-1 {
  font-family: var(--font-body);
  font-size: 1.75rem; /* larger and blue */
  font-weight: 800;
  color: #00b4d8;
  letter-spacing: 0.2px;
  text-shadow: 0 0 15px rgba(0, 180, 216, 0.4);
}

.footer-line-2 {
  font-family: var(--font-title);
  font-size: 1.55rem; /* slightly smaller than line 1 for visual hierarchy */
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

@media (max-width: 1024px) {
  .model-title {
    font-size: 1.6rem;
  }
  .model-subtitle {
    font-size: 1.5rem;
  }
  .pillar-label {
    font-size: 0.95rem;
  }
  .pillar-img-wrapper {
    width: 140px;
    height: 140px;
  }
  .footer-line-1 {
    font-size: 1.15rem;
  }
  .footer-line-2 {
    font-size: 1.2rem;
  }
  .model-footer-capsule {
    padding: 10px 20px;
    margin: 10px auto 0 auto;
  }
}

@media (max-width: 768px) {
  .model-pillars-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 15px auto;
  }
  .pillar-interactive-card {
    flex: 0 0 45%;
    gap: 8px;
  }
  .pillar-img-wrapper {
    width: 110px;
    height: 110px;
  }
  .pillar-label {
    font-size: 0.85rem;
  }
  .model-title {
    font-size: 1.3rem;
  }
  .model-subtitle {
    font-size: 1.2rem;
  }
}

/* Diapositiva 4: La Persona Clave (Rediseño conforme a Imagen) */
#slide-hombre-clave {
  background-color: #02050c;
  padding: 40px 60px 45px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.strategy-header {
  text-align: center;
  margin-bottom: 0;
}

.strategy-title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-align: center;
}

.strategy-subtitle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 40px 0 20px 0; /* exactly 40px above */
}

.strategy-subtitle {
  font-family: var(--font-title);
  font-size: 1.725rem; /* 1.5 times the previous 1.15rem */
  font-weight: 700;
  color: #00b4d8;
  letter-spacing: 4px;
  text-shadow: 0 0 10px rgba(0, 180, 216, 0.4);
  margin: 0;
}

.glow-line-left, .glow-line-right {
  height: 1.5px;
  width: 80px;
}

.glow-line-left {
  background: linear-gradient(to right, rgba(0, 180, 216, 0) 0%, rgba(0, 180, 216, 0.8) 100%);
}

.glow-line-right {
  background: linear-gradient(to left, rgba(0, 180, 216, 0) 0%, rgba(0, 180, 216, 0.8) 100%);
}

.strategy-visual-container {
  position: relative;
  width: 95%; /* Covers the same horizontal span as Slide 3 */
  max-width: 1100px; /* Double width from 580px */
  margin: 20px auto 15px auto; /* exactly 20px + 20px = 40px below subtitle */
  display: flex;
  justify-content: center;
  align-items: center;
}

.strategy-central-image {
  width: 100%;
  height: auto;
  max-height: 440px;
  display: block;
  object-fit: contain;
  animation: strategyFloatGlow 6s ease-in-out infinite;
}

@keyframes strategyFloatGlow {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 25px rgba(0, 180, 216, 0.15));
  }
  50% {
    transform: translateY(-6px) scale(1.01);
    filter: drop-shadow(0 0 40px rgba(0, 180, 216, 0.35));
  }
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 25px rgba(0, 180, 216, 0.15));
  }
}

.strategy-footer-capsule {
  width: 100%;
  max-width: 760px;
  margin: 15px auto 0 auto;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(2, 6, 23, 0.95) 100%);
  border: 2px solid rgba(0, 180, 216, 0.85);
  border-radius: 50px;
  padding: 14px 28px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.4), inset 0 0 15px rgba(0, 180, 216, 0.2);
}

.footer-capsule-content-hc {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-hc-text {
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.highlight-cyan {
  color: #00b4d8;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

@media (max-width: 1024px) {
  .strategy-title {
    font-size: 1.8rem;
    white-space: normal;
  }
  .strategy-subtitle {
    font-size: 1.25rem;
  }
  .footer-hc-text {
    font-size: 1.15rem;
  }
  .strategy-footer-capsule {
    padding: 10px 20px;
    margin: 10px auto 0 auto;
  }
}

@media (max-width: 768px) {
  .strategy-title {
    font-size: 1.4rem;
  }
  .strategy-subtitle {
    font-size: 1rem;
  }
  .footer-hc-text {
    font-size: 0.95rem;
  }
  .glow-line-left, .glow-line-right {
    width: 40px;
  }
}

/* Diapositiva 5: El Problema (Rediseño conforme a Imagen) */
#slide-blindaje {
  background-color: #02050c;
  padding: 40px 60px 45px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.problem-header {
  text-align: center;
  margin-bottom: 15px;
}

.problem-title {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.highlight-cyan-txt {
  color: #00b4d8;
  text-shadow: 0 0 15px rgba(0, 180, 216, 0.45);
}

.problem-visual-container {
  position: relative;
  width: 95%; /* Covers the same horizontal span as Slide 4 */
  max-width: 1100px; /* Matches Slide 4 */
  margin: 20px auto 15px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.problem-central-image {
  width: 100%;
  height: auto;
  max-height: 440px; /* Matches Slide 4 */
  display: block;
  object-fit: contain;
  animation: problemFloatGlow 6s ease-in-out infinite;
  filter: drop-shadow(0 0 25px rgba(0, 180, 216, 0.15));
}

@keyframes problemFloatGlow {
  0% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 25px rgba(0, 180, 216, 0.15));
  }
  50% {
    transform: translateY(-6px) scale(1.01);
    filter: drop-shadow(0 0 40px rgba(0, 180, 216, 0.35));
  }
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 25px rgba(0, 180, 216, 0.15));
  }
}

.problem-footer-capsule {
  width: 100%;
  max-width: 760px;
  margin: 15px auto 0 auto;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(2, 6, 23, 0.95) 100%);
  border: 2px solid rgba(0, 180, 216, 0.85);
  border-radius: 50px;
  padding: 14px 28px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.4), inset 0 0 15px rgba(0, 180, 216, 0.2);
}

.problem-capsule-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.problem-line-1 {
  font-family: var(--font-body);
  font-size: 1.75rem; /* larger and blue/cyan */
  font-weight: 800;
  color: #00b4d8;
  letter-spacing: 0.2px;
  text-shadow: 0 0 15px rgba(0, 180, 216, 0.4);
}

.problem-line-2 {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

@media (max-width: 1024px) {
  .problem-title {
    font-size: 1.8rem;
  }
  .problem-line-1 {
    font-size: 1.15rem;
  }
  .problem-line-2 {
    font-size: 1.2rem;
  }
  .problem-footer-capsule {
    padding: 10px 20px;
    margin: 10px auto 0 auto;
  }
}

@media (max-width: 768px) {
  .problem-title {
    font-size: 1.4rem;
  }
  .problem-line-1 {
    font-size: 0.95rem;
  }
  .problem-line-2 {
    font-size: 1.0rem;
  }
}

/* Diapositiva 6: Beneficios (Rediseño conforme a Imagen) */
#slide-beneficios {
  background-color: #02050c;
  padding: 40px 60px 45px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
}

.benefits-header {
  text-align: center;
  margin-bottom: 15px;
}

.benefits-title {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

/* Diseño interactivo en columnas HTML/CSS */
.benefits-interactive-container {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 10px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.benefits-neon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.benefits-interactive-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 2;
  gap: 20px;
}

.left-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 38%;
  z-index: 10;
}

.right-side-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 38%;
  z-index: 10;
}

/* Círculos de Cabecera (Escudo / Gráfica) */
.column-header-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid rgba(0, 180, 216, 0.65);
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.35), inset 0 0 10px rgba(0, 180, 216, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 12px auto;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  position: relative;
  z-index: 12;
  cursor: pointer;
}

.column-header-circle:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.55), inset 0 0 15px rgba(0, 180, 216, 0.25);
  border-color: #00b4d8;
}

.header-vector-icon {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 8px rgba(0, 180, 216, 0.45));
}

.benefits-center-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 24%;
  position: relative;
  height: 320px;
}

/* Avatar central de Hombre Clave con Imagen */
.center-avatar-glow-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 15;
  cursor: pointer;
}

.avatar-ring-outer {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, rgba(0, 180, 216, 0.02) 70%, rgba(2, 6, 23, 0.95) 100%);
  border: 2px solid rgba(0, 180, 216, 0.7);
  box-shadow: 0 0 25px rgba(0, 180, 216, 0.35), inset 0 0 15px rgba(0, 180, 216, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  overflow: hidden; /* Mask the image to form a perfect circle */
}

.center-avatar-glow-box:hover .avatar-ring-outer {
  transform: scale(1.06);
  box-shadow: 0 0 35px rgba(0, 180, 216, 0.55), inset 0 0 20px rgba(0, 180, 216, 0.3);
  border-color: #00b4d8;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.avatar-capsule-lbl {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.8px;
  background: rgba(15, 23, 42, 0.9);
  border: 1.5px solid rgba(0, 180, 216, 0.65);
  border-radius: 4px; /* Rectangular shape matching the user's reference */
  padding: 5px 15px;
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.25);
}

/* Títulos de columnas */
.column-status-title {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-align: center;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(0, 180, 216, 0.25);
  width: 100%;
}

.status-occur {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

.status-no-occur {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

/* Tarjetas de beneficios */
.benefit-glass-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.4) 0%, rgba(2, 6, 23, 0.7) 100%);
  border: 1.5px solid rgba(0, 180, 216, 0.2);
  border-radius: 16px;
  padding: 12px 18px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(2, 6, 23, 0.3);
  cursor: pointer;
}

.benefit-glass-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 180, 216, 0.85);
  box-shadow: 0 8px 25px rgba(0, 180, 216, 0.35);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(2, 6, 23, 0.8) 100%);
}

.benefit-glass-item:hover .benefit-item-lbl {
  color: #00b4d8;
  text-shadow: 0 0 8px rgba(0, 180, 216, 0.3);
}

.benefit-glass-item:hover .benefit-item-icon-circle {
  transform: scale(1.1);
  background: rgba(0, 180, 216, 0.2);
  border-color: #00b4d8;
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.5);
}

.benefit-item-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 180, 216, 0.35);
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.vector-icon {
  width: 22px;
  height: 22px;
}

.benefit-item-lbl {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  text-align: left;
}

/* Cápsula de ahorro de ISR y PTU */
.benefits-middle-pill-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(2, 6, 23, 0.95) 100%);
  border: 2px solid rgba(0, 180, 216, 0.85);
  border-radius: 50px;
  padding: 12px 36px;
  margin: 15px auto 10px auto;
  width: fit-content;
  box-shadow: 0 0 25px rgba(0, 180, 216, 0.35), inset 0 0 10px rgba(0, 180, 216, 0.15);
  z-index: 5;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.benefits-middle-pill-box:hover {
  transform: scale(1.02);
  box-shadow: 0 0 35px rgba(0, 180, 216, 0.5), inset 0 0 15px rgba(0, 180, 216, 0.2);
}

.benefits-bank-circle-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: -15px; /* Pull bottom capsule closer to the bank circle to match SVG coordinates */
  position: relative;
  z-index: 10;
}

.circle-bank {
  margin: 0 !important;
}

.pill-shield-glow-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(0, 180, 216, 0.15);
  border-radius: 50%;
  border: 1.5px solid rgba(0, 180, 216, 0.5);
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

.pill-shield-svg {
  width: 22px;
  height: 22px;
}

.pill-title-desc-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pill-title-txt {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.pill-subtitle-txt {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: #00b4d8;
  letter-spacing: 0.5px;
}

.benefits-footer-capsule {
  width: 100%;
  max-width: 760px;
  margin: 15px auto 0 auto;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(2, 6, 23, 0.95) 100%);
  border: 2px solid rgba(0, 180, 216, 0.85);
  border-radius: 50px;
  padding: 14px 28px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 180, 216, 0.4), inset 0 0 15px rgba(0, 180, 216, 0.2);
}

/* Responsividad */
@media (max-width: 1024px) {
  .benefits-title {
    font-size: 1.8rem;
  }
  .benefits-interactive-layout {
    gap: 15px;
    max-width: 95%;
  }
  .left-side-col, .right-side-col {
    width: 42%;
  }
  .benefits-center-col {
    width: 16%;
  }
  .column-header-circle {
    width: 68px;
    height: 68px;
    margin-bottom: 8px;
  }
  .header-vector-icon {
    width: 32px;
    height: 32px;
  }
  .avatar-ring-outer {
    width: 130px;
    height: 130px;
  }
  .avatar-capsule-lbl {
    font-size: 0.9rem;
    padding: 4px 10px;
  }
  .benefit-item-lbl {
    font-size: 0.95rem;
  }
  .column-status-title {
    font-size: 1.05rem;
  }
  .benefits-footer-capsule {
    padding: 10px 20px;
    margin: 10px auto 0 auto;
  }
}

@media (max-width: 768px) {
  .benefits-title {
    font-size: 1.4rem;
  }
  .benefits-interactive-layout {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  .left-side-col, .right-side-col {
    width: 90%;
  }
  .benefits-center-col {
    width: 100%;
    height: auto;
    margin: 10px 0;
  }
  .column-header-circle {
    width: 68px;
    height: 68px;
    margin-bottom: 8px;
  }
  .benefits-neon-overlay {
    display: none; /* Ocultar conexiones en diseño colapsado vertical */
  }
  .avatar-ring-outer {
    width: 110px;
    height: 110px;
  }
}

/* ==========================================
   DIAPOSITIVA 12: ESTRATEGIA DE SALIDA
   ========================================== */
.salida-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  gap: 15px;
}

.salida-title {
  text-align: center;
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
}

.salida-title span.highlight-cyan {
  color: #00b4d8;
  text-shadow: 0 0 15px rgba(0, 180, 216, 0.4);
}

/* 1. Flujo superior de 3 pasos */
.salida-flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-top: 5px;
}

.salida-flow-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.salida-flow-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(0, 180, 216, 0.65);
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.3), inset 0 0 8px rgba(0, 180, 216, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.salida-flow-circle.green {
  border-color: #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3), inset 0 0 8px rgba(34, 197, 94, 0.15);
}

.salida-flow-circle:hover {
  transform: scale(1.05);
}

.salida-flow-circle svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 0 6px rgba(0, 180, 216, 0.45));
}

.salida-flow-circle.green svg {
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.45));
}

.salida-flow-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.salida-flow-text.green {
  color: #22c55e;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

.salida-flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

.salida-flow-arrow svg {
  width: 32px;
  height: 12px;
  stroke: #00b4d8;
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(0, 180, 216, 0.5));
}

/* 2. Panel visual central con imagen de fondo */
.salida-visual-panel {
  position: relative;
  width: 100%;
  height: 310px;
  border-radius: 8px;
  background-image: url('salida_background.png');
  background-size: 800px 800px;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000000;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.7), inset 0 0 40px rgba(0, 180, 216, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.salida-visual-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 30%, rgba(2, 6, 23, 0.4) 100%);
  pointer-events: none;
}

/* 3. Barra horizontal de 4 columnas */
.salida-columns-bar {
  display: flex;
  width: 100%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 180, 216, 0.25);
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.1);
  padding: 12px 0;
  margin-top: 5px;
}

.salida-column-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  transition: transform 0.3s ease;
}

.salida-column-item:hover {
  transform: translateY(-2px);
}

.salida-column-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1.5px;
  background: linear-gradient(to bottom, transparent, rgba(0, 180, 216, 0.35), transparent);
}

.salida-column-icon {
  width: 32px;
  height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #00b4d8;
  filter: drop-shadow(0 0 6px rgba(0, 180, 216, 0.45));
}

.salida-column-icon svg {
  width: 24px;
  height: 24px;
}

.salida-column-text {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.8px;
  text-align: center;
}

/* 4. Cápsula de pie de página */
.salida-bottom-capsule {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 12px 30px;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(0, 180, 216, 0.65);
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.25);
  margin-top: 5px;
  box-sizing: border-box;
}

.salida-capsule-text {
  font-family: var(--font-text);
  font-size: 1.1rem;
  font-weight: 500;
  text-align: center;
  color: #ffffff;
  line-height: 1.4;
}

.salida-capsule-text .color-blue {
  color: #00b4d8;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 180, 216, 0.2);
}

.salida-capsule-text .color-green {
  color: #22c55e;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
}

/* Responsividad para Slide 12 */
@media (max-width: 992px) {
  .salida-title {
    font-size: 2rem;
  }
  .salida-flow-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .salida-flow-arrow svg {
    width: 24px;
  }
  .salida-visual-panel {
    height: 240px;
    background-size: 600px 600px;
  }
  .salida-column-text {
    font-size: 0.75rem;
  }
  .salida-capsule-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .salida-title {
    font-size: 1.6rem;
  }
  .salida-flow-row {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .salida-flow-arrow {
    transform: rotate(90deg);
    margin: 2px 0;
  }
  .salida-visual-panel {
    height: 180px;
    background-size: 450px 450px;
  }
  .salida-columns-bar {
    flex-direction: column;
    gap: 15px;
    padding: 15px 0;
  }
  .salida-column-item::after {
    display: none;
  }
  .salida-bottom-capsule {
    border-radius: 12px;
    padding: 12px 20px;
  }
}

/* ==========================================
   DIAPOSITIVA 13: MARCO LEGAL
   ========================================== */
.marco-legal-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  gap: 15px;
}

.marco-legal-title {
  text-align: center;
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.marco-legal-title span.highlight-cyan {
  color: #00b4d8;
  text-shadow: 0 0 15px rgba(0, 180, 216, 0.4);
}

.marco-legal-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
  position: relative;
  margin-top: 10px;
}

/* Columnas de Pilares */
.marco-legal-column {
  width: 33%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Tarjeta del pilar */
.marco-legal-card {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease;
}

.marco-legal-card:hover {
  transform: translateY(-2px);
}

.marco-legal-card.card-left {
  flex-direction: row-reverse;
}

.marco-legal-card.card-left .marco-legal-info {
  text-align: right;
  align-items: flex-end;
}

.marco-legal-card.card-left .marco-legal-bullet {
  padding-left: 0;
  padding-right: 12px;
}

.marco-legal-card.card-left .marco-legal-bullet::before {
  left: auto;
  right: 0;
}

.marco-legal-card.card-left .pillar-connector-line {
  left: auto;
  right: 16px;
  background: linear-gradient(to left, rgba(0, 180, 216, 0.8), rgba(0, 180, 216, 0.2));
}

.marco-legal-card.card-left .pillar-connector-line::after {
  right: auto;
  left: 0;
}

/* Representación CSS de una columna arquitectónica (Pilar) */
.pillar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  position: relative;
  flex-shrink: 0;
}

.pillar-circle-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid rgba(0, 180, 216, 0.85);
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.45), inset 0 0 8px rgba(0, 180, 216, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 5;
  margin-bottom: -4px;
}

.pillar-circle-icon.green {
  border-color: #22c55e;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.45), inset 0 0 8px rgba(34, 197, 94, 0.25);
}

.pillar-circle-icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

/* Las partes del pilar */
.pillar-capital {
  width: 44px;
  height: 8px;
  background: linear-gradient(to right, #0077b6, #00b4d8, #0077b6);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.4);
}

.pillar-shaft {
  width: 32px;
  height: 60px;
  background: linear-gradient(to right, rgba(0, 119, 182, 0.8), rgba(0, 180, 216, 0.3), rgba(0, 119, 182, 0.8));
  border-left: 1.5px solid rgba(0, 180, 216, 0.65);
  border-right: 1.5px solid rgba(0, 180, 216, 0.65);
  box-shadow: 0 0 10px rgba(0, 180, 216, 0.25);
  position: relative;
}

.pillar-shaft::before {
  content: '';
  position: absolute;
  left: 30%;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(0, 180, 216, 0.4);
}

.pillar-shaft::after {
  content: '';
  position: absolute;
  right: 30%;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(0, 180, 216, 0.4);
}

.pillar-connector-line {
  position: absolute;
  top: 50%;
  left: 16px; /* start from center of the 32px shaft */
  width: 45px;
  height: 1px;
  background: linear-gradient(to right, rgba(0, 180, 216, 0.8), rgba(0, 180, 216, 0.2));
  z-index: 1;
  pointer-events: none;
}

.pillar-connector-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2.5px;
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 180, 216, 1), 0 0 4px #ffffff;
}

.pillar-base {
  width: 52px;
  height: 10px;
  background: linear-gradient(to right, #0077b6, #00b4d8, #0077b6);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.4);
}

/* Textos del Pilar */
.marco-legal-info {
  display: flex;
  flex-direction: column;
  font-family: var(--font-text);
  color: #ffffff;
}

.marco-legal-label {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 700;
  color: #00b4d8;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.marco-legal-header {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 6px;
}

.marco-legal-bullet {
  font-size: 0.85rem;
  color: #ffffff;
  line-height: 1.4;
  position: relative;
  padding-left: 12px;
}

.marco-legal-bullet::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #00b4d8;
}

.marco-legal-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Columna central */
.marco-legal-center {
  width: 34%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.marco-legal-visual-panel {
  position: relative;
  width: 100%;
  height: 400px;
  background-image: url('marco_legal_background.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  animation: marcoLegalFloatGlow 6s ease-in-out infinite;
}

@keyframes marcoLegalFloatGlow {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 8px rgba(0, 180, 216, 0.15));
  }
  50% {
    transform: translateY(-8px);
    filter: drop-shadow(0 5px 20px rgba(0, 180, 216, 0.35));
  }
}

.marco-legal-center-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 10px;
}

.marco-legal-center-lbl-1 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.8px;
}

.marco-legal-center-lbl-2 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: #00b4d8;
  letter-spacing: 0.8px;
  text-shadow: 0 0 10px rgba(0, 180, 216, 0.35);
}

/* Bottom Capsule */
.marco-legal-bottom-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 30px;
  background: rgba(15, 23, 42, 0.95);
  border: 1.5px solid rgba(0, 180, 216, 0.65);
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.25);
  margin-top: 5px;
  box-sizing: border-box;
  gap: 15px;
}

.marco-legal-capsule-icon {
  width: 26px;
  height: 26px;
  color: #00b4d8;
  filter: drop-shadow(0 0 6px rgba(0, 180, 216, 0.5));
  flex-shrink: 0;
}

.marco-legal-capsule-text {
  font-family: var(--font-text);
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  color: #ffffff;
  line-height: 1.35;
  flex-grow: 1;
}

.marco-legal-capsule-text .color-cyan {
  color: #00b4d8;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 180, 216, 0.2);
}

/* Responsividad para Slide 13 */
@media (max-width: 992px) {
  .marco-legal-title {
    font-size: 2rem;
  }
  .marco-legal-layout {
    flex-direction: column;
    gap: 30px;
  }
  .marco-legal-column {
    width: 90%;
    gap: 20px;
  }
  .marco-legal-center {
    width: 90%;
    order: -1; /* Poner el gráfico central arriba en pantallas medianas */
  }
  .marco-legal-visual-panel {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .marco-legal-title {
    font-size: 1.6rem;
  }
  .marco-legal-bottom-capsule {
    border-radius: 12px;
    padding: 12px 20px;
    flex-direction: column;
    align-items: center;
  }
  .marco-legal-capsule-icon {
    display: none; /* Ocular iconos laterales de la cápsula en pantallas pequeñas */
  }
  .marco-legal-capsule-text {
    font-size: 0.95rem;
  }
}

/* ==========================================
   DIAPOSITIVA 14: CONCLUSION ESTRATEGICA
   ========================================== */
#slide-conclusion {
  background-image: url('conclusion_background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 40px 75px 40px;
  overflow: hidden;
}

#slide-conclusion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45); /* dark overlay for crisp text readability */
  z-index: 1;
}

.conclusion-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  height: 100%;
  min-height: 520px;
  box-sizing: border-box;
}

.conclusion-question {
  font-family: var(--font-title);
  font-size: 3.5rem; /* Gigantic text */
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  color: #ffffff;
  margin: auto 0;
  letter-spacing: -1px;
  text-transform: uppercase;
  max-width: 900px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.conclusion-question .color-gray-dim {
  color: rgba(255, 255, 255, 0.35); /* Desaturated dim gray */
  text-shadow: none;
}

.conclusion-question .color-blue-glow {
  color: #00b4d8;
  text-shadow: 0 0 25px rgba(0, 180, 216, 0.75), 0 0 5px rgba(0, 180, 216, 0.35);
  font-weight: 950;
}

/* Bottom reflection phrase */
.conclusion-refl-capsule {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  padding: 12px 30px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  margin-top: auto;
  box-sizing: border-box;
}

.conclusion-refl-text {
  font-family: var(--font-text);
  font-size: 1.25rem;
  font-weight: 500;
  text-align: center;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: 0.2px;
}

/* Responsividad para Conclusión */
@media (max-width: 992px) {
  .conclusion-question {
    font-size: 2.6rem;
  }
  .conclusion-refl-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .conclusion-question {
    font-size: 2rem;
  }
  .conclusion-refl-capsule {
    border-radius: 12px;
    padding: 12px 20px;
  }
  .conclusion-refl-text {
    font-size: 0.95rem;
  }
}

/* ==========================================
   DIAPOSITIVA 15: CONCLUSION FINAL
   ========================================== */
#slide-conclusion-final {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
  padding: 0;
  overflow: hidden;
}

#slide-conclusion-final::before {
  display: none;
}

.conclusion-final-layout {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#slide-conclusion-final .conclusion-final-layout {
  background-image: url('conclusion_final_background.png');
}



@media (min-width: 769px) {
  .conclusion-final-layout {
    height: auto;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    max-height: 100%;
  }
}

.conclusion-final-layout span,
.conclusion-final-layout div {
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* BLOQUE SUPERIOR IZQUIERDO */
.block-top-left {
  position: absolute;
  top: 8%;
  left: 3%;
  width: 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.block-top-left .cost-title {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 800;
  color: #cbd5e1; /* silver gray */
  letter-spacing: 4px;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.95);
}

.block-top-left .cost-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: #94a3b8; /* medium gray */
  letter-spacing: 5px;
  margin-bottom: 20px;
}

.block-top-left .cost-desc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 3px;
  line-height: 1.4;
}

.block-top-left .cost-desc strong {
  font-family: var(--font-title);
  font-weight: 800;
  color: #ffffff;
}

/* BLOQUE SUPERIOR DERECHO */
.block-top-right {
  position: absolute;
  top: 8%;
  right: 3%;
  width: 42%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.block-top-right .strategy-title {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 800;
  color: #00b4d8; /* electric blue */
  letter-spacing: 4px;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(0, 180, 216, 0.6), 0 2px 8px rgba(0, 0, 0, 0.9);
}

.block-top-right .strategy-subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: #00b4d8;
  letter-spacing: 5px;
  margin-bottom: 20px;
}

.block-top-right .strategy-desc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 3px;
  line-height: 1.4;
}

.block-top-right .strategy-desc .patrimonio-text {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 800;
  color: #00b4d8;
  letter-spacing: 5px;
  line-height: 1.1;
  margin: 6px 0;
  text-shadow: 0 0 25px rgba(0, 180, 216, 0.8), 0 2px 10px rgba(0, 0, 0, 0.95);
}

/* ETIQUETA INFERIOR IZQUIERDA */
.label-bottom-left {
  position: absolute;
  bottom: 12%;
  left: 5%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #64748b; /* cold gray */
  letter-spacing: 4px;
  text-align: left;
}

/* ETIQUETA INFERIOR DERECHA */
.label-bottom-right {
  position: absolute;
  bottom: 12%;
  right: 5%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 4px;
  text-align: right;
}

.label-bottom-right .multiplica-text {
  color: #00b4d8;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

/* LÍNEA INFERIOR CENTRAL */
.line-bottom-center {
  position: absolute;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.line-bottom-center .phrase-container {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 3px;
  color: #ffffff;
  display: inline-block;
}

.line-bottom-center .phrase-accent {
  color: #00b4d8;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

.line-bottom-center .fine-blue-line {
  width: 280px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00b4d8, transparent);
  box-shadow: 0 0 8px #00b4d8;
  margin-top: 4px;
}

/* Responsive constraints to fit nicely on smaller heights/widths */
@media (max-width: 1200px) {
  .block-top-left .cost-title,
  .block-top-right .strategy-title {
    font-size: 1.6rem;
  }
  .block-top-left .cost-subtitle,
  .block-top-right .strategy-subtitle {
    font-size: 0.85rem;
  }
  .block-top-right .strategy-desc .patrimonio-text {
    font-size: 1.3rem;
  }
  .block-top-left .cost-desc,
  .block-top-right .strategy-desc {
    font-size: 0.7rem;
  }
}

@media (max-width: 992px) {
  .block-top-left, .block-top-right {
    top: 5%;
    width: 44%;
  }
  .block-top-left .cost-title,
  .block-top-right .strategy-title {
    font-size: 1.3rem;
  }
  .block-top-left .cost-subtitle,
  .block-top-right .strategy-subtitle {
    font-size: 0.7rem;
    margin-bottom: 12px;
  }
  .block-top-right .strategy-desc .patrimonio-text {
    font-size: 1.05rem;
  }
  .block-top-left .cost-desc,
  .block-top-right .strategy-desc {
    font-size: 0.6rem;
    gap: 4px;
  }
  .label-bottom-left, .label-bottom-right {
    bottom: 8%;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .conclusion-final-layout {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
  }
  .block-top-left {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    margin-bottom: 20px;
  }
  .block-top-right {
    position: relative;
    top: 0;
    right: 0;
    width: 100%;
  }
  .label-bottom-left {
    position: absolute;
    bottom: 12%;
    left: 10px;
  }
  .label-bottom-right {
    position: absolute;
    bottom: 12%;
    right: 10px;
  }
  .line-bottom-center {
    width: 100%;
    font-size: 0.8rem;
  }
}

/* ==========================================
   DIAPOSITIVA 14: CONCLUSIÓN FINAL
   ========================================== */
#slide-conclusion-final-v3 {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
  padding: 0;
  overflow: hidden;
}
#slide-conclusion-final-v3::before {
  display: none;
}

.conclusion-final-v3-layout {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background-image: url('conclusion_final_v13_background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 769px) {
  .conclusion-final-v3-layout {
    height: auto;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    max-height: 100%;
  }
}

/* ==========================================
   DIAPOSITIVA 14: CONCLUSION INTERACTIVA (CONCLU.PNG)
   ========================================== */
#slide-conclusion-v14 {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #0b132b; /* dark blue background matching other slides */
  padding: 20px 40px;
  box-sizing: border-box;
  overflow: hidden;
}

#slide-conclusion-v14::before {
  display: none;
}

.conclusion-v14-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.conclusion-v14-title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
}

.conclusion-v14-title .accent-cyan {
  color: #29b6f6;
  text-shadow: 0 0 15px rgba(41, 182, 246, 0.45);
}

.conclusion-v14-image-panel {
  position: relative;
  width: 100%;
  max-width: 1150px;
  aspect-ratio: 1750 / 899;
  border-radius: 18px;
  background-image: url('conclu.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(41, 182, 246, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.05);
  margin: 0 auto;
  container-type: inline-size; /* Enable container queries for fluid text sizing */
}

/* Base text styles inside the panel */
.conclusion-v14-text-block {
  position: absolute;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.98), 0 4px 20px rgba(0, 0, 0, 0.95);
  box-sizing: border-box;
  pointer-events: none;
}

/* Top Left: Costo */
.conclusion-v14-text-block.top-left {
  left: 5%;
  top: 4.5%;
  width: 42%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Top Right: Estrategia */
.conclusion-v14-text-block.top-right {
  right: 5%;
  top: 4.5%;
  width: 42%;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Bottom Left: Pérdida status */
.conclusion-v14-text-block.bottom-left {
  left: 7%;
  bottom: 8%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Bottom Right: Ganancia status */
.conclusion-v14-text-block.bottom-right {
  right: 7%;
  bottom: 8%;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Fluid Typography using container query width cqw */
.conclusion-v14-text-block .block-tag-gray {
  font-family: var(--font-body);
  font-size: 1.3cqw; /* ~15px at 1150px panel width */
  color: #7f8c8d; /* muted gray */
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 2px;
}

.conclusion-v14-text-block .block-main-text {
  font-family: var(--font-title);
  font-size: 1.9cqw; /* ~22px at 1150px panel width */
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.25;
}

.conclusion-v14-text-block .block-main-text strong {
  font-weight: 900;
  color: #ffffff;
}

.conclusion-v14-text-block .block-main-text .accent-cyan {
  color: #29b6f6;
  text-shadow: 0 0 15px rgba(41, 182, 246, 0.5);
}

.conclusion-v14-text-block .block-status-text {
  font-family: var(--font-title);
  font-size: 1.85cqw; /* ~21px at 1150px panel width */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  opacity: 0; /* Start hidden for animation */
}

.conclusion-v14-text-block .block-status-text.gray-bold {
  color: #7f8c8d; /* matching gray */
}

.conclusion-v14-text-block .block-status-text.white-bold {
  color: #ffffff;
}

.conclusion-v14-text-block .block-status-text.cyan-bold {
  color: #29b6f6;
  text-shadow: 0 0 15px rgba(41, 182, 246, 0.45);
}

/* Bottom capsule bar below image */
.conclusion-v14-bottom-capsule {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1150px;
  background: rgba(15, 23, 42, 0.5);
  border: 1.5px solid rgba(41, 182, 246, 0.35);
  box-shadow: 0 0 20px rgba(41, 182, 246, 0.15);
  border-radius: 50px;
  padding: 14px 20px;
  margin: 25px auto 0 auto;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; /* Start hidden for animation */
}

.conclusion-v14-bottom-capsule span {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}

.conclusion-v14-bottom-capsule .accent-cyan {
  color: #29b6f6;
  text-shadow: 0 0 15px rgba(41, 182, 246, 0.45);
}

/* Slide 14 Bottom Animations */
@keyframes conclusionFadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes capsulePulseGlow {
  0% {
    border-color: rgba(41, 182, 246, 0.35);
    box-shadow: 0 0 20px rgba(41, 182, 246, 0.15);
  }
  50% {
    border-color: rgba(41, 182, 246, 0.8);
    box-shadow: 0 0 30px rgba(41, 182, 246, 0.45);
  }
  100% {
    border-color: rgba(41, 182, 246, 0.35);
    box-shadow: 0 0 20px rgba(41, 182, 246, 0.15);
  }
}

/* Trigger delayed entry when slide becomes active */
#slide-conclusion-v14.active .conclusion-v14-text-block.bottom-left .block-status-text:nth-child(1) {
  animation: conclusionFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}
#slide-conclusion-v14.active .conclusion-v14-text-block.bottom-left .block-status-text:nth-child(2) {
  animation: conclusionFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
}
#slide-conclusion-v14.active .conclusion-v14-text-block.bottom-left .block-status-text:nth-child(3) {
  animation: conclusionFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.8s;
}

#slide-conclusion-v14.active .conclusion-v14-text-block.bottom-right .block-status-text:nth-child(1) {
  animation: conclusionFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.2s;
}
#slide-conclusion-v14.active .conclusion-v14-text-block.bottom-right .block-status-text:nth-child(2) {
  animation: conclusionFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.5s;
}
#slide-conclusion-v14.active .conclusion-v14-text-block.bottom-right .block-status-text:nth-child(3) {
  animation: conclusionFadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.8s;
}

#slide-conclusion-v14.active .conclusion-v14-bottom-capsule {
  animation: conclusionFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards,
             capsulePulseGlow 3s ease-in-out infinite;
  animation-delay: 1.1s, 1.9s;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  #slide-conclusion-v14 {
    padding: 15px;
    height: auto;
    overflow-y: auto;
  }
  
  .conclusion-v14-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .conclusion-v14-bottom-capsule {
    padding: 10px 15px;
    margin-top: 15px;
  }
  
  .conclusion-v14-bottom-capsule span {
    font-size: 0.85rem;
  }
}


