/* =========================================================
   SENAVERSO - INTEGRACIÓN DE CONTENIDOS DIGITALES
   ESTILOS ESPECÍFICOS Y UNIFICADOS
========================================================= */

/* 01. VARIABLES DEL MUNDO ICD */
.icd-page {
  --icd-color: #ba2d66;
  --icd-color-rgb: 186, 45, 102;
  --icd-pink: #f02e7d;
  --icd-pink-light: #ff69a3;
  --icd-purple: #5b22be;
  --icd-purple-dark: #31106f;
  --icd-cyan: #2fd8ed;
  --icd-blue: #3267f2;
  --icd-green: #57c514;
  --icd-navy: #03132f;
  --icd-navy-2: #071b3d;
  --icd-text: #152039;
  --icd-text-soft: #657086;
  --icd-white: #ffffff;
  --icd-bg: #f5f5f4;
  --icd-border: #e5e5eb;

  --programa-color: #ba2d66;
  --programa-color-rgb: 186, 45, 102;
  --programa-color-claro: #ef5797;
  --programa-color-muy-claro: #fff0f6;
}

/* 02. HERO ICD */
.program-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
}

.program-hero-icd {
  background-image:
    linear-gradient(
      90deg,
      rgba(3, 19, 47, 0.97) 0%,
      rgba(3, 19, 47, 0.90) 32%,
      rgba(3, 19, 47, 0.46) 55%,
      rgba(3, 19, 47, 0.06) 100%
    ),
    url("../assets/programas/integracion-contenidos-digitales/hero/hero-icd.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.program-hero-content {
  min-height: 500px;
  display: flex;
  align-items: center;
  padding-top: 35px;
  padding-bottom: 60px;
}

.program-breadcrumb {
  position: relative;
  z-index: 4;
  padding-top: 22px;
}

.program-breadcrumb .breadcrumb-item,
.program-breadcrumb .breadcrumb-item a {
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  text-decoration: none;
}

.program-breadcrumb .breadcrumb-item.active {
  color: white;
}

.program-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,.45);
}

.program-world-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 7px 13px;
  color: white;
  background: rgba(var(--icd-color-rgb), .88);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50px;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.program-hero-title {
  max-width: 680px;
  margin: 0;
  color: white;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 950;
  line-height: .98;
}

.program-hero-title span {
  display: block;
  color: var(--icd-pink);
}

.program-hero-subtitle {
  max-width: 530px;
  margin: 20px 0 10px;
  color: white;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 750;
}

.program-hero-text {
  max-width: 530px;
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: .93rem;
  line-height: 1.55;
}

.btn-program-primary {
  color: white;
  background: linear-gradient(135deg, var(--icd-pink), var(--icd-color));
  border: none;
  border-radius: 9px;
  padding: 11px 20px;
  font-size: .75rem;
  font-weight: 850;
}

.btn-program-primary:hover {
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(var(--icd-color-rgb), .3);
}

.btn-program-outline {
  color: white;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 9px;
  padding: 10px 20px;
  font-size: .75rem;
  font-weight: 800;
}

.btn-program-outline:hover {
  color: white;
  background: rgba(255,255,255,.14);
}

/* 03. FICHA TÉCNICA */
.program-meta-strip-wrap {
  position: relative;
  z-index: 20;
  margin-top: -38px;
  padding-bottom: 28px;
}

.program-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  background: white;
  border: 1px solid rgba(0,0,0,.04);
  border-radius: 17px;
  box-shadow: 0 12px 30px rgba(12, 20, 40, .14);
}

.program-meta-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 88px;
  padding: 19px 20px;
}

.program-meta-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 0;
  width: 1px;
  height: 60%;
  background: #e4e5e9;
}

.program-meta-icon {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  color: var(--icd-pink);
  background: #fff0f6;
  border-radius: 50%;
  font-size: 1.2rem;
}

.program-meta-label {
  display: block;
  margin-bottom: 3px;
  color: #878f9f;
  font-size: .58rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.program-meta-value {
  display: block;
  color: #172039;
  font-size: .84rem;
  font-weight: 850;
  line-height: 1.25;
}

/* 04. CONTENEDORES GENERALES */
.program-section { padding: 28px 0; }
.section-spacer { padding-top: 35px; padding-bottom: 35px; }
.section-spacer-sm { padding-top: 22px; padding-bottom: 22px; }

.program-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  background: white;
  border: 1px solid var(--icd-border);
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(20, 28, 50, .055);
}

