/* ==========================================================================
   VISTA COMUNIDAD (NUEVO DASHBOARD MODERNO) - NANNYS Y PEQUES
   Réplica 100% del diseño UI/UX mobile de referencia
   ========================================================================== */

#vista-comunidad {
  background: transparent !important;
  min-height: 100vh;
  padding: 10px 14px 110px 14px;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0F172A;
  max-width: 600px;
  margin: 0 auto;
}

#vista-comunidad * {
  box-sizing: border-box;
}

/* Encabezado */
.cd-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 6px;
  margin-bottom: 18px;
}

.cd-header-title {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  color: #0F172A !important;
  margin: 0 !important;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.cd-header-subtitle {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #64748B !important;
  margin: 4px 0 0 0 !important;
}

.cd-bell-btn {
  display: none !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFF1F4;
  border: 1px solid #FFE4E8;
  box-shadow: 0 2px 10px rgba(232, 76, 154, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #E84C9A;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cd-bell-btn:active {
  transform: scale(0.94);
}

.cd-bell-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E84C9A;
  position: absolute;
  top: 10px;
  right: 12px;
  border: 2px solid #FFFFFF;
}

/* ==========================================================================
   1. ACCESOS RÁPIDOS SUPERIORES (3 FICHAS)
   ========================================================================== */
.cd-quick-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.cd-quick-card {
  border-radius: 16px;
  padding: 10px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-width: 0;
}

.cd-quick-card:hover {
  transform: translateY(-2px);
}

.cd-quick-card:active {
  transform: scale(0.97);
}

/* Ficha 1: Capacitaciones del mes */
.cd-quick-card.pink {
  background: #FFF1F4;
  border-color: #FFE4E8;
}

.cd-quick-card.pink .cd-quick-icon {
  background: #FFE4EC;
  color: #E11D48;
}

.cd-quick-card.pink .cd-quick-title {
  color: #BE185D;
}

.cd-quick-card.pink .cd-quick-arrow {
  color: #E11D48;
}

/* Ficha 2: Convenios */
.cd-quick-card.cyan {
  background: #F0FDFA;
  border-color: #CCFBF1;
}

.cd-quick-card.cyan .cd-quick-icon {
  background: #CCFBF1;
  color: #0D9488;
}

.cd-quick-card.cyan .cd-quick-title {
  color: #0F766E;
}

.cd-quick-card.cyan .cd-quick-arrow {
  color: #0D9488;
}

/* Ficha 3: Artículos */
.cd-quick-card.purple {
  background: #F5F3FF;
  border-color: #EDE9FE;
}

.cd-quick-card.purple .cd-quick-icon {
  background: #EDE9FE;
  color: #7C3AED;
}

.cd-quick-card.purple .cd-quick-title {
  color: #5B21B6;
}

.cd-quick-card.purple .cd-quick-arrow {
  color: #7C3AED;
}

.cd-quick-content {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.cd-quick-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-quick-texts {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.cd-quick-title {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.18;
  white-space: normal;
  word-break: break-word;
}

.cd-quick-sub {
  font-size: 9.5px;
  font-weight: 500;
  color: #64748B;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-quick-arrow {
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 2px;
  line-height: 1;
}

/* ==========================================================================
   2. HERO 1: CAPACITACIONES DE SEPTIEMBRE
   ========================================================================== */
.cd-hero-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 22px 20px 20px 20px;
  border: 1px solid #F1F5F9;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}

.cd-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
}

.cd-hero-text-col {
  flex: 1.1;
  z-index: 2;
}

.cd-pill-label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  margin-bottom: 6px;
}

.cd-pill-label.pink {
  color: #E84C9A;
}

.cd-pill-label.white {
  color: rgba(255, 255, 255, 0.9);
}

.cd-pill-label.teal {
  color: #0098A6;
}

.cd-hero-title {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  color: #0F172A !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.12;
}

.cd-hero-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: #64748B;
  margin: 0 0 14px 0;
  max-width: 250px;
}

