/* ==========================================================================
   Presentation Core Design System & Stylesheet
   ========================================================================== */

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

:root {
  /* Color Palette - Deep Royal Navy Theme (#0F2862) */
  --bg-dark: #0F2862;
  --bg-card: rgba(255, 255, 255, 0.08);
  --bg-card-hover: rgba(255, 255, 255, 0.14);
  --border-color: rgba(255, 255, 255, 0.15);
  --border-highlight: rgba(56, 189, 248, 0.5);
  
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --accent-primary: #38bdf8; /* Bright Cyan */
  --accent-secondary: #f43f5e; /* Rose */
  --accent-cyan: #38bdf8; /* Sky Cyan / Blue */
  --accent-glow: rgba(56, 189, 248, 0.3);
  
  --gradient-title: linear-gradient(135deg, #ffffff 0%, #f1f5f9 60%, #cbd5e1 100%);
  --gradient-accent: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --gradient-cyan: linear-gradient(135deg, #38bdf8 0%, #3b82f6 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(15, 40, 98, 0.6) 0%, rgba(15, 40, 98, 0.9) 100%);
  
  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout */
  --slide-max-width: 1280px;
  --transition-speed: 0.5s;
  --transition-curve: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0F2862 !important;
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Presentation Container
   ========================================================================== */

.presentation-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: #0F2862 !important;
}

/* Progress Bar */
.progress-bar-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 100;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-cyan);
  box-shadow: 0 0 12px var(--accent-glow);
  transition: width 0.3s ease;
}

/* Presentation Top-Right Logo */
.presentation-logo {
  position: absolute;
  top: 1.25rem;
  right: 2rem;
  left: auto;
  z-index: 100;
  display: flex;
  align-items: center;
}

.presentation-logo img {
  height: 70px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
  transition: transform 0.3s ease;
}

@media (max-width: 768px) {
  .presentation-logo {
    top: 1rem;
    right: 1.25rem;
    left: auto;
  }
  
  .presentation-logo img {
    height: 55px;
  }
}

/* Slides Wrapper */
.slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #0F2862 !important;
}

/* Individual Slide */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  background-color: #0F2862 !important;
  transform: scale(0.96) translateY(20px);
  transition: opacity var(--transition-speed) var(--transition-curve),
              transform var(--transition-speed) var(--transition-curve),
              visibility var(--transition-speed) var(--transition-curve);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6.25rem 5% 3rem 5%;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateY(0);
  z-index: 2;
}

.slide.prev-slide {
  transform: scale(0.96) translateY(-20px);
}

.slide.align-top {
  align-items: flex-start;
  padding-top: 6.25rem;
  padding-bottom: 2rem;
}

#slide-10,
.slide-charts {
  padding-top: 4.5rem !important;
  padding-bottom: 3.5rem !important;
}

#slide-10 .slide-content,
.slide-charts .slide-content {
  max-width: 1440px !important;
  width: 94% !important;
  gap: 0.75rem !important;
}

#slide-10 .slide-header,
.slide-charts .slide-header {
  margin-bottom: 0.25rem !important;
  padding-top: 0 !important;
}

#slide-10 .slide-title,
.slide-charts .slide-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem) !important;
  line-height: 1.1 !important;
  margin: 0 !important;
}

#slide-10 .stats-cards-container .stat-box,
.slide-charts .stats-cards-container .stat-box {
  padding: 0.65rem 0.85rem !important;
}

#slide-10 .stats-cards-container .stat-number,
.slide-charts .stats-cards-container .stat-number {
  font-size: 2rem !important;
  margin-bottom: 0.1rem !important;
}

#slide-10 .stats-cards-container .stat-label,
.slide-charts .stats-cards-container .stat-label {
  font-size: 0.8rem !important;
}

#slide-10 .chart-card,
.slide-charts .chart-card {
  padding: 0.85rem 1.25rem !important;
  gap: 0.5rem !important;
}

#slide-10 .chart-wrapper,
.slide-charts .chart-wrapper {
  height: clamp(200px, 34vh, 265px) !important;
}

.presentation-container:not(.overview-mode) #slide-3,
.presentation-container:not(.overview-mode) .slide-iframe {
  padding: 0;
  width: 100%;
  height: 100%;
}

.presentation-container:not(.overview-mode) #slide-3 .slide-content,
.presentation-container:not(.overview-mode) .slide-iframe .slide-content {
  width: 100%;
  max-width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
}