.program-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--icd-color);
  font-size: clamp(.82rem, 1.1vw, .98rem);
  font-weight: 950;
  letter-spacing: .055em;
  line-height: 1.05;
  text-transform: uppercase;
}

.program-section-title {
  margin-bottom: 13px;
  color: var(--icd-color);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 950;
  line-height: 1.12;
}

.program-section-intro {
  max-width: 680px;
  color: var(--icd-text-soft);
  font-size: .85rem;
  line-height: 1.5;
}

/* 05. ¿ESTE MUNDO ES PARA TI? */
.mini-question-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 155px;
  padding: 16px 12px;
  background: linear-gradient(180deg, #ffffff, #fdfbfc);
  border: 1px solid #ebebf0;
  border-radius: 15px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.mini-question-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--icd-color-rgb), .25);
  box-shadow: 0 9px 20px rgba(20,20,40,.08);
}

.mini-question-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 11px;
  color: var(--icd-pink);
  background: linear-gradient(145deg, #fff2f8, #f1edff);
  border-radius: 50%;
  font-size: 1.4rem;
}

.mini-question-card p {
  margin: 0;
  color: #3c4558;
  font-size: .74rem;
  line-height: 1.4;
}

/* 06. CAMINO EN ESTE MUNDO */
.program-section-head { margin-bottom: 25px; }

.program-path-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 9px;
}

.program-path-step { position: relative; text-align: center; }

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  margin: 0 auto 8px;
  color: white;
  background: var(--icd-color);
  border-radius: 50%;
  font-size: .62rem;
  font-weight: 900;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  margin: 0 auto 9px;
  color: var(--icd-purple);
  background: linear-gradient(135deg, #f8f4ff, #fff0f7);
  border-radius: 50%;
  font-size: 1.35rem;
}



.program-path-step h3 {
  margin-bottom: 5px;
  color: var(--icd-purple);
  font-size: .78rem;
  font-weight: 900;
}

.program-path-step p {
  max-width: 145px;
  margin: 0 auto;
  color: #687184;
  font-size: .64rem;
  line-height: 1.4;
}

.program-path-arrow {
  display: flex;
  align-items: center;
  min-height: 93px;
  color: var(--icd-pink);
  font-size: 1rem;
}

/* 07. PODERES DESBLOQUEADOS */
.powers-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 13px;
}

.power-card {
  position: relative;
  min-height: 215px;
  overflow: hidden;
  padding: 18px 15px 70px;
  color: white;
  border-radius: 15px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 8px 18px rgba(20,20,40,.12);
}

.power-card h3 { margin-bottom: 7px; color: white; font-size: .76rem; font-weight: 900; }
.power-card p { margin: 0; color: rgba(255,255,255,.83); font-size: .63rem; line-height: 1.42; }

.power-icon {
  position: absolute;
  left: 50%;
  bottom: 15px;
  transform: translateX(-50%);
  color: white;
  font-size: 2.8rem;
  opacity: .92;
  text-shadow: 0 0 18px rgba(255,255,255,.5);
}