.cd-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E84C9A;
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(232, 76, 154, 0.28);
  transition: all 0.2s ease;
}

.cd-btn-pill:hover {
  background: #D81B60;
  transform: translateY(-1px);
}

.cd-btn-pill.white-btn {
  background: #FFFFFF;
  color: #D81B60;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.cd-btn-pill.white-btn:hover {
  background: #FFF0F5;
  transform: translateY(-1px);
}

.cd-hero-img-col {
  flex: 0.9;
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.cd-hero-main-img {
  width: 100%;
  max-width: 180px;
  height: 125px;
  object-fit: cover;
  border-radius: 18px;
}

/* Sello decorativo cursivo */
.cd-stamp-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  background: #FFE4EC;
  border: 1.5px dashed #F472B6;
  border-radius: 50%;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  transform: rotate(8deg);
  z-index: 3;
}

.cd-stamp-badge span {
  font-family: 'Caveat', 'Dancing Script', cursive, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #702646;
  line-height: 1.05;
}

/* Subtarjetas de sesiones / cursos (Grid 2 columnas) */
.cd-sessions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cd-session-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cd-session-thumb-box {
  position: relative;
  width: 100%;
  height: 78px;
  overflow: hidden;
}

.cd-session-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-session-tag {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #FFFFFF;
}

.cd-session-tag.live,
.cd-session-tag.online {
  background: #F43F5E;
}

.cd-session-tag.recorded {
  background: #0D9488;
}

.cd-session-tag.presencial {
  background: #059669;
}

.cd-session-tag.hibrida {
  background: #7C3AED;
}

.cd-session-body {
  padding: 10px 10px;
}

.cd-session-title {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: 14.5px !important;
  font-weight: 400 !important;
  color: #0F172A !important;
  margin: 0 0 6px 0 !important;
  line-height: 1.2;
}

.cd-session-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
  flex-wrap: wrap;
}

.cd-session-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.cd-session-actions-wrap {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cd-session-btn-action {
  width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
  text-decoration: none;
  box-sizing: border-box;
}

.cd-session-btn-action.enroll {
  background: #E84C9A;
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(232, 76, 154, 0.22);
}

.cd-session-btn-action.enroll:hover {
  background: #D83B89;
  transform: translateY(-1px);
}

.cd-session-btn-action.checkin {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.22);
}

.cd-session-btn-action.checkin:hover {
  transform: translateY(-1px);
}

.cd-session-btn-action.checkout {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(14, 165, 233, 0.22);
}

.cd-session-btn-action.checkout:hover {
  transform: translateY(-1px);
}

.cd-session-btn-action.diploma {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25);
}

.cd-session-btn-action.diploma:hover {
  transform: translateY(-1px);
}

/* ==========================================================================
   3. HERO 2: CONVENIOS Y DESCUENTOS
   ========================================================================== */
.cd-convenios-card {
  background: linear-gradient(135deg, #E82A7A 0%, #0284C7 100%);
  border-radius: 24px;
  padding: 22px 20px;
  color: #FFFFFF;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(232, 42, 122, 0.15);
}

.cd-convenios-text-col {
  flex: 1.15;
  z-index: 2;
}

.cd-convenios-title {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  color: #FFFFFF !important;
  margin: 0 0 8px 0 !important;
  line-height: 1.15;
}

.cd-convenios-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 16px 0;
}