.powerbi-aspect-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.powerbi-aspect-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.slide-content {
  width: 100%;
  max-width: var(--slide-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ==========================================================================
   Diapositiva 1: Portada (Background Especial)
   ========================================================================== */

.slide-cover {
  background-image: linear-gradient(180deg, rgba(10, 12, 16, 0.55) 0%, rgba(10, 12, 16, 0.85) 100%), url('../img/background-01.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.slide-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.15), transparent 60%);
  pointer-events: none;
}

.slide-cover .cover-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  font-size: 0.875rem;
  font-weight: 600;
  color: #06b6d4;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  width: fit-content;
}

.slide-cover .cover-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #06b6d4;
  border-radius: 50%;
  box-shadow: 0 0 8px #06b6d4;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.slide-cover .cover-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

.slide-cover .cover-presenter {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.slide-cover .presenter-name {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #06b6d4;
  letter-spacing: -0.01em;
}

.slide-cover .presenter-title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.slide-cover .cover-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-cover .cover-footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.slide-cover .footer-line {
  font-size: 0.95rem;
  color: #94a3b8;
  line-height: 1.4;
}

.slide-cover .footer-line.highlight {
  font-weight: 700;
  color: #f8fafc;
  font-size: 1.05rem;
}

.slide-cover .footer-line.year {
  color: #06b6d4;
  font-weight: 600;
}

.slide-cover .start-hint {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #94a3b8;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.slide-cover .start-hint kbd {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.8rem;
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   General Slide Content Elements
   ========================================================================== */

.slide-header {
  margin-bottom: 1rem;
  text-align: left;
}

.section-tag {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: clamp(0.75rem, 1.1vw, 0.875rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
  display: block;
  text-align: left;
}

.slide-title,
h2.slide-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: left;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1.slide-title {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.slide-header h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: left;
  background: var(--gradient-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.875rem, 1.4vw, 1.1rem);
  font-weight: 500;
  color: var(--accent-cyan);
  margin-top: 0.25rem;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
}

/* Data Tables */
.table-container {
  width: 100%;
  max-height: calc(100vh - 250px);
  overflow-x: auto;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin-top: 0.75rem;
}

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

.custom-table th,
.custom-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.custom-table th {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.05);
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tbody tr {
  transition: background 0.2s ease;
}

.custom-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.06);
}

.custom-table td {
  color: var(--text-primary);
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-evidence {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.badge-evidence:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  width: 100%;
}

@media (max-width: 1024px) {
  .grid-5 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

.eje-card {
  padding: 0.75rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.eje-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 30px var(--accent-glow);
}

.eje-card img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  border-radius: 10px;
}

.eje-interactive {
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.eje-interactive:hover {
  transform: translateY(-6px);
}

.eje-interactive[data-eje="1"]:hover,
.eje-interactive[data-eje="1"].active {
  border-color: #8cc63f !important;
  box-shadow: 0 0 25px rgba(140, 198, 63, 0.45) !important;
}

.eje-interactive[data-eje="2"]:hover,
.eje-interactive[data-eje="2"].active {
  border-color: #ff6b00 !important;
  box-shadow: 0 0 25px rgba(255, 107, 0, 0.45) !important;
}

.eje-interactive[data-eje="3"]:hover,
.eje-interactive[data-eje="3"].active {
  border-color: #0284c7 !important;
  box-shadow: 0 0 25px rgba(2, 132, 199, 0.45) !important;
}

.eje-interactive[data-eje="4"]:hover,
.eje-interactive[data-eje="4"].active {
  border-color: #8b5cf6 !important;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.45) !important;
}

.eje-interactive[data-eje="5"]:hover,
.eje-interactive[data-eje="5"].active {
  border-color: #10b981 !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.45) !important;
}

/* Eje Modal Overlay with 50% Transparency & Squarish Modal Card */
.eje-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 30, 0.5); /* 50% transparency */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.eje-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.eje-modal-card {
  position: relative;
  width: 100%;
  max-width: 780px; /* Squarish ratio */
  background: rgba(15, 40, 98, 0.5); /* 50% transparency */
  border: 1px solid rgba(140, 198, 63, 0.6);
  border-radius: 24px;
  padding: 2.5rem 1.75rem 2rem 1.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(140, 198, 63, 0.3);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.eje-modal-overlay.active .eje-modal-card {
  transform: scale(1);
}

.eje-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 1.75rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 10;
}

.eje-modal-close:hover {
  background: rgba(244, 63, 94, 0.85);
  border-color: #f43f5e;
  transform: scale(1.1);
}

.eje-diagram-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.diagram-main-box {
  flex: 1.15;
  background-color: #8cc63f;
  color: #000000;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 1.1rem 1.25rem;
  border-radius: 4px;
  line-height: 1.4;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  min-height: 135px;
}

.diagram-bracket {
  width: 32px;
  height: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-bracket svg {
  width: 100%;
  height: 100%;
}

.diagram-sub-boxes {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.diagram-sub-box {
  background-color: #8cc63f;
  color: #000000;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  line-height: 1.35;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
  padding: 1.25rem 1.75rem !important;
  background: rgba(15, 40, 98, 0.7);
  border: 1px solid rgba(140, 198, 63, 0.4);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
  width: 100%;
}

.eje-diagram-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.diagram-main-box {
  flex: 1.2;
  background-color: #8cc63f;
  color: #000000;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  line-height: 1.45;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  min-height: 120px;
}

.diagram-bracket {
  width: 45px;
  height: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-bracket svg {
  width: 100%;
  height: 100%;
}

.diagram-sub-boxes {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.diagram-sub-box {
  background-color: #8cc63f;
  color: #000000;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  line-height: 1.35;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Stat Cards Container */
.stats-cards-container .stat-box {
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stats-cards-container .stat-icon {
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-cards-container .stat-icon svg {
  width: 22px;
  height: 22px;
}

.stats-cards-container .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
  line-height: 1.1;
}

.stats-cards-container .stat-label {
  font-size: 0.825rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.3;
}

/* Chart Cards */
.chart-card {
  padding: 1.25rem 1.5rem !important;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.65rem;
}

.chart-title-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-icon-header {
  color: var(--accent-cyan);
  width: 18px;
  height: 18px;
}

.chart-card-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chart-badge {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.chart-wrapper {
  position: relative;
  width: 100%;
  height: 270px;
}

/* Glassmorphism Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  box-shadow: 0 14px 40px rgba(79, 70, 229, 0.12);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

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

/* Stat Box */
.stat-box {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Quote Slide */
.quote-container {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: 2rem;
  font-style: italic;
}

.quote-author {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.quote-role {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* List with Icons */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   UI Navigation Controls
   ========================================================================== */

.presentation-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 100;
}

.nav-group {
  display: flex;
  align-items: center;
  background: rgba(15, 40, 98, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.35rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn-nav {
  background: transparent;
  border: none;
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  color: var(--accent-primary);
}

.btn-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.slide-counter {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0 0.8rem;
}

.current-index {
  color: var(--text-primary);
}

.tools-group {
  display: flex;
  gap: 0.5rem;
}

.btn-tool {
  background: rgba(15, 40, 98, 0.9);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.btn-tool:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

/* ==========================================================================
   Overview Mode (Vista en Cuadrícula)
   ========================================================================== */

.overview-mode {
  overflow: hidden !important;
}

.overview-mode .slides-wrapper {
  overflow-y: auto !important;
  height: 100vh !important;
  max-height: 100vh !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
  gap: 1rem !important;
  padding: 4.2rem 2rem 5.5rem 2rem !important;
  background: #06112d !important;
  box-sizing: border-box !important;
  counter-reset: slide-counter;
}

/* Custom Visible Scrollbar for Overview Grid */
.overview-mode .slides-wrapper::-webkit-scrollbar {
  width: 10px !important;
}

.overview-mode .slides-wrapper::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8) !important;
}

.overview-mode .slides-wrapper::-webkit-scrollbar-thumb {
  background: #38bdf8 !important;
  border-radius: 5px !important;
  border: 2px solid #06112d !important;
}

.overview-mode .slide {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  opacity: 0.88 !important;
  visibility: visible !important;
  transform: none !important;
  width: 100% !important;
  height: 135px !important;
  border-radius: 10px !important;
  border: 2px solid var(--border-color) !important;
  background: #0F2862 !important;
  cursor: pointer !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.overview-mode .slide::after {
  counter-increment: slide-counter;
  content: "Diapositiva " counter(slide-counter, decimal-leading-zero);
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 2px 7px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-cyan);
  z-index: 10;
  backdrop-filter: blur(4px);
  pointer-events: none;
  font-family: var(--font-heading);
}

.overview-mode .slide:hover {
  opacity: 1 !important;
  border-color: var(--accent-cyan) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4) !important;
}

.overview-mode .slide.active {
  opacity: 1 !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 18px var(--accent-glow) !important;
}

.overview-mode .slide .slide-content {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  transform: scale(0.18) !important;
  transform-origin: top left !important;
  width: 555.555% !important;
  height: 750px !important;
  max-width: none !important;
  padding: 2rem 2.5rem !important;
  margin: 0 !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .slide {
    padding: 2rem 1.5rem;
  }
  
  .presentation-controls {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    justify-content: space-between;
  }

  .start-hint {
    display: none;
  }
  
  .cover-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* Embedded Iframe Container */
.iframe-wrapper {
  width: 100%;
  height: calc(100vh - 160px);
  max-height: calc(100vh - 160px);
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  margin-top: 0.25rem;
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