.power-card-purple { background: linear-gradient(155deg, #1d1048, #5022ae); }
.power-card-blue   { background: linear-gradient(155deg, #06255e, #087add); }
.power-card-green  { background: linear-gradient(155deg, #073b31, #099168); }
.power-card-orange { background: linear-gradient(155deg, #5a2a04, #df7b11); }
.power-card-pink   { background: linear-gradient(155deg, #57122e, #cd286a); }
.power-card-cyan   { background: linear-gradient(155deg, #062954, #047eb8); }

/* =========================================================
   08. LABORATORIO DE PERSONAJES 2D
========================================================= */
/* =========================================================
   08. LABORATORIO DE PERSONAJES 2D (MODOS DINÁMICOS)
========================================================= */

/* =========================================================
   08. LABORATORIO DE PERSONAJES 2D (SISTEMA RESPONSIVO Y PESTAÑAS)
========================================================= */



.laboratorio-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #fbfbfc;
  border: 1px solid #dedfe7;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(20, 25, 50, 0.07);
}

.laboratorio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 72px;
  padding: 16px 22px;
  background: #ffffff;
  border-bottom: 1px solid #e4e5ec;
}

.laboratorio-header .program-section-title {
  margin: 0;
  color: var(--icd-purple);
}

.laboratorio-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.laboratorio-switch-wrap {
  display: flex;
  align-items: center;
  color: #727b8d;
  font-size: 0.7rem;
}

.laboratorio-switch-wrap .form-check-input { cursor: pointer; }
.laboratorio-switch-wrap .form-check-input:checked {
  background-color: var(--icd-color);
  border-color: var(--icd-color);
}

.laboratorio-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(360px, 1.42fr) minmax(250px, 1fr);
  grid-template-areas: "controls stage style";
  align-items: start;
  width: 100%;
  background: #f5f5f7;
}

.lab-panel {
  min-width: 0;
  padding: 21px;
  background: #ffffff;
}

.lab-panel-controls {
  grid-area: controls;
  align-self: stretch;
  border-right: 1px solid #e4e5ec;
  position: relative;
  overflow: hidden;
}

.lab-panel-style {
  grid-area: style;
  align-self: stretch;
  border-left: 1px solid #e4e5ec;
}

/* AVATAR ROSTRO (BOTÓN RETORNO) */
.lab-avatar-card {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
  padding: 8px;
  background: #ffffff;
  border: 1.5px solid #e1e3ed;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lab-avatar-card:hover {
  transform: translateY(-2px);
  border-color: var(--icd-color);
  box-shadow: 0 5px 15px rgba(var(--icd-color-rgb), 0.12);
}

.lab-avatar-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1.25 / 0.85;
  overflow: hidden;
  border-radius: 9px;
  background: #f1f2f6;
}

.lab-avatar-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: filter 0.35s ease;
}

.lab-panel-controls.mode-produccion .lab-avatar-preview img {
  filter: grayscale(100%) contrast(1.05);
}

.lab-panel-controls.mode-interaccion .lab-avatar-preview img {
  filter: grayscale(0%) contrast(1);
}

/* TRANSICIÓN DE PANELES */
.lab-mode-section {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.lab-panel-controls.mode-interaccion #secModoInteraccion {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.lab-panel-controls.mode-produccion #secModoProduccion {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* CONTROLES DE INTERACCIÓN */
.lab-block { position: relative; }
.lab-block + .lab-block { margin-top: 18px; }

.lab-block-title {
  margin: 0 0 10px;
  color: #273047;
  font-size: 0.73rem;
  font-weight: 900;
  line-height: 1.2;
}

.lab-btn-group { display: flex; flex-wrap: wrap; gap: 7px; }

.lab-control-btn,
.lab-choice-btn,
.lab-eye-btn {
  appearance: none;
  color: #475168;
  background: #ffffff;
  border: 1px solid #dfe1e8;
  border-radius: 9px;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.lab-control-btn { min-height: 38px; padding: 6px 12px; font-size: 0.67rem; font-weight: 780; }

.lab-control-btn:hover,
.lab-choice-btn:hover,
.lab-eye-btn:hover {
  transform: translateY(-1px);
  color: var(--icd-color);
  border-color: rgba(var(--icd-color-rgb), 0.5);
}

.lab-control-btn.active,
.lab-choice-btn.active,
.lab-eye-btn.active {
  color: var(--icd-color);
  background: #fff1f7;
  border-color: var(--icd-color);
  box-shadow: 0 0 0 2px rgba(var(--icd-color-rgb), 0.08);
}

.lab-eye-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.lab-eye-btn { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0; font-size: 0.88rem; }

.lab-icon-choice { display: flex; flex-wrap: wrap; gap: 7px; }
.lab-choice-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; font-size: 0.95rem; }

/* POSES Y THUMBNAILS */
.lab-poses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pose-option {
  appearance: none;
  width: 100%;
  padding: 4px;
  background: #ffffff;
  border: 1px solid #dfe1e8;
  border-radius: 11px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.pose-option:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--icd-color-rgb), 0.5);
}

.pose-option.active {
  border-color: var(--icd-color);
  background: #fff1f7;
  box-shadow: 0 0 0 2px rgba(var(--icd-color-rgb), 0.12);
}

.pose-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.2;
  overflow: hidden;
  border-radius: 7px;
  background: #f7f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pose-thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 7px;
  transition: transform 0.25s ease;
}

.pose-option:hover .pose-thumb-img {
  transform: scale(1.06);
}

/* PRODUCCIÓN GRÁFICA */
.lab-produccion-title {
  margin: 0 0 14px;
  color: var(--icd-color);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.25;
}

.lab-sub-title {
  margin: 0 0 6px;
  color: #3b4458;
  font-size: 0.67rem;
  font-weight: 850;
}

.produccion-card {
  appearance: none;
  width: 100%;
  padding: 4px;
  background: #ffffff;
  border: 1.5px solid #e2e4ed;
  border-radius: 11px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.produccion-card:hover {
  transform: translateY(-2px);
  border-color: var(--icd-purple);
  box-shadow: 0 4px 12px rgba(91, 34, 190, 0.12);
}

.produccion-card.active {
  border-color: var(--icd-color);
  box-shadow: 0 0 0 2px rgba(var(--icd-color-rgb), 0.12);
  background: #fff1f7;
}

.produccion-thumb {
  width: 100%;
  height: 68px;
  overflow: hidden;
  border-radius: 7px;
  background: #f8f8fc;
}

.produccion-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

/* VISOR CENTRAL */
.lab-stage-wrap {
  grid-area: stage;
  align-self: start;
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 18px;
  background: #f3f3f6;
}

.lab-stage {
  --lab-accent-1: #6b2ee7;
  --lab-accent-2: #e53b9c;
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: #25116c;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 17px;
  box-shadow: 0 12px 30px rgba(24, 13, 75, 0.18);
}

.lab-stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.laboratorio-card .lab-stage-bg-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  opacity: 1;
  user-select: none;
  pointer-events: none;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.lab-character-area {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.lab-character-rig {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: center bottom;
  will-change: transform;
}

.laboratorio-card .lab-character-img,
.laboratorio-card .lab-character-overlay,
.laboratorio-card .lab-color-layer {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  pointer-events: none;
  user-select: none;
}

.lab-character-img { z-index: 1; display: block; }
.lab-character-overlay { display: none; }
.lab-character-overlay.is-visible { display: block; }

.lab-eyes-overlay       { z-index: 6; }
.lab-expression-overlay { z-index: 7; }

/* MÁSCARAS CROMÁTICAS */
.lab-color-layer {
  display: none;
  background: var(--mask-color, transparent);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
}

.lab-color-layer.has-mask { display: block; }
.lab-color-principal  { z-index: 2; }
.lab-color-secundario { z-index: 3; }
.lab-color-acento     { z-index: 4; }
.lab-color-detalle    { z-index: 5; }

/* TOOLBAR Y ANIMACIONES */
.lab-stage-toolbar {
  position: absolute;
  left: 50%;
  bottom: 13px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 30px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(8px);
}

.lab-tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #30384e;
  background: transparent;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.lab-tool-btn:hover {
  color: var(--icd-color);
  background: #f3edf9;
}

.move-quieto { animation: icd-idle 3.2s ease-in-out infinite; }
.move-caminar { animation: icd-walk 0.66s ease-in-out infinite; }
.move-correr { animation: icd-run 0.35s ease-in-out infinite; }

@keyframes icd-idle {
  0%, 100% { transform: translate3d(0, 0, 0) scale(var(--character-zoom, 1)); }
  50%      { transform: translate3d(0, -3px, 0) scale(var(--character-zoom, 1)); }
}

@keyframes icd-walk {
  0%, 100% { transform: translate3d(-2px, 0, 0) rotate(-0.45deg) scale(var(--character-zoom, 1)); }
  25%      { transform: translate3d(0, -6px, 0) rotate(0.25deg) scale(var(--character-zoom, 1)); }
  50%      { transform: translate3d(2px, 0, 0) rotate(0.45deg) scale(var(--character-zoom, 1)); }
  75%      { transform: translate3d(0, -6px, 0) rotate(-0.25deg) scale(var(--character-zoom, 1)); }
}

@keyframes icd-run {
  0%, 100% { transform: translate3d(-3px, 0, 0) rotate(-0.7deg) scale(var(--character-zoom, 1)); }
  50%      { transform: translate3d(3px, -10px, 0) rotate(0.7deg) scale(var(--character-zoom, 1)); }
}

/* ESTILOS Y VESTUARIO */
.vestuario-grid, .estilo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }

.vestuario-option, .estilo-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 5px;
  color: #5b6372;
  background: #ffffff;
  border: 1px solid #dfe1e8;
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.vestuario-option:hover, .estilo-card:hover { transform: translateY(-2px); }
.vestuario-option.active, .estilo-card.active {
  border-color: var(--icd-color);
  box-shadow: 0 0 0 2px rgba(var(--icd-color-rgb), 0.08);
}

.vestuario-number {
  display: block;
  margin-bottom: 4px;
  color: #697184;
  font-size: 0.58rem;
  font-weight: 900;
  text-align: center;
}

.laboratorio-card .vestuario-option img,
.laboratorio-card .estilo-card img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center bottom;
  background: #fafafa;
  border-radius: 7px;
}

.estilo-card { font-size: 0.6rem; font-weight: 850; text-align: center; }

.lab-stage.style-bauhaus { --lab-accent-1: #f5cb23; --lab-accent-2: #e53b32; background: #f2efe4; }
.lab-stage.style-bauhaus::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.42;
  background:
    radial-gradient(circle at 82% 22%, #e53b32 0 7%, transparent 7.4%),
    linear-gradient(90deg, transparent 0 10%, #214cab 10% 15%, transparent 15% 100%),
    linear-gradient(0deg, transparent 0 73%, #f1c928 73% 81%, transparent 81%);
  pointer-events: none;
}
.lab-stage.style-bauhaus .lab-stage-bg-img { opacity: 0.18; filter: saturate(0.45) brightness(1.5); }

.lab-stage.style-popart { --lab-accent-1: #e42e8b; --lab-accent-2: #4a35d3; background: linear-gradient(135deg, #130a48, #7813a8); }
.lab-stage.style-popart::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.27;
  background-image: radial-gradient(rgba(255, 255, 255, 0.34) 1.1px, transparent 1.1px);
  background-size: 12px 12px;
  pointer-events: none;
}

.lab-stage.style-artdeco { --lab-accent-1: #d6b05e; --lab-accent-2: #092f44; background: linear-gradient(145deg, #03131b, #0b3244); }
.lab-stage.style-artdeco::before {
  content: "";
  position: absolute;
  inset: 20px;
  z-index: 2;
  border: 1px solid rgba(224, 184, 98, 0.58);
  border-radius: 100px 100px 10px 10px;
  box-shadow: inset 0 0 0 10px rgba(224,184,98,0.035), inset 0 0 0 11px rgba(224,184,98,0.22);
  pointer-events: none;
}
.lab-stage.style-artdeco .lab-stage-bg-img { opacity: 0.20; filter: sepia(0.7) hue-rotate(135deg) brightness(0.72); }

/* COLOR Y CÍRCULO CROMÁTICO */
.lab-color-layout { display: grid; grid-template-columns: minmax(0, 1fr) 105px; align-items: center; gap: 13px; }
.color-mode-group { gap: 6px; }
.palette-preview { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }

.swatch {
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d2d4dc;
}

.swatch-1 { background: #3866df; }
.swatch-2 { background: #ee8a30; }
.swatch-3 { background: #ffffff; }
.swatch-4 { background: #243b7f; }

.color-wheel-wrap { display: flex; align-items: center; justify-content: center; }
.color-wheel-img { width: 96px; height: 96px; object-fit: contain; }

.color-wheel-interactive {
  position: relative;
  width: 98px;
  height: 98px;
  flex: 0 0 auto;
  cursor: crosshair;
  border: 4px solid white;
  border-radius: 50%;
  background: conic-gradient(#ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
  box-shadow: 0 0 0 1px #d4d5dd, 0 5px 14px rgba(0,0,0,0.10);
}

.color-wheel-interactive::after {
  content: "";
  position: absolute;
  inset: 29%;
  z-index: 2;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}

.color-wheel-marker {
  position: absolute;
  z-index: 5;
  width: 11px;
  height: 11px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.45);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* NAVEGACIÓN MÓVIL Y ADAPTACIÓN EN DISPOSITIVOS PEQUEÑOS */
.lab-mobile-tabs {
  display: none;
}

@media (min-width: 992px) {
  .lab-panel-controls,
  .lab-panel-style {
    display: block !important;
  }
}

/* =========================================================
   SISTEMA MÓVIL CON PESTAÑAS Y ELEMENTOS COMPACTOS (1:1)
========================================================= */
@media (min-width: 992px) {
  /* En escritorio se muestran ambos paneles simultáneamente */
  .lab-panel-controls,
  .lab-panel-style {
    display: block !important;
  }
}

@media (max-width: 991.98px) {
  .laboratorio-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  /* VISOR PERSISTENTE SUPERIOR */
  .lab-stage-wrap {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;
    padding: 10px 14px;
    background: #f3f3f6;
    border-bottom: 1px solid #e4e5ec;
  }

  .lab-stage {
    width: min(100%, 330px);
    margin: 0 auto;
  }

  /* BARRA DE PESTAÑAS MÓVILES (INTERACCIÓN vs ESTILOS) */
  .lab-mobile-tabs {
    display: flex;
    width: 100%;
    gap: 8px;
    padding: 10px 14px;
    background: #ffffff;
    border-bottom: 1px solid #e4e5ec;
    position: sticky;
    top: 0;
    z-index: 25;
  }

  .lab-mobile-tab-btn {
    flex: 1;
    min-height: 38px;
    padding: 6px 10px;
    font-size: 0.7rem;
    font-weight: 850;
    color: #555e70;
    background: #f4f5f8;
    border: 1px solid #dfe1eb;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .lab-mobile-tab-btn.active {
    color: #ffffff;
    background: var(--icd-color);
    border-color: var(--icd-color);
    box-shadow: 0 4px 12px rgba(var(--icd-color-rgb), 0.22);
  }

  /* CONTROL DE CONMUTACIÓN DE PANELES EN MÓVIL */
  .lab-panel-controls,
  .lab-panel-style {
    width: 100%;
    border: none !important;
    padding: 14px;
  }

  .lab-panel-controls:not(.mobile-active),
  .lab-panel-style:not(.mobile-active) {
    display: none !important;
  }

  .lab-panel-controls.mobile-active,
  .lab-panel-style.mobile-active {
    display: block !important;
  }

  /* 1. REDUCCIÓN Y FORMATO APALANCADO DEL AVATAR */
  .lab-avatar-card {
    margin-bottom: 10px;
    padding: 4px;
  }

  .lab-avatar-preview {
    aspect-ratio: 2.8 / 1 !important;
    max-height: 65px;
  }

  .lab-avatar-preview img {
    object-fit: cover;
    object-position: center 20%;
  }

  /* 2. CONTROLES DE INTERACCIÓN COMPACTOS */
  .lab-block + .lab-block {
    margin-top: 12px;
  }

  .lab-eye-grid {
    gap: 5px;
  }

  .lab-eye-btn {
    height: 32px;
    font-size: 0.8rem;
  }

  .lab-control-btn {
    min-height: 32px;
    padding: 4px 8px;
    font-size: 0.62rem;
  }

  .lab-choice-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  /* 3. POSES EN FORMATO CUADRADO 1:1 */
  .lab-poses-grid {
    gap: 6px;
  }

  .pose-option {
    padding: 3px;
  }

  .pose-thumb-wrap {
    aspect-ratio: 1 / 1 !important;
    border-radius: 6px;
  }

  .pose-thumb-img {
    object-fit: cover;
    object-position: center 15%;
  }

  /* 4. PANEL DERECHO: ESTILO VISUAL Y VESTUARIO EN CUADRADOS 1:1 */
  .estilo-grid,
  .vestuario-grid {
    gap: 6px;
  }

  .estilo-card,
  .vestuario-option {
    padding: 4px;
    font-size: 0.55rem;
  }

  .laboratorio-card .estilo-card img {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 6px;
  }

  .vestuario-number {
    margin-bottom: 2px;
    font-size: 0.52rem;
  }

  .laboratorio-card .vestuario-option img {
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center 15% !important;
    border-radius: 6px;
  }

  /* PRODUCCIÓN Y CÍRCULO CROMÁTICO COMPACTOS */
  .produccion-thumb {
    height: 46px;
  }

  .lab-color-layout {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .color-wheel-interactive {
    width: 70px;
    height: 70px;
  }

  .swatch {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 575.98px) {
  .laboratorio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
  }

  .laboratorio-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .lab-stage { width: min(100%, 290px); }
  .lab-mobile-tab-btn { font-size: 0.67rem; padding: 6px 8px; }
}

@media (max-width: 575.98px) {
  .laboratorio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }

  .laboratorio-header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .lab-stage { width: min(100%, 320px); }
  .lab-mobile-tab-btn { font-size: 0.68rem; padding: 6px 8px; }
}


/* =========================================================
   09. HERRAMIENTAS DEL MUNDO
========================================================= */
.tools-chip-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.tool-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 8px;
  color: #4a5468;
  background: #f8f9fc;
  border: 1px solid #e2e4ed;
  border-radius: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
  transition: all 0.2s ease;
}

.tool-chip i {
  color: var(--icd-purple);
  font-size: 0.88rem;
}

.tool-chip:hover {
  background: #ffffff;
  border-color: var(--icd-purple);
  color: var(--icd-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91, 34, 190, 0.08);
}

/* =========================================================
   10. CREACIÓN - ¿QUÉ PODRÍAS CREAR?
========================================================= */
.creation-section-head {
  margin-bottom: 16px;
}

.creation-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.creation-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e4ed;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(20, 20, 40, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.creation-card:hover {
  transform: translateY(-4px);
  border-color: var(--icd-color);
  box-shadow: 0 8px 22px rgba(186, 45, 102, 0.12);
}

.creation-card-img {
  width: 100%;
  aspect-ratio: 1 / 0.95;
  object-fit: cover;
  background: #f4f4f8;
}

.creation-card h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  margin: 0;
  padding: 10px 8px;
  color: #2c354a;
  font-size: 0.63rem;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
}

/* =========================================================
   11. VIDA REAL & SIGUIENTE NIVEL
========================================================= */
.real-life-icons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.real-life-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.real-life-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  color: var(--icd-purple);
  background: #f1ebfc;
  border-radius: 50%;
  font-size: 1.15rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.real-life-item:hover .real-life-icon-wrap {
  transform: scale(1.08);
  background: var(--icd-purple);
  color: #ffffff;
}

.real-life-item span {
  display: block;
  color: #586275;
  font-size: 0.6rem;
  font-weight: 750;
  line-height: 1.3;
}

.future-path {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-top: 20px;
}

.future-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.future-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  color: var(--icd-purple);
  background: #f1ebfc;
  border-radius: 50%;
  font-size: 1.15rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.future-step:hover .future-icon-wrap {
  transform: scale(1.08);
  background: var(--icd-purple);
  color: #ffffff;
}

.future-step span {
  display: block;
  color: #586275;
  font-size: 0.58rem;
  font-weight: 750;
  line-height: 1.35;
}

.future-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: var(--icd-color);
  font-size: 0.95rem;
}

/* =========================================================
   12. PREGUNTAS FRECUENTES (FAQ)
========================================================= */
.program-accordion .accordion-item {
  overflow: hidden;
  margin-bottom: 9px;
  background: #ffffff;
  border: 1px solid #e1e3ed !important;
  border-radius: 10px !important;
}

.program-accordion .accordion-button {
  padding: 14px 18px;
  color: #2a3347;
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 850;
  box-shadow: none;
}

.program-accordion .accordion-button:not(.collapsed) {
  color: var(--icd-color);
  background: #fff1f7;
  border-bottom: 1px solid #f2dbe5;
}

.program-accordion .accordion-body {
  padding: 12px 18px 16px;
  color: #616c82;
  font-size: 0.73rem;
  line-height: 1.55;
}

/* =========================================================
   13. CIERRE FINAL / MISIÓN COMPLETADA
========================================================= */
.program-final-banner {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  color: white;
  border-radius: 18px;
}

.program-final-banner-icd {
  background:
    radial-gradient(circle at 18% 50%, rgba(var(--icd-color-rgb), 0.35), transparent 45%),
    linear-gradient(110deg, #020a1c, #071938);
}

.program-final-content {
  display: grid;
  grid-template-columns: 240px 1fr;
  align-items: center;
  min-height: 220px;
}

.program-final-visual {
  align-self: end;
  height: 220px;
}

.program-final-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.program-final-text {
  padding: 24px 35px 24px 10px;
}

.program-final-text h2 {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 950;
}

.program-final-text p {
  max-width: 620px;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.74rem;
  line-height: 1.5;
}

.btn-program-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px;
  padding: 10px 18px;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-program-light:hover {
  color: var(--icd-navy);
  background: #ffffff;
}

/* =========================================================
   14. RESPONSIVE DEDICADO A SECCIONES INFERIORES
========================================================= */
@media (max-width: 1199.98px) {
  .tools-chip-grid { grid-template-columns: repeat(5, 1fr); }
  .creation-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991.98px) {
  /* Reducción de márgenes entre bloques en móvil */
  .lab-block + .lab-block {
    margin-top: 12px;
  }

  .lab-panel-controls,
  .lab-panel-style {
    padding: 12px 14px;
  }

  /* ESTILO VISUAL: Proporción cuadrada 1:1 y formato compacto */
  .estilo-card {
    padding: 4px;
    font-size: 0.55rem;
  }

  .laboratorio-card .estilo-card img {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 6px;
  }

  /* VESTUARIO: Proporción cuadrada 1:1 orientada al torso */
  .vestuario-option {
    padding: 4px;
  }

  .vestuario-number {
    margin-bottom: 2px;
    font-size: 0.52rem;
  }

  .laboratorio-card .vestuario-option img {
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center 15% !important;
    border-radius: 6px;
  }

  /* PRODUCCIÓN GRÁFICA (BOCETO / TINTA / 3D) COMPACTA */
  .produccion-thumb {
    height: 48px;
  }

  /* ARMONÍAS Y CÍRCULO CROMÁTICO COMPACTO */
  .lab-color-layout {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .color-wheel-interactive {
    width: 72px;
    height: 72px;
  }

  .palette-preview {
    gap: 5px;
    margin-top: 8px;
  }

  .swatch {
    width: 22px;
    height: 22px;
  }
}

@media (max-width: 575.98px) {
  .tools-chip-grid { grid-template-columns: repeat(2, 1fr); }
  .creation-grid { grid-template-columns: repeat(2, 1fr); }
  .real-life-icons-grid { grid-template-columns: repeat(2, 1fr); }
  .future-step { flex: 1 1 100%; }
}

/* =========================================================
   ANIMACIONES DE SPRITESHEET (12 FRAMES)
========================================================= */
/* =========================================================
   ANIMACIONES DE SPRITESHEET RESPONSIVAS (12 FRAMES)
========================================================= */

/* 1. Ocultamos LA IMAGEN BASE Y TODOS LOS OVERLAYS (ojos, boca, colores) */
.lab-character-rig.move-caminar .lab-character-img,
.lab-character-rig.move-correr .lab-character-img,
.lab-character-rig.move-caminar .lab-character-overlay,
.lab-character-rig.move-correr .lab-character-overlay,
.lab-character-rig.move-caminar .lab-color-layer,
.lab-character-rig.move-correr .lab-color-layer {
  opacity: 0 !important;
  visibility: hidden !important;
  display: none !important;
}

/* 2. Creamos el visor virtual para la animación */
.lab-character-rig.move-caminar::after,
.lab-character-rig.move-correr::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%; 
  transform: translateX(-50%);
  height: 85%; 
  aspect-ratio: 320 / 675; 
  background-size: 1200% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}

/* 3. Asignamos la imagen a CAMINAR (Velocidad reducida a 1.15s) */
.lab-character-rig.move-caminar::after {
  background-image: url('../assets/programas/integracion-contenidos-digitales/laboratorio/animaciones/lian-walk-12f.png');
  animation: anim-walk 1.15s steps(11) infinite;
}

/* 4. Asignamos la imagen a CORRER (Velocidad reducida a 0.65s) */
.lab-character-rig.move-correr::after {
  background-image: url('../assets/programas/integracion-contenidos-digitales/laboratorio/animaciones/lian-run-12f.png');
  animation: anim-run 0.65s steps(11) infinite;
}

/* 5. Fotogramas de CAMINAR (De derecha a izquierda según tu PNG) */
@keyframes anim-walk {
  0% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 6. Fotogramas de CORRER (De izquierda a derecha según tu PNG) */
@keyframes anim-run {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* =========================================================
   TARJETA DE IMAGEN TOTAL (REEMPLAZO DE SECCIÓN DESCUBRE)
========================================================= */
/* =========================================================
   FORZAR IMAGEN A LLENAR TODA LA TARJETA
========================================================= */

/* =========================================================
   IMAGEN TOTAL ADAPTADA A FLEXBOX
========================================================= */
.tarjeta-imagen-total {
  width: 100%;
  flex: 1 1 auto;        /* Obliga a la imagen a estirarse y llenar todo el alto del contenedor */
  height: 100%;
  min-height: 280px;     /* Altura mínima de seguridad para móviles */
  object-fit: cover;     /* Rellena todo el espacio proporcionalmente sin dejar espacios blancos */
  display: block;
}

/* =========================================================
   BANNER RESPONSIVO CON CAMBIO DE IMAGEN AUTOMÁTICO
========================================================= */

/* 1. Imagen horizontal por defecto (para PC, Laptops y Tablets) */
.banner-responsivo {
  width: 100%;
  flex: 1 1 auto;
  min-height: 320px;
  background-image: url('../assets/programas/integracion-contenidos-digitales/ESTE-MUNDO-ES-PARA-TI.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 2. Cuando la pantalla sea muy estrecha (Celulares menores a 768px) */
@media (max-width: 767px) {
  .banner-responsivo {
    /* Aquí colocas la ruta de tu versión vertical */
    background-image: url('../assets/programas/integracion-contenidos-digitales/ESTE-MUNDO-VERTICAL.jpg');
    min-height: 380px; /* Le damos un poco más de altura para que luzca bien en vertical */
  }
}