.cd-convenios-img-col {
  flex: 0.85;
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.cd-convenios-img {
  width: 100%;
  max-width: 170px;
  height: 140px;
  object-fit: cover;
  border-radius: 50% 50% 18px 18px;
}

.cd-convenios-stamp {
  position: absolute;
  bottom: -4px;
  left: -14px;
  background: #E0F7FA;
  border: 1px solid #B2EBF2;
  border-radius: 50%;
  width: 78px;
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
  transform: rotate(-6deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.cd-convenios-stamp span {
  font-family: 'Caveat', 'Dancing Script', cursive, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  color: #00796B;
  line-height: 1.05;
}

.cd-convenios-stamp-bar {
  width: 18px;
  height: 2px;
  background: #0098A6;
  border-radius: 999px;
  margin-top: 3px;
}

/* ==========================================================================
   4. SECCIÓN ARTÍCULOS DE INTERÉS
   ========================================================================== */
.cd-articles-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cd-articles-title {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  color: #0F172A !important;
  margin: 0 !important;
  line-height: 1.2;
}

.cd-articles-see-all {
  font-size: 13px;
  font-weight: 700;
  color: #E84C9A;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.cd-articles-see-all:hover {
  text-decoration: underline;
}

/* Filtros por categorías */
.cd-filter-pills-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.cd-filter-pills-row::-webkit-scrollbar {
  display: none;
}

.cd-filter-pill {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #F1F5F9;
  color: #64748B;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cd-filter-pill:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.cd-filter-pill.active {
  background: #00A3B4;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 163, 180, 0.25);
}

/* Lista de tarjetas de artículos */
.cd-article-card {
  background: #FFFFFF;
  border: 1px solid #F1F5F9;
  border-radius: 20px;
  padding: 12px;
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.cd-article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.cd-article-thumb-box {
  width: 120px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
}

.cd-article-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cd-article-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.cd-article-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cd-article-tag.sensorial {
  background: #FCE7F3;
  color: #BE185D;
}

.cd-article-tag.lenguaje {
  background: #E0F2FE;
  color: #0369A1;
}

.cd-article-tag.motriz {
  background: #DCFCE7;
  color: #15803D;
}

.cd-article-tag.cognitivo {
  background: #FEF3C7;
  color: #B45309;
}

.cd-article-tag.socioemocional {
  background: #F3E8FF;
  color: #7E22CE;
}

.cd-article-tag.extras {
  background: #E0F2FE;
  color: #0369A1;
}

.cd-article-tag.crianza {
  background: #FFEDD5;
  color: #C2410C;
}

.cd-article-tag.educacion {
  background: #EDE9FE;
  color: #4F46E5;
}

.cd-article-tag.general {
  background: #F1F5F9;
  color: #475569;
}

.cd-article-title {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #0F172A !important;
  margin: 0 0 4px 0 !important;
  line-height: 1.25;
}

.cd-article-summary {
  font-size: 11.5px;
  line-height: 1.4;
  color: #64748B;
  margin: 0 0 6px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cd-article-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 4px;
}

.cd-article-link {
  font-size: 12px;
  font-weight: 700;
  color: #E84C9A;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.cd-article-link:hover {
  text-decoration: underline;
}

.cd-article-read-time {
  font-size: 10.5px;
  font-weight: 600;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Barra de Búsqueda de Artículos */
.cd-search-wrap {
  position: relative;
  margin-bottom: 14px;
  width: 100%;
  height: 42px;
  display: flex;
  align-items: center;
}

.cd-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #94A3B8;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-search-input {
  width: 100% !important;
  height: 42px !important;
  line-height: 42px !important;
  padding: 0 40px 0 44px !important;
  padding-left: 44px !important;
  box-sizing: border-box !important;
  border-radius: 999px;
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  font-size: 13px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #0F172A;
  outline: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}

.cd-search-input:focus {
  border-color: #00A3B4;
  box-shadow: 0 0 0 3px rgba(0, 163, 180, 0.15);
}

.cd-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: none;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  padding: 0;
}

.cd-search-clear.visible {
  display: flex;
}

/* Contador de Artículos */
.cd-results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #64748B;
  font-weight: 500;
  margin-bottom: 10px;
  padding: 0 4px;
}

/* Botón Cargar Más */
.cd-load-more-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0 24px 0;
}

.cd-btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  color: #0F172A;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.cd-btn-load-more:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  transform: translateY(-1px);
}

.cd-btn-load-more:active {
  transform: scale(0.97);
}

/* ==========================================================================
   5. VISTA DE LECTURA COMPLETA (VISTA-ARTICULO)
   ========================================================================== */
