/* JDServer-Webs v6.9 — climate_pro_wiki.css
 * Wiki climàtica (tarjetes desplegables amb icones)
 */

#climate-pro-wiki {
  margin: 22px 0 42px;
}

/* Cabecera */

.cpw-head h3 {
  margin: 0 0 6px;
}

.cpw-sub {
  margin: 0 0 14px;
  opacity: 0.85;
  font-size: 0.95rem;
}

/* Lista de tarjetas */

.cpw-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Tarjeta base */

.cpw-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.12s ease;
}

.cpw-item.open {
  border-color: var(--accent, var(--primary, #4dabff));
  box-shadow: var(--shadow-3, 0 10px 24px rgba(0, 0, 0, 0.35));
  transform: translateY(-1px);
}

/* Cabecera de tarjeta */

.cpw-header {
  padding: 10px 14px 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cpw-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cpw-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: var(--chip-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.12));
}

.cpw-title {
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.cpw-toggle {
  font-size: 0.8rem;
  opacity: 0.75;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.cpw-item.open .cpw-toggle {
  transform: rotate(90deg);
  opacity: 1;
}

/* Contenido */

.cpw-body {
  padding: 0 14px 14px 42px; /* espacio para icono virtual */
  border-top: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
  display: none;
  font-size: 0.92rem;
}

.cpw-item.open .cpw-body {
  display: block;
}

.cpw-body p {
  margin: 8px 0;
  line-height: 1.5;
}

.cpw-body ul {
  margin: 6px 0 8px 18px;
  padding: 0;
}

.cpw-body li {
  margin-bottom: 4px;
}

/* Subtítulos dentro de la wiki */

.cpw-body h5 {
  margin: 8px 0 4px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.95;
}

/* Enlaces o resaltes ligeros */

.cpw-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--border-soft, rgba(255, 255, 255, 0.18));
  font-size: 0.78rem;
  opacity: 0.9;
}

/* Responsive */

@media (max-width: 720px) {
  .cpw-body {
    padding: 0 12px 12px 12px;
  }

  .cpw-header {
    padding: 9px 12px;
  }

  .cpw-icon {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  .cpw-title {
    font-size: 0.95rem;
  }
}
