.ck-planeacion-content { font-family: 'Poppins', Arial, sans-serif; color: #333; line-height: 1.7; max-width: 100%; }
.ck-planeacion-content h2, .ck-planeacion-content h3, .ck-planeacion-content h4 { font-weight: 800; color: #212529; }
.ck-planeacion-content .ck-hero { display: flex; align-items: center; gap: 12px; margin: 0.2em 0 1.2em; padding: 18px 22px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.ck-planeacion-content .ck-hero svg { flex-shrink: 0; width: 26px; height: 26px; }
.ck-planeacion-content .ck-hero-title { font-size: 1.9rem; font-weight: 800; color: inherit; margin: 0; line-height: 1.3; }
.ck-planeacion-content p { margin: 0 0 1em; font-size: 1.35rem; }
.ck-planeacion-content ul { margin: 0 0 1em; padding-left: 1.5em; }
.ck-planeacion-content li { margin-bottom: 0.4em; font-size: 1.35rem; }
.ck-planeacion-content hr { margin: 1.6em 0; border: 0; height: 1px; background-color: #e9ecef; }

/* Encabezados de sección con acento de color por tipo (fase/día/producto/evaluación) */
.ck-planeacion-content .ck-band { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: flex-start !important; gap: 10px; margin: 1.8em 0 0.9em; padding: 12px 18px; border-radius: 12px; }
.ck-planeacion-content .ck-band svg { flex: 0 0 17px !important; width: 17px !important; height: 17px !important; margin-top: 2px; }
.ck-planeacion-content .ck-band-title { flex: 1 1 auto !important; min-width: 0; font-size: 1.5rem; font-weight: 800; margin: 0; line-height: 1.3; }
.ck-planeacion-content .ck-band-sub { display: inline-block; font-size: 1rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.75; margin-bottom: 2px; }
.ck-planeacion-content .ck-band-plain { display: flex; align-items: center; gap: 8px; margin: 1.8em 0 0.7em; }
.ck-planeacion-content .ck-band-plain svg { flex-shrink: 0; }
.ck-planeacion-content .ck-band-plain span { font-size: 1rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #6c757d; }

/* Tarjeta Inicio / Desarrollo / Cierre (planeaciones por día) */
.ck-planeacion-content .ck-momento { display: flex; gap: 12px; margin: 0 0 10px; padding: 14px 16px; border-radius: 10px; background: #f7f9fb; }
.ck-planeacion-content .ck-momento-bar { width: 5px; border-radius: 4px; flex-shrink: 0; }
.ck-planeacion-content .ck-momento-label { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 6px; }
.ck-planeacion-content .ck-momento ul { margin: 0; padding-left: 1.1em; }
.ck-planeacion-content .ck-momento li { margin-bottom: 0.35em; font-size: 1.35rem; line-height: 1.55; }

/* Callout de cierre reflexivo / evaluación formativa */
.ck-planeacion-content .ck-callout { display: flex; gap: 10px; align-items: flex-start; margin: 1em 0 1.4em; padding: 16px 20px; border-radius: 12px; border: 1.5px solid; font-size: 1.35rem; line-height: 1.6; }
.ck-planeacion-content .ck-callout svg { flex-shrink: 0; margin-top: 2px; }
.ck-planeacion-content .ck-callout strong { display: block; margin-bottom: 4px; font-size: 1.35rem; }
.ck-planeacion-content .ck-callout-eval { background: #fff9e6; border-color: #ffe94d; color: #5c4700; }
.ck-planeacion-content .ck-callout-eval strong { color: #7a5b00; }
.ck-planeacion-content .ck-callout-cierre { background: #eefadf; border-color: #166534; color: #14532d; }
.ck-planeacion-content .ck-callout-cierre strong { color: #14532d; }

/* Tablas */
.ck-planeacion-content .ck-table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.ck-planeacion-content table { min-width: 100%; border-collapse: collapse; table-layout: fixed; }
.ck-planeacion-content th { background-color: #0091F4; text-align: left; font-size: 0.95rem; font-weight: 800; color: #ffffff; text-transform: uppercase; letter-spacing: 0.04em; padding: 12px 16px; border: none; }
.ck-planeacion-content td { padding: 16px; border: 1px solid #edf1f4; vertical-align: top; font-size: 1.35rem; line-height: 1.6; word-wrap: break-word; background: #ffffff; }
.ck-planeacion-content tr:nth-child(even) td { background: #f9fbfd; }
.ck-planeacion-content td ul { margin: 0; padding-left: 1.2em; list-style-type: disc; }
.ck-planeacion-content td li { margin-bottom: 0.35em; line-height: 1.55; }
.ck-planeacion-content .ck-cell-group { display: inline-block; font-weight: 800; padding: 4px 12px; border-radius: 20px; font-size: 1.05rem; color: #ffffff; }
.ck-planeacion-content .ck-cell-badge { display: inline-block; font-weight: 800; padding: 4px 12px; border-radius: 20px; font-size: 1rem; background: #fff2c9; color: #7a5b00; white-space: nowrap; }
.ck-planeacion-content th.ck-th-logrado { background-color: #4a7a0a; }
.ck-planeacion-content th.ck-th-proceso { background-color: #b5860a; }
.ck-planeacion-content th.ck-th-falta { background-color: #b5432e; }

/* Chips de datos del proyecto (grado, mes, escenario, duración...) */
.ck-planeacion-content .ck-meta-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.6em; }
.ck-planeacion-content .ck-meta-badge { display: flex; align-items: center; gap: 7px; background: #eaf5ff; border: 1px solid #d3ebff; border-radius: 20px; padding: 8px 16px; font-size: 0.95rem; color: #14425e; }
.ck-planeacion-content .ck-meta-badge b { font-weight: 800; }

/* Tarjeta de campo formativo (Lenguajes/PDA/etc con lista) */
.ck-planeacion-content .ck-field-card { background: #ffffff; border: 1px solid #edf1f4; border-left: 5px solid #0091F4; border-radius: 12px; padding: 16px 20px; margin: 0 0 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.ck-planeacion-content .ck-field-label { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 8px; }
.ck-planeacion-content .ck-field-card ul { margin: 0; padding-left: 1.2em; }
.ck-planeacion-content .ck-field-card li { font-size: 1.35rem; line-height: 1.55; margin-bottom: 0.35em; }

/* Móvil: transformación de tablas a tarjetas diarias y rúbricas legibles */
@media (max-width: 767px) {
  .ck-planeacion-content .ck-hero { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
  .ck-planeacion-content .ck-hero-title { font-size: 1.4rem; }
  .ck-planeacion-content .ck-band { padding: 12px 14px; }
  .ck-planeacion-content .ck-band-title { font-size: 1.3rem; }
  .ck-planeacion-content .ck-meta-badges { gap: 6px; }
  .ck-planeacion-content .ck-meta-badge { padding: 7px 12px; font-size: 0.88rem; width: 100%; }
  .ck-planeacion-content .ck-momento,
  .ck-planeacion-content .ck-callout,
  .ck-planeacion-content .ck-field-card { padding: 12px 14px; }

  /* TABLA DE ACTIVIDADES DIARIAS -> TARJETAS MÓVILES */
  .ck-planeacion-content .ck-table-activities,
  .ck-planeacion-content .ck-table-wrap:has(.ck-cell-group),
  .ck-planeacion-content .ck-table-wrap:has(.ck-td-group) {
    overflow-x: visible;
    box-shadow: none;
    margin: 1em 0 1.6em;
    background: transparent;
  }
  .ck-planeacion-content .ck-table-activities table,
  .ck-planeacion-content .ck-table-wrap:has(.ck-cell-group) table,
  .ck-planeacion-content .ck-table-wrap:has(.ck-td-group) table {
    min-width: 100% !important;
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    display: block;
  }
  .ck-planeacion-content .ck-table-activities thead,
  .ck-planeacion-content .ck-table-wrap:has(.ck-cell-group) thead,
  .ck-planeacion-content .ck-table-wrap:has(.ck-td-group) thead {
    display: none;
  }
  .ck-planeacion-content .ck-table-activities tbody,
  .ck-planeacion-content .ck-table-wrap:has(.ck-cell-group) tbody,
  .ck-planeacion-content .ck-table-wrap:has(.ck-td-group) tbody {
    display: block;
    width: 100%;
  }
  .ck-planeacion-content .ck-table-activities tr,
  .ck-planeacion-content .ck-table-wrap:has(.ck-cell-group) tbody tr,
  .ck-planeacion-content .ck-table-wrap:has(.ck-td-group) tbody tr {
    display: block;
    width: 100%;
    background: #ffffff;
    border: 2px solid #e0f2fe;
    border-radius: 18px;
    margin-bottom: 20px;
    padding: 16px 16px 18px;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.08);
    box-sizing: border-box;
  }
  .ck-planeacion-content .ck-table-activities tr:nth-child(even) td,
  .ck-planeacion-content .ck-table-wrap:has(.ck-cell-group) tbody tr:nth-child(even) td,
  .ck-planeacion-content .ck-table-wrap:has(.ck-td-group) tbody tr:nth-child(even) td {
    background: transparent;
  }
  .ck-planeacion-content .ck-table-activities td,
  .ck-planeacion-content .ck-table-wrap:has(.ck-cell-group) tbody td,
  .ck-planeacion-content .ck-table-wrap:has(.ck-td-group) tbody td {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent !important;
    box-sizing: border-box;
  }
  /* Celda de Día (Grupo) */
  .ck-planeacion-content .ck-table-activities td.ck-td-group,
  .ck-planeacion-content .ck-table-wrap:has(.ck-cell-group) tbody td:first-child {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1.5px dashed #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .ck-planeacion-content .ck-table-activities td.ck-td-group .ck-cell-group,
  .ck-planeacion-content .ck-table-wrap:has(.ck-cell-group) tbody td:first-child .ck-cell-group {
    font-size: 1.15rem;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
  /* Celda de Actividades */
  .ck-planeacion-content .ck-table-activities td.ck-td-activity,
  .ck-planeacion-content .ck-table-wrap:has(.ck-cell-group) tbody td:nth-child(2) {
    font-size: 1.38rem;
    line-height: 1.7;
    color: #1e293b;
    word-break: break-word;
  }
  /* Celda de Recursos */
  .ck-planeacion-content .ck-table-activities td.ck-td-resources,
  .ck-planeacion-content .ck-table-wrap:has(.ck-cell-group) tbody td:nth-child(3) {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
    border-radius: 14px;
    font-size: 1.25rem;
    line-height: 1.55;
    color: #0369a1;
  }
  .ck-planeacion-content .ck-table-activities td.ck-td-resources::before,
  .ck-planeacion-content .ck-table-wrap:has(.ck-cell-group) tbody td:nth-child(3)::before {
    content: '📦 Materiales y Recursos:';
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0284c7;
    margin-bottom: 5px;
  }
  .ck-planeacion-content .ck-table-activities td.ck-td-resources:empty,
  .ck-planeacion-content .ck-table-wrap:has(.ck-cell-group) tbody td:nth-child(3):empty {
    display: none;
  }

  /* TABLA DE RÚBRICA -> TARJETAS DE EVALUACIÓN */
  .ck-planeacion-content .ck-table-rubric,
  .ck-planeacion-content .ck-table-wrap:has(.ck-th-logrado) {
    overflow-x: visible;
    box-shadow: none;
    margin: 1em 0 1.6em;
    background: transparent;
  }
  .ck-planeacion-content .ck-table-rubric table,
  .ck-planeacion-content .ck-table-wrap:has(.ck-th-logrado) table {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
  }
  .ck-planeacion-content .ck-table-rubric thead,
  .ck-planeacion-content .ck-table-wrap:has(.ck-th-logrado) thead {
    display: none;
  }
  .ck-planeacion-content .ck-table-rubric tbody,
  .ck-planeacion-content .ck-table-wrap:has(.ck-th-logrado) tbody {
    display: block;
    width: 100%;
  }
  .ck-planeacion-content .ck-table-rubric tr,
  .ck-planeacion-content .ck-table-wrap:has(.ck-th-logrado) tbody tr {
    display: block;
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 14px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
  }
  .ck-planeacion-content .ck-table-rubric tr:nth-child(even) td,
  .ck-planeacion-content .ck-table-wrap:has(.ck-th-logrado) tbody tr:nth-child(even) td {
    background: transparent;
  }
  .ck-planeacion-content .ck-table-rubric td,
  .ck-planeacion-content .ck-table-wrap:has(.ck-th-logrado) tbody td {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    background: transparent !important;
    box-sizing: border-box;
  }
  .ck-planeacion-content .ck-table-rubric td.ck-td-criterion,
  .ck-planeacion-content .ck-table-wrap:has(.ck-th-logrado) tbody td:first-child {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.6;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
  }
  .ck-planeacion-content .ck-table-rubric td.ck-td-level,
  .ck-planeacion-content .ck-table-wrap:has(.ck-th-logrado) tbody td:not(:first-child) {
    display: none;
  }
  .ck-planeacion-content .ck-table-rubric tr::after,
  .ck-planeacion-content .ck-table-wrap:has(.ck-th-logrado) tbody tr::after {
    content: 'Logrado · En proceso · Falta por consolidar';
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 1.05rem;
    font-weight: 700;
  }

  /* CUALQUIER OTRA TABLA GENÉRICA (ej. Ficha de contenidos/PDA si no usa tarjetas) */
  .ck-planeacion-content .ck-table-wrap:not(.ck-table-activities):not(.ck-table-rubric):not(:has(.ck-cell-group)):not(:has(.ck-th-logrado)) {
    -webkit-overflow-scrolling: touch;
    box-shadow: inset -12px 0 12px -14px rgba(0,0,0,.35);
  }
  .ck-planeacion-content .ck-table-wrap:not(.ck-table-activities):not(.ck-table-rubric):not(:has(.ck-cell-group)):not(:has(.ck-th-logrado)) table {
    min-width: 580px;
    table-layout: auto;
  }
}


.ck-planeacion-fases { font-family: 'Poppins', Arial, sans-serif; color: #333; line-height: 1.7; max-width: 100%; }
.ck-planeacion-fases h2, .ck-planeacion-fases h3, .ck-planeacion-fases h4 { font-weight: 800; color: #212529; }
.ck-planeacion-fases .ck-hero { display: flex; align-items: center; gap: 12px; margin: 0.2em 0 1.2em; padding: 18px 22px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.1); }
.ck-planeacion-fases .ck-hero svg { flex-shrink: 0; width: 26px; height: 26px; }
.ck-planeacion-fases .ck-hero-title { font-size: 1.9rem; font-weight: 800; color: inherit; margin: 0; line-height: 1.3; }
.ck-planeacion-fases p { margin: 0 0 1em; font-size: 1.35rem; }
.ck-planeacion-fases ul { margin: 0 0 1em; padding-left: 1.5em; }
.ck-planeacion-fases li { margin-bottom: 0.4em; font-size: 1.35rem; }
.ck-planeacion-fases hr { margin: 1.6em 0; border: 0; height: 1px; background-color: #e9ecef; }

/* Riel de línea de tiempo: conecta visualmente las bandas de fase/momento */
.ck-planeacion-fases { position: relative; padding-left: 22px; }
.ck-planeacion-fases::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #0091F4, #ffb703, #AAD81A); }

.ck-planeacion-fases .ck-band { position: relative; display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: flex-start !important; gap: 10px; margin: 1.8em 0 0.9em; padding: 12px 18px; border-radius: 0 12px 12px 0; }
.ck-planeacion-fases .ck-band::before { content: ''; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); width: 11px; height: 11px; border-radius: 50%; background: currentColor; border: 2px solid #ffffff; box-shadow: 0 0 0 2px currentColor; }
.ck-planeacion-fases .ck-band svg { flex: 0 0 17px !important; width: 17px !important; height: 17px !important; margin-top: 2px; }
.ck-planeacion-fases .ck-band-title { flex: 1 1 auto !important; min-width: 0; font-size: 1.5rem; font-weight: 800; margin: 0; line-height: 1.3; }
.ck-planeacion-fases .ck-band-plain { display: flex; align-items: center; gap: 8px; margin: 1.8em 0 0.7em; }
.ck-planeacion-fases .ck-band-plain svg { flex-shrink: 0; }
.ck-planeacion-fases .ck-band-plain span { font-size: 1rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #6c757d; }

.ck-planeacion-fases .ck-momento { display: flex; gap: 12px; margin: 0 0 10px; padding: 14px 16px; border-radius: 10px; background: #f7f9fb; }
.ck-planeacion-fases .ck-momento-bar { width: 5px; border-radius: 4px; flex-shrink: 0; }
.ck-planeacion-fases .ck-momento-label { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 6px; }
.ck-planeacion-fases .ck-momento ul { margin: 0; padding-left: 1.1em; }
.ck-planeacion-fases .ck-momento li { margin-bottom: 0.35em; font-size: 1.35rem; line-height: 1.55; }

.ck-planeacion-fases .ck-callout { display: flex; gap: 10px; align-items: flex-start; margin: 1em 0 1.4em; padding: 16px 20px; border-radius: 12px; border: 1.5px solid; font-size: 1.35rem; line-height: 1.6; }
.ck-planeacion-fases .ck-callout svg { flex-shrink: 0; margin-top: 2px; }
.ck-planeacion-fases .ck-callout strong { display: block; margin-bottom: 4px; font-size: 1.35rem; }
.ck-planeacion-fases .ck-callout-eval { background: #fff9e6; border-color: #ffe94d; color: #5c4700; }
.ck-planeacion-fases .ck-callout-eval strong { color: #7a5b00; }
.ck-planeacion-fases .ck-callout-cierre { background: #eefadf; border-color: #166534; color: #14532d; }
.ck-planeacion-fases .ck-callout-cierre strong { color: #14532d; }

.ck-planeacion-fases .ck-table-wrap { overflow-x: auto; margin: 1.2em 0 1.6em; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.ck-planeacion-fases table { min-width: 100%; border-collapse: collapse; table-layout: fixed; }
.ck-planeacion-fases th { background-image: linear-gradient(135deg, #0091F4, #00c3f7); text-align: left; font-size: 0.95rem; font-weight: 800; color: #ffffff; text-transform: uppercase; letter-spacing: 0.04em; padding: 12px 16px; border: none; }
.ck-planeacion-fases td { padding: 16px; border: 1px solid #edf1f4; vertical-align: top; font-size: 1.35rem; line-height: 1.6; word-wrap: break-word; background: #ffffff; }
.ck-planeacion-fases tr:nth-child(even) td { background: #f9fbfd; }
.ck-planeacion-fases td ul { margin: 0; padding-left: 1.2em; list-style-type: disc; }
.ck-planeacion-fases td li { margin-bottom: 0.35em; line-height: 1.55; }
.ck-planeacion-fases .ck-cell-group { display: inline-block; font-weight: 800; padding: 4px 12px; border-radius: 20px; font-size: 1.05rem; color: #ffffff; }
.ck-planeacion-fases .ck-cell-badge { display: inline-block; font-weight: 800; padding: 4px 12px; border-radius: 20px; font-size: 1rem; background: #fff2c9; color: #7a5b00; white-space: nowrap; }
.ck-planeacion-fases th.ck-th-logrado { background-image: none; background-color: #4a7a0a; }
.ck-planeacion-fases th.ck-th-proceso { background-image: none; background-color: #b5860a; }
.ck-planeacion-fases th.ck-th-falta { background-image: none; background-color: #b5432e; }

.ck-planeacion-fases .ck-meta-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.6em; }
.ck-planeacion-fases .ck-meta-badge { display: flex; align-items: center; gap: 7px; background: #eaf5ff; border: 1px solid #d3ebff; border-radius: 20px; padding: 8px 16px; font-size: 0.95rem; color: #14425e; }
.ck-planeacion-fases .ck-meta-badge b { font-weight: 800; }

.ck-planeacion-fases .ck-field-card { background: #ffffff; border: 1px solid #edf1f4; border-left: 5px solid #0091F4; border-radius: 12px; padding: 16px 20px; margin: 0 0 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.ck-planeacion-fases .ck-field-label { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 8px; }
.ck-planeacion-fases .ck-field-card ul { margin: 0; padding-left: 1.2em; }
.ck-planeacion-fases .ck-field-card li { font-size: 1.35rem; line-height: 1.55; margin-bottom: 0.35em; }

/* Móvil: riel optimizado y transformación de tablas a tarjetas */
@media (max-width: 767px) {
  .ck-planeacion-fases { padding-left: 12px; }
  .ck-planeacion-fases::before { left: 2px; }
  .ck-planeacion-fases .ck-band::before { left: -14px; width: 8px; height: 8px; }
  .ck-planeacion-fases .ck-hero { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
  .ck-planeacion-fases .ck-hero-title { font-size: 1.4rem; }
  .ck-planeacion-fases .ck-band { padding: 12px 14px; }
  .ck-planeacion-fases .ck-band-title { font-size: 1.3rem; }
  .ck-planeacion-fases .ck-meta-badges { gap: 6px; }
  .ck-planeacion-fases .ck-meta-badge { padding: 7px 12px; font-size: 0.88rem; width: 100%; }
  .ck-planeacion-fases .ck-momento,
  .ck-planeacion-fases .ck-callout,
  .ck-planeacion-fases .ck-field-card { padding: 12px 14px; }

  /* TABLA DE ACTIVIDADES / FASES -> TARJETAS MÓVILES */
  .ck-planeacion-fases .ck-table-activities,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-cell-group),
  .ck-planeacion-fases .ck-table-wrap:has(.ck-td-group) {
    overflow-x: visible;
    box-shadow: none;
    margin: 1em 0 1.6em;
    background: transparent;
  }
  .ck-planeacion-fases .ck-table-activities table,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-cell-group) table,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-td-group) table {
    min-width: 100% !important;
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0;
    display: block;
  }
  .ck-planeacion-fases .ck-table-activities thead,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-cell-group) thead,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-td-group) thead {
    display: none;
  }
  .ck-planeacion-fases .ck-table-activities tbody,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-cell-group) tbody,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-td-group) tbody {
    display: block;
    width: 100%;
  }
  .ck-planeacion-fases .ck-table-activities tr,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-cell-group) tbody tr,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-td-group) tbody tr {
    display: block;
    width: 100%;
    background: #ffffff;
    border: 2px solid #e0f2fe;
    border-radius: 18px;
    margin-bottom: 20px;
    padding: 16px 16px 18px;
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.08);
    box-sizing: border-box;
  }
  .ck-planeacion-fases .ck-table-activities tr:nth-child(even) td,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-cell-group) tbody tr:nth-child(even) td,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-td-group) tbody tr:nth-child(even) td {
    background: transparent;
  }
  .ck-planeacion-fases .ck-table-activities td,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-cell-group) tbody td,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-td-group) tbody td {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: transparent !important;
    box-sizing: border-box;
  }
  .ck-planeacion-fases .ck-table-activities td.ck-td-group,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-cell-group) tbody td:first-child {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1.5px dashed #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .ck-planeacion-fases .ck-table-activities td.ck-td-group .ck-cell-group,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-cell-group) tbody td:first-child .ck-cell-group {
    font-size: 1.15rem;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 0.03em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
  .ck-planeacion-fases .ck-table-activities td.ck-td-activity,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-cell-group) tbody td:nth-child(2) {
    font-size: 1.38rem;
    line-height: 1.7;
    color: #1e293b;
    word-break: break-word;
  }
  .ck-planeacion-fases .ck-table-activities td.ck-td-resources,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-cell-group) tbody td:nth-child(3) {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
    border-radius: 14px;
    font-size: 1.25rem;
    line-height: 1.55;
    color: #0369a1;
  }
  .ck-planeacion-fases .ck-table-activities td.ck-td-resources::before,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-cell-group) tbody td:nth-child(3):before {
    content: '📦 Materiales y Recursos:';
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0284c7;
    margin-bottom: 5px;
  }
  .ck-planeacion-fases .ck-table-activities td.ck-td-resources:empty,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-cell-group) tbody td:nth-child(3):empty {
    display: none;
  }

  /* TABLA DE RÚBRICA -> TARJETAS DE EVALUACIÓN */
  .ck-planeacion-fases .ck-table-rubric,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-th-logrado) {
    overflow-x: visible;
    box-shadow: none;
    margin: 1em 0 1.6em;
    background: transparent;
  }
  .ck-planeacion-fases .ck-table-rubric table,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-th-logrado) table {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
  }
  .ck-planeacion-fases .ck-table-rubric thead,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-th-logrado) thead {
    display: none;
  }
  .ck-planeacion-fases .ck-table-rubric tbody,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-th-logrado) tbody {
    display: block;
    width: 100%;
  }
  .ck-planeacion-fases .ck-table-rubric tr,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-th-logrado) tbody tr {
    display: block;
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 14px;
    padding: 14px 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
  }
  .ck-planeacion-fases .ck-table-rubric tr:nth-child(even) td,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-th-logrado) tbody tr:nth-child(even) td {
    background: transparent;
  }
  .ck-planeacion-fases .ck-table-rubric td,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-th-logrado) tbody td {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    background: transparent !important;
    box-sizing: border-box;
  }
  .ck-planeacion-fases .ck-table-rubric td.ck-td-criterion,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-th-logrado) tbody td:first-child {
    font-size: 1.35rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.6;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #e2e8f0;
  }
  .ck-planeacion-fases .ck-table-rubric td.ck-td-level,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-th-logrado) tbody td:not(:first-child) {
    display: none;
  }
  .ck-planeacion-fases .ck-table-rubric tr::after,
  .ck-planeacion-fases .ck-table-wrap:has(.ck-th-logrado) tbody tr::after {
    content: 'Logrado · En proceso · Falta por consolidar';
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #64748b;
    font-size: 1.05rem;
    font-weight: 700;
  }

  /* CUALQUIER OTRA TABLA GENÉRICA */
  .ck-planeacion-fases .ck-table-wrap:not(.ck-table-activities):not(.ck-table-rubric):not(:has(.ck-cell-group)):not(:has(.ck-th-logrado)) {
    -webkit-overflow-scrolling: touch;
    box-shadow: inset -12px 0 12px -14px rgba(0,0,0,.35);
  }
  .ck-planeacion-fases .ck-table-wrap:not(.ck-table-activities):not(.ck-table-rubric):not(:has(.ck-cell-group)):not(:has(.ck-th-logrado)) table {
    min-width: 580px;
    table-layout: auto;
  }
}