#vista-articulo {
  min-height: 100vh;
  padding-bottom: 110px;
  box-sizing: border-box;
  background: #FFFFFF;
}

.reading-view {
  background: #FFFFFF;
  color: #334155;
  line-height: 1.8;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 16px 18px 60px 18px;
  box-sizing: border-box;
}

.reading-view .btn-volver,
.reading-view .cd-read-back-btn {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 76, 154, 0.25);
  color: #E84C9A;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.reading-view .btn-volver:hover,
.reading-view .cd-read-back-btn:hover {
  background: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 76, 154, 0.2);
}

.reading-hero {
  margin: -16px -18px 24px -18px;
  height: 280px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.reading-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.reading-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.reading-view h1 {
  font-family: 'DM Serif Display', Georgia, serif !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  color: #0F172A !important;
  line-height: 1.25 !important;
  margin: 12px 0 16px 0 !important;
  letter-spacing: -0.4px;
}

.reading-view h2,
.reading-view h3,
.reading-view h4 {
  font-family: 'DM Serif Display', Georgia, serif !important;
  color: #0F172A !important;
  margin-top: 28px !important;
  margin-bottom: 12px !important;
  line-height: 1.3 !important;
}

.reading-view h3 {
  font-size: 20px !important;
}

.reading-view h4 {
  font-size: 17px !important;
}

.reading-view p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 16px;
}

.reading-view ul,
.reading-view ol {
  padding-left: 20px;
  margin-bottom: 20px;
}

.reading-view li {
  font-size: 14.5px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 6px;
}

.reading-note {
  background: #F8FAFC;
  border-left: 4px solid #00A3B4;
  padding: 16px 18px;
  border-radius: 0 16px 16px 0;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.6;
}

.reading-table {
  background: #F8FAFC;
  border-radius: 18px;
  padding: 14px 16px;
  margin: 22px 0;
  border: 1px solid #E2E8F0;
}

.rt-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #E2E8F0;
  font-size: 13.5px;
}

.rt-row:last-child {
  border-bottom: none;
}

.rt-row span:first-child {
  font-weight: 700;
  color: #E84C9A;
}

.reading-footer-card {
  border-top: 1px solid #F1F5F9;
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
}

.reading-footer-card p {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 16px;
}

.btn-pink,
.cd-btn-finish-reading {
  background: linear-gradient(135deg, #E84C9A 0%, #D81B60 100%);
  color: #FFFFFF;
  padding: 12px 32px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232, 76, 154, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-pink:hover,
.cd-btn-finish-reading:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 76, 154, 0.38);
}

.btn-pink:active,
.cd-btn-finish-reading:active {
  transform: scale(0.97);
}

/* ==========================================================================
   MODALES Y ESTILOS DE CAPACITACIONES EN COMUNIDAD
   ========================================================================== */
.cd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUpModal {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cd-modal-card {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(232, 76, 154, 0.18), 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(232, 76, 154, 0.12);
  overflow: hidden;
  animation: scaleUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.cd-modal-header {
  position: relative;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cd-modal-header h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 20px;
  color: #0F172A;
  margin: 0;
  line-height: 1.2;
}

.cd-modal-close {
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748B;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
}

.cd-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.cd-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cd-modal-hero-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.cd-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cd-status-badge.enrolled {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #BBF7D0;
}

.cd-status-badge.attended {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.cd-status-badge.diploma {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.cd-info-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.cd-info-pill {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cd-diploma-card-box {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border: 1.5px solid #F59E0B;
  border-radius: 18px;
  padding: 16px;
  margin-top: 16px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.12);
}

.cd-btn-diploma {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: 10px;
}

.cd-btn-diploma:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.4);
}

.cd-btn-checkin {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: transform 0.2s ease;
}

.cd-btn-checkin:hover {
  transform: translateY(-1px);
}

.cd-btn-checkout {
  background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
  transition: transform 0.2s ease;
}

.cd-btn-checkout:hover {
  transform: translateY(-1px);
}


