/* ==========================================================================
   INFOGRAFÍA 16:9 MODO LIGHT - LAS TIC EN LA EDUCACIÓN
   Estilo: Infografía educativa para presentaciones (Tipografía Grande y Clara)
   ========================================================================== */

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

:root {
  /* Paleta Principal */
  --color-bg: #f0f4ff;
  --color-surface: #ffffff;
  --color-surface-2: #f8faff;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-border: #cbd5e1;
  
  /* Colores de Sección */
  --cyan:    #0284c7;
  --cyan-bg: #e0f2fe;
  --cyan-border: #bae6fd;
  
  --indigo:    #4f46e5;
  --indigo-bg: #eef2ff;
  --indigo-border: #c7d2fe;
  
  --purple:    #9333ea;
  --purple-bg: #faf5ff;
  --purple-border: #e9d5ff;
  
  --emerald:    #059669;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  
  --amber:    #d97706;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  
  --rose:    #e11d48;
  --rose-bg: #fff1f2;
  --rose-border: #fecdd3;
  
  --blue:    #2563eb;
  --blue-bg: #eff6ff;
  --blue-border: #bfdbfe;
  
  --green:    #16a34a;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  
  /* Números de Sección */
  --num-1: #4f46e5;
  --num-2: #0284c7;
  --num-3: #d97706;
  --num-4: #059669;
  --num-5: #9333ea;
  --num-6: #e11d48;
}

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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #d8e5f8;
  color: var(--color-text);
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-title {
  font-family: 'Outfit', sans-serif;
}

/* ==========================================================================
   CANVAS CONTAINER 16:9 AUTO-SCALING ENGINE
   ========================================================================== */
#viewport-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #d8e5f8 0%, #e2ecfc 50%, #cfdef3 100%);
}

#canvas-16-9 {
  width: 1920px;
  height: 1080px;
  min-width: 1920px;
  min-height: 1080px;
  max-width: 1920px;
  max-height: 1080px;
  position: relative;
  transform-origin: center center;
  box-shadow: 0 35px 90px -15px rgba(30, 64, 175, 0.35), 0 0 0 1px rgba(255,255,255,0.9);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
}

/* ==========================================================================
   HEADER BANNER
   ========================================================================== */
#infographic-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 40%, #0284c7 100%);
  color: white;
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  flex-shrink: 0;
}

#infographic-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ==========================================================================
   SECTION CARDS
   ========================================================================== */
.info-card {
  background: var(--color-surface);
  border-radius: 18px;
  border: 2px solid var(--color-border);
  padding: 18px;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.info-card:hover {
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.card-cyan    { border-top: 5px solid var(--cyan);    }
.card-indigo  { border-top: 5px solid var(--indigo);  }
.card-purple  { border-top: 5px solid var(--purple);  }
.card-amber   { border-top: 5px solid var(--amber);   }
.card-emerald { border-top: 5px solid var(--emerald); }
.card-rose    { border-top: 5px solid var(--rose);    }
.card-blue    { border-top: 5px solid var(--blue);    }
.card-green   { border-top: 5px solid var(--green);   }

/* ==========================================================================
   BADGES DE NÚMERO DE SECCIÓN (MÁS GRANDES Y LEGIBLES)
   ========================================================================== */
.section-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 19px;
  color: white;
  flex-shrink: 0;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.num-1 { background: var(--num-1); }
.num-2 { background: var(--num-2); }
.num-3 { background: var(--num-3); }
.num-4 { background: var(--num-4); }
.num-5 { background: var(--num-5); }
.num-6 { background: var(--num-6); }

/* ==========================================================================
   PILL / BADGE / CHIP COMPONENTS
   ========================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.chip-cyan    { background: var(--cyan-bg);    color: #0369a1; border: 1.5px solid var(--cyan-border);    }
.chip-indigo  { background: var(--indigo-bg);  color: #4338ca; border: 1.5px solid var(--indigo-border);  }
.chip-purple  { background: var(--purple-bg);  color: #7c3aed; border: 1.5px solid var(--purple-border);  }
.chip-amber   { background: var(--amber-bg);   color: #b45309; border: 1.5px solid var(--amber-border);   }
.chip-emerald { background: var(--emerald-bg); color: #047857; border: 1.5px solid var(--emerald-border); }
.chip-rose    { background: var(--rose-bg);    color: #be123c; border: 1.5px solid var(--rose-border);    }

/* ==========================================================================
   FUNCTION CELLS (MÁS GRANDES Y ESPACIOSAS)
   ========================================================================== */
.func-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 10px;
  border-radius: 16px;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: var(--color-surface);
  gap: 8px;
  position: relative;
}

.func-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.func-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   CONTROLES HEADER
   ========================================================================== */
.ctrl-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Nunito', sans-serif;
}

.ctrl-btn:hover {
  background: rgba(255,255,255,0.32);
}

/* ==========================================================================
   MODAL OVERLAY
   ========================================================================== */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

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

.modal-content {
  background: var(--color-surface);
  border-radius: 22px;
  border: 2px solid var(--color-border);
  box-shadow: 0 35px 90px rgba(0,0,0,0.25);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  max-height: 88%;
}

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

/* ==========================================================================
   ROLE TAB SWITCHER
   ========================================================================== */
.role-tab {
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-family: 'Nunito', sans-serif;
}

.role-tab.active {
  background: var(--indigo);
  color: white;
  border-color: var(--indigo);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

/* ==========================================================================
   FLOW STEP CHIPS
   ========================================================================== */
.flow-step {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  background: var(--color-surface-2);
  border: 1.5px solid var(--color-border);
}

/* ==========================================================================
   FOOTER BANNER
   ========================================================================== */
#infographic-footer {
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 60%, #0284c7 100%);
  color: white;
  padding: 14px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   CHECKLIST
   ========================================================================== */
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text);
  padding: 3px 0;
  line-height: 1.35;
}

.checklist li::before {
  content: '✓';
  font-weight: 900;
  font-size: 15px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 0.5px;
}
